内贸海运excel导入,操作、单整、客服、揽货人,改为使用USERID

DS7_HYRD
dengyu 1 year ago
parent 579890638d
commit 24eab8b043

@ -1943,6 +1943,8 @@ SELECT @ps_BillNo as N'billno'";
newhead. = updrec.;
//newhead.ETD= updrec.ETD;
newhead. = updrec.;
//20230927 增加四个在费用封账状态下不更新的字段
newhead. = updrec.;
newhead. = updrec.;
newhead. = updrec.;//订舱代理

@ -16,6 +16,8 @@ using DSWeb.MvcShipping.DAL.MsSysBillNoSet;
using HcUtility.Core;
using DSWeb.MvcShipping.Models.MsChFee;
using DSWeb.MvcShipping.DAL.MsChFeeDAL;
using DSWeb.Common.DB;
using System.Linq;
namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
{
@ -165,6 +167,9 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
var PreCUSTNO = "";
var BSNO = "";
var cdc = new CommonDataContext();
var alluser = cdc.User.Where(x => 1 == 1).ToList();
Database db = DatabaseFactory.CreateDatabase();
var cmdInsert =
db.GetSqlStringCommand(
@ -198,9 +203,9 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
headData.SetValue("FEESTATUS","0");
headData.SetValue("BSDATE", _date);
headData.SetValue("CREATOR", username);
headData.SetValue("OP", username);
headData.SetValue("DOC", username);
headData.SetValue("CUSTSERVICE", username);
headData.SetValue("OP", userid);
headData.SetValue("DOC", userid);
headData.SetValue("CUSTSERVICE", userid);
headData.SetValue("CORPID", companyid);
headData.SetValue("SALECORPID", companyid);
headData.DbOperationType = DbOperationType.DbotIns;
@ -208,8 +213,18 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
CUSTOMERNAME = Convert.ToString(row["委托单位"]);
headData.SetValue("CUSTOMERNAME", CUSTOMERNAME);
headData.SetValue("MBLNO", Convert.ToString(row["主提单号"]));
headData.SetValue("OP", Convert.ToString(row["操作"]));
headData.SetValue("SALE", Convert.ToString(row["销售"]));
var = alluser.FirstOrDefault(x => x.SHOWNAME == Convert.ToString(row["操作"]));
if ( == null) = alluser.FirstOrDefault(x => x.GID == userid);
headData.SetValue("OP", .GID);
var = alluser.FirstOrDefault(x => x.SHOWNAME == Convert.ToString(row["销售"]));
if ( == null) = alluser.FirstOrDefault(x => x.GID == userid);
headData.SetValue("SALE", .GID);
//headData.SetValue("OP", Convert.ToString(row["操作"]));
//headData.SetValue("SALE", Convert.ToString(row["销售"]));
CARRIER = Convert.ToString(row["船公司"]);
headData.SetValue("CARRIER", CARRIER);
headData.SetValue("VESSEL", Convert.ToString(row["船名"]));

Loading…
Cancel
Save