DS7_JinGang
hanxuntao 2 years ago
parent 8a2f50c5f7
commit 4a10c2c51d

@ -661,10 +661,21 @@ namespace DSWeb.Areas.Account.Controllers
#region 锁定和撤销锁定 #region 锁定和撤销锁定
public ContentResult Lock(string bill, string remark) public ContentResult Lock(string bill, string remark,string billtype="0")
{ {
DBResult result = ChsettlementDAL.Lock(bill,remark); DBResult result = ChsettlementDAL.Lock(bill,remark);
if (result.Success) {
if (billtype == "2") {
var headData = ChsettlementDAL.GetData("BILLNO='"+ bill + "'");
if (!string.IsNullOrEmpty(headData.INVOICENO) || !string.IsNullOrEmpty(headData.INVOICEDATE) || !string.IsNullOrEmpty(headData.INVOICEAMOUNT))
{
T_ALL_DA T_ALL_DA = new T_ALL_DA();
var blUpSQL = " update ch_fee_payapplication SET INVNO='" + headData.INVOICENO + "',INVDATE='" + headData.INVOICEDATE + "',INVOICEAMOUNT='" + headData.INVOICEAMOUNT + "' where billno in (select PAYBILLNO FROM CH_FEE_DO_PAYAPPLICATION WHERE BILLNO='" + headData.BILLNO + "')";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
}
}
}
var json = JsonConvert.Serialize(result); var json = JsonConvert.Serialize(result);
return new ContentResult() { Content = json }; return new ContentResult() { Content = json };
@ -702,8 +713,16 @@ namespace DSWeb.Areas.Account.Controllers
var json = JsonConvert.Serialize(result); var json = JsonConvert.Serialize(result);
return new ContentResult() { Content = json }; return new ContentResult() { Content = json };
} }
public ContentResult LockListNew(string data)
{
var headList = JsonConvert.Deserialize<List<ChSettlement>>(data);
DBResult result = ChsettlementDAL.LockListNew(headList);
var json = JsonConvert.Serialize(result);
return new ContentResult() { Content = json };
}
public ContentResult UnLockList(string bills) public ContentResult UnLockList(string bills)
{ {
DBResult result = ChsettlementDAL.UnLockList(bills); DBResult result = ChsettlementDAL.UnLockList(bills);

@ -74,7 +74,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Payapplication
strSql.Append(" GID,BILLNO,BILLSTATUS,CUSTOMERNAME,CURR,CHEQUEPAYABLE,SETTLETYPE,PAYTYPE"); strSql.Append(" GID,BILLNO,BILLSTATUS,CUSTOMERNAME,CURR,CHEQUEPAYABLE,SETTLETYPE,PAYTYPE");
strSql.Append(" ,PAYABLETIME,AMOUNTRMB,RATE,AMOUNTUSD,AMOUNTOT,SETTLERMB,SETTLEUSD,SETTLEOT,SETTLERATE"); strSql.Append(" ,PAYABLETIME,AMOUNTRMB,RATE,AMOUNTUSD,AMOUNTOT,SETTLERMB,SETTLEUSD,SETTLEOT,SETTLERATE");
strSql.Append(" ,APPLICANT,APPLYTIME,ENTERTIME,SETTLEUSER,SETTLETIME,AUDITUSER,AUDITTIME "); strSql.Append(" ,APPLICANT,APPLYTIME,ENTERTIME,SETTLEUSER,SETTLETIME,AUDITUSER,AUDITTIME ");
strSql.Append(" ,REMARK,COMPANYID,ISAPP,PAYAPPID,CHEQUENUMREMARK,INVDATE,INVNO, "); strSql.Append(" ,REMARK,COMPANYID,ISAPP,PAYAPPID,CHEQUENUMREMARK,INVDATE,INVNO,INVOICEAMOUNT, ");
strSql.Append("(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97005 and EnumValueID=cm.BILLSTATUS) as BILLSTATUSREF"); strSql.Append("(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97005 and EnumValueID=cm.BILLSTATUS) as BILLSTATUSREF");
strSql.Append(",(select ShowName from [user] where GID=cm.APPLICANT) as APPLICANTNAME"); strSql.Append(",(select ShowName from [user] where GID=cm.APPLICANT) as APPLICANTNAME");
strSql.Append(",(select DEPTNAME from VW_user where userid=cm.APPLICANT) as APPLICANTDEPT"); strSql.Append(",(select DEPTNAME from VW_user where userid=cm.APPLICANT) as APPLICANTDEPT");
@ -156,7 +156,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Payapplication
strSql.Append(" SELECT i.GID,i.BILLNO,i.BILLSTATUS,i.CUSTOMERNAME,i.CURR,i.CHEQUEPAYABLE,i.SETTLETYPE,i.PAYTYPE "); strSql.Append(" SELECT i.GID,i.BILLNO,i.BILLSTATUS,i.CUSTOMERNAME,i.CURR,i.CHEQUEPAYABLE,i.SETTLETYPE,i.PAYTYPE ");
strSql.Append(" ,i.PAYABLETIME,i.AMOUNTRMB,i.RATE,i.AMOUNTUSD,i.AMOUNTOT,i.SETTLERMB as RMBDOAMOUNT,i.SETTLEUSD as USDDOAMOUNT,i.SETTLEOT as OTDOAMOUNT,i.SETTLERATE"); strSql.Append(" ,i.PAYABLETIME,i.AMOUNTRMB,i.RATE,i.AMOUNTUSD,i.AMOUNTOT,i.SETTLERMB as RMBDOAMOUNT,i.SETTLEUSD as USDDOAMOUNT,i.SETTLEOT as OTDOAMOUNT,i.SETTLERATE");
strSql.Append(" ,i.APPLICANT,i.APPLYTIME,i.ENTERTIME,i.SETTLEUSER,i.SETTLETIME,i.AUDITUSER,i.AUDITTIME "); strSql.Append(" ,i.APPLICANT,i.APPLYTIME,i.ENTERTIME,i.SETTLEUSER,i.SETTLETIME,i.AUDITUSER,i.AUDITTIME ");
strSql.Append(" ,i.REMARK,i.COMPANYID,i.ISAPP,i.PAYAPPID,i.CHEQUENUMREMARK,INVDATE,INVNO, "); strSql.Append(" ,i.REMARK,i.COMPANYID,i.ISAPP,i.PAYAPPID,i.CHEQUENUMREMARK,INVDATE,INVNO,INVOICEAMOUNT, ");
strSql.Append("(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97005 and EnumValueID=i.BILLSTATUS) as BILLSTATUSREF"); strSql.Append("(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97005 and EnumValueID=i.BILLSTATUS) as BILLSTATUSREF");
strSql.Append(",(select ShowName from [user] where GID=i.APPLICANT) as APPLICANTNAME"); strSql.Append(",(select ShowName from [user] where GID=i.APPLICANT) as APPLICANTNAME");
strSql.Append(",(select DEPTNAME from VW_user where userid=i.APPLICANT) as APPLICANTDEPT"); strSql.Append(",(select DEPTNAME from VW_user where userid=i.APPLICANT) as APPLICANTDEPT");
@ -303,8 +303,10 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Payapplication
data.PAYAPPID = Convert.ToString(reader["PAYAPPID"]); data.PAYAPPID = Convert.ToString(reader["PAYAPPID"]);
data.CHEQUENUMREMARK = Convert.ToString(reader["CHEQUENUMREMARK"]); data.CHEQUENUMREMARK = Convert.ToString(reader["CHEQUENUMREMARK"]);
data.INVNO = Convert.ToString(reader["INVNO"]); data.INVNO = Convert.ToString(reader["INVNO"]);
if (reader["INVDATE"] != DBNull.Value) data.INVDATE = Convert.ToString(reader["INVDATE"]);
data.INVDATE = Convert.ToDateTime(reader["INVDATE"]).ToString("yyyy-MM-dd"); data.INVOICEAMOUNT = Convert.ToString(reader["INVOICEAMOUNT"]);
//if (reader["INVDATE"] != DBNull.Value)
// data.INVDATE = Convert.ToDateTime(reader["INVDATE"]).ToString("yyyy-MM-dd");
data.CUSTACCOUNTGID = Convert.ToString(reader["CUSTACCOUNTGID"]); data.CUSTACCOUNTGID = Convert.ToString(reader["CUSTACCOUNTGID"]);
data.CUSTBANKNAME = Convert.ToString(reader["CUSTBANKNAME"]); data.CUSTBANKNAME = Convert.ToString(reader["CUSTBANKNAME"]);
data.CUSTACCOUNT = Convert.ToString(reader["CUSTACCOUNT"]); data.CUSTACCOUNT = Convert.ToString(reader["CUSTACCOUNT"]);

@ -112,7 +112,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
//strSql.Append(",ISNULL((select sum((isnull(amount,0)-isnull(invoice,0))) as noinvoice from ch_fee where ISINVOICE<>1 AND CURRENCY='RMB' and gid in (select feeid from ch_fee_do where BILLNO=cm.BILLNO)),0) as NOINVOICE"); //strSql.Append(",ISNULL((select sum((isnull(amount,0)-isnull(invoice,0))) as noinvoice from ch_fee where ISINVOICE<>1 AND CURRENCY='RMB' and gid in (select feeid from ch_fee_do where BILLNO=cm.BILLNO)),0) as NOINVOICE");
strSql.Append(",dbo.GetFeeNoInvByStlNo(cm.BILLNO) as NOINVOICE"); strSql.Append(",dbo.GetFeeNoInvByStlNo(cm.BILLNO) as NOINVOICE");
strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO"); strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO,INVOICEDATE,INVOICEAMOUNT");
strSql.Append(" ,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE,VOUCHERNO as VOUCHERNOREF "); strSql.Append(" ,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE,VOUCHERNO as VOUCHERNOREF ");
strSql.Append(",SALECORPID,(select [NAME] from [company] where GID=cm.SALECORPID) as SALECORP"); strSql.Append(",SALECORPID,(select [NAME] from [company] where GID=cm.SALECORPID) as SALECORP");
@ -191,7 +191,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
strSql.Append(",(select BANKNAME from [sys_bank] where GID=cm.ACCOUNTUSD) as ACCOUNTUSDREF"); strSql.Append(",(select BANKNAME from [sys_bank] where GID=cm.ACCOUNTUSD) as ACCOUNTUSDREF");
strSql.Append(",(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97007 and EnumValueID=cm.SETTLEMODE) as SETTLEMODEREF"); strSql.Append(",(select EnumValueName from tSysEnumValue where LangId=0 and EnumTypeID=97007 and EnumValueID=cm.SETTLEMODE) as SETTLEMODEREF");
strSql.Append(",dbo.GetFeeNoInvByStlNo(cm.BILLNO) as NOINVOICE"); strSql.Append(",dbo.GetFeeNoInvByStlNo(cm.BILLNO) as NOINVOICE");
strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO "); strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO,INVOICEDATE,INVOICEAMOUNT ");
strSql.Append(" ,PAYBILLNO,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE "); strSql.Append(" ,PAYBILLNO,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE ");
strSql.Append(",SALECORPID,(select [NAME] from [company] where GID=cm.SALECORPID) as SALECORP"); strSql.Append(",SALECORPID,(select [NAME] from [company] where GID=cm.SALECORPID) as SALECORP");
@ -246,7 +246,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
//strSql.Append(",ISNULL((select sum((isnull(amount,0)-isnull(invoice,0))) as noinvoice from ch_fee where ISINVOICE<>1 AND CURRENCY='RMB' and gid in (select feeid from ch_fee_do where BILLNO=cm.BILLNO)),0) as NOINVOICE"); //strSql.Append(",ISNULL((select sum((isnull(amount,0)-isnull(invoice,0))) as noinvoice from ch_fee where ISINVOICE<>1 AND CURRENCY='RMB' and gid in (select feeid from ch_fee_do where BILLNO=cm.BILLNO)),0) as NOINVOICE");
strSql.Append(",'' as NOINVOICE"); strSql.Append(",'' as NOINVOICE");
strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO"); strSql.Append(" ,cm.BS_CUSTOMERNAME,FEEAMOUNT,PAYBILLNO,INVOICENO,INVOICEDATE,INVOICEAMOUNT");
strSql.Append(" ,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE,VOUCHERNO as VOUCHERNOREF "); strSql.Append(" ,SETTLENO,REMITTANCE,REMITTANCEAMOUNT,BUYRATE,SELLRATE,SETTLRATE,VOUCHERNO as VOUCHERNOREF ");
strSql.Append(",SALECORPID,'' as SALECORP,'' INVNO"); strSql.Append(",SALECORPID,'' as SALECORP,'' INVNO");
@ -411,6 +411,8 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
if (reader["ISNOTVOU"] != DBNull.Value) if (reader["ISNOTVOU"] != DBNull.Value)
data.ISNOTVOU = Convert.ToBoolean(reader["ISNOTVOU"]); data.ISNOTVOU = Convert.ToBoolean(reader["ISNOTVOU"]);
data.INVOICENO = Convert.ToString(reader["INVOICENO"]); data.INVOICENO = Convert.ToString(reader["INVOICENO"]);
data.INVOICEDATE = Convert.ToString(reader["INVOICEDATE"]);
data.INVOICEAMOUNT = Convert.ToString(reader["INVOICEAMOUNT"]);
#endregion #endregion
headList.Add(data); headList.Add(data);
} }
@ -6135,7 +6137,71 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
return result; return result;
} }
public static DBResult LockListNew(List<ChSettlement> bodyList)
{
var result = new DBResult();
Database db = DatabaseFactory.CreateDatabase();
using (var conn = db.CreateConnection())
{
conn.Open();
var tran = conn.BeginTransaction();
try
{
foreach (var bill in bodyList)
{
var cmdupdate = db.GetSqlStringCommand("update ch_fee_settlement set BILLSTATUS=1 where BILLNO=@BILLNO");
cmdupdate.Parameters.Clear();
db.AddInParameter(cmdupdate, "@BILLNO", DbType.String, bill.BILLNO);
db.ExecuteNonQuery(cmdupdate, tran);
var cmdupdatead = db.GetSqlStringCommand("update ch_fee_advance_payment set BLSTATUS='锁定' where BILLNO=@BILLNO");
cmdupdatead.Parameters.Clear();
db.AddInParameter(cmdupdatead, "@BILLNO", DbType.String, bill.BILLNO);
db.ExecuteNonQuery(cmdupdatead, tran);
if (bill.SETTLEMODE == 1) {
var cmdupdateAPP = db.GetSqlStringCommand("update ch_fee_payapplication SET INVNO='" + bill.INVOICENO + "',INVDATE='" + bill.INVOICEDATE + "',INVOICEAMOUNT='" + bill.INVOICEAMOUNT + "' where billno in (select PAYBILLNO FROM CH_FEE_DO_PAYAPPLICATION WHERE BILLNO=@BILLNO)");
cmdupdateAPP.Parameters.Clear();
db.AddInParameter(cmdupdateAPP, "@BILLNO", DbType.String, bill.BILLNO);
db.ExecuteNonQuery(cmdupdateAPP, tran);
}
}
tran.Commit();
result = new DBResult();
result.Success = true;
result.Message = "锁定成功";
}
catch (Exception E)
{
tran.Rollback();
result.Success = false;
result.Message = "锁定错误,请重试或联系系统管理员"+E.Message;
return result;
}
}
return result;
}
public static DBResult UnLock(String bill) public static DBResult UnLock(String bill)
{ {
var result = new DBResult(); var result = new DBResult();

@ -426,6 +426,8 @@ namespace DSWeb.Areas.Account.Models.Chfee_Payapplication
get { return _invno; } get { return _invno; }
set { _invno = value; } set { _invno = value; }
} }
[ModelDB]
public string INVOICEAMOUNT { get; set; }
[ModelDB] [ModelDB]
public string CUSTACCOUNTGID public string CUSTACCOUNTGID

