<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoicingWeiquerenshouru.aspx.cs" Inherits="CY.WebForm.Pages.business.InvoicingWeiquerenshouru" %>
|
|
|
<!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>
|
<uc:cmshead id="CMSHead1" runat="server" />
|
<script src="../../js/business/Order.js" type="text/javascript"></script>
|
<script type="text/javascript">
|
|
/*
|
确认批量开票申请
|
*/
|
//function ToBatchPayList() {
|
|
// var ids = '';
|
// var cks = $("input[name='ckId']:checked");
|
// if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
|
// var isCan = true;
|
// var BuyerId = '';
|
// var SellerOrderIds = '';
|
// var bbbb = true;
|
// var cccc = true;
|
// cks.each(
|
// function () {
|
|
// var ckVal = $(this).val();
|
|
// var ckValJson = eval('(' + ckVal + ')');
|
|
// PayState = ckValJson.PayState;
|
// //剔除已经开票申请的单据
|
// if (BuyerId != '' && ckValJson.buyerId != BuyerId) {
|
// bbbb = false;
|
|
// } else {
|
// BuyerId = ckValJson.buyerId;
|
// }
|
// if (ckValJson.Kaipiaoshenqing != 1) {
|
// cccc = false;
|
// }
|
|
// ids = ids + ',' + ckValJson.id;
|
|
|
|
// }
|
// );
|
|
// if (!bbbb) {
|
// alertMsg('必须是同一家客户!');
|
// return;
|
// }
|
// if (!cccc) {
|
// alertMsg('有状态不是开票已申请的订单!');
|
// return;
|
// }
|
|
// if (!isCan) {
|
// // alertMsg('请选择未受理的订单!');
|
// }
|
// else {
|
// if (ids != '') {
|
// ids = ids.substring(1);
|
// SellerOrderIds = SellerOrderIds.substring(1);
|
|
// } else {
|
// alertMsg('没有选中未支付订单!');
|
// return;
|
// }
|
|
// top.Dialog.open({ URL: '/Pages/business/InvoicingWeiquerenshouruEdit.aspx?id=' + ids, Title: '批量确认发票', Height: 400, Width: 600 });
|
// }
|
//}
|
//查看客户资料
|
function Viewkehuqianshou(Keyid, SellerOrderId) {
|
top.Dialog.open({ URL: "/Pages/business/OrderKehuqianshou.aspx?id=" + Keyid + "&SellerOrderId=" + SellerOrderId, Title: "客户签收", Width: 400, Height: 600 });
|
}
|
|
|
//查看客户资料
|
function Viewkehu(personId) {
|
top.Dialog.open({ URL: "/Pages/business/InvoicingWeiquerenshouruEdit.aspx?id=" + personId, Title: "确认发票", Width: 400, Height: 600 });
|
}
|
|
//催收
|
function ViewCuishou(personId) {
|
top.Dialog.open({ URL: "/Pages/business/InvoicingCuishou.aspx?id=" + personId, Title: "催款", Width: 600, Height: 800 });
|
}
|
//收款
|
function ViewShoukuan(personId, shenqingleixing) {
|
if (shenqingleixing == "订单开票") {
|
top.Dialog.open({ URL: "/Pages/financial/InvoicingShoukuan.aspx?id=" + personId, Title: "订单收款", Width: 600, Height: 800 });
|
} else {
|
top.Dialog.open({ URL: "/Pages/financial/DepositsCustomerFapiao.aspx?Keyid=" + personId, Title: "客户预付款存款", Width: 900, Height: 680 });
|
}
|
|
}
|
|
|
|
/*
|
处理受理订单
|
*/
|
var ViewFukuan = function (orderId) {
|
top.Dialog.confirm('确认删除收入?', function () {
|
window.submitUrl = '/Pages/business/InvoicingWeiquerenshouru.aspx';
|
CallServer({ Target: "AcceptOrder", id: orderId }, function (data, textStatus) {
|
if ('1' == data) {
|
alertMsg('操作成功!');
|
RefreshDIVOpener(); //关闭页面
|
} else {
|
alertMsg('-1' == data ? '删除过程中发生异常,请重新删除!' : '删除失败!');
|
//dialog.close();
|
}
|
});
|
});
|
|
|
}
|
|
|
//查看客户资料
|
function Viewkaipiao(Keyid, SellerOrderId) {
|
//window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, '', '');
|
top.Dialog.open({ URL: "/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, Title: "查看订单", Width: 1080, Height: 650 });
|
}
|
//查看客户资料
|
function View(personId) {
|
top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + personId, Title: "查看客户", Width: 900, Height: 580 });
|
}
|
|
|
</script>
|
<style type="text/css">
|
.tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; }
|
.tableStyleXS td { padding: 1px 0 1px 3px; }
|
.TableNewStyle select { width: 80px; }
|
.td_hide span { text-decoration: default; display: none; text-align: center; }
|
span.hand_no { cursor: default; display: block; font-size: 12px; }
|
span.hand_no:hover { text-decoration: none; }
|
span.hand_yes { cursor: pointer; display: block; font-size: 12px; }
|
.td_hide { cursor: pointer; }
|
.auto-style1 {
|
width: 39px;
|
}
|
.auto-style3 {
|
width: 13px;
|
}
|
.auto-style4 {
|
width: 55px;
|
}
|
.auto-style5 {
|
width: 26px;
|
}
|
.auto-style6 {
|
cursor: pointer;
|
width: 26px;
|
}
|
</style>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent" style="width: auto;">
|
<div class="box1">
|
<table class="TableNewStyle" style="width: 100%;">
|
<tr>
|
<td class="ali03">
|
付款日期:
|
</td>
|
<td style="width: 215px">
|
<input id="txtSQBeginDate" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtSQEndDate" type="text" runat="server" class='date w80px' maxlength='10' />
|
</td>
|
<td class="ali03">
|
付款单位:
|
</td>
|
<td>
|
<input id='txtCustormerName' runat="server" maxlength='50' />
|
</td>
|
<td class="ali03">
|
是否确认:
|
</td>
|
<td>
|
<select keepdefaultstyle='true' id='selQuerenstatus' runat="server" >
|
<option value="">全部</option>
|
<option value="1">是</option>
|
<option value="0">否</option>
|
</select>
|
</td>
|
<td class="ali03">
|
业务经理:
|
</td>
|
<td>
|
<select keepdefaultstyle='true' id='selBusinessManager' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
</select>
|
</td>
|
|
|
<td >
|
<asp:button id="btn_Search" text="查询" runat="server" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' />
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
</div>
|
|
<div clear="fl" dir="ltr">
|
<table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false" id="test_table">
|
<thead>
|
<tr>
|
<th width="25">
|
编号
|
</th>
|
<th style="text-align: center;" width="70">
|
付款日期
|
</th>
|
|
|
|
<th style="text-align: center;"width="150">
|
付款单位
|
</th>
|
|
|
<th width="60">
|
金额
|
</th>
|
<th width="60">
|
已确认金额
|
</th>
|
<th width="200">
|
付款说明
|
</th>
|
<th style="text-align: center;" width="70">
|
业务经理
|
</th>
|
<th width="60">
|
操作
|
|
</th>
|
|
|
</tr>
|
</thead>
|
<tbody>
|
<asp:repeater id="rptData" runat="server">
|
<itemtemplate>
|
<tr>
|
|
<td>
|
<%#Container.ItemIndex +1 /*(UCPager1.PageSize *( UCPager1.PageIndex-1)+1)*/%>
|
</td>
|
<td>
|
<%#Eval("CreateTime", "{0:yyyy-MM-dd}")%>
|
|
</td>
|
<td style="text-align: center;">
|
<div style="width: 140px; word-wrap: break-word; text-align:justify;">
|
<a href='javascript:void(0)' title='点击查看 <%#Eval("BuyerName").ToString()%> 资料' class='a_under' onclick='View("<%#Eval("BuyerId")%>")'><%#Eval("BuyerName").ToString().Length > 10 ? (Eval("BuyerName").ToString().Substring(0, 10) + "..") : Eval("BuyerName").ToString()%></a>
|
</div>
|
</td>
|
|
<td>
|
<%#Eval("Fukuanmoney", "{0:F}")%>
|
</td>
|
<td>
|
<%#Eval("Hexiaomoney", "{0:F}")%>
|
</td>
|
<td >
|
<%#Eval("OperationalMatters")%>
|
|
|
</td>
|
<td style="text-align: center;">
|
<%#Eval("BusinessManager")%>
|
|
|
</td>
|
|
|
|
|
<td >
|
|
<a href='javascript:void(0)' menu_member_case_id="case_delete" menu_member_case_name="删除" title='删除' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 删除 </a>
|
|
</td>
|
|
</tr>
|
</itemtemplate>
|
</asp:repeater>
|
</tbody>
|
<tr>
|
<td colspan="3">
|
合计
|
</td>
|
|
|
<td >
|
<span id="heji" runat="server" ></span>
|
</td>
|
<td >
|
<span id="heji1" runat="server" ></span>
|
</td>
|
<td colspan="3">
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
<uc:ucpager id="UCPager1" runat="server" />
|
</div>
|
</div>
|
</form>
|
</body>
|
<script type="text/javascript" language="javascript">
|
|
|
</script>
|
</html>
|