需求 SR2023020800004/5 已完成

QDHHYT
ddlucky 2 years ago
parent c821b25217
commit 108f336dc4

@ -273,11 +273,11 @@ namespace DSWeb.MvcShipping.Controllers
isPost = false; isPost = false;
errorstr = "简称含有'等特殊字符"; errorstr = "简称含有'等特殊字符";
} }
if (headData.DESCRIPTION.IndexOf("'") > 0) //if (headData.DESCRIPTION.IndexOf("'") > 0)
{ //{
isPost = false; // isPost = false;
errorstr = "全称含有'等特殊字符"; // errorstr = "全称含有'等特殊字符";
} //}
if (headData.CUSTNUM == "") { if (headData.CUSTNUM == "") {
headData.CUSTNUM= MsInfoClientDAL.GetMaxNum(); headData.CUSTNUM= MsInfoClientDAL.GetMaxNum();
} }

@ -186,8 +186,38 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
new SqlParameter(PARM_FEE_GID,SqlDbType.VarChar,36) new SqlParameter(PARM_FEE_GID,SqlDbType.VarChar,36)
}; };
var customertypeDic = new Dictionary<string, string>
{
{ "CUSTOMERNAME", "委托单位" },
{ "CARRIER", "船公司" },
{ "FORWARDER", "订舱代理" },
{ "CUSTOMSER", "报关行" },
{ "TRUCKER", "车队" },
{ "SHIPPERID", "发货人" },
{ "CONSIGNEEID", "收货人" },
{ "NOTIFYPARTYID", "通知人" },
{ "AGENTID", "代理" },
{ "YARD", "场站" }
};
foreach (MsChFee feeEntity in tempFeeEntities) foreach (MsChFee feeEntity in tempFeeEntities)
{ {
//20230210 根据CustomerType的值将其改为汉字的值
/* this.panelFee.StoreCustType.add({ "SCUSTTYPE": "WTDW-委托单位", "CUSTTYPE": "委托单位", "CUSTNAME": "CUSTOMERNAME" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "CGS-船公司", "CUSTTYPE": "船公司", "CUSTNAME": "CARRIER" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "DCDL-订舱代理", "CUSTTYPE": "订舱代理", "CUSTNAME": "FORWARDER" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "BGH-报关行", "CUSTTYPE": "报关行", "CUSTNAME": "CUSTOMSER" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "CD-车队", "CUSTTYPE": "车队", "CUSTNAME": "TRUCKER" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "FHR-发货人", "CUSTTYPE": "发货人", "CUSTNAME": "SHIPPERID" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "SHR-收货人", "CUSTTYPE": "收货人", "CUSTNAME": "CONSIGNEEID" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "TZR-通知人", "CUSTTYPE": "通知人", "CUSTNAME": "NOTIFYPARTYID" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "DL-代理", "CUSTTYPE": "代理", "CUSTNAME": "AGENTID" });
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "CZ-场站", "CUSTTYPE": "场站", "CUSTNAME": "YARD" });*/
if (customertypeDic.ContainsKey(feeEntity.CustomerType))
feeEntity.CustomerType = customertypeDic[feeEntity.CustomerType];
if (feeEntity.BsNo == "*" || feeEntity.BsNo == "") if (feeEntity.BsNo == "*" || feeEntity.BsNo == "")
{ {
SqlParameter[] parms = GetInsertParms(); SqlParameter[] parms = GetInsertParms();

Loading…
Cancel
Save