@ -578,6 +578,11 @@ namespace DSWeb.Areas.Account.Models.Chfee_Settlement
[ModelDB] [ModelDB]
public string INVOICENO { get; set; } public string INVOICENO { get; set; }
[ModelDB]
public string INVOICEDATE { get; set; }
[ModelDB]
public string INVOICEAMOUNT { get; set; }
#endregion #endregion
} }

@ -394,14 +394,21 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
fieldLabel: Zi.LAN.jhjies, //计划结算其他' fieldLabel: Zi.LAN.jhjies, //计划结算其他'
name: 'PREAMOUNTOT' name: 'PREAMOUNTOT'
}, { }, {
fieldLabel: Zi.LAN.weisq + 'RMB', //未申请RMB fieldLabel: Zi.LAN.weisq + 'RMB', //未申请RMB
flex: 0.7,
readOnly: true, readOnly: true,
name: 'BALAMOUNTRMB' name: 'BALAMOUNTRMB'
}, { }, {
fieldLabel: Zi.LAN.weisq + 'USD', //未申请USD fieldLabel: Zi.LAN.weisq + 'USD', //未申请USD
readOnly: true, readOnly: true,
flex: 0.7,
name: 'BALAMOUNTUSD' name: 'BALAMOUNTUSD'
} }, {
fieldLabel: Zi.LAN.weisqOther, //未申请其他
readOnly: true,
flex: 0.6,
name: 'BALAMOUNTOT'
}
] ]
}, { }, {
@ -429,22 +436,50 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
iconCls: "btnsearchBig", iconCls: "btnsearchBig",
width: 20, width: 20,
handler: function (button, event) { handler: function (button, event) {
this.ShowBigEdit("INVNO", '发票备注(发票、发票日期、发票金额)'); this.ShowBigEdit("INVNO", '发票号');
}, },
scope: this scope: this
}] }]
}, { }, {
fieldLabel: Zi.LAN.fpdate, //发票日期 xtype: 'container',
flex: 1, layout: 'hbox',
format: 'Y-m-d', flex: 1,
xtype: 'datefield', defaultType: 'textfield',
name: 'INVDATE' items: [{
}, { fieldLabel: Zi.LAN.fpdate, //发票号
fieldLabel: Zi.LAN.weisqOther, //未申请其他 flex: 1,
readOnly: true, name: 'INVDATE'
name: 'BALAMOUNTOT' }, {
}, this.comboxSaleCompany xtype: 'button',
iconCls: "btnsearchBig",
width: 20,
handler: function (button, event) {
this.ShowBigEdit("INVDATE", '发票日期');
},
scope: this
}]
}, {
xtype: 'container',
layout: 'hbox',
flex: 1,
defaultType: 'textfield',
items: [{
fieldLabel: Zi.LAN.INVOICEAMOUNT, //发票号
flex: 1,
name: 'INVOICEAMOUNT'
}, {
xtype: 'button',
iconCls: "btnsearchBig",
width: 20,
handler: function (button, event) {
this.ShowBigEdit("INVOICEAMOUNT", '发票金额');
},
scope: this
}]
}, this.comboxSaleCompany
] ]
}, { }, {
@ -4633,7 +4668,7 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
Ext.getCmp("zongshu").setText(Zi.LAN.selectmoney + " :" + sumstr); Ext.getCmp("zongshu").setText(Zi.LAN.selectmoney + " :" + sumstr);
}, onAddFileClick: function () { }, onAddFileClick: function () {
if (BillState != '未提交') {//未提交 if (BillState != '未提交' && BillState != '审核驳回') {//未提交
Ext.MessageBox.alert(Zi.LAN.Prompt, Zi.LAN.noallowxiugai); //提示', '当前状态不允许修改附件列表 Ext.MessageBox.alert(Zi.LAN.Prompt, Zi.LAN.noallowxiugai); //提示', '当前状态不允许修改附件列表
return; return;
} }
@ -4645,7 +4680,7 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
winAccess.BillNo = BillNo; winAccess.BillNo = BillNo;
winAccess.show(); winAccess.show();
}, onDelFileClick: function () { }, onDelFileClick: function () {
if (BillState != '未提交') {//未提交 if (BillState != '未提交' && BillState != '审核驳回') {//未提交
Ext.MessageBox.alert(Zi.LAN.Prompt, Zi.LAN.noallowxiugai); //提示', '当前状态不允许修改附件列表! Ext.MessageBox.alert(Zi.LAN.Prompt, Zi.LAN.noallowxiugai); //提示', '当前状态不允许修改附件列表!
return; return;
} }

