/// <summary> /// Read System Configs form "config" json text /// </summary> public static void ReadSystemConfig() { JsonObject SystemConfigs = (JsonObject)ConfigReader.ReadJsonConfig("Configs/config", null); HttpHost = Utility.CTString(SystemConfigs["HttpHost"]); WebSocketHost = Utility.CTString(SystemConfigs["WebSocketHost"]); version = Utility.CTString(SystemConfigs["version"]); fps = Utility.CTInt(SystemConfigs["fps"]); platform = (WorkPlatform)Utility.CTInt(SystemConfigs["platform"]); JsonObject jsonConfigs = (JsonObject)((JsonObject)ConfigReader.ReadJsonConfig("Configs/version", null))["configs"]; ConfigReader.LoadAllConfig(jsonConfigs); }
public ActionResult SetRead(string id) { T_US_Message message = WorkPlatform.ReadMessage(id); if (message == null || string.IsNullOrEmpty(message.Url)) { return(this.Direct()); } if (message.NewWindow != null && message.NewWindow == true) { X.AddScript(string.Format("parent.Home.NewWindow('{0}','{1}')", message.Url, message.Title)); Session.Add("NewWindow", true); } else { X.AddScript(string.Format("location.href='{0}'", message.Url)); } return(this.Direct()); }
public ActionResult GetCcMessage(StoreRequestParameters parameters) { return(this.Store(WorkPlatform.GetCcMessage().GetPage(parameters))); }
public ActionResult GetWorkreport() { return(this.Direct(WorkPlatform.GetWorkreport())); }
public ActionResult GetCheck() { return(this.Direct(WorkPlatform.GetCheck())); }
public ActionResult GetUnreadMessage() { return(this.Direct(WorkPlatform.GetUnreadMessage())); }
public ActionResult GetCalendarData() { return(this.Direct(WorkPlatform.GetCalendarData())); }