优化供应商和客户对账
This commit is contained in:
@@ -561,17 +561,15 @@
|
||||
function editSupplier(index) {
|
||||
var res = $("#tableData").datagrid("getRows")[index];
|
||||
var sId = res.id;
|
||||
var beginNeedGet = res.beginNeedGet;
|
||||
var beginNeedPay = res.beginNeedPay;
|
||||
var row = {
|
||||
supplier : res.supplier,
|
||||
contacts : res.contacts,
|
||||
phonenum : res.phoneNum,
|
||||
email : res.email,
|
||||
BeginNeedGet : beginNeedGet == "0"? "":beginNeedGet,
|
||||
BeginNeedPay : beginNeedPay == "0"? "":beginNeedPay,
|
||||
AllNeedGet: "",
|
||||
AllNeedPay: "",
|
||||
BeginNeedGet : res.beginNeedGet == "0"? "":res.beginNeedGet,
|
||||
BeginNeedPay : res.beginNeedPay == "0"? "":res.beginNeedPay,
|
||||
AllNeedGet: res.allNeedGet == "0"? "":res.allNeedGet,
|
||||
AllNeedPay: res.allNeedPay == "0"? "":res.allNeedPay,
|
||||
description : res.description,
|
||||
type : res.type,
|
||||
fax : res.fax,
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
|
||||
.div-title{font-size: 16pt;}
|
||||
.div-time{font-size: 11pt;}
|
||||
.div-total{font-size: 11pt;}
|
||||
.pb{font-size:13px;border-collapse:collapse;}
|
||||
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
|
||||
.pb td{border:1px solid #333333;padding:2px;}
|
||||
|
||||
@@ -12,13 +12,18 @@ function CreateFormPage(strPrintName, printDatagrid) {
|
||||
companyName = config.companyName;
|
||||
}
|
||||
var tableString = '<div class="div-title">' + companyName + "-" + listTitle + '\n</div>';
|
||||
if(beginDate && endDate) {
|
||||
tableString+='\n<div class="div-time">日期:' + beginDate + ' 至 ' + endDate + ' \n</div>';
|
||||
}
|
||||
if(getMonth) {
|
||||
tableString += '\n<div class="div-time">月份:' + getMonth + ' \n</div>';
|
||||
}
|
||||
tableString+='\n<table cellspacing="0" class="pb">';
|
||||
if(beginDate && endDate) {
|
||||
tableString+='\n<div class="div-time">日期:' + beginDate + ' 至 ' + endDate + '</div>';
|
||||
}
|
||||
if(getMonth) {
|
||||
tableString += '\n<div class="div-time">月份:' + getMonth + '</div>';
|
||||
}
|
||||
if(listTitle == "供应商对账"){
|
||||
tableString += '\n<span class="div-total">期初应付:' + $(".first-total").text() + ' 期末应付:' + $(".last-total").text() + '</span>';
|
||||
} else if(listTitle == "客户对账"){
|
||||
tableString += '\n<span class="div-total">期初应收:' + $(".first-total").text() + ' 期末应收:' + $(".last-total").text() + '</span>';
|
||||
}
|
||||
tableString+='\n<table cellspacing="0" class="pb">';
|
||||
var frozenColumns = printDatagrid.datagrid("options").frozenColumns; // 得到frozenColumns对象
|
||||
var columns = printDatagrid.datagrid("options").columns; // 得到columns对象
|
||||
var nameList = '';
|
||||
|
||||
Reference in New Issue
Block a user