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.

296 lines
14 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeePayAudit.aspx.cs" Inherits="DSWeb.Settlements.FeePayAudit" %>
<!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>
<style type="text/css">
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
</style>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<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/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
<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/TGridCommon.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
/*function document.onkeydown(event){
if(event.keyCode==116){
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}*/
//20131218改为下列写法,上面注掉的写法在ie里有效在chrome中报错
document.onkeydown = function (event) {
event = event ? event : window.event;
if (event.keyCode == 116) {
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
};
//此写法兼容chrome
function initDialog(){
// var frm = obj;
// var subWeb = parent.frames["iFrameH"].document;
// if(frm!= null && subWeb != null) {
// frm.height = subWeb.body.scrollHeight;
// frm.width = subWeb.body.scrollWidth;
// if(frm.height<487){
// frm.height=487;
// }
// }
// alert(frm.height+"##"+frm.width);
var winScreenHeight = 0;
var winScreenWidth = 0;
if(window.screen.height)
{
winScreenHeight = window.screen.height;
}
if(window.screen.width)
{
winScreenWidth = window.screen.width;
}
if(winScreenWidth >= 1440 && winScreenWidth >= 900)
{
document.getElementById("mygrid_container_payaudit").style.height = "510px";
}
else if(winScreenWidth >= 1366 && winScreenWidth >= 768)
{
document.getElementById("mygrid_container_payaudit").style.height = "340px";
}
else if(winScreenWidth >= 1024 && winScreenWidth >= 768)
{
document.getElementById("mygrid_container_payaudit").style.height = "300px";
}
}
</script>
<!--下拉菜单-->
<style type="text/css">
.anylinkcss
{
position:absolute;
visibility: hidden;
border:1px solid #C0C0C0;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #ECF4FF;
width: 60px;
}
.anylinkcss a
{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid #C0C0C0;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover
{
background-color: #C0C0C0;
color: white;
}
.btncss
{
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>
<script language="javascript">
var disappeardelay = 250 //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink = 0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick = 1 //hide menu when user clicks within menu? (1=yes, 0=no)
var ie5 = document.all
var ns6 = document.getElementById && !document.all
function getposOffset(what, offsettype) {
var totaloffset = (offsettype == "left") ? what.offsetLeft : what.offsetTop;
var parentEl = what.offsetParent;
while (parentEl != null) {
totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop;
parentEl = parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden) {
if (ie5 || ns6)
dropmenuobj.style.left = dropmenuobj.style.top = -500
if (e.type == "click" && obj.visibility == hidden || e.type == "mouseover")
obj.visibility = visible
else if (e.type == "click")
obj.visibility = hidden
}
function iecompattest() {
return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge) {
var edgeoffset = 0
if (whichedge == "rightedge") {
var windowedge = ie5 && !window.opera ? iecompattest().scrollLeft + iecompattest().clientWidth - 15 : window.pageXOffset + window.innerWidth - 15
dropmenuobj.contentmeasure = dropmenuobj.offsetWidth
if (windowedge - dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset = dropmenuobj.contentmeasure - obj.offsetWidth
}
else {
var windowedge = ie5 && !window.opera ? iecompattest().scrollTop + iecompattest().clientHeight - 15 : window.pageYOffset + window.innerHeight - 18
dropmenuobj.contentmeasure = dropmenuobj.offsetHeight
if (windowedge - dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset = dropmenuobj.contentmeasure + obj.offsetHeight
}
return edgeoffset
}
function dropdownmenu(obj, e, dropmenuID) {
if (window.event) event.cancelBubble = true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj != "undefined") //hide previous menu
dropmenuobj.style.visibility = "hidden"
clearhidemenu()
if (ie5 || ns6) {
obj.onmouseout = delayhidemenu
dropmenuobj = document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick = function() { dropmenuobj.style.visibility = 'hidden' }
dropmenuobj.onmouseover = clearhidemenu
dropmenuobj.onmouseout = ie5 ? function() { dynamichide(event) } : function(event) { dynamichide(event) }
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x = getposOffset(obj, "left")
dropmenuobj.y = getposOffset(obj, "top")
dropmenuobj.style.left = dropmenuobj.x - clearbrowseredge(obj, "rightedge") - 3 + "px"
dropmenuobj.style.top = dropmenuobj.y - clearbrowseredge(obj, "bottomedge") + obj.offsetHeight + 3 + "px"
}
return clickreturnvalue()
}
function clickreturnvalue() {
if ((ie5 || ns6) && !enableanchorlink) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e) {
if (ie5 && !dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6 && e.currentTarget != e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function delayhidemenu() {
delayhide = setTimeout("dropmenuobj.style.visibility='hidden'", disappeardelay)
}
function clearhidemenu() {
if (typeof delayhide != "undefined")
clearTimeout(delayhide)
}
</script>
<script src="../js/FeePayAudit.js" type="text/javascript"></script>
</head>
<body onload="initDialog();search();initCombo();">
<form id="form1" runat="server">
<div class="btn-content">
<div class="btn-blank"></div>
<div class="xbtn">
<div class="btntxt" onclick="auditPass()">批准支付</div>
</div>
<div class="xbtn">
<div class="btntxt" onclick="auditReject()">驳回申请</div>
</div>
<div class="xbtn-img" onclick="refreshList()">
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
</div>
<div class="xbtn2" style="width:70px;">
<div class="btncss" style=" width:60px; height:16px;text-decoration: none; font-size:12px; color:Black; text-align:center;">
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')" style="text-decoration: none; font-size:12px; color:Black;">打印</a>
</div>
<div id="anylinkmenu1" class="anylinkcss" style=" width:64px;" runat="server">
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btprint" onclick="printInvoice();" runat="server">打印列表</a>
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btprint2" onclick="printInvoice2();" runat="server">打印多票</a>
</div>
</div>
</div>
<table style="width:100%">
<tr>
<td style="width:20px;"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">审核状态:</div></td>
<td style="width:100px;">
<asp:DropDownList ID="ddlBILLSTATUS" runat="server" >
<asp:ListItem Value="7">ALL</asp:ListItem>
<asp:ListItem Selected="True" Value="3">审批中</asp:ListItem>
<asp:ListItem Value="0">已审批</asp:ListItem>
<asp:ListItem Value="6">审核驳回</asp:ListItem>
<asp:ListItem Value="1">未提交</asp:ListItem>
<asp:ListItem Value="2">已提交</asp:ListItem>
<asp:ListItem Value="4">已结算</asp:ListItem>
<asp:ListItem Value="5">部分结算</asp:ListItem>
</asp:DropDownList>
</td>
<td style="width:60px;"><div style="width:60px; text-align:right;">结算日期:</div></td>
<td style="width:100px;"><input type="text" id="txt_beginDate" onclick="WdatePicker()" style="width:100px" class="txtTab"/></td>
<td style="width:8px;"><div style="width:8px;">~</div></td>
<td style="width:100px;"><input type="text" id="txt_endDate" onclick="WdatePicker()" style="width:100px" class="txtTab"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">结算单位:</div></td>
<td style="width:100px;"><select id="sel_customer" runat="server" style="width:100px;" class="txtTab"></select></td>
<td style="width:40px;"><div style="width:40px; text-align:right;">编号:</div></td>
<td style="width:110px;"><input type="text" id="txt_billno" runat="server" class="txtTab" style="width:110px;"/></td>
<td style="width:80px;">
<div onclick="search()" style="margin-left:5px;width:50px;">
<div style="width:20px; height:20px; float:left;margin-top:3px;"><img src="../images/icons/btnSearch.gif" title="查询"/></div>
<div style="float:left; font-size:12px; cursor:default;margin-top:5px; width:30px;">查询</div></div>
</td>
<td width="20px"></td>
<td style="width:60px;"><div style="float:left; font-size:12px; cursor:default;margin-top:2px; width:60px;" onclick="initGrid()">清空条件</div></td>
<td width="30%"></td>
</tr>
</table>
<div id="mygrid_container_payaudit" style="width:100%; height:450px;" runat="server"></div>
<div id="pager" style="width: 99%; margin: 0px; padding: 4px; border: 0px solid #999;">
</div>
<div id="info" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px; border: 1px solid #999; display:none;"></div>
<input type="hidden" id="h_customer" runat="server"/>
<input type="hidden" id="h_userid" runat="server"/>
<input type="hidden" id="h_mod" runat="server" />
<input type="hidden" id="h_searchJson" runat="server" />
</form>
</body>
</html>