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.
415 lines
20 KiB
Plaintext
415 lines
20 KiB
Plaintext
3 years ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CodeGoodsSetInfo.aspx.cs" Inherits="DSWeb.ParameterSet.CodeGoodsSetInfo" %>
|
||
|
|
||
|
<!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 id="Head1" runat="server">
|
||
|
<title>品名信息</title>
|
||
|
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
||
|
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
|
||
|
<script language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
|
||
|
<script language="javascript" type="text/javascript" src="../js/date/jsDateFM.js"></script>
|
||
|
<script src="../js/json2.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript" src="../js/browser.js" ></script>
|
||
|
<!--Grid-->
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
|
||
|
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxcombo_whp.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxgrid_keymap_excel.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/dhtmlxgrid_excell_link.js" type="text/javascript"></script>
|
||
|
<script> _css_prefix = "../styles/"; _js_prefix = "../js/"; </script>
|
||
|
<!--自定义下拉框-->
|
||
|
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<script type="text/javascript">
|
||
|
window.dhx_globalImgPath = "../images/";
|
||
|
</script>
|
||
|
<!--页面重新加载-->
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<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 idIndex = oldUrl.indexOf("&id"); //alert(oldUrl);
|
||
|
//
|
||
|
var newUrl = "";
|
||
|
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;
|
||
|
}
|
||
|
else if (strHandle == "del") {
|
||
|
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("操作成功!");
|
||
|
}
|
||
|
else 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;
|
||
|
}
|
||
|
//
|
||
|
//window.opener.location.reload();
|
||
|
}
</script>
|
||
|
<!--蒙板-->
|
||
|
<script type="text/javascript">
|
||
|
function dialog()
|
||
|
{
|
||
|
this.width=450;
|
||
|
this.height=360;
|
||
|
this.title_height=20;
|
||
|
this.html='';
|
||
|
this.title='';
|
||
|
var self = this;
|
||
|
var bgObj,msgObj,titleObj;
|
||
|
this.close=function()
|
||
|
{
|
||
|
document.body.removeChild(document.getElementById("bgDiv"));
|
||
|
document.getElementById("msgDiv").removeChild(document.getElementById("msgTitle"));
|
||
|
document.body.removeChild(document.getElementById("msgDiv"));
|
||
|
}
|
||
|
|
||
|
this.show=function()
|
||
|
{
|
||
|
var msgw,msgh,bordercolor;
|
||
|
msgw=self.width;
|
||
|
msgh=self.height;
|
||
|
bordercolor="#336699";
|
||
|
titlecolor="#99CCFF";
|
||
|
|
||
|
var sWidth,sHeight;
|
||
|
sWidth=document.body.offsetWidth;
|
||
|
sHeight=screen.height;
|
||
|
bgObj=document.createElement("div");
|
||
|
bgObj.setAttribute('id','bgDiv');
|
||
|
bgObj.style.position="absolute";
|
||
|
bgObj.style.top="0";
|
||
|
bgObj.style.background="#777";
|
||
|
bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
|
||
|
bgObj.style.opacity="0.6";
|
||
|
bgObj.style.left="0";
|
||
|
bgObj.style.width=sWidth + "px";
|
||
|
bgObj.style.height=sHeight + "px";
|
||
|
bgObj.style.zIndex = "10000";
|
||
|
document.body.appendChild(bgObj);
|
||
|
|
||
|
msgObj=document.createElement("div")
|
||
|
msgObj.setAttribute("id","msgDiv");
|
||
|
msgObj.setAttribute("align","center");
|
||
|
msgObj.style.background="white";
|
||
|
msgObj.style.border="1px solid " + bordercolor;
|
||
|
msgObj.style.position = "absolute";
|
||
|
msgObj.style.left = "50%";
|
||
|
msgObj.style.top = "30%";
|
||
|
msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
|
||
|
msgObj.style.marginLeft = "-225px" ;
|
||
|
msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px";
|
||
|
msgObj.style.width = msgw + "px";
|
||
|
msgObj.style.height =msgh + "px";
|
||
|
msgObj.style.textAlign = "center";
|
||
|
msgObj.style.lineHeight ="25px";
|
||
|
msgObj.style.zIndex = "10001";
|
||
|
|
||
|
titleObj=document.createElement("h4");
|
||
|
titleObj.setAttribute("id","msgTitle");
|
||
|
titleObj.setAttribute("align","center");
|
||
|
titleObj.style.margin="0";
|
||
|
titleObj.style.padding="3px";
|
||
|
titleObj.style.background=bordercolor;
|
||
|
titleObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
|
||
|
titleObj.style.opacity="0.75";
|
||
|
titleObj.style.border="1px solid " + bordercolor;
|
||
|
titleObj.style.height=self.title_height+"px";
|
||
|
titleObj.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";
|
||
|
titleObj.style.color="white";
|
||
|
titleObj.style.cursor="pointer";
|
||
|
titleObj.innerHTML=self.title;
|
||
|
//titleObj.onclick=function(){self.close();}
|
||
|
document.body.appendChild(msgObj);
|
||
|
document.getElementById("msgDiv").appendChild(titleObj);
|
||
|
var txt=document.createElement("div");
|
||
|
txt.style.margin="1em 0"
|
||
|
txt.setAttribute("id","msgTxt");
|
||
|
txt.innerHTML=self.html;
|
||
|
document.getElementById("msgDiv").appendChild(txt);
|
||
|
}
|
||
|
}
|
||
|
function msgBox()
|
||
|
{
|
||
|
var dg=new dialog();
|
||
|
dg.html="程序正在提交,请稍等!";
|
||
|
//dg.html+="<input type=button onclick='new dialog().close();' value='确定'>";
|
||
|
dg.width=200;
|
||
|
dg.height=100;
|
||
|
dg.title="标题";
|
||
|
dg.show();
}
|
||
|
function setEnter()
|
||
|
{
|
||
|
$("hdEnter").value="0";
|
||
|
msgBox();
|
||
|
setTimeout(postEnterOpStatusList,200);
}
|
||
|
|
||
|
//post数据
|
||
|
function postEnterOpStatusList()
|
||
|
{
|
||
|
var myForm = document.getElementById("form1");
|
||
|
myForm.submit() ;
|
||
|
}
|
||
|
function newGuid(){
|
||
|
var guid = "";
|
||
|
for (var i = 1; i <= 32; i++){
|
||
|
var n = Math.floor(Math.random()*16.0).toString(16);
|
||
|
guid += n;
|
||
|
if((i==8)||(i==12)||(i==16)||(i==20))
|
||
|
guid += "-";
|
||
|
}
|
||
|
return guid.toUpperCase();
|
||
|
}
//回车键控制
document.onkeypress=function()
|
||
|
{
|
||
|
if(event.keyCode==13)
|
||
|
{
|
||
|
if(event.srcElement.tagName== 'TEXTAREA')
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
//window.event.keyCode=9;
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
var comboGoodsTypeName; //货物类型
|
||
|
function initComboGoodsTypeName()//货物类型
|
||
|
{
|
||
|
comboGoodsTypeName = dhtmlXComboFromSelect("ddlGoodsType");
|
||
|
comboGoodsTypeName.loadXML("../FeeCodes/TCodeGoodsTypeAdapter.aspx?mask=0&pos=0");
|
||
|
}
|
||
|
function initComboGoodsTypeName2()//货物类型
|
||
|
{
|
||
|
comboGoodsTypeName.setOptionWidth(200);
|
||
|
comboGoodsTypeName.attachEvent("onChange", function () { comboGoodsTypeName.setComboText($("hd_comboGoodsTypeName").value); });
|
||
|
comboGoodsTypeName.attachEvent("onBlur", function () {
|
||
|
var s1 = comboGoodsTypeName.getComboText().trim();
|
||
|
var s2 = s1.indexOf("|");
|
||
|
var selVal = "";
|
||
|
if (s1 == "") {
|
||
|
$("hd_comboGoodsTypeName").value = "";
|
||
|
comboGoodsTypeName.setComboText($("hd_comboGoodsTypeName").value);
|
||
|
}
|
||
|
else {
|
||
|
if (s2 > 0) {
|
||
|
s2 = s2 + 2;
|
||
|
}
|
||
|
var s3 = s1.substring(s2);
|
||
|
if (s2 > 0) {
|
||
|
comboGoodsTypeName.setComboText(s3);
|
||
|
$("hd_comboGoodsTypeName").value = s3;
|
||
|
}
|
||
|
else {
|
||
|
comboGoodsTypeName.setComboText($("hd_comboGoodsTypeName").value);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
comboGoodsTypeName.setComboText($("hd_comboGoodsTypeName").value);
|
||
|
comboGoodsTypeName.attachEvent("onKeyPressed", function (keyCode) {
|
||
|
if (keyCode != "8") {
|
||
|
var arrayArg = new Array();
|
||
|
setTimeout(function () {
|
||
|
var is = -1;
|
||
|
var ishd = $("hd_comboGoodsTypeName").value.trim();
|
||
|
var filterCount = 0;
|
||
|
if ("" != comboGoodsTypeName.getComboText().trim()) {
|
||
|
while ("undefined" != typeof comboGoodsTypeName.getOptionByIndex(filterCount)) {
|
||
|
var comboValue = comboGoodsTypeName.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
|
||
|
var enterValue = comboGoodsTypeName.getComboText().trim().toUpperCase();
|
||
|
$("hd_comboGoodsTypeName").value = comboGoodsTypeName.getComboText().trim().toUpperCase();
|
||
|
if (comboValue.indexOf(enterValue) == 0) {
|
||
|
comboGoodsTypeName.selectOption(filterCount, true, true);
|
||
|
is = filterCount;
|
||
|
break;
|
||
|
}
|
||
|
++filterCount;
|
||
|
}
|
||
|
if (is == -1) {
|
||
|
$("hd_comboGoodsTypeName").value = ishd;
|
||
|
alert("无此内容,请重新选择!");
|
||
|
}
|
||
|
}
|
||
|
}, 10);
|
||
|
}
|
||
|
});
|
||
|
comboGoodsTypeName.attachEvent("onSelectionChange", function () {
|
||
|
$("hd_comboGoodsTypeName").value = comboGoodsTypeName.getComboText().trim();
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
<!--背景条-->
|
||
|
<style type="text/css">
|
||
|
.btn-content0{
|
||
|
width:100%;
|
||
|
height:30px;
|
||
|
background:url("../images/content-header.gif");
|
||
|
cursor:default;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body style="background-color: #ECF2FF" onload="initComboGoodsTypeName2();">
|
||
|
<form id="form1" runat="server" style="background-color: #ECF2FF">
|
||
|
<div>
|
||
|
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img">
|
||
|
<div class="btnimg"><asp:ImageButton ID="ibAdd" runat="server" onclick="ibAdd_Click" ToolTip="添加" ImageUrl="~/images/icons/btnAdd.gif"/></div>
|
||
|
</div>
|
||
|
<div id="divibEnter" class="xbtn-img" runat=server onclick="setEnter();">
|
||
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存" class="cssfont"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img">
|
||
|
<div class="btnimg"><asp:ImageButton ID="ibDel" runat="server" onclick="ibDel_Click" ToolTip="删除" ImageUrl="../images/icons/remove.gif" OnClientClick="return confirm('确定要删除吗?')"/></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="myTab0_Content0" style="float:left; width:500px;background-color: #ECF2FF">
|
||
|
<table style="width:500px;">
|
||
|
<tr><td height="10px"></td></tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td valign=top colspan=3>
|
||
|
<asp:CheckBox ID="cbISSTOP" runat="server" Text="该品名停止使用" CssClass="cssfont" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label5" runat="server" Text="所属类型" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<select id="ddlGoodsType" runat="server" class="txtTab" style="width:120px;"></select>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label6" runat="server" Text="品名编码" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbGOODCODE" runat="server" CssClass="txtTab" MaxLength=20></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label7" runat="server" Text="品名名称" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbGOODNAME" runat="server" CssClass="txtTab" MaxLength=30></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label1" runat="server" Text="入库应收" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbARRATE" runat="server" CssClass="txtTab" MaxLength="20" onkeypress="if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label2" runat="server" Text="入库应付" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbAPRATE" runat="server" CssClass="txtTab" MaxLength="20" onkeypress="if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label3" runat="server" Text="出库应收" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbAROUTRATE" runat="server" CssClass="txtTab" MaxLength="20" onkeypress="if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label4" runat="server" Text="出库应付" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbAPOUTRATE" runat="server" CssClass="txtTab" MaxLength="20" onkeypress="if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="60px" valign=top>
|
||
|
<asp:Label ID="Label9" runat="server" Text="品名描述" width="60px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbDESCRIP" runat="server" CssClass="txtTab" MaxLength=200
|
||
|
Height="100px" TextMode="MultiLine"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 选项卡结束 -->
|
||
|
<div>
|
||
|
<input type="hidden" id="hdGid" runat="server"/>
|
||
|
<input type="hidden" id="hdUserID" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboGoodsTypeName" runat="server"/>
|
||
|
<input type="hidden" id="hdHandleType" runat="server"/>
|
||
|
<input type="hidden" id="hdEnter" runat="server"/>
|
||
|
<asp:ImageButton ID="ibEnter" runat="server" ToolTip="保存" ImageUrl="~/images/icons/save.gif" style="display:none;"/>
|
||
|
</div>
|
||
|
<div style="height:200px; width:100%;"></div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|