public HttpRespXml_ItemsSynchronize(string xmlDes)
        {
            Utility.CWmsXmlSerializer xs = new Utility.CWmsXmlSerializer(true, GetType(), xmlDes);
            var tmpObj = xs.Deserialize() as HttpRespXml_ItemsSynchronize;

            CopyFrom(tmpObj);
        }
Пример #2
0
 /// <summary>
 /// default constructor
 /// </summary>
 CWmsMisSystemParamCache()
 {
     try
     {
         EnableCWms         = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrEnableCWMS);
         CWMSOfflineHostUri = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrCWMSOfflineHostUri);
         CWMSHostUri        = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrCWMSHostUri);
         Secret             = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrSecret);
         Format             = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrFormat);
         AppKey             = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrAppKey);
         Version            = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrVersion);
         SignMethod         = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrSignMethod);
         {
             SysParamCustomerId = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrCustomerId);
             Utility.CWmsXmlSerializer mxs = new Utility.CWmsXmlSerializer(false, typeof(CWmsSystemParam_Customer), SysParamCustomerId?.PValue);
             CustomerId = mxs.Deserialize() as CWmsSystemParam_Customer;
         }
         {
             SysParamLogistics = SystemParamStore.FindParam(CWmsMisSystemParamKeys.cStrParamClassName, CWmsMisSystemParamKeys.cStrLogisticsId);
             Utility.CWmsXmlSerializer mxs = new Utility.CWmsXmlSerializer(false, typeof(CWmsSystemParam_Logistics), SysParamLogistics?.PValue);
             Logistics = mxs.Deserialize() as CWmsSystemParam_Logistics;
         }
     }
     catch (Exception ex)
     {
         #region for Error INFO
         C_WMS.Data.Utility.MyLog.Instance.Fatal(ex, @"创建CWMS相关的Mis系统参数缓存异常.\r\n
             , EnableCWms({0}) [{1}: {2}]\r\n
             , CWMSOfflineHostUri({3}) [{4}: {5}]\r\n
             , CWMSHostUri({6}) [{7}: {8}]\r\n
             , Secret({9}) [{10}: {11}]\r\n
             , Format({12}) [{13}: {14}]\r\n
             , AppKey({15}) [{16}: {17}]\r\n
             , Version({18}) [{19}: {20}]\r\n
             , SignMethod({21}) [{22}: {23}]\r\n
             , SysParamCustomerId({24}) [{25}: {26}]\r\n
             , SysParamLogistics({27}) [{28}: {29}]\r\n
             , CustomerId={30}\r\n
             , Logistic{31}"
                                                 , EnableCWms, EnableCWms?.PName, EnableCWms?.PValue
                                                 , CWMSOfflineHostUri, CWMSOfflineHostUri?.PName, CWMSOfflineHostUri?.PValue
                                                 , CWMSHostUri, CWMSHostUri?.PName, CWMSHostUri?.PValue
                                                 , Secret, Secret?.PName, Secret?.PValue
                                                 , Format, Format?.PName, Format?.PValue
                                                 , AppKey, AppKey?.PName, AppKey?.PValue
                                                 , Version, Version?.PName, Version?.PValue
                                                 , SignMethod, SignMethod?.PName, SignMethod?.PValue
                                                 , SysParamCustomerId, SysParamCustomerId?.PName, SysParamCustomerId?.PValue
                                                 , SysParamLogistics, SysParamLogistics?.PName, SysParamLogistics?.PValue
                                                 , CustomerId, Logistics);
         #endregion
     }
 }
Пример #3
0
 public HttpRespXml_InventoryMonitoring(string xmlDescriptor)
 {
     Utility.CWmsXmlSerializer xs = new Utility.CWmsXmlSerializer(false, typeof(HttpRespXml_InventoryMonitoring), xmlDescriptor);
     items = (xs.Deserialize() as HttpRespXml_InventoryMonitoring)?.items.ToList();
 }