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.
DS7/DSWeb/ParameterSet/CrmKeyCodeSet.aspx

217 lines
9.9 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrmKeyCodeSet.aspx.cs" Inherits="DSWeb.ParameterSet.CrmKeyCodeSet" %>
<!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 runat="server">
<title>键值表维护</title>
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxmenu.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/progressbar.css" />
<link href="../Css/right.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<script language="javascript" type="text/javascript" src="../js/date/jsDateFM.js"></script>
<style type="text/css">
html,body{font-size:12px;margin:0px;height:100%;}
.mesWindow{border:#666 1px solid;background:#fff;}
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
.btn
{
width:100px;
BORDER-RIGHT: #2C59AA 1px solid;
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
BORDER-BOTTOM: #2C59AA 1px solid
}
</style>
<!--Grid-->
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<script src="../js/dhtmlxmenu.js" type="text/javascript"></script>
<script src="../js/dhtmlxmenu_ext.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script src="../js/jsGridCrmKeyCodeSet.js" type="text/javascript"></script>
<!--自定义下拉框-->
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
<script type="text/javascript">
window.dhx_globalImgPath = "../images/";
</script>
<script type="text/javascript">
//两端去空格函数
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function $(id) {
return document.getElementById(id);
}
function reloadParent(strBSNO, strHandle) {
//alert("strBSNO="+strBSNO);
var parentObj = window.parent.location;
var oldUrl = parentObj.href;
//
var newUrl = "";
var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
newUrl = oldUrl.substring(0, handleIndex);
window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
// if (strHandle == "add") {
// var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
// newUrl = oldUrl.substring(0, handleIndex);
// window.parent.opener.location.href = window.parent.opener.location.href;
// parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
// }
// else if (strHandle == "addfull") {
// var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
// newUrl = oldUrl.substring(0, handleIndex);
// window.parent.opener.location.href = window.parent.opener.location.href;
// parentObj.href = newUrl + "handle=edit&id=" + strBSNO;
// }
// else if (strHandle == "edit") {
// //newUrl = oldUrl.substring(0,idIndex+4);//alert(oldUrl.substring(0,idIndex));
// window.parent.opener.location.href = window.parent.opener.location.href;
// //parentObj.href = newUrl+strBSNO;
// }
//
//alert("成功提交!");
}
//是否为数字,且数值格式是否正确
function IsNumFormat(val) {
var re = /^[-\+]?\d+(\.\d+)?$/;
if (!re.test(val)) {
return false;
}
else {
if (val.toString().indexOf(".") > 0) {
val.toString().replace("-", "");
val.toString().replace("+", "");
if (val.toString().substr(0, 1) == "0" && val.toString().substr(0, 2) != "0.") {
return false;
}
}
else {
var re1 = /^[-\+]+[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
re1 = /^[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
return false;
}
}
}
return true;
}
}
//
function getIsNum(x) {
var str = x.value.trim();
if (str == "0") {
return;
}
else if (str == "") {
str = 0;
x.value = 0;
}
else {
var bl = IsNumFormat(str);
if (!bl) {
alert("数值格式错误!");
x.focus();
x.select();
}
}
}
function document.onkeydown() {
if (event.keyCode == 8) {
if (document.selection) {
var range = document.selection.createRange(); ;
if (range.parentElement().name == null) {
return false; 0
} else {
return true;
}
}
}
}
function initLoading() {
$("progressBar").style.display = "";
}
function finishLoading() {
$("progressBar").style.display = "none";
}
</script>
</head>
<body onload="initGrid();" style="background-color: #ECF2FF;width:100%; height:100%; overflow-y:auto;">
<form id="form1" runat="server">
<div>
<table>
<tr>
<td width=10px></td>
<td>
<asp:Label ID="Label3" runat="server" Text="键值类别" CssClass="cssfont" Width="60px"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlKEYTYPE" runat="server" Width="200px" onchange="refreshRecv();">
</asp:DropDownList>
</td>
</tr>
</table>
</div>
<div class="btn-content">
<div class="btn-blank"></div>
<div class="xbtn-img" onclick="addRecvRow()" id="btn_recvadd" runat=server>
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加"/></div>
</div>
<div class="xbtn-img" onclick="saveAction()" id="btn_recvsave" runat=server>
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存"/></div>
</div>
<div class="xbtn-img" onclick="deleteRecvRow()" id="btn_recvdel" runat=server>
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除"/></div>
</div>
<div class="xbtn-img" onclick="refreshRecv()" id="btn_recvrefresh" runat=server>
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新"/></div>
</div>
</div>
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_recv" style="width:440px; height:500px;" runat="server"></div></div>
<div id="allDoc"></div>
<div>
<input type="hidden" id="addCache" />
<input type="hidden" id="h_cachename" runat="server" />
<input type="hidden" id="h_cachetemplate" runat="server" />
<input type="hidden" id="h_importtype" runat="server" />
<input type="hidden" id="h_authority" runat="server" />
<input type="hidden" id="h_recvauthority" runat="server" />
<input type="hidden" id="h_custcache" runat="server" />
<input type="hidden" id="h_cachehistory" runat="server" />
<input type="hidden" id="h_historytype" runat="server" />
<input type="hidden" id="h_historycachename" runat="server" />
<input type="hidden" id="h_historyoptype" runat="server" />
<input type="hidden" id="h_IsFeeGain" runat="server" />
<input type="hidden" id="recvContainer" runat="server" />
<input type="hidden" id="h_post" runat="server" />
<input type="hidden" id="h_feecache" runat="server" />
</div>
</form>
</body>
</html>