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.

347 lines
18 KiB
Plaintext

9 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CwVouchersInfo.aspx.cs" Inherits="DSWeb.CW.CwVouchersInfo" %>
<!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" />
<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>
<!--Grid-->
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/page.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/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/jsGridCwVouchersInfo.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></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" src="../js/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<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">
function $(id) {
return document.getElementById(id);
}
//两端去空格函数
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function reloadParent(strBSNO, strHandle) {
var parentObj = window.parent.location;
var oldUrl = parentObj.href;
var idIndex = oldUrl.indexOf("&id");
//
var newUrl = "";
if (strHandle == "add") {
var handleIndex = oldUrl.indexOf("handle=");
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=");
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") {
//window.parent.opener.location.href = window.parent.opener.location.href;
}
else if (strHandle == "del") {
newUrl = oldUrl.substring(0, idIndex + 4);
//window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl + strBSNO;
alert("操作成功!");
}
else if (strHandle == "adds") {
//window.parent.opener.location.href = window.parent.opener.location.href;
}
//
//alert("成功提交!");
}
</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();
}
</script>
<!--背景条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.btncss
{
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>
<style type="text/css">
*{ margin:0; padding:0;}
html,body{ width:100%; height:100%; overflow:hidden;}
.containercss{ position:relative; width:100%; height:100%; overflow-y:scroll; overflow-x:auto;}
.topcss{ width:100%; position:absolute; top:0; left:0;}
.boxcss{ height:610px;}
</style>
<!--排序-->
<style type="text/css">
.headStyle a{text-decoration:none;}
</style>
</head>
<body style="background-color: #ECF2FF;" onload="getonload();">
<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" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><asp:ImageButton ID="ibFullAdd" runat="server" onclick="ibFullAdd_Click" ToolTip="复制添加" ImageUrl="~/images/cmd-copy.gif" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="ibEnter" runat=server src="../images/icons/save.gif" style="width:16px;" title="保存修改" onclick="setEnter();" 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('确定删除吗?')" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<img id="imgFresh" runat=server src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="ibPrint" runat=server src="../images/icons/print.gif" style="width:16px;" title="报表打印" onclick="printAction()" class="cssfont"/></div>
</div>
</div>
<!-- 选项卡开始 -->
<div class="TabContent" style="float:left; background-color: #ECF2FF">
<table>
<tr><td height="10px"></td></tr>
<tr>
<td width="10px"></td>
<td width="80px">
<asp:Label ID="Label1" runat="server" Text="行号" width="80px" CssClass="cssfont" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbITEMNO" runat="server" CssClass="txtTab14" MaxLength=10></asp:TextBox>
</td>
<td width="10px"></td>
<td>
<asp:Label ID="Label41" runat="server" Text="揽货人" width="80px" CssClass="cssfont"></asp:Label></td>
<td>
<select id="ddlSALE" runat=server style="width:170px;Height:18px;" class="txtTab14" MaxLength=20></select>
</td>
</tr>
<tr>
<td width="10px"></td>
<td width="80px">
<asp:Label ID="Label3" runat="server" Text="财务科目代码" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<select id="ddlACCID" runat=server style="width:170px;Height:18px;" class="txtTab14"></select>
</td>
<td width="10px"></td>
<td>
<asp:Label ID="lbACCNAME" runat="server" Text="科目名称" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbACCNAME" runat="server" CssClass="txtTab14" MaxLength=60></asp:TextBox>
</td>
</tr>
<tr>
<td width="10px"></td>
<td width="80px">
<asp:Label ID="lbCUSTOMERNAME" runat="server" Text="客户名称" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<select id="ddlCUSTOMERNAME" runat=server style="width:170px;Height:18px;" class="txtTab14" MaxLength=20></select>
</td>
<td></td>
<td>
<asp:Label ID="Label6" runat="server" Text="客户财务编码" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbCORPID" runat="server" CssClass="txtTab14" MaxLength=18></asp:TextBox>
</td>
</tr>
<tr>
<td width="10px"></td>
<td>
<asp:Label ID="Label7" runat="server" Text="本位币借方" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbAMTDR" runat="server" CssClass="txtTab14" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="isAMTDR();getIsNum(this);"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label8" runat="server" Text="本位币贷方" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbAMTCR" runat="server" CssClass="txtTab14" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="isAMTCR();getIsNum(this);"></asp:TextBox>
</td>
</tr>
<tr>
<td width="10px"></td>
<td>
<asp:Label ID="Label10" runat="server" Text="外币借方" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbFCYDR" runat="server" CssClass="txtTab14" MaxLength=20 onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="isFCYDR();getIsNum(this);"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label12" runat="server" Text="外币贷方" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbFCYCR" runat="server" CssClass="txtTab14" MaxLength=20 onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="isFCYCR();getIsNum(this);"></asp:TextBox>
</td>
</tr>
<tr>
<td width="10px"></td>
<td>
<asp:Label ID="Label9" runat="server" Text="汇率" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbFCYEXRATE" runat="server" CssClass="txtTab14" 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></td>
<td width="80px">
<asp:Label ID="Label4" runat="server" Text="摘要" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbEXPLAN" runat="server" CssClass="txtTab14" MaxLength=60></asp:TextBox>
</td>
</tr>
<tr>
<td width="10px"></td>
<td width="80px">
<asp:Label ID="Label5" runat="server" Text="业务编号" width="80px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbBLNO" runat="server" CssClass="txtTab14" MaxLength=30></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
<div>
<input type="hidden" id="hdGid" runat="server"/>
<input type="hidden" id="hdORDNO" runat="server" />
<input type="hidden" id="hdUserID" runat="server"/>
<input type="hidden" id="hdHandle" runat="server"/>
<input type="hidden" id="hdCOMPANYID" runat="server"/>
<input type="hidden" id="hdEnter" runat="server"/>
<input type="hidden" id="hdEnabled" runat="server"/>
<input type="hidden" id="hd_comboCUSTOMERNAME" runat="server"/>
<input type="hidden" id="hd_comboSALE" runat="server"/>
<input type="hidden" id="hd_comboACCID" runat="server"/>
</div>
</form>
</body>
</html>