示例#1
0
        public static UIClick Scanning(UIClick click)
        {
            var t = new UIClick()
            {
                Key = "Scanning"
            };

            t._send = click;
            return(t);
        }
示例#2
0
        public static UIClick BarCode(UIClick click)
        {
            var cl = new UIClick()
            {
                Key = "BarCode"
            };

            cl._send = click;
            return(cl);
        }
示例#3
0
        public static UIClick Click(UIClick click)
        {
            var c = new UIClick()
            {
                Key = "Click"
            };

            c._send = click;
            return(c);
        }
示例#4
0
        void ClearUIEvent(string model, string cmd)
        {
            if (this.UIEvent != null)
            {
                var pModel   = this.InnerHeaders["POS-MODEL"] as string;
                var pCommand = this.InnerHeaders["POS-COMMAND"] as string;
                if (String.Equals(pModel, model) == false || String.Equals(pCommand, cmd) == false)
                {
                    this.InnerHeaders.Clear();

                    this.UIEvent = null;
                    this.isSave  = true;
                }
            }
        }
示例#5
0
        public string AsyncDialog(String asyncId, String model, String cmd, WebMeta meta)
        {
            return(this.AsyncDialog(asyncId, g =>
            {
                var click = new UIClick(Context.Request.Arguments.Put(asyncId, "Value")).Send(Context.Request.Model, Context.Request.Command);;
                this.Context.runtime.Client.UIEvent = click;
                var data = new Hashtable();
                data["Click"] = Data.JSON.Serialize(click);

                data["POS-MODEL"] = model;
                data["POS-COMMAND"] = cmd;
                this.Context.runtime.Client.Session.Storage(data, Context);
                Context.Response.Redirect(model, cmd, meta.Put("Key", "Click"), true);
                return UMC.Web.UIDialog.ReturnValue(asyncId);
            }));
        }
示例#6
0
            public Profile Account(string amount, String tip, String tag, UIClick click)
            {
                var acount = new WebMeta().Put("amount", amount);

                if (String.IsNullOrEmpty(tip) == false)
                {
                    acount.Put("tag", tip);
                }

                if (String.IsNullOrEmpty(tip) == false)
                {
                    acount.Put("tag", tip);
                }

                if (click != null)
                {
                    acount.Put("click", click);
                }
                meta.Put("account", acount);
                return(this);
            }
示例#7
0
 public UIStyle Click(UIClick click)
 {
     meta.Put("click", click);
     return(this);
 }
示例#8
0
 public UIEventText Init(UIClick init)
 {
     meta.Put("init", init);
     return(this);
 }
示例#9
0
 public UIEventText Click(UIClick click)
 {
     meta.Put("click", click);
     return(this);
 }
示例#10
0
 public UIView Add(UIClick click, string text, UIStyle style)
 {
     items.Add(new WebMeta().Put("format", text).Put("style", style).Put("click", click));
     return(this);
 }
示例#11
0
 public UIItem Click(UIClick click)
 {
     meta.Put("click", click);
     return(this);
 }
示例#12
0
 public Portrait Click(UIClick click)
 {
     meta.Put("click", click);
     return(this);
 }
示例#13
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))));
 }
示例#14
0
 public UISection AddCell(String text, UIClick click)
 {
     return(this.Add(UICell.Create("Cell", new WebMeta().Put("text", text).Put("click", click))));
 }
示例#15
0
 public UIView Add(UIClick click, Uri src, UIStyle style)
 {
     items.Add(new WebMeta().Put("src", src).Put("style", style).Put("click", click));
     return(this);
 }
示例#16
0
 public UITitle Right(char icon, UIClick click)
 {
     this.Right(new UIEventText().Icon(icon).Click(click));
     return(this);
 }
示例#17
0
 public Profile Click(UIClick click)
 {
     this.meta.Put("click", click);
     return(this);
 }
示例#18
0
 public Profile Account(UIClick click)
 {
     return(Account(null, null, null, click));
 }