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.
134 lines
4.3 KiB
Plaintext
134 lines
4.3 KiB
Plaintext
<!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" />
|
|
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
<!-- 引用通用的js文件. -->
|
|
<script type="text/javascript" src="../../../Scripts/config.js"></script>
|
|
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
|
|
<script src="../../Admin.js"></script>
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
//页面启动函数.
|
|
var mypk = "FastInput_" + GetQueryString("FK_MapData") + "_" + GetQueryString("KeyOfEn");
|
|
var frmID = GetQueryString("FK_MapData");
|
|
var keyOfEn = GetQueryString("KeyOfEn");
|
|
$(function () {
|
|
|
|
|
|
//组织主键,
|
|
var en = new Entity("BP.Sys.MapExt");
|
|
en.MyPK = mypk;
|
|
var num = en.RetrieveFromDBSources(); //执行查询..
|
|
|
|
if (num == 1) {
|
|
$("#Btn_Delete").show();
|
|
} else {
|
|
$("#Btn_Delete").hide();
|
|
}
|
|
|
|
document.getElementById("TB_Doc").value = en.Doc;
|
|
if (en.Tag1 == '' || en.Tag1 == null)
|
|
en.Tag1 = "0";
|
|
|
|
$("#Msg").html("");
|
|
|
|
});
|
|
|
|
function Save() {
|
|
var doc = $("#TB_Doc").val();
|
|
if (doc == null || doc == undefined || doc == "") {
|
|
alert("请输入内容.");
|
|
return;
|
|
}
|
|
|
|
doc = doc.replace("'", "~");
|
|
|
|
if (doc.indexOf('@') == -1) {
|
|
alert("内容请参考规范, 必须有@符号。");
|
|
return;
|
|
}
|
|
|
|
//组织主键,
|
|
var en = new Entity("BP.Sys.MapExt");
|
|
en.MyPK = mypk;
|
|
en.Delete();
|
|
|
|
en.FK_MapData = frmID;
|
|
en.AttrOfOper = keyOfEn;
|
|
en.ExtType = "FastInput";
|
|
en.Doc = doc;
|
|
en.Insert();
|
|
Reload();
|
|
}
|
|
|
|
function Delete() {
|
|
|
|
if (window.confirm('您确定要删除吗?') == false)
|
|
return false;
|
|
|
|
//组织主键,
|
|
var en = new Entity("BP.Sys.MapExt");
|
|
en.MyPK = mypk;
|
|
en.Delete(); //执行删除.
|
|
Reload();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="container-full">
|
|
|
|
<div class="attrnode-bar-header">
|
|
<span class="pull-right">
|
|
</span>
|
|
<strong>快速输入</strong>
|
|
</div>
|
|
|
|
<table id="table" style="width: 98%;">
|
|
<tr>
|
|
<td colspan="1">
|
|
快速输入内容,多行用@分开。
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1">
|
|
<textarea rows="7" name="TB_Doc" id="TB_Doc" style="width:95%"> </textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="1">
|
|
<button id="Btn_Save" name="Btn_Save" onclick="Save();" class="cc-btn-tab btn-save">保存</button>
|
|
<button id="Btn_Delete" name="Btn_Delete" onclick="Delete();" class="cc-btn-tab btn-save">删除</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="Msg">
|
|
</div>
|
|
|
|
<fieldset>
|
|
<legend id="">输入示例</legend>
|
|
|
|
<ul>
|
|
<li>@同意</li>
|
|
<li>@基本同意</li>
|
|
<li>@不同意</li>
|
|
</ul>
|
|
|
|
<legend id="">其他说明</legend>
|
|
<ul>
|
|
<li>快速录入是为了解决重复数据相同内容的填写.</li>
|
|
<li>能够减轻输入人员的劳动,并大幅度提高使用体验。</li>
|
|
<li><a href="FastInput.png" target=_blank> <img class="HelpImg" src="FastInput.png" style="width:400px;" border=0 /> </a> </li>
|
|
</ul>
|
|
</fieldset>
|
|
</div>
|
|
</body>
|
|
</html>
|