diff --git a/DSWeb.Common/DB/Comm.cs b/DSWeb.Common/DB/Comm.cs index 9fc0a027..9ea97696 100644 --- a/DSWeb.Common/DB/Comm.cs +++ b/DSWeb.Common/DB/Comm.cs @@ -2581,6 +2581,94 @@ namespace DSWeb.Common.DB + [Table("op_aire_bill")] + public partial class op_aire_bill_md { + [Key] + public string AS_ID { get; set; } + public string BSNO { get; set; } + public string MBLNO { get; set; } + public string HBLNO { get; set; } + public string TEMPLATE { get; set; } + public string BILLTYPE { get; set; } + public string SHIPPERID { get; set; } + public string CONSIGNEEID { get; set; } + public string NOTIFYPARTYID { get; set; } + public string SHIPPER { get; set; } + public string CONSIGNEE { get; set; } + public string NOTIFYPARTY { get; set; } + public string AGENTID { get; set; } + public string AGENT { get; set; } + public string VESSEL { get; set; } + public DateTime? ETD { get; set; } + public DateTime? ETA { get; set; } + public string PORTLOADID { get; set; } + public string PORTLOAD { get; set; } + public string PORTDISCHARGEID { get; set; } + public string PORTDISCHARGE { get; set; } + public string AIRLINES { get; set; } + public string IATANO { get; set; } + public string ACCOUNTCODE { get; set; } + public string ACCOUNTINFO { get; set; } + public string HANDINGINFO { get; set; } + public string CURR { get; set; } + public string BLFRT { get; set; } + public string OTFRT { get; set; } + public string TRANSTATEMENT { get; set; } + public string CUSTOMSTATEMENT { get; set; } + public string INAMOUNT { get; set; } + public string CLASS { get; set; } + public decimal? FEEKGS { get; set; } + public decimal? PRICE { get; set; } + public decimal? TTLFREIGHT { get; set; } + public decimal? TOTALAMOUNT { get; set; } + public string OTFEE { get; set; } + public string MARKS { get; set; } + public string DESCRIPTION { get; set; } + public int? PKGS { get; set; } + public string KINDPKGS { get; set; } + public int? KGS { get; set; } + public int? CBM { get; set; } + public string PFREIGHT { get; set; } + public string CFREIGHT { get; set; } + public string PSTATEMENT { get; set; } + public string CSTATEMENT { get; set; } + public string PTAX { get; set; } + public string CTAX { get; set; } + public string POTFREIGHT { get; set; } + public string COTFREIGHT { get; set; } + public string PCARRIEROT { get; set; } + public string CCARRIEROT { get; set; } + public string PTOTAL { get; set; } + public string CTOTAL { get; set; } + public string GOODSNAME { get; set; } + public string ISSUEBY { get; set; } + public DateTime? ISSUEDATE { get; set; } + public string ISSUEPLACE { get; set; } + public string INPUTBY { get; set; } + public string OTFEE1 { get; set; } + public decimal? OTFEE1AMOUNT { get; set; } + public string OTFEE2 { get; set; } + public decimal? OTFEE2AMOUNT { get; set; } + public string OTFEE3 { get; set; } + public decimal? OTFEE3AMOUNT { get; set; } + public string OTFEE4 { get; set; } + public decimal? OTFEE4AMOUNT { get; set; } + public string OTFEE5 { get; set; } + public decimal? OTFEE5AMOUNT { get; set; } + public string OTFEE6 { get; set; } + public decimal? OTFEE6AMOUNT { get; set; } + public string OTFEE7 { get; set; } + public decimal? OTFEE7AMOUNT { get; set; } + public string OTFEE8 { get; set; } + public decimal? OTFEE8AMOUNT { get; set; } + public string UNIT { get; set; } + public string REMARK { get; set; } + public string CUSTVALUE { get; set; } + public string CUSTOMVALUE { get; set; } + public DateTime? INPUTTIME { get; set; } + public DateTime? MODIFYTIME { get; set; } + public string MODIFYUSER { get; set; } + } } \ No newline at end of file diff --git a/DSWeb.Common/DB/CommonDataContext.cs b/DSWeb.Common/DB/CommonDataContext.cs index 680e7a72..18adaf15 100644 --- a/DSWeb.Common/DB/CommonDataContext.cs +++ b/DSWeb.Common/DB/CommonDataContext.cs @@ -89,8 +89,8 @@ namespace DSWeb.Common.DB public DbSet sys_bank { get; set; } + public DbSet op_aire_bill { get; set; } - } diff --git a/DSWeb.Common/bin/Release/DSWeb.Common.dll b/DSWeb.Common/bin/Release/DSWeb.Common.dll index e2b6f411..59cb71a6 100644 Binary files a/DSWeb.Common/bin/Release/DSWeb.Common.dll and b/DSWeb.Common/bin/Release/DSWeb.Common.dll differ diff --git a/DSWeb.Common/bin/Release/DSWeb.Common.pdb b/DSWeb.Common/bin/Release/DSWeb.Common.pdb index 431e16cf..ce3db01b 100644 Binary files a/DSWeb.Common/bin/Release/DSWeb.Common.pdb and b/DSWeb.Common/bin/Release/DSWeb.Common.pdb differ diff --git a/DSWeb.Interface/bin/Release/DSWeb.Common.dll b/DSWeb.Interface/bin/Release/DSWeb.Common.dll index e2b6f411..59cb71a6 100644 Binary files a/DSWeb.Interface/bin/Release/DSWeb.Common.dll and b/DSWeb.Interface/bin/Release/DSWeb.Common.dll differ diff --git a/DSWeb.Interface/bin/Release/DSWeb.Common.pdb b/DSWeb.Interface/bin/Release/DSWeb.Common.pdb index 431e16cf..ce3db01b 100644 Binary files a/DSWeb.Interface/bin/Release/DSWeb.Common.pdb and b/DSWeb.Interface/bin/Release/DSWeb.Common.pdb differ diff --git a/DSWeb/Areas/Account/DAL/Chfee_Audit/Chfee_AuditDAL.cs b/DSWeb/Areas/Account/DAL/Chfee_Audit/Chfee_AuditDAL.cs index 87e8d97b..63ec95db 100644 --- a/DSWeb/Areas/Account/DAL/Chfee_Audit/Chfee_AuditDAL.cs +++ b/DSWeb/Areas/Account/DAL/Chfee_Audit/Chfee_AuditDAL.cs @@ -57,8 +57,10 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL WorkFlowName = "FeeRecvPayAudit"; } if (optype == "op_seai") { - WorkFlowNameM = "FeeSeaiModifyAudit"; - WorkFlowName = "FeeSeaiRecvPayAudit"; + //WorkFlowNameM = "FeeSeaiModifyAudit"; + //WorkFlowName = "FeeSeaiRecvPayAudit"; + WorkFlowNameM = "FeeModifyAudit"; + WorkFlowName = "FeeRecvPayAudit"; } if (optype == "op_aire") { @@ -942,41 +944,44 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL T_ALL_DA T_ALL_DA = new T_ALL_DA(); var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - - } if (optype == "op_Aire") - { - WorkFlowName = "AireFeeAudit"; - - } if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeAudit"; - - } if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeAudit"; - - } if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + // //WorkFlowName = "FeeSeaiRecvPayAudit"; + + //} if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -1482,46 +1487,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL return result; } - - public static DBResult SubmitAuditNew(String optype, String USERID, List billList, bool isbl = false, string WorkFlowstr="",string issalework="",string companyid="") - { - var result = new DBResult(); - var bsno = "1"; - var mblno = ""; - var saleid = ""; - var WorkFlowid = ""; - result.Success = true; - var msg = ""; - - var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - optype = optype.ToLower(); - if (optype == "op_seae"|| optype == "op_seaeorder") + public static string GetWorkFlowName(string WorkFlowName,string optype) { + if (optype == "op_seae" || optype == "op_seaeorder") { WorkFlowName = "FeeRecvPayAudit"; - } if (optype == "op_seai") + } + if (optype == "op_seai") { - WorkFlowName = "FeeSeaiRecvPayAudit"; + WorkFlowName = "FeeRecvPayAudit"; + //WorkFlowName = "FeeSeaiRecvPayAudit"; - } if (optype == "op_aire") + } + if (optype == "op_aire") { WorkFlowName = "AireFeeAudit"; - } if (optype == "op_airi") + } + if (optype == "op_airi") { WorkFlowName = "AiriFeeAudit"; - } if (optype == "op_apply") + } + if (optype == "op_apply") { WorkFlowName = "ApplyFeeAudit"; - } if (optype == "op_bulk") + } + if (optype == "op_bulk") { WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tmswlpchead" || optype == "opctnbscard" || optype == "import_main") + } + if (optype == "op_other" || optype == "tmswlpchead" || optype == "opctnbscard" || optype == "import_main") { WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") + } + if (optype == "op_railway") { WorkFlowName = "RailwayFeeAudit"; } @@ -1530,6 +1531,59 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; } + return WorkFlowName; + } + public static DBResult SubmitAuditNew(String optype, String USERID, List billList, bool isbl = false, string WorkFlowstr="",string issalework="",string companyid="") + { + var result = new DBResult(); + var bsno = "1"; + var mblno = ""; + var saleid = ""; + var WorkFlowid = ""; + result.Success = true; + var msg = ""; + + var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + optype = optype.ToLower(); + + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + + //if (optype == "op_seae"|| optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + // //WorkFlowName = "FeeSeaiRecvPayAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tmswlpchead" || optype == "opctnbscard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -1710,36 +1764,39 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeAudit"; + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeAudit"; + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiRecvPayAudit"; - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeAudit"; + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } T_ALL_DA T_ALL_DA = new T_ALL_DA(); var BLSTLAUTOAUDIT = MsSysParamSetDAL.GetData("PARAMNAME='BLSTLAUTOAUDIT'"); Database db = DatabaseFactory.CreateDatabase(); @@ -2014,41 +2071,41 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var result = new DBResult(); var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - - } if (optype == "op_Aire") - { - WorkFlowName = "AireFeeAudit"; - - } if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeAudit"; - - } if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeAudit"; - - } if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value=="1") WorkFlowName = "FeeSeaiRecvPayAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeSeaiRecvPayAudit"; + + //} if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") { + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value=="1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -2231,42 +2288,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL if (worktype == "BLAUDIT") WorkFlowstr = "BLFeeAudit"; var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeAudit"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeAudit"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeAudit"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiRecvPayAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} var defcustname = ""; @@ -2403,42 +2460,44 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL if (worktype == "BLAUDIT") WorkFlowstr = "BLFeeAudit"; var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeAudit"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeAudit"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeAudit"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_seai") + //{ + // //FeeRecvPayAudit + // //FeeSeaiRecvPayAudit + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} var defcustname = ""; var ORDERCREATEOPFEE = MsSysParamSetDAL.GetData("PARAMNAME='ORDERCREATEOPFEE'"); @@ -2577,42 +2636,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowid = ""; var WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeRecvPayAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiRecvPayAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeAudit"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeAudit"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeAudit"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeAudit"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") - { - WorkFlowName = "FeeOpOpOtherRecvPayAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeAudit"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeRecvPayAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiRecvPayAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeAudit"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeAudit"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeAudit"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeAudit"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard" || optype == "import_main") + //{ + // WorkFlowName = "FeeOpOpOtherRecvPayAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeAudit"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiRecvPayAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -2798,42 +2857,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var result = new DBResult(); var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_Aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} @@ -3085,42 +3144,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_Aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -3328,49 +3387,49 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeModifyAudit"; - - } - if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } - if (optype == "op_Aire") - { - WorkFlowName = "AireFeeModify"; - - } - if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeModify"; - - } - if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeModify"; - - } - if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeModify"; - } - if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } - if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} + //if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} + //if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} + //if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} + //if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} + //if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} + //if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} + //if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -3584,42 +3643,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_Seae" || optype == "op_SeaeOrder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_Seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_Aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_Airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_Apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_Bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_Seae" || optype == "op_SeaeOrder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_Seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_Aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_Airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_Apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_Bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -3734,42 +3793,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -3912,42 +3971,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; //var dataList = GetModifyData(billno); @@ -4091,42 +4150,42 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL var result = new DBResult(); var WorkFlowName = "FeeOpOtherModifyAudit"; - - if (optype == "op_seae" || optype == "op_seaeorder") - { - WorkFlowName = "FeeModifyAudit"; - - } if (optype == "op_seai") - { - WorkFlowName = "FeeSeaiModifyAudit"; - - } if (optype == "op_aire") - { - WorkFlowName = "AireFeeModify"; - - } if (optype == "op_airi") - { - WorkFlowName = "AiriFeeModify"; - - } if (optype == "op_apply") - { - WorkFlowName = "ApplyFeeModify"; - - } if (optype == "op_bulk") - { - WorkFlowName = "BulkFeeModify"; - } if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") - { - WorkFlowName = "FeeOpOtherModifyAudit"; - } if (optype == "op_railway") - { - WorkFlowName = "RailwayFeeModify"; - } - if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") - { - var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); - if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; - } + WorkFlowName = GetWorkFlowName(WorkFlowName, optype); + //if (optype == "op_seae" || optype == "op_seaeorder") + //{ + // WorkFlowName = "FeeModifyAudit"; + + //} if (optype == "op_seai") + //{ + // WorkFlowName = "FeeSeaiModifyAudit"; + + //} if (optype == "op_aire") + //{ + // WorkFlowName = "AireFeeModify"; + + //} if (optype == "op_airi") + //{ + // WorkFlowName = "AiriFeeModify"; + + //} if (optype == "op_apply") + //{ + // WorkFlowName = "ApplyFeeModify"; + + //} if (optype == "op_bulk") + //{ + // WorkFlowName = "BulkFeeModify"; + //} if (optype == "op_other" || optype == "tMsWlPcHead" || optype == "OpCtnBsCard") + //{ + // WorkFlowName = "FeeOpOtherModifyAudit"; + //} if (optype == "op_railway") + //{ + // WorkFlowName = "RailwayFeeModify"; + //} + //if (optype.ToLower() == "wms" || optype.ToLower() == "wms_in" || optype.ToLower() == "wms_out") + //{ + // var value = WMSNewDAL.WMSNewDAL.GetSysFeeConfig(""); + // if (value == "1") WorkFlowName = "FeeSeaiModifyAudit"; + //} if (WorkFlowstr != "") WorkFlowName = WorkFlowstr; @@ -5814,6 +5873,8 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL if (type == 1) { modustr = "modOtherRecvFeeManagement"; + + if (optype == "op_seae" || optype == "op_seaeorder") { modustr = "modRecvFeeManagement"; diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsAireOrderController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsAireOrderController.cs index 6b8512c7..aaa37286 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsAireOrderController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsAireOrderController.cs @@ -1154,57 +1154,70 @@ namespace DSWeb.MvcShipping.Controllers if (fenlist != null && fenlist.Count() > 0) { foreach (var fen in fenlist) { - var newfen = AutoMapperHelper.MapTo(headData); - newfen.BSNO = fen.BSNO; - newfen.ORDERNO = fen.ORDNO; - newfen.CUSTNO = ""; - newfen.ORDERTYPE = "销售订舱"; - newfen.REMARK += "[分单]"; - - newfen.SHIPPERID = ""; - newfen.SHIPPER = ""; - newfen.CONSIGNEEID = ""; - newfen.CONSIGNEE = ""; - newfen.NOTIFYPARTYID = ""; - newfen.NOTIFYPARTY = ""; - newfen.OPERATOR = ""; - newfen.OPERATORTEL = ""; - newfen.OPERATOREMAIL = ""; - - newfen.SHIPPERID = fen.SHIPPERID; - var _shipper = v_info_shipper_md.GetShipper(newrec.SHIPPERID); - if (_shipper != null) - { - newfen.SHIPPER = _shipper.shipperdetail; - } - - newfen.CONSIGNEEID = fen.CONSIGNEEID; - var _CONSIGNEE = v_info_shipper_md.GetShipper(newrec.CONSIGNEEID); - if (_CONSIGNEE != null) - { - newfen.CONSIGNEE = _CONSIGNEE.shipperdetail; - } - - newfen.NOTIFYPARTYID = fen.NOTIFYPARTYID; - var _NOTIFYPARTY = v_info_shipper_md.GetShipper(newrec.NOTIFYPARTYID); - if (_NOTIFYPARTY != null) - { - newfen.NOTIFYPARTY = _NOTIFYPARTY.shipperdetail; - } - - newfen.CUSTOMERNAME = fen.CUSTOMERNAME; - newfen.OPERATOR = fen.OPERATOR; - newfen.OPERATORTEL = fen.OPERATORTEL; - newfen.OPERATOREMAIL = fen.OPERATOREMAIL; - newfen.PKGS = fen.PKGS.ToString(); - newfen.FEEKGS = fen.FEEKGS.ToString(); - newfen.KGS = fen.KGS.ToString(); - newfen.CBM = fen.CBM.ToString(); + //20220902 改为在提单信息中增加分单信息 + var newfen = AutoMapperHelper.MapTo(headData); + newfen.BSNO = headData.BSNO; + newfen.AS_ID = Guid.NewGuid().ToString(); + newfen.INPUTBY = Convert.ToString(Session["SHOWNAME"]).ToString().Trim(); + newfen.INPUTTIME = DateTime.Now; + + cdc.op_aire_bill.Add(newfen); + + //var newfen = AutoMapperHelper.MapTo(headData); + //newfen.BSNO = fen.BSNO; + //newfen.ORDERNO = fen.ORDNO; + //newfen.CUSTNO = ""; + //newfen.ORDERTYPE = "销售订舱"; + //newfen.REMARK += "[分单]"; + + //newfen.SHIPPERID = ""; + //newfen.SHIPPER = ""; + //newfen.CONSIGNEEID = ""; + //newfen.CONSIGNEE = ""; + //newfen.NOTIFYPARTYID = ""; + //newfen.NOTIFYPARTY = ""; + //newfen.OPERATOR = ""; + //newfen.OPERATORTEL = ""; + //newfen.OPERATOREMAIL = ""; + + //newfen.SHIPPERID = fen.SHIPPERID; + //var _shipper = v_info_shipper_md.GetShipper(newrec.SHIPPERID); + //if (_shipper != null) + //{ + // newfen.SHIPPER = _shipper.shipperdetail; + //} + + //newfen.CONSIGNEEID = fen.CONSIGNEEID; + //var _CONSIGNEE = v_info_shipper_md.GetShipper(newrec.CONSIGNEEID); + //if (_CONSIGNEE != null) + //{ + // newfen.CONSIGNEE = _CONSIGNEE.shipperdetail; + //} + + //newfen.NOTIFYPARTYID = fen.NOTIFYPARTYID; + //var _NOTIFYPARTY = v_info_shipper_md.GetShipper(newrec.NOTIFYPARTYID); + //if (_NOTIFYPARTY != null) + //{ + // newfen.NOTIFYPARTY = _NOTIFYPARTY.shipperdetail; + //} + + //newfen.CUSTOMERNAME = fen.CUSTOMERNAME; + //newfen.OPERATOR = fen.OPERATOR; + //newfen.OPERATORTEL = fen.OPERATORTEL; + //newfen.OPERATOREMAIL = fen.OPERATOREMAIL; + + //newfen.PKGS = fen.PKGS.ToString(); + //newfen.FEEKGS = fen.FEEKGS.ToString(); + //newfen.KGS = fen.KGS.ToString(); + //newfen.CBM = fen.CBM.ToString(); + + + //hlp.DoSave("add", newfen, Session); - - hlp.DoSave("add", newfen, Session); } + + cdc.SaveChanges(); } diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsOp_BLISSUEController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsOp_BLISSUEController.cs index 71bb88dd..277aa4e8 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsOp_BLISSUEController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsOp_BLISSUEController.cs @@ -587,21 +587,21 @@ namespace DSWeb.MvcShipping.Controllers //headData.GID = PubSysDAL.GetBillNo("0405"); //获取合同号 headData.BLSTATUS = "录入状态"; } - else - { - headData.DbOperationType = DbOperationType.DbotUpd; - headData.ModelUIStatus = "E"; - } + else + { + headData.DbOperationType = DbOperationType.DbotUpd; + headData.ModelUIStatus = "E"; + } - T_ALL_DA T_ALL_DA = new T_ALL_DA(); - var BLCOUNT = T_ALL_DA.GetStrSQL("BLCOUNT", "select count(*) BLCOUNT from OP_SEAE WHERE CUSTOMERNAME='"+headData.CUSTOMERNAME+"' AND DATEDIFF([day],ISNULL(OP_SEAE.STLDATE,OP_SEAE.ETD),GETDATE())>0 "); - if (BLCOUNT == "0") - { - headData.ISCHAOQI = "否"; - } - else { - headData.ISCHAOQI = "是"; - }; + T_ALL_DA T_ALL_DA = new T_ALL_DA(); + var BLCOUNT = T_ALL_DA.GetStrSQL("BLCOUNT", "select count(*) BLCOUNT from OP_SEAE WHERE CUSTOMERNAME='"+headData.CUSTOMERNAME+"' AND DATEDIFF([day],ISNULL(OP_SEAE.STLDATE,OP_SEAE.ETD),GETDATE())>0 "); + if (BLCOUNT == "0") + { + headData.ISCHAOQI = "否"; + } + else { + headData.ISCHAOQI = "是"; + }; var result = new DBResult(); diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOp_BLISSUE/MsOp_BLISSUEDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOp_BLISSUE/MsOp_BLISSUEDAL.cs index 7df8900e..7d8ad231 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOp_BLISSUE/MsOp_BLISSUEDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOp_BLISSUE/MsOp_BLISSUEDAL.cs @@ -298,7 +298,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE strSql.Append(",(SELECT TOP 1 STATUS+' '+ CONVERT(varchar(100),COMPTIME, 20) FROM OP_STATUS WHERE BSNO=op_seae.BSNO AND STTYPE='2' ORDER BY COMPTIME DESC,INPUTTIME DESC) as OPSTATUS "); strSql.Append(",(SELECT TOP 1 BLSTATUS FROM op_blissue WHERE BSNO=OP_SEAE.BSNO) BLISSUESTATUS"); - + strSql.Append(",ISSUETYPE"); + strSql.Append(" from op_seae "); @@ -388,7 +389,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE data.OPSTATUS = Convert.ToString(reader["OPSTATUS"]); data.REMARK = Convert.ToString(reader["REMARK"]); data.BLISSUESTATUS = Convert.ToString(reader["BLISSUESTATUS"]); - + data.ISSUETYPE = Convert.ToString(reader["ISSUETYPE"]); #endregion headList.Add(data); } @@ -464,17 +465,20 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE #region 特殊放单申请 static public List GetSPList(int start, int limit, string strCondition, string sort, string userid="", string usercode = "", string companyid = "") - { - var rangstr = GetRangDAStr("index", userid, usercode, companyid); - if (!string.IsNullOrEmpty(rangstr)) + { + if (!string.IsNullOrWhiteSpace(userid)) { - if (!string.IsNullOrEmpty(strCondition)) - { - strCondition = strCondition + " and " + rangstr; - } - else + var rangstr = GetRangDAStr("index", userid, usercode, companyid); + if (!string.IsNullOrEmpty(rangstr)) { - strCondition = rangstr; + if (!string.IsNullOrEmpty(strCondition)) + { + strCondition = strCondition + " and " + rangstr; + } + else + { + strCondition = rangstr; + } } } @@ -3069,9 +3073,11 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE { BLINFOmb data = new BLINFOmb(); while (reader.Read()) - { + { #region Set DB data to Object + + #region 结费类型 data.结费类型 = ""; if (reader["ISSP"] != DBNull.Value) @@ -3089,7 +3095,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE { data.结费类型 = data.结费类型 + "客户结费类型为:" + Convert.ToString(reader["ACCTYPE"]); } - if (Convert.ToString(reader["ACCTYPE"]) == "约定天数") { + if (Convert.ToString(reader["ACCTYPE"]) == "约定天数") + { //data.结费类型 = data.结费类型 + Convert.ToString(reader["stldays"]) + "天 "; //string CUSTOMERNAME, string OPLBNAME, string BUSDATE, string SALE var CUSTOMERNAME = Convert.ToString(reader["CUSTOMERNAME"]); @@ -3109,12 +3116,13 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE data.TTLNODR = data.TTLNODR + Convert.ToDecimal(reader["TTLNODR"]); //var RMBNODR=0M; if (reader["RMBNODR"] != DBNull.Value) - data.RMBNODR =data.RMBNODR+ Convert.ToDecimal(reader["RMBNODR"]); + data.RMBNODR = data.RMBNODR + Convert.ToDecimal(reader["RMBNODR"]); //var USDNODR=0M; if (reader["USDNODR"] != DBNull.Value) - data.USDNODR = data.USDNODR+Convert.ToDecimal(reader["USDNODR"]); + data.USDNODR = data.USDNODR + Convert.ToDecimal(reader["USDNODR"]); #endregion + #region 累计欠费 //data.TTLNODR_All = 0M; //if (reader["TTLNODR_All"] != DBNull.Value) @@ -3163,7 +3171,6 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE data.IS累计欠费 = "no"; data.信用额度 = data.信用额度 + " 额度范围内"; } - else { if (data.TTLNODR_All != 0) @@ -3173,6 +3180,20 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE } } #endregion + + + #region 提单签出 未签单 + //if (reader["NUMTYPPE"].ToString() == "提单签出") + //{ + + //} + + //if (reader["NUMTYPPE"].ToString() == "未签出") + //{ + + //} + + #endregion #endregion //headList.Add(data); @@ -3245,44 +3266,61 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE var BLISSUENOSHEN = MsSysParamSetDAL.GetData("PARAMNAME='BLISSUENOSHEN'"); + var searchStr = new StringBuilder(); + searchStr.Append(" ,SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR "); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS='提单签出' then RMBNODR else 0 END) RMBNODR_YQC"); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS='提单签出' then USDNODR else 0 END) USDNODR_YQC"); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS='提单签出' then TTLNODR else 0 END) TTLNODR_YQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS='提单签出' then RMBNODR else 0 END ELSE 0 END) CRMBNODR_YQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS='提单签出' then USDNODR else 0 END ELSE 0 END) CUSDNODR_YQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS='提单签出' then TTLNODR else 0 END ELSE 0 END) CTTLNODR_YQC"); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS<>'提单签出' then RMBNODR else 0 END) RMBNODR_WQC"); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS<>'提单签出' then USDNODR else 0 END) USDNODR_WQC"); + searchStr.Append(" ,sum(CASE WHEN BLISSUESTATUS<>'提单签出' then TTLNODR else 0 END) TTLNODR_WQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS<>'提单签出' then RMBNODR else 0 END ELSE 0 END) CRMBNODR_WQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS<>'提单签出' then USDNODR else 0 END ELSE 0 END) CUSDNODR_WQC"); + searchStr.Append(" ,SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN CASE WHEN BLISSUESTATUS<>'提单签出' then TTLNODR else 0 END ELSE 0 END) CTTLNODR_WQC"); + var strSql = new StringBuilder(); - strSql.Append(" SELECT '委托单位:'+CUSTOMERNAME+'('+SALE+')' INFOTEXT, SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR"); - strSql.Append(",SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR"); + strSql.Append(" SELECT '委托单位:'+CUSTOMERNAME+'('+SALE+')' INFOTEXT "); + strSql.Append(searchStr); + //strSql.Append(",SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR "); + //strSql.Append(",SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR,"); + //strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR,"); + //strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR"); if (BLISSUENOSHEN.PARAMVALUE == "1") { strSql.Append(" from v_op_bill_gain_shen WHERE CUSTOMERNAME='" + CUSTNAME + "' and SALE='" + SALE + "'"); } else strSql.Append(" from v_op_bill_gain WHERE CUSTOMERNAME='" + CUSTNAME + "' and SALE='" + SALE + "'"); strSql.Append(" GROUP BY CUSTOMERNAME,SALE "); + strSql.Append(" UNION"); - strSql.Append(" SELECT '委托单位:'+CUSTOMERNAME INFOTEXT, SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR"); - strSql.Append(",SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR"); + strSql.Append(" SELECT '委托单位:'+CUSTOMERNAME INFOTEXT"); + strSql.Append(searchStr); if (BLISSUENOSHEN.PARAMVALUE == "1") { strSql.Append(" from v_op_bill_gain_shen WHERE CUSTOMERNAME='" + CUSTNAME + "' "); } else strSql.Append(" from v_op_bill_gain WHERE CUSTOMERNAME='" +CUSTNAME+ "' "); strSql.Append(" GROUP BY CUSTOMERNAME "); + strSql.Append(" UNION"); - strSql.Append(" SELECT '结算单位:'+CUSTNAME+'('+SALE+')' INFOTEXT, SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR"); - strSql.Append(",SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR"); + strSql.Append(" SELECT '结算单位:'+CUSTNAME+'('+SALE+')' INFOTEXT "); + strSql.Append(searchStr); if (BLISSUENOSHEN.PARAMVALUE == "1") { strSql.Append(" from v_op_bill_cust_gain_shen WHERE CUSTNAME='" + CUSTNAME + "' and SALE='" + SALE + "'"); } else strSql.Append(" from v_op_bill_cust_gain WHERE CUSTNAME='"+CUSTNAME+"' and SALE='"+SALE+"'"); strSql.Append(" GROUP BY CUSTNAME,SALE "); + strSql.Append(" UNION"); - strSql.Append(" SELECT '结算单位:'+CUSTNAME INFOTEXT, SUM(RMBNODR) RMBNODR,SUM(USDNODR) USDNODR,SUM(TTLNODR) TTLNODR"); - strSql.Append(",SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN RMBNODR ELSE 0 END) CRMBNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN USDNODR ELSE 0 END) CUSDNODR,"); - strSql.Append("SUM(CASE WHEN (DATEDIFF([day],ISNULL(STLDATE,ETD),GETDATE())>0) THEN TTLNODR ELSE 0 END) CTTLNODR"); + strSql.Append(" SELECT '结算单位:'+CUSTNAME INFOTEXT"); + strSql.Append(searchStr); if (BLISSUENOSHEN.PARAMVALUE == "1") { strSql.Append(" from v_op_bill_cust_gain_shen WHERE CUSTNAME='" + CUSTNAME + "'"); @@ -3309,6 +3347,14 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE data.USDNODR = Convert.ToString(reader["USDNODR"]) + "(" + Convert.ToString(reader["CUSDNODR"]) + ")"; data.TTLNODR = Convert.ToString(reader["TTLNODR"]) + "(" + Convert.ToString(reader["CTTLNODR"]) + ")"; + data.RMBNODR_YQC = Convert.ToString(reader["RMBNODR_YQC"]) + "(" + Convert.ToString(reader["CRMBNODR_YQC"]) + ")"; + data.USDNODR_YQC = Convert.ToString(reader["USDNODR_YQC"]) + "(" + Convert.ToString(reader["CUSDNODR_YQC"]) + ")"; + data.TTLNODR_YQC = Convert.ToString(reader["TTLNODR_YQC"]) + "(" + Convert.ToString(reader["CTTLNODR_YQC"]) + ")"; + + data.RMBNODR_WQC = Convert.ToString(reader["RMBNODR_WQC"]) + "(" + Convert.ToString(reader["CRMBNODR_WQC"]) + ")"; + data.USDNODR_WQC = Convert.ToString(reader["USDNODR_WQC"]) + "(" + Convert.ToString(reader["CUSDNODR_WQC"]) + ")"; + data.TTLNODR_WQC = Convert.ToString(reader["TTLNODR_WQC"]) + "(" + Convert.ToString(reader["CTTLNODR_WQC"]) + ")"; + #endregion headList.Add(data); } diff --git a/DSWeb/Areas/MvcShipping/Models/MsOp_BLISSUE/MsOp_BLISSUE.cs b/DSWeb/Areas/MvcShipping/Models/MsOp_BLISSUE/MsOp_BLISSUE.cs index 9adb892e..ba332de4 100644 --- a/DSWeb/Areas/MvcShipping/Models/MsOp_BLISSUE/MsOp_BLISSUE.cs +++ b/DSWeb/Areas/MvcShipping/Models/MsOp_BLISSUE/MsOp_BLISSUE.cs @@ -701,6 +701,12 @@ namespace DSWeb.MvcShipping.Models.MsOp_BLISSUE set { _TTLNODR = value; } } + public string RMBNODR_YQC { get; set; } + public string USDNODR_YQC { get; set; } + public string TTLNODR_YQC { get; set; } + public string RMBNODR_WQC { get; set; } + public string USDNODR_WQC { get; set; } + public string TTLNODR_WQC { get; set; } } [JsonObject] @@ -735,6 +741,12 @@ namespace DSWeb.MvcShipping.Models.MsOp_BLISSUE private string _IS累计欠费 = string.Empty; private string _IS后续业务 = string.Empty; + private string _NUMTYPE = string.Empty; + public string NUMTYPE //用于表示此条数据为 total 提单签出 未签出 //total的一定有 提单签出/未签出 不是一定两条都有 + { + get { return _NUMTYPE; } + set { _NUMTYPE = value; } + } [ModelDB] public string InfoText //用于显示业务信息文本 diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUEModel.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUEModel.js index dbaded25..b7e23229 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUEModel.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUEModel.js @@ -148,8 +148,9 @@ Ext.define('MsChFeedoBill', { { name: 'CBM', type: 'string' }, { name: 'BSCUSTOMNO', type: 'string' }, { name: 'CUSTOMSNUM', type: 'string' }, - { name: 'BLISSUESTATUS', type: 'string' } - + { name: 'BLISSUESTATUS', type: 'string' }, + { name: 'ISSUETYPE', type: 'string' } + ] }); @@ -157,10 +158,19 @@ Ext.define('BLINFOLIST', { extend: 'Ext.data.Model', idProperty: 'INFOTEXT', fields: [ - { name: 'INFOTEXT', type: 'string' }, - { name: 'RMBNODR', type: 'string' }, - { name: 'USDNODR', type: 'string' }, - { name: 'TTLNODR', type: 'string' } + { name: 'INFOTEXT', type: 'string' }, + + { name: 'RMBNODR', type: 'string' }, + { name: 'USDNODR', type: 'string' }, + { name: 'TTLNODR', type: 'string' }, + + { name: 'RMBNODR_YQC', type: 'string' }, + { name: 'USDNODR_YQC', type: 'string' }, + { name: 'TTLNODR_YQC', type: 'string' }, + + { name: 'RMBNODR_WQC', type: 'string' }, + { name: 'USDNODR_WQC', type: 'string' }, + { name: 'TTLNODR_WQC', type: 'string' } ] }); diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPEdit.js index e10da3fb..0f0d8463 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPEdit.js @@ -1515,6 +1515,12 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, { dataIndex: 'CBM', header: '尺码', width: 60 + }, + { + sortable: true, + dataIndex: 'ISSUETYPE', + header: '签单方式', + width: 80 } ]; @@ -1565,8 +1571,8 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, { }); this.girdcolumsbill = DsTruck.GetGridPanel(USERID, this.formname + 'bill', this.girdcolumsbill, 1); //使用者id,表名,中间column数组,跳过一开始的几列 - this.gridBillList.reconfigure(this.storeBillList, this.girdcolumsbill); + this.gridBillList.reconfigure(this.storeBillList, this.girdcolumsbill); this.gridBillList.addListener('itemdblclick', function (dataview, record, item, index, e, b) { this.SelectedRecord = record; @@ -1578,6 +1584,7 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, { window.open(openUrl, openType, openSet); // DsOpenEditWin("/TruckMng/MsWlPc/Edit"); }, this); + this.storeBillList.on('beforeload', function (store) { var _thisCUSTOMERNAME = Ext.getCmp("thisCUSTOMERNAME").getValue(); var sql = "CUSTOMERNAME='" + _thisCUSTOMERNAME diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPIndex.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPIndex.js index fdd9c00e..8157cb5c 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPIndex.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOp_BLISSUE/MsOp_BLISSUESPIndex.js @@ -777,6 +777,36 @@ Ext.extend(Shipping.MsOp_BLISSUESPIndex, Ext.Panel, { dataIndex: 'TTLNODR', header: '合计应收欠费(超期)', width: 160 + }, { + sortable: true, + dataIndex: 'RMBNODR_YQC', + header: '已签出RMB应收欠费(超期)', + width: 160 + }, { + sortable: true, + dataIndex: 'USDNODR_YQC', + header: '已签出USD应收欠费(超期)', + width: 160 + }, { + sortable: true, + dataIndex: 'TTLNODR_YQC', + header: '已签出合计应收欠费(超期)', + width: 160 + }, { + sortable: true, + dataIndex: 'RMBNODR_WQC', + header: '未签出RMB应收欠费(超期)', + width: 160 + }, { + sortable: true, + dataIndex: 'USDNODR_WQC', + header: '未签出USD应收欠费(超期)', + width: 160 + }, { + sortable: true, + dataIndex: 'TTLNODR_WQC', + header: '未签出合计应收欠费(超期)', + width: 160 } ] }); diff --git a/DSWeb/Properties/PublishProfiles/FolderProfile.pubxml.user b/DSWeb/Properties/PublishProfiles/FolderProfile.pubxml.user index de5ad6f7..53d62273 100644 --- a/DSWeb/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/DSWeb/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -8214,13 +8214,13 @@ 08/26/2022 20:26:43 - 08/30/2022 12:01:26 + 09/02/2022 16:40:59 - 09/01/2022 17:31:20 + 09/02/2022 16:38:27 - 09/01/2022 13:56:41 + 09/02/2022 16:43:39 08/26/2022 20:26:43 @@ -12822,10 +12822,10 @@ 08/26/2022 20:26:37 - 09/01/2022 17:39:42 + 09/02/2022 18:59:16 - 09/01/2022 17:39:42 + 09/02/2022 18:59:16 08/26/2022 20:26:48 @@ -12876,28 +12876,28 @@ 08/26/2022 20:26:49 - 09/01/2022 17:39:09 + 09/02/2022 18:58:40 08/26/2022 20:26:39 - 09/01/2022 17:39:09 + 09/02/2022 18:58:40 - 09/01/2022 17:39:20 + 09/02/2022 18:58:54 - 09/01/2022 17:39:09 + 09/02/2022 18:58:40 - 09/01/2022 17:39:09 + 09/02/2022 18:58:40 - 09/01/2022 17:39:20 + 09/02/2022 18:58:54 - 09/01/2022 17:39:21 + 09/02/2022 18:58:55 08/28/2022 03:33:29 @@ -17529,7 +17529,7 @@ 08/26/2022 20:26:46 - 09/01/2022 17:39:35 + 09/02/2022 18:59:09 08/26/2022 20:26:46 @@ -24078,7 +24078,7 @@ 08/26/2022 20:26:48 - 09/01/2022 11:15:58 + 09/02/2022 18:42:43 08/26/2022 20:26:48 diff --git a/DSWeb/Web.config b/DSWeb/Web.config index 12c2f627..898e843b 100644 --- a/DSWeb/Web.config +++ b/DSWeb/Web.config @@ -90,10 +90,10 @@ --> - + --> diff --git a/DSWeb/bin/DSWeb.XmlSerializers.dll b/DSWeb/bin/DSWeb.XmlSerializers.dll index 9478003a..c6724e00 100644 Binary files a/DSWeb/bin/DSWeb.XmlSerializers.dll and b/DSWeb/bin/DSWeb.XmlSerializers.dll differ diff --git a/DSWeb/bin/DSWeb.dll.config b/DSWeb/bin/DSWeb.dll.config index 12c2f627..898e843b 100644 --- a/DSWeb/bin/DSWeb.dll.config +++ b/DSWeb/bin/DSWeb.dll.config @@ -90,10 +90,10 @@ --> - + --> diff --git a/DSWeb/sql/update.mdb b/DSWeb/sql/update.mdb index da7f65d7..789b3b81 100644 Binary files a/DSWeb/sql/update.mdb and b/DSWeb/sql/update.mdb differ diff --git a/DSWeb/sql/update.rar b/DSWeb/sql/update.rar new file mode 100644 index 00000000..586753d4 Binary files /dev/null and b/DSWeb/sql/update.rar differ