using System; using HcUtility.Core; using Newtonsoft.Json; using DSWeb.Areas.CommMng.DAL; using System.Web.Mvc; using System.IO; using DSWeb.TruckMng.Helper; using System.Collections.Generic; using DSWeb.MvcShipping.DAL.MsSysParamSet; using DSWeb.MvcShipping.DAL.MsChFeeDAL; using HcUtility.Comm; using System.Diagnostics.Contracts; using DSWeb.Areas.MvcShipping.DB; using DSWeb.MvcShipping.Models.MsOpSeae; using DSWeb.Areas.MvcShipping.Models.Message.VGM; using DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL; using DSWeb.Common.DB; namespace DSWeb.Areas.CommMng.Models { [JsonObject] //用于解析要向表中保存的url地址的相关信息 public class FileUrlModel { #region private string _TableName = string.Empty; private string _KeyName = string.Empty; private string _KeyValue = string.Empty; private string _UrlName = string.Empty; private string _UrlValue = string.Empty; private string _ImgName = string.Empty; private string _INDATABASE = string.Empty; private string _FilePath = string.Empty; private string ModelName = ""; private string ChildName = ""; private string ExName = "";//扩展名 在savefile时获取 #endregion #region public string TableName { get { return _TableName; } set { _TableName = value; } } public string KeyName { get { return _KeyName; } set { _KeyName = value; } } public string KeyValue { get { return _KeyValue; } set { _KeyValue = value; } } public string UrlName { get { return _UrlName; } set { _UrlName = value; } } public string UrlValue { get { return _UrlValue; } set { _UrlValue = value; } } public string ImgName { get { return _ImgName; } set { _ImgName = value; } } public string INDATABASE { get { return _INDATABASE; } set { _INDATABASE = value; } } public bool needintoDatabase { get { if (_INDATABASE == "True" || _INDATABASE == "true") { return true; }return false; } } public string FilePath { get { return _FilePath; } set { _FilePath = value; } } public string Savefilename { get { var _r = Savefilename_head; _r += ExName; return _r; } } public string Savefilename_head { get { var _r = KeyValue; if (!String.IsNullOrEmpty(ChildName)) { _r += "_" + ChildName; } return _r; } } #endregion public static string _urlbase= "../../UploadFiles"; private string getSQL() { var sql = String.Format("update {0} set {1}='{2}' where {3}='{4}'", TableName, UrlName, UrlValue, KeyName, KeyValue); return sql; } public int DoUpdate() { var _r = BasicDataRefDAL.ExecSql(getSQL()); return _r; } private string getInsert_info_files_SQL() { var sql = String.Format($"insert into info_files (GID,PID,FILENAME,FILEPATH) values ('{Guid.NewGuid().ToString()}','{KeyValue}','{Savefilename}','{getFileName()}')"); return sql; } public int DoInsert_info_files() { var _r = BasicDataRefDAL.ExecSql(getInsert_info_files_SQL()); return _r; } public FileUrlModel() { } public FileUrlModel(string ModelName) { var path = System.Web.HttpContext.Current.Server.MapPath(FileUrlModel._urlbase); setModelValue(ModelName, path); } public FileUrlModel(string head,string ModelName,string ChildName="") { var _Info = DSWeb.TruckMng.Helper.JsonConvert.Deserialize(head); var path = System.Web.HttpContext.Current.Server.MapPath(FileUrlModel._urlbase); setModelValue(ModelName, path, ChildName); //ChildName用于表示在某一模块下的多种类型文件 如info_client(往来单位)下添加电子章 或其他种类图片 this.SetValue(_Info); } private void setModelValue(string ModelName,string path, string ChildName = "") { if (ModelName == "FactoryCargoname_TAGPIC") {//进口贸易-厂号商品名称管理 TableName = "Import_Cargoname"; KeyName = "GID"; UrlName = "TAGPICURL"; FilePath = path + "\\" + ModelName; this.ModelName = ModelName; this.ChildName = ChildName; } if (ModelName == "InfoClient_Img") {//往来单位-图片管理 //需要写入数据库 TableName = "Info_Client_IMG"; KeyName = "GID"; UrlName = "IMGURL"; ImgName = "IMG"; FilePath = path + "\\" + ModelName; this.ModelName = ModelName; this.ChildName = ChildName; //INDATABASE = true; } if (ModelName == "SysUser_Head") { //系统用户 头像 TableName = "USER_BASEINFO"; KeyName = "USERID"; UrlName = "IMAGEURL"; FilePath = path + "\\" + ModelName; this.ModelName = ModelName; this.ChildName = ChildName; //INDATABASE = true; } if (ModelName == "SysUser_Sign") { //系统用户 签名 需写入数据库 TableName = "USER_BASEINFO"; KeyName = "USERID"; UrlName = "SIGNATUREURL"; ImgName = "SIGNATUREPIC"; FilePath = path + "\\" + ModelName; this.ModelName = ModelName; this.ChildName = ChildName; INDATABASE ="True"; } if (ModelName == "Price_Quotation") { //系统用户 签名 需写入数据库 TableName = "Op_SeaPrice_Quotation"; KeyName = "BSNO"; UrlName = "PDFURL"; FilePath = path + "\\" + ModelName; this.ModelName = ModelName; this.ChildName = ChildName; //INDATABASE = true; } } public void SetValue(FileUrlModel info) { if (!string.IsNullOrEmpty(info.TableName)) { TableName = info.TableName; } if (!string.IsNullOrEmpty(info.KeyName)) { KeyName = info.KeyName; } if (!string.IsNullOrEmpty(info.UrlName)) { UrlName = info.UrlName; } if (!string.IsNullOrEmpty(info.KeyValue)) { KeyValue = info.KeyValue; } if (!string.IsNullOrEmpty(info.UrlValue)) { UrlValue = info.UrlValue; } if (!string.IsNullOrEmpty(info.INDATABASE)) { INDATABASE = info.INDATABASE; } } private static string getexname(System.Web.HttpPostedFileBase file) { return Path.GetExtension(file.FileName); } private string getFileName() { var _r = FilePath + "\\" + Savefilename; return _r; } /// /// 保存方法 返回值为文件url /// /// /// public string SaveFile(System.Web.HttpPostedFileBase file,string savetype="") { //获得文件扩展名 ExName = getexname(file); //首先 如没有目录则建立目录 if (!Directory.Exists(FilePath)) { Directory.CreateDirectory(FilePath); } string filename = getFileName(); //如存在同名文件则删除 string[] fileNames = Directory.GetFiles(FilePath); foreach (string _file in fileNames) { if (_file.IndexOf(Savefilename_head, StringComparison.OrdinalIgnoreCase) >= 0) { File.Delete(_file); } } //if (File.Exists(filename)) //{ // File.Delete(filename); //} //保存文件 file.SaveAs(filename); if (File.Exists(filename)) { //向数据库写入url UrlValue = _urlbase + "/" + ModelName + "/" + Savefilename; if (savetype == "") {//通常保存方法 DoUpdate(); //调取升级数据库内图片字段的方法 if (needintoDatabase) { BasicDataRefDAL.SaveFileIntoDB(this, UrlValue); } } else { if (savetype == "info_files") { //文件信息写入info_files表内 DoInsert_info_files(); } } //返回是否存在此文件 return UrlValue; } else return ""; } } [JsonObject] public class PrintSql { public string sql1 { get; set; } public string sql2 { get; set; } public string sql3 { get; set; } public string sql4 { get; set; } public string sql5 { get; set; } public string sql6 { get; set; } public string sql7 { get; set; } public string sql8 { get; set; } } /// /// 用于传递session等control层数据 /// public class USERINFO { public string USERID { get; set; } public string BLSTATUSSTR { get; set; } public string ISENABLECUSTRANGE { get; set; } public USERINFO() { } public USERINFO(string USERID, string BLSTATUSSTR = "", string ISENABLECUSTRANGE = "") { this.USERID = USERID; this.BLSTATUSSTR = BLSTATUSSTR; this.ISENABLECUSTRANGE = ISENABLECUSTRANGE; } } [JsonObject] public class StoreModifyResultStatus { public string GID { get; set; } public string STORENAME { get; set; } public string TABLENAME { get; set; } public string MODIFIEDTIME { get; set; } } [JsonObject] public class StoreModifyStatusMb: ModelObjectBillHead { public static List StoreModifyStatusList { get { return (List)BasicDataRefDAL.GetStoreModifyStatusCache(); } } public static List getstatus() { try { var result = new List(); var StoreModifyStatusList = (List) BasicDataRefDAL.GetStoreModifyStatusCache(); foreach (var item in StoreModifyStatusList) { var status = new StoreModifyResultStatus(); status.GID = item.GID; status.STORENAME = item.STORENAME; status.TABLENAME = item.TABLENAME; //status.DISPLAYFIELD = item.GID; //status.VALUEFIELD = item.GID; //status.DISPLAYFIELD2 = item.GID; //status.CONDITION = item.GID; status.MODIFIEDTIME = item.MODIFIEDTIME; result.Add(status); } return result; } catch (Exception e) { //BasicDataRefDAL.ResetStoreModifyStatus(); return getstatus(); } } #region private Fields private string _GID = string.Empty; private string _STORENAME = string.Empty; private string _TABLENAME = string.Empty; private string _DISPLAYFIELD = string.Empty; private string _VALUEFIELD = string.Empty; private string _DISPLAYFIELD2 = "''"; private string _CONDITION = string.Empty; private string _MODIFIEDTIME = string.Empty; public List PubStoreList = new List(); /// /// 刷新指定的store /// 目前只有USERID="EVERYONE"的能调用到这个方法 /// /// /// public static DBResult RefreshStore(string STORENAME, USERINFO USERINFO) { var sqlstr = ""; DBResult result = new DBResult(); //sqlstr = getSqlStr(STORENAME, USERINFO); var evList = getDBStore(STORENAME, USERINFO); //if (StoreModifyStatusList.Exists(x => x.STORENAME == STORENAME)) //{ // var _t = StoreModifyStatusList.Find(t => t.STORENAME == STORENAME); // if (_t.PubStoreList.Exists(x => x.STOREUSERID == USERINFO.USERID)) // { // _t.PubStoreList.Find(x => x.STOREUSERID == USERINFO.USERID).storelist = evList; // result.setMessage(true, ""); // } // else { // var newpubstore = new PubStore(); // newpubstore.STOREUSERID = USERINFO.USERID; // newpubstore.storelist = evList; // _t.PubStoreList.Add(newpubstore); // result.setMessage(true, ""); // } //} return result; //if (evList.Count == 0) //{ // return Json(new { success = false }); //} //else //{ // var blank = new GeneralModel(); // blank.GID = ""; // blank.GVALUE = ""; // blank.GVALUE2 = ""; // evList.Add(blank); // return Json(new { success = true, data = evList.ToList() }); //} return result; } /// /// 从数据库取store内容 /// /// /// /// private static List getDBStore(string STORENAME, USERINFO USERINFO) { var sqlstr = getSqlStr(STORENAME, USERINFO); var evList = BasicDataRefDAL.getPubExtendStore(sqlstr); return evList; } public static List getStore(string STORENAME, USERINFO USERINFO) { //如果是那种区分userid的 就不写入内存 直接从数据库取值 /* if (USERINFO.USERID != "EVERYONE") { return getDBStore(STORENAME, USERINFO); } var result = new List(); if (StoreModifyStatusList.Exists(x => x.STORENAME == STORENAME)) { var _t = StoreModifyStatusList.Find(t => t.STORENAME == STORENAME); if (_t.PubStoreList.Exists(x => x.STOREUSERID == USERINFO.USERID)) { result = _t.PubStoreList.Find(x => x.STOREUSERID == USERINFO.USERID).storelist; return result; } } var _r = RefreshStore(STORENAME, USERINFO); if (_r.Success) { result = getStore(STORENAME, USERINFO); } return result;*/ //20200407 取消内存缓存的逻辑 改为完全从数据库读取 return getDBStore(STORENAME, USERINFO); } //public static void setList(List currentlist) { // StoreModifyStatusList.Clear(); // foreach (var sms in currentlist) { // var newitem = new StoreModifyStatusMb(); // newitem.GID = sms.GID; // newitem.STORENAME = sms.STORENAME; // newitem.TABLENAME = sms.TABLENAME; // newitem.DISPLAYFIELD = sms.DISPLAYFIELD; // newitem.VALUEFIELD = sms.VALUEFIELD; // newitem.DISPLAYFIELD2 = sms.DISPLAYFIELD2; // newitem.CONDITION = sms.CONDITION; // newitem.MODIFIEDTIME = sms.MODIFIEDTIME; // StoreModifyStatusList.Add(newitem); // } //} public static string getSql() { return " select GID,STORENAME,TABLENAME,dbo.trimtime(MODIFIEDTIME) MODIFIEDTIME,DISPLAYFIELD,DISPLAYFIELD2,VALUEFIELD,CONDITION from t_sys_StoreModifyStatus "; } /// /// 根据storename分配相应的现存查询方法 /// /// /// /// public static string getSqlStr(string STORENAME, USERINFO USERINFO) { string result = ""; var modcondition = ""; if (STORENAME == "INFOCLIENT_ISCONTROLLER" || STORENAME == "INFOCLIENT_INV" || STORENAME == "INFOCLIENT_ALL") { if (!string.IsNullOrWhiteSpace(USERINFO.BLSTATUSSTR)) { modcondition = USERINFO.BLSTATUSSTR; } if (USERINFO.ISENABLECUSTRANGE == "1") { if (!string.IsNullOrWhiteSpace(modcondition)) modcondition += " and "; modcondition += " (SHORTNAME in (SELECT SHORTNAME from info_client_range where USERID='" + USERINFO.USERID + "' ) or SHORTNAME not in (SELECT SHORTNAME from info_client_range )) "; } } //if (StoreModifyStatusList.Exists(x => x.STORENAME == STORENAME)) //{ //var _t = StoreModifyStatusList.Find(t => t.STORENAME == STORENAME); //if (!string.IsNullOrWhiteSpace(_t.VALUEFIELD)) //{//有VALUEFIELD的使用通用查询方法 // if (string.IsNullOrWhiteSpace(_t.DISPLAYFIELD2)) _t.DISPLAYFIELD2 = "''"; // result = "select " + _t.VALUEFIELD + " as GID," + _t.DISPLAYFIELD + " as GVALUE , " + _t.DISPLAYFIELD2 + " as GVALUE2 from " + _t.TABLENAME; // var _condition = _t.CONDITION; // if (!string.IsNullOrWhiteSpace(modcondition)) // { // if (!string.IsNullOrWhiteSpace(_condition)) // { // _condition += " and " + modcondition; // } // else // { // _condition = modcondition; // } // } // if (!string.IsNullOrWhiteSpace(_condition)) // { // result += " where " + _condition.Replace("[[USERID]]", "'" + USERINFO.USERID + "'"); // } // result += " order by " + _t.DISPLAYFIELD; //} //else { //没有valuefield的使用独立方法 if (STORENAME == "IMPORT_SELLER") { //进口贸易 贸易商 isagent=1 result = BasicDataRefDAL.GetTrader_Getsqlstr(" isagent=1 ").ToString(); } if (STORENAME == "IMPORT_BUYER") { //进口贸易 客户 isagentcn=1 result = BasicDataRefDAL.GetTrader_Getsqlstr(" isagentcn=1 ").ToString(); } if (STORENAME == "HSCODE") { result = BasicDataRefDAL.GetCargoTax_Sqlstr("").ToString(); } if (STORENAME == "CIQCODE") { result = BasicDataRefDAL.GetCargociqRefList_Sqlstr("").ToString(); } //往来单位开票信息 if (STORENAME == "INFOCLIENT_INV") { result = BasicDataRefDAL.GetCustomInvRefList_SqlStr("", USERINFO.ISENABLECUSTRANGE, USERINFO.USERID).ToString(); } //国内港口信息 if (STORENAME == "CODE_PORTLOAD") { result = BasicDataRefDAL.GetCodeLoadportList_Sqlstr("").ToString(); } //国际港口信息 if (STORENAME == "CODE_PORTDISCHARGE") { result = BasicDataRefDAL.GetCodeDisportList_DisplayWithCNAME_Sqlstr("").ToString(); } //场站信息 if (STORENAME == "OPSEAE_YARD") { result = BasicDataRefDAL.GetCustomInvRefList_SqlStr(" ISYARD=1 ").ToString(); } if (STORENAME == "CODE_FEE") { result = MsChFeeDAL.GetFeeTypeRefList_Sqlstr("","").ToString(); } if (STORENAME == "INFOCLIENT_ALL") { result = BasicDataRefDAL.GetCustomInvRefList_SqlStr("", USERINFO.ISENABLECUSTRANGE, USERINFO.USERID).ToString(); } if (STORENAME == "INFOCLIENT_CARRIER") { result = BasicDataRefDAL.GetCustomInvRefList_SqlStr(" ISCARRIER=1 ", USERINFO.ISENABLECUSTRANGE, USERINFO.USERID).ToString(); } if (STORENAME == "INFOCLIENT_ISCONTROLLER") { result = BasicDataRefDAL.GetCustomRefList_GetSqlStr(" ISCONTROLLER=1 ", USERINFO.ISENABLECUSTRANGE, USERINFO.USERID).ToString(); } //} //} return result; } [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } /// /// store的名字 如 INFOCLIENT_CARRIER 等,用于表示这个数据集的内容 /// public string STORENAME { get { return _STORENAME.ToUpper(); } set { _STORENAME = value; } } public string TABLENAME { get { return _TABLENAME.ToUpper(); } set { _TABLENAME = value; } } [ModelDB] public string MODIFIEDTIME { get { return _MODIFIEDTIME; } set { _MODIFIEDTIME = value; } } public string DISPLAYFIELD { get { return _DISPLAYFIELD; } set { _DISPLAYFIELD = value; } } public string VALUEFIELD { get { return _VALUEFIELD; } set { _VALUEFIELD = value; } } public string DISPLAYFIELD2 { get { return _DISPLAYFIELD2; } set { _DISPLAYFIELD2 = value; } } public string CONDITION { get { return _CONDITION; } set { _CONDITION = value; } } #endregion public StoreModifyStatusMb() { // TableName = "tMsWlPcHead"; TableName = "t_sys_StoreModifyStatus"; } public string getrangstr(string USERID) { var result = ""; return result; } public override string GetBillNoFieldName() { return "GID"; } public override string GetTimeMarkFieldName() { return ""; } } /// /// /// public class PubStore { public string STOREUSERID { get; set; } public List storelist { get; set; } } [JsonObject]//通用store数据集 public class PubStoremb : ModelObjectBillHead { public override Dictionary GetPKey() {//用于给扩展的动态数据提供主键字段名 var d = new Dictionary() { { "GID", ModelDBOprationType.All } }; return d; } public Dictionary SaveDic = new Dictionary(); public PubStoremb() { //TableName = "Op_INTERNALTRADE"; } public override string GetBillNoFieldName() { return "GID"; } public override string GetTimeMarkFieldName() { return ""; } } [JsonObject]//用于费用历史引入的v_op_bs数据集 public class VOPBSmb : ModelObjectBillHead { public override Dictionary GetPKey() {//用于给扩展的动态数据提供主键字段名 var d = new Dictionary() { { "BSNO", ModelDBOprationType.All } }; return d; } public VOPBSmb() { //TableName = "Op_INTERNALTRADE"; } public override string GetBillNoFieldName() { return "BSNO"; } public override string GetTimeMarkFieldName() { return ""; } } #region 用于规则平台合规校验的 public class RulesEngineResult_DetailList { /// /// /// public bool isSuccess { get; set; } /// /// /// public string resultCode { get; set; } /// /// [校验错误]CMA,发货人、收货人、通知人必须显示公司名称和地址 /// public string resultName { get; set; } /// /// /// public string errorType { get; set; } /// /// /// public string ruleName { get; set; } /// /// /// public string wfName { get; set; } } public class RulesEngineResult_Extra { /// /// /// public bool isSuccess { get; set; } /// /// /// public string requestId { get; set; } /// /// /// public DateTime excuteDate { get; set; } /// /// /// public List detailList { get; set; } } public class RulesEngineResult_Root { /// /// /// public bool succ { get; set; } /// /// /// public int status { get; set; } /// /// 校验完成 /// public string msg { get; set; } /// /// /// public int total { get; set; } /// /// /// public string rows { get; set; } /// /// /// public string summary { get; set; } /// /// /// public RulesEngineResult_Extra extra { get; set; } /// /// /// public string extra2 { get; set; } } public class Head { /// /// /// public string senderKey { get; set; } /// /// /// public string gid { get; set; } /// /// /// public string messageType { get; set; } /// /// /// public string senderId { get; set; } /// /// 新海运订舱平台 /// public string senderName { get; set; } /// /// /// public string receiverId { get; set; } /// /// 大简云规则引擎 /// public string receiverName { get; set; } /// /// /// public string token { get; set; } /// /// /// public string version { get; set; } /// /// /// public DateTime requestDate { get; set; } /// /// /// public string requestAction { get; set; } } public class CargoList { public decimal? pKGs { get; set; } public string kindPKGs { get; set; } public decimal? kGs { get; set; } public decimal? cbm { get; set; } public string hsCode { get; set; } public string marks { get; set; } public string description { get; set; } public string remark { get; set; } } public class ContaList { /// /// /// public string contaType { get; set; } /// /// /// public string contaTypeName { get; set; } /// /// /// public string teu { get; set; } /// /// /// public string contaNo { get; set; } /// /// /// public string sealNo { get; set; } /// /// /// public decimal? pkGs { get; set; } /// /// /// public string kindPKGs { get; set; } /// /// /// public decimal? kGs { get; set; } /// /// /// public decimal? cbm { get; set; } /// /// /// public decimal? tareWeight { get; set; } /// /// /// public string contaStatus { get; set; } /// /// 总重 /// public string weighType { get; set; } /// /// /// public decimal? weighKGs { get; set; } /// /// /// public string weighAttn { get; set; } /// /// /// public string vgmConnCom { get; set; } /// /// /// public string weighTel { get; set; } /// /// /// public string weighDate { get; set; } /// /// /// public string vgmAddr { get; set; } /// /// /// public string vgmEmail { get; set; } /// /// /// public string remark { get; set; } /// /// /// public string contaCategory { get; set; } /// /// /// public List cargoList { get; set; } } public class BusinessInfo { /// /// /// public string masterBlNo { get; set; } /// /// /// public string houseBlNo { get; set; } /// /// /// public string bookingNo { get; set; } /// /// /// public string contrNo { get; set; } /// /// /// public string servContrNo { 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 notifyPrt2 { get; set; } /// /// /// public string yardId { get; set; } /// /// /// public string yard { get; set; } /// /// /// public string vesselId { get; set; } /// /// /// public string vessel { get; set; } /// /// /// public string voyno { get; set; } /// /// /// public string voynoIn { get; set; } /// /// /// public string etd { get; set; } /// /// /// public string atd { get; set; } /// /// /// public string eta { get; set; } /// /// /// public string closingDate { get; set; } /// /// /// public string closeDocDate { get; set; } /// /// /// public string closeVGMDate { get; set; } /// /// /// public string placeReceiptId { get; set; } /// /// /// public string placeReceipt { get; set; } /// /// /// public string portLoadId { get; set; } /// /// /// public string portLoad { get; set; } /// /// /// public string portDischargeId { get; set; } /// /// /// public string portDischarge { get; set; } /// /// /// public string placeDeliveryId { get; set; } /// /// /// public string placeDelivery { get; set; } /// /// /// public string destinationId { get; set; } /// /// /// public string destination { get; set; } /// /// /// public string noBill { get; set; } /// /// /// public string copyNoBill { get; set; } /// /// /// public string issueType { get; set; } /// /// /// public string issueDate { get; set; } /// /// /// public string issuePlaceId { get; set; } /// /// /// public string issuePlace { get; set; } /// /// /// public string blfrt { get; set; } /// /// /// public string prepardAt { get; set; } /// /// /// public string payableAt { get; set; } /// /// /// public string service { get; set; } /// /// /// public string marks { get; set; } /// /// /// public string hsCode { get; set; } /// /// /// public string goodsDescription { get; set; } /// /// /// public int pkGs { get; set; } /// /// /// public string kindPKGs { get; set; } /// /// /// public int kGs { get; set; } /// /// /// public int cbm { get; set; } /// /// /// public string totalNO { get; set; } /// /// /// public string cntrTotal { get; set; } /// /// /// public string carrierId { get; set; } /// /// 法国达飞 /// public string carrier { get; set; } /// /// /// public string cargoId { get; set; } /// /// /// public string dClass { get; set; } /// /// /// public string dUnno { get; set; } /// /// /// public string dPage { get; set; } /// /// /// public string dLabel { get; set; } /// /// /// public string dLinkMan { get; set; } /// /// /// public string tempId { get; set; } /// /// /// public string tempSet { get; set; } /// /// /// public string reeferf { get; set; } /// /// /// public string humidity { get; set; } /// /// /// public string tempMin { get; set; } /// /// /// public string tempMax { get; set; } /// /// /// public bool isContaSOC { get; set; } /// /// /// public string soRemark { get; set; } /// /// /// public string siRemark { get; set; } /// /// /// public string yardRemark { get; set; } /// /// /// public string compId { get; set; } /// /// /// public string compName { get; set; } /// /// /// public string shipperName { get; set; } /// /// /// public string shipperAddr1 { get; set; } /// /// /// public string shipperAddr2 { get; set; } /// /// /// public string shipperAddr3 { get; set; } /// /// /// public string shipperCity { get; set; } /// /// /// public string shipperProvice { get; set; } /// /// /// public string shipperPostCode { get; set; } /// /// /// public string shipperCountry { get; set; } /// /// /// public string shipperAttn { get; set; } /// /// /// public string shipperTel { get; set; } /// /// /// public string consigneeName { get; set; } /// /// /// public string consigneeAddr1 { get; set; } /// /// /// public string consigneeAddr2 { get; set; } /// /// /// public string consigneeAddr3 { get; set; } /// /// /// public string consigneeCity { get; set; } /// /// /// public string consigneeProvince { get; set; } /// /// /// public string consigneePostCode { get; set; } /// /// /// public string consigneeCountry { get; set; } /// /// /// public string consigneeAttn { get; set; } /// /// /// public string consigneeTel { get; set; } /// /// /// public string notifyPartyName { get; set; } /// /// /// public string notifyPartyAddr1 { get; set; } /// /// /// public string notifyPartyAddr2 { get; set; } /// /// /// public string notifyPartyAddr3 { get; set; } /// /// /// public string notifyPartyCity { get; set; } /// /// /// public string notifyPartyProvince { get; set; } /// /// /// public string notifyPartyPostCode { get; set; } /// /// /// public string notifyPartyCountry { get; set; } /// /// /// public string notifyPartyAttn { get; set; } /// /// /// public string notifyPartyTel { get; set; } /// /// /// public string poNo { get; set; } /// /// /// public string opid { get; set; } /// /// /// public string docid { get; set; } /// /// /// public string op { get; set; } /// /// /// public string doc { get; set; } /// /// /// public string saleId { get; set; } /// /// /// public string sale { get; set; } /// /// /// public string custserviceId { get; set; } /// /// /// public string custservice { get; set; } /// /// /// public string custserviceName { get; set; } /// /// /// public string forwarder { get; set; } /// /// /// public string shipAgency { get; set; } /// /// /// public string customsER { get; set; } /// /// /// public string truckER { get; set; } /// /// /// public string agentId { get; set; } /// /// /// public int customerId { get; set; } /// /// /// public string forwarderId { get; set; } /// /// /// public string shipAgencyId { get; set; } /// /// /// public string customsERId { get; set; } /// /// /// public string truckERId { get; set; } /// /// /// public string agentName { get; set; } /// /// /// public string weiTo { get; set; } /// /// /// public string consigneeDoorAddr { get; set; } /// /// /// public string shipperDoorAddr { get; set; } /// /// /// public string scacCode { get; set; } /// /// /// public string itnCode { get; set; } /// /// /// public string prePardAtId { get; set; } /// /// /// public string payableAtId { get; set; } /// /// /// public string custNo { get; set; } /// /// /// public string transportId { get; set; } /// /// /// public string transport { get; set; } /// /// /// public string thirdPayAddr { get; set; } /// /// /// public string yardContractTel { get; set; } /// /// /// public string yardContractEmail { get; set; } /// /// /// public string feeSelf { get; set; } /// /// /// public string laneCode { get; set; } /// /// 南非航线 /// public string laneName { get; set; } /// /// /// public string freightPayer { get; set; } /// /// /// public string shipperTaxNo { get; set; } /// /// /// public string consigneeTaxNo { get; set; } /// /// /// public string notifyPartyTaxNo { get; set; } /// /// /// public bool? isATDChangeIssueType { get; set; } /// /// /// public bool? isEngChinaLineBar { get; set; } /// /// /// public bool? isDoubleShipper { get; set; } /// /// /// public bool? isFCLAndLCLMix { get; set; } /// /// /// public bool? isMutipleGoods { get; set; } /// /// /// public bool? isContaLCL { get; set; } /// /// /// public string portDischargeCountryNo { get; set; } /// /// /// public string portDischargeEN { get; set; } /// /// 南非 /// public string portDischargeCN { get; set; } /// /// /// public string transportCountryNo { get; set; } /// /// /// public string transportEN { get; set; } /// /// 南非 /// public string transportCN { get; set; } /// /// /// public List contaList { get; set; } = new List(); } public class Main { /// /// /// public List projectCode { get; set; }=new List(); /// /// /// public BusinessInfo businessInfo { get; set; } } public class RulesEngineOrderBooking_Root { /// /// /// public Head head { get; set; }=new Head(); /// /// /// public Main main { get; set; }=new Main(); } #endregion public class DJYResult { public int statusCode { get; set; } public object data { get; set; } public bool? succeeded { get; set; } public bool? errors { get; set; } } }