@ -41,6 +41,7 @@
{ name: 'CHEQUENUMREMARK', type: 'string' }, { name: 'CHEQUENUMREMARK', type: 'string' },
{ name: 'INVNO', type: 'string' }, { name: 'INVNO', type: 'string' },
{ name: 'INVDATE', type: 'string' }, { name: 'INVDATE', type: 'string' },
{ name: 'INVOICEAMOUNT', type: 'string' },
{ name: 'REMARK', type: 'string' }, { name: 'REMARK', type: 'string' },
{ name: 'SALECORP', type: 'string' }, { name: 'SALECORP', type: 'string' },
{ name: 'SALECORPID', type: 'string' }, { name: 'SALECORPID', type: 'string' },

@ -306,3 +306,4 @@ Zi.LAN.TTLDR = "合计应收";
Zi.LAN.TTLCR = "合计应付"; Zi.LAN.TTLCR = "合计应付";
Zi.LAN.TTLPROFIT = "合计利润"; Zi.LAN.TTLPROFIT = "合计利润";
Zi.LAN.PROFITRATE = "利润率"; Zi.LAN.PROFITRATE = "利润率";
Zi.LAN.INVOICEAMOUNT = "发票金额";

@ -457,7 +457,7 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
iconCls: "btnsearchBig", iconCls: "btnsearchBig",
width: 20, width: 20,
handler: function (button, event) { handler: function (button, event) {
this.ShowBigEdit("INVOICENO", '发票备注(发票号、发票日期、金额等)'); this.ShowBigEdit("INVOICENO", Zi.LAN.InvoiceNumber);
}, },
scope: this scope: this
}] }]
@ -469,9 +469,48 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
layout: 'hbox', layout: 'hbox',
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
xtype: 'container',
layout: 'hbox',
flex: 1,
defaultType: 'textfield',
items: [{
fieldLabel: Zi.LAN.INVOICEDATE, //发票号
labelWidth: 70,
flex: 1,
name: 'INVOICEDATE'
}, {
xtype: 'button',
iconCls: "btnsearchBig",
width: 20,
handler: function (button, event) {
this.ShowBigEdit("INVOICEDATE", Zi.LAN.INVOICEDATE);
},
scope: this
}]
}, {
xtype: 'container',
layout: 'hbox',
flex: 1,
defaultType: 'textfield',
items: [{
fieldLabel: Zi.LAN.INVOICEAMOUNT, //发票号
flex: 1,
name: 'INVOICEAMOUNT'
}, {
xtype: 'button',
iconCls: "btnsearchBig",
width: 20,
handler: function (button, event) {
this.ShowBigEdit("INVOICEAMOUNT", Zi.LAN.INVOICEAMOUNT);
},
scope: this
}]
},{
fieldLabel: Zi.LAN.Remark, fieldLabel: Zi.LAN.Remark,
labelWidth: 70, labelWidth: 70,
flex: 1, flex: 3,
name: 'REMARK' name: 'REMARK'
}] }]
@ -3495,7 +3534,7 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
this.panelTop = new Ext.Panel({ this.panelTop = new Ext.Panel({
layout: "border", layout: "border",
region: "north", region: "north",
height: 155, height: 160,
items: [this.panelBtn, this.formEdit] items: [this.panelBtn, this.formEdit]
}); });
this.panelBody = new Ext.Panel({ this.panelBody = new Ext.Panel({

@ -1154,7 +1154,7 @@ Ext.extend(Shipping.MsChPaysettlementIndex, Ext.Panel, {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.SelectBillFirst, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.SelectBillFirst, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return; return;
} }
var bodyAddDatas = [];
var BILLNOStr = ''; var BILLNOStr = '';
for (var i = 0; i < selections.length; i++) { for (var i = 0; i < selections.length; i++) {
var rec = selections[i]; var rec = selections[i];
@ -1175,6 +1175,7 @@ Ext.extend(Shipping.MsChPaysettlementIndex, Ext.Panel, {
BILLNOStr = BILLNOStr + ',' + BILLNO; BILLNOStr = BILLNOStr + ',' + BILLNO;
} }
bodyAddDatas.push(rec);
} }
} }
@ -1185,11 +1186,12 @@ Ext.extend(Shipping.MsChPaysettlementIndex, Ext.Panel, {
if (BILLNOStr == '') { if (BILLNOStr == '') {
} else { } else {
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
Ext.Ajax.request({ Ext.Ajax.request({
waitMsg: Zi.LAN.Msg_Adding, waitMsg: Zi.LAN.Msg_Adding,
url: '/Account/Chfee_settlement/LockList', url: '/Account/Chfee_settlement/LockListNew',
params: { params: {
bills: BILLNOStr data: jsonbodyAddDatas
}, },
callback: function (options, success, response) { callback: function (options, success, response) {
if (success) { if (success) {

@ -73,6 +73,9 @@
{ name: 'INVNO', type: 'string' }, { name: 'INVNO', type: 'string' },
{ name: 'SHENNO', type: 'string' }, { name: 'SHENNO', type: 'string' },
{ name: 'INVSHENNO', type: 'string' }, { name: 'INVSHENNO', type: 'string' },
{ name: 'INVOICENO', type: 'string' },
{ name: 'INVOICEDATE', type: 'string' },
{ name: 'INVOICEAMOUNT', type: 'string' },
{ name: 'SETTLRATE', type: 'string' } { name: 'SETTLRATE', type: 'string' }

@ -43,7 +43,9 @@ Zi.LAN.ChargeDetails = "费用明细";
Zi.LAN.FeeTypeRef = "收付"; Zi.LAN.FeeTypeRef = "收付";
Zi.LAN.OriginalExchangeRate = "原始汇率"; Zi.LAN.OriginalExchangeRate = "原始汇率";
Zi.LAN.ConvertExchangeRate = "折算汇率"; Zi.LAN.ConvertExchangeRate = "折算汇率";
Zi.LAN.InvoiceNumber = "发票备注"; Zi.LAN.InvoiceNumber = "发票号";
Zi.LAN.INVOICEDATE = "发票日期";
Zi.LAN.INVOICEAMOUNT = "发票金额";
Zi.LAN.LanhuoPeople = "揽货人"; Zi.LAN.LanhuoPeople = "揽货人";
Zi.LAN.InputMode = "录入方式"; Zi.LAN.InputMode = "录入方式";
Zi.LAN.ExchangeCurrency = "折算币别"; Zi.LAN.ExchangeCurrency = "折算币别";

@ -109,15 +109,29 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeYardDAL
MsOpSeae head = null; MsOpSeae head = null;
head = new MsOpSeae(); head = new MsOpSeae();
head.MBLNO = GetDataHtmlList(BCStr, "订舱号", Environment.NewLine).Trim(); head.MBLNO = GetDataHtmlList(BCStr, "订舱号:", Environment.NewLine).Trim();
//var VESSELVOY = GetDataHtmlList(BCStr, "船名/航次:", Environment.NewLine).Trim(); //var VESSELVOY = GetDataHtmlList(BCStr, "船名/航次:", Environment.NewLine).Trim();
//var vesselindex = VESSELVOY.LastIndexOf(" "); //var vesselindex = VESSELVOY.LastIndexOf(" ");
//head.VESSEL = VESSELVOY.Substring(0, vesselindex).Trim(); //head.VESSEL = VESSELVOY.Substring(0, vesselindex).Trim();
//head.VOYNO = VESSELVOY.Substring(vesselindex+1).Trim(); //head.VOYNO = VESSELVOY.Substring(vesselindex+1).Trim();
head.VESSEL = BC.GetValue("船名"); head.VESSEL = BC.GetValue("船名");
head.VOYNO = BC.GetValue("航次"); head.VOYNO = BC.GetValue("航次");
if (string.IsNullOrEmpty(head.VESSEL)) {
var VESSELVOY = GetDataHtmlList(BCStr, "船名/航次:", Environment.NewLine).Trim();
var vesselindex = VESSELVOY.LastIndexOf("ETD:");
if (!string.IsNullOrEmpty(VESSELVOY))
{
VESSELVOY = VESSELVOY.Substring(0, vesselindex).Trim();
vesselindex = VESSELVOY.LastIndexOf(" ");
head.VESSEL = VESSELVOY.Substring(0, vesselindex).Trim();
head.VOYNO = VESSELVOY.Substring(vesselindex + 1).Trim();
}
}
head.ETD = BC.GetValue("ETD"); head.ETD = BC.GetValue("ETD");
head.ETA = BC.GetValue("ETA"); head.ETA = BC.GetValue("ETA");
head.PORTDISCHARGE = GetDataHtmlList(BCStr, "卸港:", Environment.NewLine).ToUpper().Trim();
head.PLACERECEIPT = GetDataHtmlList(BCStr, "接货地:", Environment.NewLine).ToUpper().Trim(); head.PLACERECEIPT = GetDataHtmlList(BCStr, "接货地:", Environment.NewLine).ToUpper().Trim();
head.PLACEDELIVERY = GetDataHtmlList(BCStr, "交货地:", Environment.NewLine).ToUpper().Trim(); head.PLACEDELIVERY = GetDataHtmlList(BCStr, "交货地:", Environment.NewLine).ToUpper().Trim();
head.YARD = GetDataHtmlList(BCStr, "提箱点:", "提箱校验码:").Trim(); head.YARD = GetDataHtmlList(BCStr, "提箱点:", "提箱校验码:").Trim();
@ -384,11 +398,30 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeYardDAL
head.VESSEL = BC.GetValue("船名"); head.VESSEL = BC.GetValue("船名");
head.VOYNO = BC.GetValue("航次"); head.VOYNO = BC.GetValue("航次");
if (string.IsNullOrEmpty(head.VESSEL)) {
var VESSELVOY = GetDataHtmlList(BCStr, "船名/航次(Vessel/Voyage):", Environment.NewLine).Trim();
if (VESSELVOY == "")
{
VESSELVOY = GetDataHtmlList(BCStr, "船名/航次(Vessel): ", Environment.NewLine).Trim();
}
if (VESSELVOY != "")
{
var vesselindex = VESSELVOY.LastIndexOf("/");
head.VESSEL = VESSELVOY.Substring(0, vesselindex).Trim();
head.VOYNO = VESSELVOY.Substring(vesselindex + 1).Trim();
if (head.VESSEL.IndexOf("(") > 0) head.VESSEL = head.VESSEL.Substring(0, head.VESSEL.IndexOf("(")).Trim();
}
}
head.PORTLOAD = GetDataHtmlList(BCStr, "收货地: ", Environment.NewLine).ToUpper().Trim(); head.PORTLOAD = GetDataHtmlList(BCStr, "收货地: ", Environment.NewLine).ToUpper().Trim();
head.PLACERECEIPT = head.PORTLOAD;
head.PLACEDELIVERY = GetDataHtmlList(BCStr, "交货地:", Environment.NewLine).ToUpper().Trim(); head.PLACEDELIVERY = GetDataHtmlList(BCStr, "交货地:", Environment.NewLine).ToUpper().Trim();
head.PORTDISCHARGE = head.PLACEDELIVERY;
head.DESTINATION = head.PLACEDELIVERY;
//string etdstr = GetDataHtmlList(BCStr, "开港时间(CY Open): ", "(").Trim(); //string etdstr = GetDataHtmlList(BCStr, "开港时间(CY Open): ", "(").Trim();
//if (etdstr=="") //if (etdstr=="")
//{ //{
@ -400,7 +433,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeYardDAL
// DateTime dtEtd = DateTime.Parse(etdstr); // DateTime dtEtd = DateTime.Parse(etdstr);
// head.ETD = dtEtd.ToString("yyyy-MM-dd"); // head.ETD = dtEtd.ToString("yyyy-MM-dd");
//} //}
if(!string.IsNullOrWhiteSpace(BC.GetValue("ETD"))) if (!string.IsNullOrWhiteSpace(BC.GetValue("ETD")))
head.ETD= BC.GetValue("ETD"); head.ETD= BC.GetValue("ETD");
if (!string.IsNullOrWhiteSpace(BC.GetValue("ETA"))) if (!string.IsNullOrWhiteSpace(BC.GetValue("ETA")))

@ -20562,6 +20562,10 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
_this.formEdit.getForm().findField('PLACERECEIPTID').setValue(resultData.PLACERECEIPTID); _this.formEdit.getForm().findField('PLACERECEIPTID').setValue(resultData.PLACERECEIPTID);
if (resultData.PLACEDELIVERYID != '') if (resultData.PLACEDELIVERYID != '')
_this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(resultData.PLACEDELIVERYID); _this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(resultData.PLACEDELIVERYID);
if (resultData.PORTDISCHARGE != '')
_this.formEdit.getForm().findField('PORTDISCHARGE').setValue(resultData.PORTDISCHARGE);
if (resultData.DESTINATION != '')
_this.formEdit.getForm().findField('DESTINATION').setValue(resultData.DESTINATION);
if (resultData.GOODSNAME != '') if (resultData.GOODSNAME != '')
_this.formEdit.getForm().findField('GOODSNAME').setValue(resultData.GOODSNAME); _this.formEdit.getForm().findField('GOODSNAME').setValue(resultData.GOODSNAME);
@ -20882,6 +20886,10 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
_this.formEdit.getForm().findField('PLACERECEIPTID').setValue(resultData.PLACERECEIPTID); _this.formEdit.getForm().findField('PLACERECEIPTID').setValue(resultData.PLACERECEIPTID);
if (resultData.PLACEDELIVERYID != '') if (resultData.PLACEDELIVERYID != '')
_this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(resultData.PLACEDELIVERYID); _this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(resultData.PLACEDELIVERYID);
if (resultData.PORTDISCHARGE != '')
_this.formEdit.getForm().findField('PORTDISCHARGE').setValue(resultData.PORTDISCHARGE);
if (resultData.DESTINATION != '')
_this.formEdit.getForm().findField('DESTINATION').setValue(resultData.DESTINATION);
if (resultData.GOODSNAME != '') if (resultData.GOODSNAME != '')
_this.formEdit.getForm().findField('GOODSNAME').setValue(resultData.GOODSNAME); _this.formEdit.getForm().findField('GOODSNAME').setValue(resultData.GOODSNAME);

Loading…
Cancel
Save