66 lines
2.4 KiB
Plaintext
66 lines
2.4 KiB
Plaintext
|
||
@{
|
||
ViewBag.Title = "打印机设置";
|
||
}
|
||
|
||
<h2>体检系统打印机设置</h2>
|
||
<div class="dispReport">
|
||
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
||
</div>
|
||
<button id="set" class="l-button" style="height:30px;width:55px" onclick="setPrinter()">设置</button>
|
||
<div style="margin-top:5px">
|
||
<h4>设置数据库登记表中的phone_path,若为base64则转换为文件并保存其路径</h4>
|
||
<button id="btnBase64ToFile" class="l-button" style="height:30px;width:150px" onclick="base64ToFile()">数据库Base64转文件</button>
|
||
原id<input id="name" class="l-text" name="name" />现id<input id="name1" class="l-text" name="name1" /><button onclick="updateItem()">更新体检项目ids</button>
|
||
<br/>
|
||
<button onclick="resetGXY()">重置高血压结果</button>
|
||
</div>
|
||
|
||
@section scripts{
|
||
<script>
|
||
function setPrinter()
|
||
{
|
||
try {
|
||
var res = window.top.Formium.external.Print.PrinterSetting();
|
||
} catch (e) {
|
||
$.ligerDialog.error("打印设置出错:" + e.message);
|
||
}
|
||
}
|
||
//2023-11-22 xulu 更新check_item_ids 暂时
|
||
function updateItem() {
|
||
var id = $("#name").val();
|
||
var new_id = $("#name1").val();
|
||
$.ajax({
|
||
url: '@Url.Action("updateItem")',
|
||
type: 'post',
|
||
dataType: 'json',
|
||
data: { item_id: id, new_id: new_id },
|
||
success: function (data) {
|
||
alert(data.Message);
|
||
//$.ligerDialog.success("成功!")
|
||
}
|
||
});
|
||
}
|
||
function base64ToFile() {
|
||
$.ajax({
|
||
url: '@Url.Action("ConvertImg2File")',
|
||
type: 'post',
|
||
dataType: 'json',
|
||
success: function () {
|
||
$.ligerDialog.success("转换成功!")
|
||
}
|
||
});
|
||
}
|
||
//2023-12-13 xulu 重置高血压结果,暂时
|
||
function resetGXY() {
|
||
$.ajax({
|
||
url: '@Url.Action("resetGXY")',
|
||
type: 'post',
|
||
dataType: 'json',
|
||
success: function (result) {
|
||
$.ligerDialog.success(result.Message)
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
} |