/// <summary> /// 查询节点异常情况 /// </summary> /// <param name="req"></param> /// <returns></returns> public string GetNodeErrorLogsN(string req) { try { reqdata = this.AnaRequestData(req); SSY_NODE_ERRORS model = this.json.Deserialize <SSY_NODE_ERRORS>(reqdata.reqdata); string cols = "id|url_addr|node_typs|error_desc|remarks|timestampss"; string colTypes = "String|String|String|String|String|String"; string useNodeErrorLog = APPConfig.GetAPPConfig().GetConfigValue("xmldataPath", "") + "\\SSY_NODE_ERRORS.xml"; System.Data.DataTable dtXmlNodeErrors = Common.Utility.GetTableFromXml(cols, colTypes, useNodeErrorLog); List <SSY_NODE_ERRORS> nodeErrors = new List <SSY_NODE_ERRORS>(); if (Utility.DtHasData(dtXmlNodeErrors)) { nodeErrors = UtilitysForT <SSY_NODE_ERRORS> .GetListsObj(dtXmlNodeErrors); } if (nodeErrors.Count > 0) { resdata = this.MakeResponseData("0", string.Empty, json.Serialize(nodeErrors), string.Empty); } else { resdata = this.MakeResponseData("0", this.GetI18nLangItem("noFindNodeErrorLog", this.i18nModuleCurrLang), string.Empty, string.Empty); } } catch (Exception ex) { resdata = this.MakeResponseData("0", this.GetI18nLangItem("getNodeErrorLogErr", this.i18nModuleCurrLang) + ex.Message, string.Empty, string.Empty); } return(json.Serialize(resdata)); }
/// <summary> /// 获取节点中心同源单点数据操作任务状态 /// </summary> /// <param name="req"></param> /// <returns></returns> public string GetSameDataActionTaskStatusN(string req) { try { reqdata = this.AnaRequestData(req); SSY_DATA_ACTION_TASK model = this.json.Deserialize <SSY_DATA_ACTION_TASK>(reqdata.reqdata); string cols = "id|data_real_conn|action_sql|action_sql_params|action_status|execute_cnt|max_execute_cnt|remarks|timestampss"; string colTypes = "String|String|String|String|String|String|String|String|String"; string nodeDataAction = APPConfig.GetAPPConfig().GetConfigValue("xmldataPath", "") + "\\SSY_DATA_ACTION_TASK.xml"; System.Data.DataTable dtdataActionTask = Common.Utility.GetTableFromXml(cols, colTypes, nodeDataAction); List <SSY_DATA_ACTION_TASK> dataActionTask = new List <SSY_DATA_ACTION_TASK>(); if (Utility.DtHasData(dtdataActionTask)) { dataActionTask = UtilitysForT <SSY_DATA_ACTION_TASK> .GetListsObj(dtdataActionTask); } if (dataActionTask.Count > 0) { resdata = this.MakeResponseData("0", string.Empty, json.Serialize(dataActionTask), string.Empty); } else { resdata = this.MakeResponseData("0", this.GetI18nLangItem("noFindSameDataActionTaskStatu", this.i18nModuleCurrLang), string.Empty, string.Empty); } } catch (Exception ex) { resdata = this.MakeResponseData("0", this.GetI18nLangItem("getSameDataActionTaskStatuErr", this.i18nModuleCurrLang) + ex.Message, string.Empty, string.Empty); } return(json.Serialize(resdata)); }
/// <summary> /// 获取节点中心服务站点服务 /// </summary> /// <param name="model"></param> /// <returns></returns> public SSY_ResponseResult <IEnumerable <SSY_SERVICESITE_SERVICES> > GetNodeServiceSiteService(SSY_SERVICESITE_SERVICES model) { string cols = "id|sitecode|servicecode|servicename|service_relaUrl|remarks|timestampss"; string colTypes = "String|String|String|String|String|String|String"; string serviceSiteServicePath = APPConfig.GetAPPConfig().GetConfigValue("xmldataPath", "") + "\\SSY_SERVICESITE_SERVICES.xml"; System.Data.DataTable dtserviceSiteService = Common.Utility.GetTableFromXml(cols, colTypes, serviceSiteServicePath); List <SSY_SERVICESITE_SERVICES> serviceSiteServiceList = new List <SSY_SERVICESITE_SERVICES>(); if (Utility.DtHasData(dtserviceSiteService)) { serviceSiteServiceList = UtilitysForT <SSY_SERVICESITE_SERVICES> .GetListsObj(dtserviceSiteService); } return(new SSY_ResponseResult <IEnumerable <SSY_SERVICESITE_SERVICES> >(serviceSiteServiceList)); }