From 98122f4d3f0196ebf48dc28bcdf752d54f969bfc Mon Sep 17 00:00:00 2001 From: hanxuntao <641739520@qq.com> Date: Thu, 29 Jun 2023 16:51:56 +0800 Subject: [PATCH] 12 --- .../Controllers/MsOpLetterController.cs | 16 +- .../MvcShipping/DAL/MsChFee/MsChFeeDAL.cs | 8 +- .../DAL/MsOpLetter/MsOpLetterDAL.cs | 10 +- .../DAL/MsOpReceipt/MsOpReceiptDAL.cs | 47 +- .../Models/MsOpLetter/MsOpLetterTruck.cs | 4 + .../Views/MsOpLetter/TruckLSEdit.aspx | 2 +- .../Viewsjs/MsChFee/FeeDrCrGrid.js | 27 +- .../Viewsjs/MsOpSeae/MsOpSeaeEdit.js | 2 +- .../Viewsjs/MsOpStatus/MsOpStatusIndex.js | 14 +- .../SoftMng/Views/Export/SingleAudit.aspx | 1 + .../Viewsjs/SingleAudit/SingleIndex.js | 60 ++- .../Controllers/PcHeadEdit_WFSDController.cs | 6 +- .../DAL/MsRptPcHeadEdit/MsRptPcHeadEditDAL.cs | 18 +- .../TruckMng/Models/MsWlBs/MsWlPcHead.cs | 7 + .../Viewsjs/MsWlBs/MsPcEdit_WFSDIndex.js | 19 +- .../TruckMng/Viewsjs/MsWlBs/MsPcWFSDEdit.js | 434 +++++++++++------- 16 files changed, 461 insertions(+), 214 deletions(-) diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsOpLetterController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsOpLetterController.cs index 2503e5e0..510250a0 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsOpLetterController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsOpLetterController.cs @@ -487,7 +487,7 @@ namespace DSWeb.MvcShipping.Controllers { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctnData); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctnData); T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA(); string sql_update = "UPDATE [op_task] SET [TASKTITLE]='箱型箱量:" + bodyData.CTNS + "|重量:" + Convert.ToString(bodyData.KGS) + "|工厂:" + bodyData.FACTRYNAME + " ' "; if (bodyData.FACTRYTIME != "") sql_update = sql_update + ",TASKBEGINDATE='" + bodyData.FACTRYTIME + "'"; @@ -569,7 +569,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctnData); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctnData); if (result.Success) { @@ -721,7 +721,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctn1); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctn1); string sql_update = "UPDATE [op_task] SET [TASKTITLE]='箱型箱量:" + bodyData.CTNS + "|重量:" + Convert.ToString(bodyData.KGS) + "|工厂:" + bodyData.FACTRYNAME + " ' "; sql_update = sql_update + " WHERE TASKNO='" + ble_id + "'"; bool blZ = T_ALL_DA.GetExecuteSqlCommand(sql_update); @@ -771,7 +771,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctn2); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctn2); if (result.Success) { @@ -842,7 +842,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctnData); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctnData); if (result.Success) { if (bodyData.TRUCKFEE != "0") @@ -908,7 +908,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctnData); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctnData); if (result.Success) { //if (bodyData.TRUCKFEE == "1") @@ -980,7 +980,7 @@ namespace DSWeb.MvcShipping.Controllers if (result.Success == true) { result = modb.Save(bodyData); - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctnData); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctnData); if (result.Success) { T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA(); @@ -2033,7 +2033,7 @@ namespace DSWeb.MvcShipping.Controllers bodyctn1.Add(Data); } - MsOpLetterDAL.SaveTruckCtn(bodyData, bodyctn1); + MsOpLetterDAL.SaveTruckCtn(bodyData.LE_ID, bodyctn1); } diff --git a/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs index 0dbf90e6..c3ea82d6 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs @@ -2075,7 +2075,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL } if (lan == "en-us") { - dataot.CURR = "TTL"; + datattl.CURR = "TTL"; } else datattl.CURR = "合计"; @@ -4079,14 +4079,16 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL if (lan == "en-us") { strSql.Append("Select FeeCode,Description Name,Description CodeAndName,DEFAULTCURR,DEFAULTDEBIT,DEFAULTCREDIT,feetype,Description,DefaultUnit,FeeFRT,ISADVANCEDPAY,ISOPEN,ISINVOICE,TAXRATE "); + strSql.Append(",isnull(CASE DEFAULTDEBIT when 1 then 'CARRIER' when 2 then 'FORWARD' when 3 then 'YARD' when 4 then 'TRUCK' when 5 then 'CUSTOMERNAME' when 6 then 'CUSTOMSER' when 7 then 'AGENTID' when 8 then '航空公司' when 9 then 'SHIPPERID' when 10 then 'CONSIGNEEID' when 11 then 'NOTIFYPARTYID' when 12 then 'SHIPAGENCY' when 0 then '' end ,'') DEFAULTDEBITREF "); + strSql.Append(",isnull(CASE DEFAULTCREDIT when 1 then 'CARRIER' when 2 then 'FORWARD' when 3 then 'YARD' when 4 then 'TRUCK' when 5 then 'CUSTOMERNAME' when 6 then 'CUSTOMSER' when 7 then 'AGENTID' when 8 then '航空公司' when 9 then 'SHIPPERID' when 10 then 'CONSIGNEEID' when 11 then 'NOTIFYPARTYID' when 12 then 'SHIPAGENCY' when 0 then '' end ,'') DEFAULTCREDITREF,FEEGROUP "); } else { strSql.Append("Select FeeCode,Name,FEECODE + '-' + NAME AS CodeAndName,DEFAULTCURR,DEFAULTDEBIT,DEFAULTCREDIT,feetype,Description,DefaultUnit,FeeFRT,ISADVANCEDPAY,ISOPEN,ISINVOICE,TAXRATE "); + strSql.Append(",isnull(CASE DEFAULTDEBIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTDEBITREF "); + strSql.Append(",isnull(CASE DEFAULTCREDIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTCREDITREF,FEEGROUP "); } - strSql.Append(",isnull(CASE DEFAULTDEBIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTDEBITREF "); - strSql.Append(",isnull(CASE DEFAULTCREDIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTCREDITREF,FEEGROUP "); strSql.Append(" from code_fee "); if (!string.IsNullOrEmpty(sCondition)) { diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpLetter/MsOpLetterDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpLetter/MsOpLetterDAL.cs index e353b524..7e5ecda0 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpLetter/MsOpLetterDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpLetter/MsOpLetterDAL.cs @@ -529,7 +529,7 @@ namespace DSWeb.Areas.MvcShipping.DAL public static List GetLetterCtnList(string strCondition) { var strSql = new StringBuilder(); - strSql.Append("SELECT CTN_ID,LE_ID,CTNALL,CTNNUM,KGS from op_letter_yard_ctn"); + strSql.Append("SELECT CTN_ID,LE_ID,CTNALL,CTNNUM,KGS,CNTRNO,SEALNO from op_letter_yard_ctn"); if (!string.IsNullOrEmpty(strCondition)) { strSql.Append(" where " + strCondition); @@ -548,6 +548,8 @@ namespace DSWeb.Areas.MvcShipping.DAL Data.CTNNUM = Convert.ToDecimal(reader["CTNNUM"]); if (reader["KGS"] != DBNull.Value) Data.KGS = Convert.ToDecimal(reader["KGS"]); + Data.CNTRNO = Convert.ToString(reader["CNTRNO"]); + Data.SEALNO = Convert.ToString(reader["SEALNO"]); evList.Add(Data); @@ -559,7 +561,7 @@ namespace DSWeb.Areas.MvcShipping.DAL } - public static DBResult SaveTruckCtn(MsOpLetterTruck headData, List bodyList) + public static DBResult SaveTruckCtn(string LE_ID, List bodyList) { var result = new DBResult(); Database db = DatabaseFactory.CreateDatabase(); @@ -569,7 +571,7 @@ namespace DSWeb.Areas.MvcShipping.DAL var tran = conn.BeginTransaction(); try { - var cmddelete = db.GetSqlStringCommand(@"delete from op_letter_yard_ctn where LE_ID='" + headData.LE_ID + "'"); + var cmddelete = db.GetSqlStringCommand(@"delete from op_letter_yard_ctn where LE_ID='" + LE_ID + "'"); db.ExecuteNonQuery(cmddelete, tran); var cntr = ""; if (bodyList != null) @@ -579,7 +581,7 @@ namespace DSWeb.Areas.MvcShipping.DAL //if (enumValue.LE_ID == "*"|| enumValue.LE_ID == "") //{ - var cmdInsert = db.GetSqlStringCommand(@"insert into op_letter_yard_ctn (CTN_ID,LE_ID,CTNNUM,CTNALL,KGS) values (newid(),'" + headData.LE_ID + "'," + enumValue.CTNNUM + ",'" + enumValue.CTNALL + "',"+enumValue.KGS+")"); + var cmdInsert = db.GetSqlStringCommand(@"insert into op_letter_yard_ctn (CTN_ID,LE_ID,CTNNUM,CTNALL,KGS,CNTRNO,SEALNO) values (newid(),'" + LE_ID + "'," + enumValue.CTNNUM + ",'" + enumValue.CTNALL + "',"+enumValue.KGS+ ",'" + enumValue.CNTRNO + "','" + enumValue.SEALNO + "')"); db.ExecuteNonQuery(cmdInsert, tran); //} //else diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpReceipt/MsOpReceiptDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpReceipt/MsOpReceiptDAL.cs index 21f591bf..f7ff5754 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpReceipt/MsOpReceiptDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpReceipt/MsOpReceiptDAL.cs @@ -12,6 +12,7 @@ using DSWeb.EntityDA; using System.Web; using System.IO; using DSWeb.Areas.CommMng.Models; +using DSWeb.MvcShipping.DAL.MsSysParamSet; namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL { @@ -887,7 +888,15 @@ namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL public static DBResult UpdateFileData(string filename,string name,string BSNO, string userid,string type,string DOCUMENTATTACHEDCODE,string DOCUMENTATTACHEDNO,string CUSTNO,string MBLNO) { var result = new DBResult(); + var opseabsno = ""; + if (!string.IsNullOrEmpty(MBLNO)) { + var UPDOCTOSEAESAMEMBLNO = MsSysParamSetDAL.GetData("PARAMNAME='UPDOCTOSEAESAMEMBLNO'"); + if (UPDOCTOSEAESAMEMBLNO.PARAMVALUE == "1") { + var head =MsOpSeaeDAL.MsOpSeaeDAL.GetData("MBLNO='" + MBLNO + "'"); + opseabsno = head.BSNO; + } + } Database db = DatabaseFactory.CreateDatabase(); using (var conn = db.CreateConnection()) @@ -917,6 +926,22 @@ namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL db.AddInParameter(cmdInsert, "@R_GID", DbType.String, CUSTNO); db.ExecuteNonQuery(cmdInsert, tran); + if (!string.IsNullOrEmpty(opseabsno)) { + cmdInsert.Parameters.Clear(); + db.AddInParameter(cmdInsert, "@GID", DbType.String, Guid.NewGuid().ToString()); + db.AddInParameter(cmdInsert, "@BSNO", DbType.String, opseabsno); + db.AddInParameter(cmdInsert, "@URL", DbType.String, name); + db.AddInParameter(cmdInsert, "@Driect_URL", DbType.String, filename); + db.AddInParameter(cmdInsert, "@MODIFIEDUSER", DbType.String, userid); + db.AddInParameter(cmdInsert, "@MODIFIEDTIME", DbType.String, DateTime.Now.ToString()); + db.AddInParameter(cmdInsert, "@RECEIPTTYPE", DbType.String, type); + db.AddInParameter(cmdInsert, "@DOCUMENTATTACHEDCODE", DbType.String, DOCUMENTATTACHEDCODE); + db.AddInParameter(cmdInsert, "@DOCUMENTATTACHEDNO", DbType.String, DOCUMENTATTACHEDNO); + db.AddInParameter(cmdInsert, "@R_GID", DbType.String, BSNO); + db.ExecuteNonQuery(cmdInsert, tran); + + } + tran.Commit(); @@ -941,7 +966,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL public static DBResult UpdateFileData(List revdoc, string userid) { var result = new DBResult(); - + var UPDOCTOSEAESAMEMBLNO = MsSysParamSetDAL.GetData("PARAMNAME='UPDOCTOSEAESAMEMBLNO'"); Database db = DatabaseFactory.CreateDatabase(); using (var conn = db.CreateConnection()) @@ -956,6 +981,11 @@ namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL db.GetSqlStringCommand( @"update Receipt_Doc set URL=@URL,Driect_URL=@Driect_URL,MODIFIEDUSER=@MODIFIEDUSER,MODIFIEDTIME=@MODIFIEDTIME,RECEIPTTYPE=@RECEIPTTYPE,DOCUMENTATTACHEDCODE=@DOCUMENTATTACHEDCODE,DOCUMENTATTACHEDNO=@DOCUMENTATTACHEDNO ,ISPUBLIC=@ISPUBLIC,BSNO=@BSNO WHERE GID=@GID "); + var cmdupdateopseae = + db.GetSqlStringCommand( + @"update Receipt_Doc set URL=@URL,Driect_URL=@Driect_URL,MODIFIEDUSER=@MODIFIEDUSER,MODIFIEDTIME=@MODIFIEDTIME,RECEIPTTYPE=@RECEIPTTYPE,DOCUMENTATTACHEDCODE=@DOCUMENTATTACHEDCODE,DOCUMENTATTACHEDNO=@DOCUMENTATTACHEDNO + ,ISPUBLIC=@ISPUBLIC WHERE R_GID=@BSNO "); + if (revdoc != null) { foreach (var enumValue in revdoc) @@ -973,6 +1003,21 @@ namespace DSWeb.MvcShipping.DAL.MsOpReceiptDAL db.AddInParameter(cmdInsert, "@ISPUBLIC", DbType.Boolean, enumValue.ISPUBLIC); db.AddInParameter(cmdInsert, "@BSNO", DbType.String, enumValue.BSNO); db.ExecuteNonQuery(cmdInsert, tran); + if (UPDOCTOSEAESAMEMBLNO.PARAMVALUE == "1") + { + cmdupdateopseae.Parameters.Clear(); + db.AddInParameter(cmdupdateopseae, "@URL", DbType.String, enumValue.URL); + db.AddInParameter(cmdupdateopseae, "@Driect_URL", DbType.String, enumValue.Driect_URL); + db.AddInParameter(cmdupdateopseae, "@MODIFIEDUSER", DbType.String, userid); + db.AddInParameter(cmdupdateopseae, "@MODIFIEDTIME", DbType.String, DateTime.Now.ToString()); + db.AddInParameter(cmdupdateopseae, "@RECEIPTTYPE", DbType.String, enumValue.RECEIPTTYPE); + db.AddInParameter(cmdupdateopseae, "@DOCUMENTATTACHEDCODE", DbType.String, enumValue.DOCUMENTATTACHEDCODE); + db.AddInParameter(cmdupdateopseae, "@DOCUMENTATTACHEDNO", DbType.String, enumValue.DOCUMENTATTACHEDNO); + db.AddInParameter(cmdupdateopseae, "@ISPUBLIC", DbType.Boolean, enumValue.ISPUBLIC); + db.AddInParameter(cmdupdateopseae, "@BSNO", DbType.String, enumValue.BSNO); + db.ExecuteNonQuery(cmdupdateopseae, tran); + } + } } diff --git a/DSWeb/Areas/MvcShipping/Models/MsOpLetter/MsOpLetterTruck.cs b/DSWeb/Areas/MvcShipping/Models/MsOpLetter/MsOpLetterTruck.cs index 47e33037..dcd4cd7c 100644 --- a/DSWeb/Areas/MvcShipping/Models/MsOpLetter/MsOpLetterTruck.cs +++ b/DSWeb/Areas/MvcShipping/Models/MsOpLetter/MsOpLetterTruck.cs @@ -224,6 +224,10 @@ namespace DSWeb.MvcShipping.Models.MsOpLetter get; set; } + [ModelDB] + public string CNTRNO { get; set; } + [ModelDB] + public string SEALNO { get; set; } #endregion public MsOpLetterTruckCtn() diff --git a/DSWeb/Areas/MvcShipping/Views/MsOpLetter/TruckLSEdit.aspx b/DSWeb/Areas/MvcShipping/Views/MsOpLetter/TruckLSEdit.aspx index be5270b1..1807fbfa 100644 --- a/DSWeb/Areas/MvcShipping/Views/MsOpLetter/TruckLSEdit.aspx +++ b/DSWeb/Areas/MvcShipping/Views/MsOpLetter/TruckLSEdit.aspx @@ -19,7 +19,7 @@ document.write(' diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsChFee/FeeDrCrGrid.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsChFee/FeeDrCrGrid.js index ce513c95..4d5df14e 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsChFee/FeeDrCrGrid.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsChFee/FeeDrCrGrid.js @@ -3032,11 +3032,12 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { if (value == '合计') { return Zi.LAN.FEE.CustSum ; } + } }, { sortable: true, dataIndex: 'RMBDR', - header: LOCALCURR + '应收', + header: LOCALCURR + Zi.LAN.FEE.DRFEESTATUS , renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); @@ -3061,7 +3062,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { }, { sortable: true, dataIndex: 'RMBCR', - header: LOCALCURR + '应付', + header: LOCALCURR + Zi.LAN.FEE.CRFEESTATUS , renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); @@ -3086,7 +3087,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { }, { sortable: true, dataIndex: 'RMBPROFIT', - header: LOCALCURR + '利润', + header: LOCALCURR + Zi.LAN.FEE.ROFIT, renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { if (value == "***") return value; try { @@ -6556,7 +6557,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { var custtype = ''; if (type == 1) - custtype = '委托单位' + custtype = Zi.LAN.FEE.WEITUODANWEI else { custtype = ''; if (this.stroplb == 'op_truckbulk') custtype = '车队'; @@ -6835,9 +6836,9 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { } else { if (type == 1) - custtype = '委托单位' + custtype = Zi.LAN.FEE.WEITUODANWEI else - custtype = '订舱代理' + custtype = Zi.LAN.FEE.DINGCANGDAILI } var records = DsStoreQueryBy(this.StoreCustType, 'CUSTTYPE', custtype); @@ -7178,9 +7179,9 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { } else { if (type == 1) - custtype = '委托单位' + custtype = Zi.LAN.FEE.WEITUODANWEI else - custtype = '订舱代理' + custtype = Zi.LAN.FEE.DINGCANGDAILI } var records = DsStoreQueryBy(this.StoreCustType, 'CUSTTYPE', custtype); @@ -10484,11 +10485,11 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { usddr = memberyf.data.NORATEDR; usdcr = memberyf.data.NORATECR; usdprofit = memberyf.data.PR; - } if (memberyf.data.CURR == '其他币别') { + } if (memberyf.data.CURR == '其他币别' || memberyf.data.CURR == 'OT CURR') { otdr = memberyf.data.NORATEDR; otcr = memberyf.data.NORATECR; otprofit = memberyf.data.NORATEPR; - } if (memberyf.data.CURR == '合计') { + } if (memberyf.data.CURR == '合计' || memberyf.data.CURR == 'TTL') { ttldr = memberyf.data.NORATEDR; ttlcr = memberyf.data.NORATECR; ttlprofit = memberyf.data.NORATEPR; @@ -10512,11 +10513,11 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { usddr = memberyf.data.DR; usdcr = memberyf.data.CR; usdprofit = memberyf.data.PR; - } if (memberyf.data.CURR == '其他币别') { + } if (memberyf.data.CURR == '其他币别' || memberyf.data.CURR == 'OT CURR') { otdr = memberyf.data.DR; otcr = memberyf.data.CR; otprofit = memberyf.data.PR; - } if (memberyf.data.CURR == '合计') { + } if (memberyf.data.CURR == '合计' || memberyf.data.CURR == 'TTL') { ttldr = memberyf.data.DR; ttlcr = memberyf.data.CR; ttlprofit = memberyf.data.PR; @@ -10545,7 +10546,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, { } if (usddr != 0 || usdcr != 0 || (usdprofit != 0 && usdprofit != "***")) { if (usdprofit < 0) { - usdlb = "   " + Zi.LAN.FEE.USDDR + ": " + returnfloat(usddr) + "   U" + Zi.LAN.FEE.USDCR + ":" + returnfloat(usdcr) + "   " + Zi.LAN.FEE.USDPROFIT+"" + returnfloat(usdprofit) + "   |"; + usdlb = "   " + Zi.LAN.FEE.USDDR + ": " + returnfloat(usddr) + "   " + Zi.LAN.FEE.USDCR + ":" + returnfloat(usdcr) + "   " + Zi.LAN.FEE.USDPROFIT+"" + returnfloat(usdprofit) + "   |"; }else usdlb = "   " + Zi.LAN.FEE.USDDR + ": " + returnfloat(usddr) + "   " + Zi.LAN.FEE.USDCR + ":" + returnfloat(usdcr) + "   " + Zi.LAN.FEE.USDPROFIT +"" + returnfloat(usdprofit) + "   |"; diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js index ec49a0f1..f40678d6 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js @@ -7563,7 +7563,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, { this.formscn = Ext.widget('form', { region: 'north', frame: true, - title: '舱单收发通', + title: Zi.LAN.cangdansftpage, bodyPadding: 5, layout: 'anchor', trackResetOnLoad: true, diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpStatus/MsOpStatusIndex.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpStatus/MsOpStatusIndex.js index 0de15dc5..a2e7b4ea 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpStatus/MsOpStatusIndex.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpStatus/MsOpStatusIndex.js @@ -21,10 +21,16 @@ Ext.extend(Shipping.MsOpStatusIndex, Ext.Panel, { // var mainform = window.parent._this; var mainform = window.parent.panelEdit; - - this.EditRecord = mainform.editRecord; - this.stroplb = mainform.stroplb; - this.BsNo = this.EditRecord.get('BSNO'); + if (mainform == undefined) { + mainform = window.parent._thisPc; + this.EditRecord = mainform.editRecord; + this.stroplb ='海运出口'; + this.BsNo = this.EditRecord.get('gId'); + } else { + this.EditRecord = mainform.editRecord; + this.stroplb = mainform.stroplb; + this.BsNo = this.EditRecord.get('BSNO'); + } diff --git a/DSWeb/Areas/SoftMng/Views/Export/SingleAudit.aspx b/DSWeb/Areas/SoftMng/Views/Export/SingleAudit.aspx index 465551a0..1af4170c 100644 --- a/DSWeb/Areas/SoftMng/Views/Export/SingleAudit.aspx +++ b/DSWeb/Areas/SoftMng/Views/Export/SingleAudit.aspx @@ -3,6 +3,7 @@ +