/// <summary> /// 设置存储数据 /// </summary> /// <param name="Content"></param> public void SetStorage(string key, string value) { base["Storage"].IsArray = true; Ly.Formats.JsonObject obj = base["Storage"].AppendChild(""); obj["Key"].Value = key; obj["Value"].Value = value; //base["Storage"].AppendChild(key, value); }
public Arg() { base["Arg"]["ID"].Value = ""; Obj = base["Arg"]; Init(); this.Process_ElementID = ""; this.Process_ID = ""; }
public void SetAjaxScript(String TarID, String Url, Arg Arg) { base["Ajax"].IsArray = true; Ly.Formats.JsonObject obj = base["Ajax"].AppendChild(""); obj.InnerJson = Arg.OuterJson; obj["Type"].Value = "Script"; obj["ID"].Value = ""; obj["TarID"].Value = TarID; obj["Url"].Value = Url; obj["Status"].Value = ""; }
public void SetAjaxLoad(String TarID, String Id, String Url, Arg Arg, string Status) { base["Ajax"].IsArray = true; Ly.Formats.JsonObject obj = base["Ajax"].AppendChild(""); obj.InnerJson = Arg.OuterJson; obj["Type"].Value = "Load"; obj["ID"].Value = Id; obj["TarID"].Value = TarID; obj["Url"].Value = Url; obj["Status"].Value = Status; }
public void SetAjaxUI(String ID, String TarID, String Title, String Path, String Page, Arg Arg) { base["Ajax"].IsArray = true; Ly.Formats.JsonObject obj = base["Ajax"].AppendChild(""); obj.InnerJson = Arg.OuterJson; obj["Type"].Value = "UI"; obj["ID"].Value = ID; obj["TarID"].Value = TarID; obj["Title"].Value = Title; obj["Path"].Value = Path; obj["Page"].Value = Page; //Page.UI.Open(Obj.Ajax[i].ID, Obj.Ajax[i].TarID, Obj.Ajax[i].Title, Obj.Ajax[i].Path, Obj.Ajax[i].Page, Obj.Ajax[i].Arg); }
public void SetDebugLine(String Content) { base["Debug"].IsArray = true; Ly.Formats.JsonObject obj = base["Debug"].AppendChild(""); obj["Content"].Value = Content; obj["Line"].Value = "true"; //using (Ly.IO.Json js = new Ly.IO.Json()) { // js.Items["Content"].Value = Content; // js.Items["Line"].Value = "true"; // if (gszDebug != "") gszDebug += ","; // gszDebug += js.Object.ToString(); // base.Items["Debug"].Value = "[" + gszDebug + "]"; //} }
/// <summary> /// 设置存储数据 /// </summary> /// <param name="Content"></param> public void SetScript(string id, string src) { base["Scripts"].IsArray = true; Ly.Formats.JsonObject obj = base["Scripts"].AppendChild(""); obj["ID"].Value = id; obj["Src"].Value = src; //using (Ly.IO.Json js = new Ly.IO.Json()) { // js.Items["ID"].Value = id; // js.Items["Src"].Value = src; // if (gszScripts != "") gszScripts += ","; // gszScripts += js.Object.ToString(); // base.Items["Scripts"].Value = "[" + gszScripts + "]"; //} }
public void SetValue(String key, String value) { base["Values"].IsArray = true; Ly.Formats.JsonObject obj = base["Values"].AppendChild(""); obj["Type"].Value = "value"; obj["ID"].Value = key; obj["Value"].Value = value; //using (Ly.IO.Json js = new Ly.IO.Json()) { // js.Items["Type"].Value = "value"; // js.Items["ID"].Value = key; // js.Items["Value"].Value = value; // if (gstrValues != "") gstrValues += ","; // gstrValues += js.Object.ToString(); // base.Items["Values"].Value = "[" + gstrValues + "]"; //} }
public void SetPageOpen(String Url) { base["Ajax"].IsArray = true; Ly.Formats.JsonObject obj = base["Ajax"].AppendChild(""); obj["Type"].Value = "Page"; obj["ID"].Value = ""; obj["Url"].Value = Url; obj["Status"].Value = ""; //using (Ly.IO.Json js = new Ly.IO.Json()) { // js.Items["Type"].Value = "Page"; // js.Items["ID"].Value = ""; // js.Items["Url"].Value = Url; // js.Items["Status"].Value = ""; // if (gstrAjax != "") gstrAjax += ","; // gstrAjax += js.Object.ToString(); // base.Items["Ajax"].Value = "[" + gstrAjax + "]"; //} }
public void SetAjaxLoad(String Id, String Url, Arg Arg, string Status) { base["Ajax"].IsArray = true; Ly.Formats.JsonObject obj = base["Ajax"].AppendChild(""); obj.InnerJson = Arg.OuterJson; obj["Type"].Value = "Load"; obj["ID"].Value = Id; obj["TarID"].Value = ""; obj["Url"].Value = Url; obj["Status"].Value = Status; //using (Ly.IO.Json js = new Ly.IO.Json()) { // js.LoadFromString(Arg.ToString()); // js.Items["Type"].Value = "Load"; // js.Items["ID"].Value = Id; // js.Items["Url"].Value = Url; // js.Items["Status"].Value = Status; // if (gstrAjax != "") gstrAjax += ","; // gstrAjax += js.Object.ToString(); // base.Items["Ajax"].Value = "[" + gstrAjax + "]"; //} }
public Arg(ClsAjaxPage parent) { //parent.["Arg"]["ID"].Value = ""; base["Arg"]["ID"].Value = ""; Obj = base["Arg"]; Init(); this.Process_ElementID = parent.PageArgs.Process_ElementID; this.Process_ID = parent.PageArgs.Process_ID; this.Dialog_ElementID = parent.PageArgs.Dialog_ElementID; this.Dialog_ID = parent.PageArgs.Dialog_ID; this.UI = parent.PageArgs.UI; this.UID = parent.PageArgs.UID; this.UIMain = parent.PageArgs.UIMain; this.UITool = parent.PageArgs.UITool; this.UITitle = parent.PageArgs.UITitle; this.UIPath = parent.PageArgs.UIPath; this.Path = parent.PageArgs.Path; }