diff --git a/DSWeb/Areas/CommMng/Controllers/PubSysController.cs b/DSWeb/Areas/CommMng/Controllers/PubSysController.cs index 6c0e051b..0210eccf 100644 --- a/DSWeb/Areas/CommMng/Controllers/PubSysController.cs +++ b/DSWeb/Areas/CommMng/Controllers/PubSysController.cs @@ -175,10 +175,18 @@ namespace DSWeb.Areas.CommMng.Controllers [HttpPost] - [SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器 + //[SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器 [ValidateInput(false)] public ActionResult ExcelRptIndex(string strCondition, string formname,string filename) { + + string userid = Convert.ToString(Session["USERID"]); + if (userid == "" || userid == null) + { + var jsonRespose2 = new JsonResponse { Success = false, Message = "登陆状态失效,请重新登陆进行操作!" }; + return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) }; + } + string strHeader = "";//中文名称 string strDataIndex = "";//字段名称 diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsSeaeOrderController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsSeaeOrderController.cs index c1938751..0c5fca67 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsSeaeOrderController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsSeaeOrderController.cs @@ -330,6 +330,26 @@ namespace DSWeb.MvcShipping.Controllers return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) }; } } + public ContentResult SetCancel(string data,string orreason) + { + var head = JsonConvert.Deserialize(data); + var isfee = MsSeaeOrderDAL.GetFeeCount(head.BSNO); + if (isfee) + { + var jsonRespose = new JsonResponse { Success = false, Message = "此票业务存在费用,请先删除费用才能退仓!" }; + return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) }; + } + else + { + + T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA(); + string blUpSQL = " update crm_seaeorder set ORSTATUS=4,ORREASON=isnull(ORREASON,'')+' '+'"+ orreason + "' where ORDNO='" + head.ORDNO + "' "; + bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL); + var jsonRespose = new JsonResponse { Success = true, Message = "更新完成" }; + return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) }; + } + } + public ContentResult ShenModify(string data,string olddata, string ctnbody, string oldctnbody, string optype,string bsno) { diff --git a/DSWeb/Areas/MvcShipping/DAL/MsInfoClient/MsInfoClientDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsInfoClient/MsInfoClientDAL.cs index b59f2a5e..463a651c 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsInfoClient/MsInfoClientDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsInfoClient/MsInfoClientDAL.cs @@ -1771,7 +1771,7 @@ namespace DSWeb.MvcShipping.DAL.MsInfoClient var strSql = new StringBuilder(); strSql.Append("SELECT * ,(SELECT SHORTNAME FROM info_client where GID=info_client_bank.LINKID) CUSTNAME"); strSql.Append(",BANKNAME + '-' + ACCOUNTNAME AS ACCOUNTNAMEREF"); - strSql.Append(",BANKNAME + ' ' + ACCOUNT AS BANKACCOUNT"); + strSql.Append(",BANKNAME + ' ' + ACCOUNT+'('+ACCOUNTNAME+')' AS BANKACCOUNT"); strSql.Append(",(select country from code_country where countryid=info_client_bank.countryid) country"); strSql.Append(",ISINVDEF,(CASE WHEN ISINVDEF='1' THEN '是' ELSE '否' END) ISINVDEFREF"); strSql.Append(" from info_client_bank where 1=1"); @@ -1797,7 +1797,7 @@ namespace DSWeb.MvcShipping.DAL.MsInfoClient var strSql = new StringBuilder(); strSql.Append("SELECT * ,(SELECT SHORTNAME FROM info_client where GID=info_client_bank.LINKID) CUSTNAME"); strSql.Append(",BANKNAME + '-' + ACCOUNTNAME AS ACCOUNTNAMEREF"); - strSql.Append(",BANKNAME + ' ' + ACCOUNT AS BANKACCOUNT"); + strSql.Append(",BANKNAME + ' ' + ACCOUNT+'('+ACCOUNTNAME+')' AS BANKACCOUNT"); strSql.Append(",(select country from code_country where countryid=info_client_bank.countryid) country"); strSql.Append(",ISINVDEF,(CASE WHEN ISINVDEF='1' THEN '是' ELSE '否' END) ISINVDEFREF"); diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs index 1bfb6b71..38606145 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs @@ -2783,8 +2783,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL str = str + Environment.NewLine + "PG:" + opctndetail.PACKINGGROUP; var hw = "N"; if (opctndetail.ISMP == "1") hw = "Y"; - - str = str + Environment.NewLine + "闪点:" + opctndetail.DFLASH + "海污:" + hw; + str = str + Environment.NewLine + "闪点:" + opctndetail.DFLASH + "海污:" + hw + Environment.NewLine; addbodyList.Add(opctndetail); } diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs index 69cf6d51..ea6d3b2d 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs @@ -161,8 +161,10 @@ namespace DSWeb.Areas.MvcShipping.DAL data.CUSTOMERNAME = Convert.ToString(reader["CUSTOMERNAME"]); data.CARRIER= Convert.ToString(reader["CARRIER"]); data.CUSTNO = Convert.ToString(reader["CUSTNO"]); - if (reader["STLDATE"] != DBNull.Value) + if (reader["STLDATE"] != DBNull.Value && Convert.ToString(reader["STLDATE"]) != "") data.STLDATE = Convert.ToDateTime(reader["STLDATE"]).ToString("yyyy-MM-dd");//到港日期 + else + data.STLDATE = data.ETD; data.OPLB = Convert.ToString(reader["OPLB"]); #endregion diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MainForm/MainForm.js b/DSWeb/Areas/MvcShipping/Viewsjs/MainForm/MainForm.js index c4cd92f8..4eeed3aa 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MainForm/MainForm.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MainForm/MainForm.js @@ -1369,6 +1369,13 @@ Ext.extend(Shipping.MainForm, Ext.Panel, { } if (finded == false) { + var TITILE = ''; + if (record.data.PARENTNAME == '') { + TITILE = record.data.DESCRIPTION; + } else { + TITILE = record.data.PARENTNAME + '-' + record.data.DESCRIPTION; + } + var paneltabitems = new Ext.Panel({ id: 'pnl' + record.data.NAME, layout: "fit", @@ -1376,7 +1383,7 @@ Ext.extend(Shipping.MainForm, Ext.Panel, { autoScroll: true, frame: false, closable: true, - title: record.data.PARENTNAME + '-' + record.data.DESCRIPTION, + title: TITILE, html: '