internal static SPChannelParamsWrapper ConvertEntityToWrapper(SPChannelParamsEntity entity) { if (entity == null) { return(null); } if (entity.Id == 0) { return(null); } return(new SPChannelParamsWrapper(entity)); }
private SPChannelParamsEntity CreateNewChannelParams(SPChannelEntity channelEntity, string paramName, string paramDesciption, string paramsMappingName) { SPChannelParamsEntity paramsEntity = new SPChannelParamsEntity(); paramsEntity.ChannelID = channelEntity; paramsEntity.Name = paramName; paramsEntity.Title = paramName; paramsEntity.Description = paramDesciption; paramsEntity.IsEnable = true; paramsEntity.IsRequired = true; paramsEntity.IsUnique = false; paramsEntity.ParamsMappingName = paramsMappingName; paramsEntity.ParamsType = "普通参数"; return(paramsEntity); }
internal SPChannelParamsWrapper(SPChannelParamsEntity entityObj) : base(entityObj) { }
public void QuickAdd(SPChannelEntity spChannelWrapper, string linkPName, string mobilePName, string spCodePName, string moPName, int userID) { spChannelWrapper.Rate = 11; spChannelWrapper.Price = Convert.ToDecimal("1.00"); this.SelfDataObj.Save(spChannelWrapper); SPClientEntity spClientEntity = new SPClientEntity(); spClientEntity.Name = spChannelWrapper.Name + "默认下家"; spClientEntity.Description = spChannelWrapper.Name + "默认下家"; spClientEntity.UserID = userID; spClientEntity.IsDefaultClient = true; spClientEntity.Alias = ""; this.DataObjectsContainerIocID.SPClientDataObjectInstance.Save(spClientEntity); SPClientChannelSettingEntity obj = new SPClientChannelSettingEntity(); obj.Name = spChannelWrapper.Name + "默认下家"; obj.Description = spChannelWrapper.Name + "默认下家"; obj.ChannelID = spChannelWrapper; obj.ClinetID = spClientEntity; obj.InterceptRate = 0; obj.OrderIndex = 0; obj.UpRate = 0; obj.DownRate = 0; obj.CommandColumn = "ywid"; obj.CommandType = "7"; obj.CommandCode = ""; obj.SyncData = false; this.DataObjectsContainerIocID.SPClientChannelSettingDataObjectInstance.Save(obj); SPChannelParamsEntity moParamsEntity = new SPChannelParamsEntity(); moParamsEntity.ChannelID = spChannelWrapper; moParamsEntity.Name = moPName; moParamsEntity.Title = moPName; moParamsEntity.Description = "上行内容"; moParamsEntity.IsEnable = true; moParamsEntity.IsRequired = true; moParamsEntity.IsUnique = false; moParamsEntity.ParamsMappingName = "ywid"; moParamsEntity.ParamsType = "普通参数"; this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(moParamsEntity); SPChannelParamsEntity linkidParamsEntity = new SPChannelParamsEntity(); linkidParamsEntity.ChannelID = spChannelWrapper; linkidParamsEntity.Name = linkPName; linkidParamsEntity.Title = linkPName; linkidParamsEntity.Description = "唯一标识"; linkidParamsEntity.IsEnable = true; linkidParamsEntity.IsRequired = true; linkidParamsEntity.IsUnique = false; linkidParamsEntity.ParamsMappingName = "linkid"; linkidParamsEntity.ParamsType = "普通参数"; this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(linkidParamsEntity); SPChannelParamsEntity mobileParamsEntity = new SPChannelParamsEntity(); mobileParamsEntity.ChannelID = spChannelWrapper; mobileParamsEntity.Name = mobilePName; mobileParamsEntity.Title = mobilePName; mobileParamsEntity.Description = "手机号码"; mobileParamsEntity.IsEnable = true; mobileParamsEntity.IsRequired = true; mobileParamsEntity.IsUnique = false; mobileParamsEntity.ParamsMappingName = "mobile"; mobileParamsEntity.ParamsType = "普通参数"; this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(mobileParamsEntity); SPChannelParamsEntity spCodeParamsEntity = new SPChannelParamsEntity(); spCodeParamsEntity.ChannelID = spChannelWrapper; spCodeParamsEntity.Name = spCodePName; spCodeParamsEntity.Title = spCodePName; spCodeParamsEntity.Description = "通道号码"; spCodeParamsEntity.IsEnable = true; spCodeParamsEntity.IsRequired = true; spCodeParamsEntity.IsUnique = false; spCodeParamsEntity.ParamsMappingName = "cpid"; spCodeParamsEntity.ParamsType = "普通参数"; this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(spCodeParamsEntity); string sycnParamNameMO = "mo"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMO"])) { sycnParamNameMO = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMO"]; } SPChannelDefaultClientSycnParamsEntity moSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); moSendParamsEntity.ChannelID = spChannelWrapper; moSendParamsEntity.Name = sycnParamNameMO; moSendParamsEntity.Title = sycnParamNameMO; moSendParamsEntity.Description = "上行内容"; moSendParamsEntity.IsEnable = true; moSendParamsEntity.IsRequired = true; moSendParamsEntity.MappingParams = "ywid"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(moSendParamsEntity); string sycnParamNameLinkID = "linkid"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameLinkID"])) { sycnParamNameLinkID = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameLinkID"]; } SPChannelDefaultClientSycnParamsEntity linkidSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); linkidSendParamsEntity.ChannelID = spChannelWrapper; linkidSendParamsEntity.Name = sycnParamNameLinkID; linkidSendParamsEntity.Title = sycnParamNameLinkID; linkidSendParamsEntity.Description = "唯一标识"; linkidSendParamsEntity.IsEnable = true; linkidSendParamsEntity.IsRequired = true; linkidSendParamsEntity.MappingParams = "linkid"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(linkidSendParamsEntity); string sycnParamNameMobile = "mobile"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMobile"])) { sycnParamNameMobile = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMobile"]; } SPChannelDefaultClientSycnParamsEntity mobileSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); mobileSendParamsEntity.ChannelID = spChannelWrapper; mobileSendParamsEntity.Name = sycnParamNameMobile; mobileSendParamsEntity.Title = sycnParamNameMobile; mobileSendParamsEntity.Description = "手机号码"; mobileSendParamsEntity.IsEnable = true; mobileSendParamsEntity.IsRequired = true; mobileSendParamsEntity.MappingParams = "mobile"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(mobileSendParamsEntity); string sycnParamNameSPCode = "spCode"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameSPCode"])) { sycnParamNameSPCode = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameSPCode"]; } SPChannelDefaultClientSycnParamsEntity spCodeSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); spCodeSendParamsEntity.ChannelID = spChannelWrapper; spCodeSendParamsEntity.Name = sycnParamNameSPCode; spCodeSendParamsEntity.Title = sycnParamNameSPCode; spCodeSendParamsEntity.Description = "通道号码"; spCodeSendParamsEntity.IsEnable = true; spCodeSendParamsEntity.IsRequired = true; spCodeSendParamsEntity.MappingParams = "cpid"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(spCodeSendParamsEntity); }
public void QuickAddIVR(SPChannelEntity spChannelWrapper, string linkPName, string mobilePName, string spCodePName, string startTimePName, string endTimePName, string feetimePName, int userID) { spChannelWrapper.Rate = 11; spChannelWrapper.Price = Convert.ToDecimal("1.00"); this.SelfDataObj.Save(spChannelWrapper); SPClientEntity spClientEntity = new SPClientEntity(); spClientEntity.Name = spChannelWrapper.Name + "默认下家"; spClientEntity.Description = spChannelWrapper.Name + "默认下家"; spClientEntity.UserID = userID; spClientEntity.IsDefaultClient = true; spClientEntity.Alias = ""; this.DataObjectsContainerIocID.SPClientDataObjectInstance.Save(spClientEntity); SPClientChannelSettingEntity obj = new SPClientChannelSettingEntity(); obj.Name = spChannelWrapper.Name + "默认下家"; obj.Description = spChannelWrapper.Name + "默认下家"; obj.ChannelID = spChannelWrapper; obj.ClinetID = spClientEntity; obj.InterceptRate = 0; obj.OrderIndex = 0; obj.UpRate = 0; obj.DownRate = 0; obj.CommandColumn = "ywid"; obj.CommandType = "7"; obj.CommandCode = ""; obj.SyncData = false; this.DataObjectsContainerIocID.SPClientChannelSettingDataObjectInstance.Save(obj); SPChannelParamsEntity linkidParamsEntity = CreateNewChannelParams(spChannelWrapper, linkPName, "唯一标识", "linkid"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(linkidParamsEntity); SPChannelParamsEntity mobileParamsEntity = CreateNewChannelParams(spChannelWrapper, mobilePName, "手机号码", "mobile"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(mobileParamsEntity); SPChannelParamsEntity spCodeParamsEntity = CreateNewChannelParams(spChannelWrapper, spCodePName, "通道号码", "cpid"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(spCodeParamsEntity); SPChannelParamsEntity moCodeParamsEntity = CreateNewChannelParams(spChannelWrapper, spCodePName, "上行内容", "ywid"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(moCodeParamsEntity); SPChannelParamsEntity fcountCodeParamsEntity = CreateNewChannelParams(spChannelWrapper, "fcount", "fcount", "extendfield3"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(fcountCodeParamsEntity); if (!string.IsNullOrEmpty(startTimePName)) { SPChannelParamsEntity startTimeParamsEntity = CreateNewChannelParams(spChannelWrapper, startTimePName, "计费开始时间", "extendfield1"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(startTimeParamsEntity); } if (!string.IsNullOrEmpty(endTimePName)) { SPChannelParamsEntity endTimeParamsEntity = CreateNewChannelParams(spChannelWrapper, endTimePName, "计费结束时间", "extendfield2"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(endTimeParamsEntity); } if (!string.IsNullOrEmpty(feetimePName)) { SPChannelParamsEntity feetimeParamsEntity = CreateNewChannelParams(spChannelWrapper, feetimePName, "计费时长", "extendfield5"); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(feetimeParamsEntity); } string sycnParamNameFeetime = "feetime"; SPChannelDefaultClientSycnParamsEntity feetimeSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); feetimeSendParamsEntity.ChannelID = spChannelWrapper; feetimeSendParamsEntity.Name = sycnParamNameFeetime; feetimeSendParamsEntity.Title = sycnParamNameFeetime; feetimeSendParamsEntity.Description = "计费时长"; feetimeSendParamsEntity.IsEnable = true; feetimeSendParamsEntity.IsRequired = true; feetimeSendParamsEntity.MappingParams = "extendfield3"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(feetimeSendParamsEntity); string sycnParamNameLinkID = "linkid"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameLinkID"])) { sycnParamNameLinkID = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameLinkID"]; } SPChannelDefaultClientSycnParamsEntity linkidSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); linkidSendParamsEntity.ChannelID = spChannelWrapper; linkidSendParamsEntity.Name = sycnParamNameLinkID; linkidSendParamsEntity.Title = sycnParamNameLinkID; linkidSendParamsEntity.Description = "唯一标识"; linkidSendParamsEntity.IsEnable = true; linkidSendParamsEntity.IsRequired = true; linkidSendParamsEntity.MappingParams = "linkid"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(linkidSendParamsEntity); string sycnParamNameMobile = "mobile"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMobile"])) { sycnParamNameMobile = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameMobile"]; } SPChannelDefaultClientSycnParamsEntity mobileSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); mobileSendParamsEntity.ChannelID = spChannelWrapper; mobileSendParamsEntity.Name = sycnParamNameMobile; mobileSendParamsEntity.Title = sycnParamNameMobile; mobileSendParamsEntity.Description = "手机号码"; mobileSendParamsEntity.IsEnable = true; mobileSendParamsEntity.IsRequired = true; mobileSendParamsEntity.MappingParams = "mobile"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(mobileSendParamsEntity); string sycnParamNameSPCode = "spCode"; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameSPCode"])) { sycnParamNameSPCode = System.Configuration.ConfigurationManager.AppSettings["DefaultSycnParamNameSPCode"]; } SPChannelDefaultClientSycnParamsEntity spCodeSendParamsEntity = new SPChannelDefaultClientSycnParamsEntity(); spCodeSendParamsEntity.ChannelID = spChannelWrapper; spCodeSendParamsEntity.Name = sycnParamNameSPCode; spCodeSendParamsEntity.Title = sycnParamNameSPCode; spCodeSendParamsEntity.Description = "通道号码"; spCodeSendParamsEntity.IsEnable = true; spCodeSendParamsEntity.IsRequired = true; spCodeSendParamsEntity.MappingParams = "cpid"; this.DataObjectsContainerIocID.SPChannelDefaultClientSycnParamsDataObjectInstance.Save(spCodeSendParamsEntity); }
public void QuickAddSPChannel(SPChannelEntity channelEntity, string pLinkId, string pMo, string pMobile, string pSpCode, string pCreateDate, string pProvince, string pCity, string pExtend1, string pExtend2, string pExtend3, string pExtend4, string pExtend5, string pExtend6, string pExtend7, string pExtend8, string pExtend9, string pExtend10) { if (string.IsNullOrEmpty(pLinkId)) { throw new ArgumentNullException("pLinkId"); } if (string.IsNullOrEmpty(pMo)) { throw new ArgumentNullException("pMo"); } if (string.IsNullOrEmpty(pLinkId)) { throw new ArgumentNullException("pMobile"); } if (string.IsNullOrEmpty(pMo)) { throw new ArgumentNullException("pSpCode"); } channelEntity.ChannelStatus = DictionaryConst.Dictionary_ChannelStatus_Run_Key; this.selfDataObject.Save(channelEntity); SPSClientEntity defaultClient = GetDefaultClient(); SPCodeEntity defaultCode = SPCodeServiceProxy.NewDefaultCode(channelEntity); this.DataObjectsContainerIocID.SPCodeDataObjectInstance.Save(defaultCode); SPClientCodeRelationEntity spClientCodeRelation = SPClientCodeRelationServiceProxy.NewDefaultCode(defaultClient, defaultCode); this.DataObjectsContainerIocID.SPClientCodeRelationDataObjectInstance.Save(spClientCodeRelation); SPChannelParamsEntity cpLinkId = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pLinkId, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_LinkID_Key), DictionaryConst.Dictionary_SPField_LinkID_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpLinkId); SPChannelParamsEntity cpMo = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pMo, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_MO_Key), DictionaryConst.Dictionary_SPField_MO_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpMo); SPChannelParamsEntity cpMobile = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pMobile, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_Mobile_Key), DictionaryConst.Dictionary_SPField_Mobile_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpMobile); SPChannelParamsEntity cpSpCode = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pSpCode, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_SpNumber_Key), DictionaryConst.Dictionary_SPField_SpNumber_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpSpCode); if (!string.IsNullOrEmpty(pCreateDate)) { SPChannelParamsEntity cpCreateDate = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pCreateDate, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_CreateDate_Key), DictionaryConst.Dictionary_SPField_CreateDate_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpCreateDate); } if (!string.IsNullOrEmpty(pProvince)) { SPChannelParamsEntity cpProvince = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pProvince, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_Province_Key), DictionaryConst.Dictionary_SPField_Province_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpProvince); } if (!string.IsNullOrEmpty(pCity)) { SPChannelParamsEntity cpCity = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pCity, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_City_Key), DictionaryConst.Dictionary_SPField_City_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpCity); } if (channelEntity.IsStateReport && !string.IsNullOrEmpty(channelEntity.StateReportParamName)) { SPChannelParamsEntity cpStateReport = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, channelEntity.StateReportParamName, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_State_Key), DictionaryConst.Dictionary_SPField_State_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpStateReport); } if (!string.IsNullOrEmpty(pExtend1)) { SPChannelParamsEntity cpExtend1 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend1, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField1_Key), DictionaryConst.Dictionary_SPField_ExtendField1_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend1); } if (!string.IsNullOrEmpty(pExtend2)) { SPChannelParamsEntity cpExtend2 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend2, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField2_Key), DictionaryConst.Dictionary_SPField_ExtendField2_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend2); } if (!string.IsNullOrEmpty(pExtend3)) { SPChannelParamsEntity cpExtend3 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend3, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField3_Key), DictionaryConst.Dictionary_SPField_ExtendField3_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend3); } if (!string.IsNullOrEmpty(pExtend4)) { SPChannelParamsEntity cpExtend4 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend4, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField4_Key), DictionaryConst.Dictionary_SPField_ExtendField4_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend4); } if (!string.IsNullOrEmpty(pExtend5)) { SPChannelParamsEntity cpExtend5 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend5, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField5_Key), DictionaryConst.Dictionary_SPField_ExtendField5_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend5); } if (!string.IsNullOrEmpty(pExtend6)) { SPChannelParamsEntity cpExtend6 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend6, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField6_Key), DictionaryConst.Dictionary_SPField_ExtendField6_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend6); } if (!string.IsNullOrEmpty(pExtend7)) { SPChannelParamsEntity cpExtend7 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend7, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField7_Key), DictionaryConst.Dictionary_SPField_ExtendField7_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend7); } if (!string.IsNullOrEmpty(pExtend8)) { SPChannelParamsEntity cpExtend8 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend8, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField8_Key), DictionaryConst.Dictionary_SPField_ExtendField8_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend8); } if (!string.IsNullOrEmpty(pExtend9)) { SPChannelParamsEntity cpExtend9 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend1, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField9_Key), DictionaryConst.Dictionary_SPField_ExtendField9_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend9); } if (!string.IsNullOrEmpty(pExtend10)) { SPChannelParamsEntity cpExtend10 = SPChannelParamsServiceProxy.NewChannelParams(channelEntity, pExtend10, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_ExtendField10_Key), DictionaryConst.Dictionary_SPField_ExtendField10_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.Save(cpExtend10); } SPChannelSycnParamsEntity linkidSycnParam = SPChannelSycnParamsServiceProxy.NewSPChannelSycnParams(channelEntity, DictionaryConst.Dictionary_SPField_LinkID_Key, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_LinkID_Key), DictionaryConst.Dictionary_SPField_LinkID_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelSycnParamsDataObjectInstance.Save(linkidSycnParam); SPChannelSycnParamsEntity moSycnParam = SPChannelSycnParamsServiceProxy.NewSPChannelSycnParams(channelEntity, DictionaryConst.Dictionary_SPField_MO_Key, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_MO_Key), DictionaryConst.Dictionary_SPField_MO_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelSycnParamsDataObjectInstance.Save(moSycnParam); SPChannelSycnParamsEntity mobileSycnParam = SPChannelSycnParamsServiceProxy.NewSPChannelSycnParams(channelEntity, DictionaryConst.Dictionary_SPField_Mobile_Key, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_Mobile_Key), DictionaryConst.Dictionary_SPField_Mobile_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelSycnParamsDataObjectInstance.Save(mobileSycnParam); SPChannelSycnParamsEntity spCodeSycnParam = SPChannelSycnParamsServiceProxy.NewSPChannelSycnParams(channelEntity, DictionaryConst.Dictionary_SPField_SpNumber_Key, DictionaryConst.ParseSPFieldDictionaryKey(DictionaryConst.Dictionary_SPField_SpNumber_Key), DictionaryConst.Dictionary_SPField_SpNumber_Key, DictionaryConst.Dictionary_ChannelParamsType_Normal_Key); this.DataObjectsContainerIocID.SPChannelSycnParamsDataObjectInstance.Save(spCodeSycnParam); }
internal SPChannelParamsWrapper(SPChannelParamsEntity entityObj) { entity = entityObj; }