Exemplo n.º 1
0
        public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, string name, FormControlType type,
                                                     string crossWidth, List <DropDownListItem> items, string value = "", string id = "")
        {
            var cfg = new ReportControlConfig(lable, id, name, value, type, crossWidth, items, -1);

            return(Add(controls, cfg));
        }
Exemplo n.º 2
0
        public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, FormControlType type, string value = "", string id = "")
        {
            var cfg = new ReportControlConfig(lable, id, value, type, -1);

            return(Add(controls, cfg));
        }
Exemplo n.º 3
0
        public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, string lable, List <DropDownListItem> items, string value = "", string id = "")
        {
            var cfg = new ReportControlConfig(lable, id, value, items, -1);

            return(Add(controls, cfg));
        }
Exemplo n.º 4
0
 //base
 public static List <ReportControlConfig> Add(this List <ReportControlConfig> controls, ReportControlConfig newControl)
 {
     newControl.id       = newControl.id.HasValue() ? newControl.id : DateTime.Now.Random();
     newControl.sequence = controls.Count + 1;
     controls.Add(newControl);
     return(controls);
 }