public static List <BaseParam> GetBlockSettingsInfo(string BlockType) { List <BaseParam> result = new List <BaseParam>(); BaseParam Action = new BaseParam() { BlockType = BlockType, listParam = false, name = "Action", paramSource = "", required = true }; Action.conditionOperators.Add("", "Default"); Action.paramTemplates.Add(Guid.NewGuid(), "Subscribe"); Action.paramTemplates.Add(Guid.NewGuid(), "Unsubscribe"); Action.paramTemplates.Add(Guid.NewGuid(), "UnsubscribeAll"); BaseParam ClubId = new BaseParam() { BlockType = BlockType, listParam = false, name = "ClubId", paramSource = "clubs2.clubs.clubs", required = false }; ClubId.conditionOperators.Add("", "Default"); ClubId.GetParamTemplates(); result.Add(Action); result.Add(ClubId); return(result); }
public static List <BaseParam> GetBlockSettingsInfo(string BlockType) { List <BaseParam> result = new List <BaseParam>(); BaseParam ClubId = new BaseParam() { BlockType = BlockType, listParam = false, name = "ClubId", paramSource = "clubs2.clubs.clubs", required = false }; ClubId.conditionOperators.Add("", "Default"); ClubId.GetParamTemplates(); result.Add(ClubId); return(result); }
public static List <BaseParam> GetBlockSettingsInfo(string BlockType) { List <BaseParam> result = new List <BaseParam>(); BaseParam Brand = new BaseParam() { BlockType = BlockType, listParam = true, name = "Brand", paramSource = "kernel.OperatorBrands", required = true }; Brand.conditionOperators.Add("Один из", "In"); Brand.conditionOperators.Add("Ни один из", "NotIn"); Brand.conditionOperators.Add("Содержит", "Contains"); Brand.conditionOperators.Add("Не содержит", "NotContains"); Brand.GetParamTemplates(); BaseParam SMSC = new BaseParam() { BlockType = BlockType, listParam = true, name = "SMSC", paramSource = "kernel.SMSC", required = true }; SMSC.conditionOperators.Add("Один из", "In"); SMSC.conditionOperators.Add("Ни один из", "NotIn"); SMSC.conditionOperators.Add("Содержит", "Contains"); SMSC.conditionOperators.Add("Не содержит", "NotContains"); SMSC.GetParamTemplates(); BaseParam Region = new BaseParam() { BlockType = BlockType, listParam = true, name = "Region", paramSource = "kernel.Regions", required = true }; Region.conditionOperators.Add("Один из", "In"); Region.conditionOperators.Add("Ни один из", "NotIn"); Region.conditionOperators.Add("Содержит", "Contains"); Region.conditionOperators.Add("Не содержит", "NotContains"); Region.GetParamTemplates("kernel.Regions", "NODE_NAME"); BaseParam Subscriptions = new BaseParam() { BlockType = BlockType, listParam = true, name = "Subscriptions", paramSource = "clubs2.clubs.Clubs", required = true }; Subscriptions.conditionOperators.Add("Один из", "In"); Subscriptions.conditionOperators.Add("Ни один из", "NotIn"); Subscriptions.conditionOperators.Add("Содержит", "Contains"); Subscriptions.conditionOperators.Add("Не содержит", "NotContains"); Subscriptions.GetParamTemplates(); result.Add(Brand); result.Add(SMSC); result.Add(Region); result.Add(Subscriptions); return(result); }
public static List <BaseParam> GetBlockSettingsInfo(string BlockType) { List <BaseParam> result = new List <BaseParam>(); BaseParam ServiceNumber = new BaseParam() { BlockType = BlockType, listParam = true, name = "ServiceNumber", paramSource = "[kernel].[ServiceNumbers]", required = false }; ServiceNumber.conditionOperators.Add("", "Default"); ServiceNumber.GetParamTemplates("avant2.kernel.ServiceNumbers", "SN"); BaseParam TariffId = new BaseParam() { BlockType = BlockType, listParam = false, name = "TariffId", paramSource = "avant2.kernel.Tariff", required = false }; TariffId.conditionOperators.Add("", "Default"); TariffId.GetParamTemplatesForTariff(); BaseParam Text = new BaseParam() { BlockType = BlockType, listParam = false, name = "Text", paramSource = "", required = true }; Text.conditionOperators.Add("", "Default"); BaseParam Offset = new BaseParam() { BlockType = BlockType, listParam = false, name = "Offset", paramSource = "", required = false }; Offset.conditionOperators.Add("", "Default"); BaseParam AnswerToConnector = new BaseParam() { BlockType = BlockType, listParam = false, name = "AnswerToConnector", paramSource = "", required = false }; AnswerToConnector.conditionOperators.Add("", "Default"); AnswerToConnector.paramTemplates.Add(Guid.NewGuid(), Boolean.TrueString); AnswerToConnector.paramTemplates.Add(Guid.NewGuid(), Boolean.FalseString); result.Add(ServiceNumber); result.Add(TariffId); result.Add(Text); result.Add(Offset); result.Add(AnswerToConnector); return(result); }