public static UIClick Scanning(UIClick click) { var t = new UIClick() { Key = "Scanning" }; t._send = click; return(t); }
public static UIClick BarCode(UIClick click) { var cl = new UIClick() { Key = "BarCode" }; cl._send = click; return(cl); }
public static UIClick Click(UIClick click) { var c = new UIClick() { Key = "Click" }; c._send = click; return(c); }
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; } } }
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); })); }
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); }
public UIStyle Click(UIClick click) { meta.Put("click", click); return(this); }
public UIEventText Init(UIClick init) { meta.Put("init", init); return(this); }
public UIEventText Click(UIClick click) { meta.Put("click", click); return(this); }
public UIView Add(UIClick click, string text, UIStyle style) { items.Add(new WebMeta().Put("format", text).Put("style", style).Put("click", click)); return(this); }
public UIItem Click(UIClick click) { meta.Put("click", click); return(this); }
public Portrait Click(UIClick click) { meta.Put("click", click); return(this); }
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)))); }
public UISection AddCell(String text, UIClick click) { return(this.Add(UICell.Create("Cell", new WebMeta().Put("text", text).Put("click", click)))); }
public UIView Add(UIClick click, Uri src, UIStyle style) { items.Add(new WebMeta().Put("src", src).Put("style", style).Put("click", click)); return(this); }
public UITitle Right(char icon, UIClick click) { this.Right(new UIEventText().Icon(icon).Click(click)); return(this); }
public Profile Click(UIClick click) { this.meta.Put("click", click); return(this); }
public Profile Account(UIClick click) { return(Account(null, null, null, click)); }