public PartialViewResult GetButtonsGroupByName(string name) { //Botones para MARKET, BRAND, GROUP FormUtilModel.ButtonsGroup bg = GetButtonsGroup(name, 0, GetFloatGroup(name)); new FormUtilModel.ButtonsGroup(); List <FormUtilModel.ButtonsGroup> btg = new List <FormUtilModel.ButtonsGroup>(); btg.Add(bg); return(PartialView(BUTTONS_GROUP, btg)); }
public PartialViewResult GetButtonsGroupChartByChannel(int channel) { FormUtilModel.ButtonsGroup bg = new FormUtilModel.ButtonsGroup(); bg.Buttons = GetButtonsList(ButtonListsTypes.CHART_BY_CHANNEL, channel); bg.label_text = ButtonListsTypes.CHART_BY_CHANNEL_LABEL; List <FormUtilModel.ButtonsGroup> btg = new List <FormUtilModel.ButtonsGroup>(); btg.Add(bg); return(PartialView(BUTTONS_GROUP, btg)); }
public PartialViewResult GetButtonsGroup(int channel) { FormUtilModel.ButtonsGroup bg = new FormUtilModel.ButtonsGroup(); channel = channel == 0 ? Helpers.Channels.MASS : channel; bg.Buttons = GetButtonsList(ButtonListsTypes.CHANNEL_MASTER, channel); bg.label_text = ButtonListsTypes.CHANNEL_LABEL; List <FormUtilModel.ButtonsGroup> btg = new List <FormUtilModel.ButtonsGroup>(); btg.Add(bg); FormUtilModel.ButtonsGroup nb = GetButtonsGroup(ButtonListsTypes.ADD_ONLY, 0, FormUtilModel.ButtonsGroup.right); btg.Add(nb); return(PartialView(BUTTONS_GROUP, btg)); }