Beispiel #1
0
        public UISection AddImageTextValue(string src, string text, String value, Web.UIClick click)
        {
            var cell = UICell.Create("ImageTextValue", new UMC.Web.WebMeta().Put("src", src, "value", value, "text", text).Put("click", click));

            this.Add(cell);
            return(this);
        }
Beispiel #2
0
        public UISection AddNumberCell(string text, String value, string title, Web.UIClick submit)
        {
            var cell = UICell.Create("NumberCell", new UMC.Web.WebMeta().Put("text", text, "value", value, "title", title).Put("submit", submit));

            this.Add(cell);
            return(this);
        }
Beispiel #3
0
        public UIDataSource(ICollection data, UICell cell)
        {
            _data["data"] = data;

            _data["cell"] = cell.Type;
            _style.Copy(cell.Style);
            this.Format(cell.Format);
        }
Beispiel #4
0
        public UISection AddImageTextValue(string src, String value, int imageWidth, Web.UIClick click)
        {
            var cell = UICell.Create("ImageTextValue", new UMC.Web.WebMeta().Put("src", src, "value", value).Put("click", click));

            cell.Style.Name("image-width", imageWidth);
            this.Add(cell);
            return(this);
        }
Beispiel #5
0
        public UIDataSource(System.Data.DataTable data, UICell cell)
        {
            _data["data"] = data;

            _data["cell"] = cell.Type;
            _style.Copy(cell.Style);
            this.Format(cell.Format);
        }
Beispiel #6
0
 public UIDataSource(string model, string cmd, UICell cell)
 {
     if (String.IsNullOrEmpty(model) == false && String.IsNullOrEmpty(cmd) == false)
     {
         _data["model"] = model;
         _data["cmd"]   = cmd;
     }
     _data["cell"] = cell.Type;
     _style.Copy(cell.Style);
     this.Format(cell.Format);
 }
Beispiel #7
0
 public Editer Put(UICell value, bool reloadSinge)
 {
     if (reloadSinge)
     {
         webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "PUT").Put("reloadSinle", true);
     }
     else
     {
         webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "PUT");//.Put("reloadSinle", true);
     }
     return(this);
 }
Beispiel #8
0
 public UIDataSource(string model, string cmd, WebMeta search, UICell cell)
 {
     if (String.IsNullOrEmpty(model) == false && String.IsNullOrEmpty(cmd) == false)
     {
         _data["model"] = model;
         _data["cmd"]   = cmd;
     }
     _data["cell"] = cell.Type;
     _style.Copy(cell.Style);
     this.Format(cell.Format);
     if (search != null && search.Count > 0)
     {
         _data["search"] = search;
     }
 }
Beispiel #9
0
 public UISection Delete(UICell cell, UIEventText eventText)
 {
     data.Add(new WebMeta().Put("del", eventText).Put("_CellName", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style));
     return(this);
 }
Beispiel #10
0
 public UISection Add(UICell cell)
 {
     data.Add(cell);// new WebMeta().Put("_CellName", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style));
     return(this);
 }
Beispiel #11
0
 public UISection AddCell(char icon, String text, String value, UIClick click)
 {
     return(this.Add(UICell.Create("UI", new WebMeta().Put("value", value, "text", text).Put("Icon", icon).Put("click", click))));
 }
Beispiel #12
0
 public UISection AddCell(String text, String value)
 {
     return(this.Add(UICell.Create("Cell", new WebMeta().Put("value", value, "text", text))));
 }
Beispiel #13
0
 public UISection AddCell(String text, UIClick click)
 {
     return(this.Add(UICell.Create("Cell", new WebMeta().Put("text", text).Put("click", click))));
 }
Beispiel #14
0
 public static UICell Create(params UISlider[] sliders)
 {
     return(UICell.Create("Slider", new WebMeta().Put("data", sliders)));
 }
Beispiel #15
0
 public Editer Append(UICell value)
 {
     webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "APPEND");
     return(this);
 }
Beispiel #16
0
 public Editer Insert(UICell value)
 {
     webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "INSERT");
     return(this);
 }
Beispiel #17
0
 public void Add(UICell cell)
 {
     this.dataSrouce.Add(new WebMeta().Put("Type", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style));
 }