You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.3 KiB
Plaintext
101 lines
3.3 KiB
Plaintext
11 months ago
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<title>扫码录入</title>
|
||
|
<script type="text/javascript" src="../../../Scripts/bootstrap/js/jquery.min.js"></script>
|
||
|
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<script type="text/javascript" src="../../../Scripts/bootstrap/js/jquery.min.js"></script>
|
||
|
<!-- 引用通用的js文件. -->
|
||
|
<script type="text/javascript" src="../../../Scripts/config.js"></script>
|
||
|
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
//页面启动函数.
|
||
|
var en = null;
|
||
|
$(function () {
|
||
|
|
||
|
var frmID = GetQueryString("FrmID");
|
||
|
var myPK = GetQueryString("MyPK");
|
||
|
|
||
|
//下拉框填充
|
||
|
en = new Entity("BP.Sys.MapAttr", myPK);
|
||
|
|
||
|
//设置列显示模式.
|
||
|
if (en.GetPara("IsEnableQRCode") == 1) {
|
||
|
$("#RB_IsEnable_1").attr("checked", "checked");
|
||
|
}
|
||
|
else {
|
||
|
$("#RB_IsEnable_0").attr("checked", "checked");
|
||
|
}
|
||
|
|
||
|
//设置列显示模式.
|
||
|
if (en.GetPara("QRCodeType") == 1) {
|
||
|
$("#RB_QRCodeType_1").attr("checked", "checked");
|
||
|
}
|
||
|
else {
|
||
|
$("#RB_QRCodeType_0").attr("checked", "checked");
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
//保存
|
||
|
function Save() {
|
||
|
en.SetPara("IsEnableQRCode", $("input[name=RB_IsEnable]:checked").val());
|
||
|
en.SetPara("QRCodeType", $("input[name=RB_QRCodeType]:checked").val());
|
||
|
en.Update();
|
||
|
alert("保存成功...");
|
||
|
Reload();
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form id="cc">
|
||
|
<table id="table" style="width: 100%;">
|
||
|
<caption>
|
||
|
扫码录入:
|
||
|
</caption>
|
||
|
<tr>
|
||
|
<td colspan="3" style="width: 95%;">
|
||
|
<label>
|
||
|
<input type="radio" id="RB_IsEnable_0" value="0" name="RB_IsEnable" />
|
||
|
禁用
|
||
|
</label>
|
||
|
|
||
|
<label>
|
||
|
<input type="radio" id="RB_IsEnable_1" value="1" name="RB_IsEnable" />
|
||
|
启用
|
||
|
</label>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td colspan="3" style="width: 95%;">
|
||
|
|
||
|
<label>
|
||
|
<input type="radio" id="RB_QRCodeType_0" value="0" name="RB_QRCodeType" />
|
||
|
二维码
|
||
|
</label>
|
||
|
|
||
|
<label>
|
||
|
<input type="radio" id="RB_QRCodeType_1" value="1" name="RB_QRCodeType" />
|
||
|
条码
|
||
|
</label>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="3" style="width: 95%;">
|
||
|
<input type="button" value="保存" onclick="Save()" id="Btn_Save" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
<div id="Msg">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|