public RES Post() { var keyName = this.Request.Form["keyName"]; var method = this.Request.Form["method"]; var taskId = this.Request.Form["taskId"]; var jsonReq = this.Request.Form["jsonReq"]; var jsonRes = this.Request.Form["jsonRes"]; var res = RES.FAIL("keyName参数未匹配"); if ("RZRQ" == keyName || "ZJLX" == keyName || "CWFX" == keyName || "BXCGTJ" == keyName || "BXCGMXURL" == keyName || "BXCJMX" == keyName || "JGDYLB" == keyName) { res = DataProcNode.GetInst().SaveProcData(keyName, taskId, jsonReq, jsonRes); } else if ("BXCODE" == keyName) { res = DataProcNode.GetInst().Update北向代码(jsonReq, jsonRes); } else if ("ALLCODE" == keyName) { res = DataProcNode.GetInst().UpdateALLCode(jsonReq, jsonRes); } else if ("ALLConception" == keyName) { res = DataProcNode.GetInst().UpdateALLConception(jsonReq, jsonRes); } else if ("JG" == keyName) { res = DataProcNode.GetInst().Update所有机构(jsonReq, jsonRes); } else if ("BXCGMXURLTASK" == keyName) { res = DataProcNode.GetInst().Update所有北向持股明细链接(jsonReq, jsonRes); } else if ("SHORTNEWS" == keyName) { res = DataProcNode.GetInst().UpdateShortNews(keyName, jsonReq, jsonRes); } else if ("ARTICLE" == keyName) { res = DataProcNode.GetInst().UpdateArticle(keyName, jsonReq, jsonRes); } return(res); }
public RES Post() { var className = this.Request.Form["class"]; var method = this.Request.Form["method"]; var jsonReq = this.Request.Form["jsonReq"]; var jsonRes = this.Request.Form["jsonRes"]; var res = RES.FAIL("method参数未匹配"); if ("CreateTask北向持股统计" == method) { res = DataProcNode.GetInst().CreateTask北向持股统计(jsonReq, jsonRes); } else if ("CreateTask融资融券" == method) { res = DataProcNode.GetInst().CreateTask融资融券(jsonReq, jsonRes); } else if ("CreateTask资金流向" == method) { res = DataProcNode.GetInst().CreateTask资金流向(jsonReq, jsonRes); } else if ("CreateTask财务分析" == method) { res = DataProcNode.GetInst().CreateTask财务分析(jsonReq, jsonRes); } else if ("CreateTask北向成交明细" == method) { res = DataProcNode.GetInst().CreateTask北向成交明细(jsonReq, jsonRes); } else if ("CreateTask机构调研列表" == method) { res = DataProcNode.GetInst().CreateTask机构调研列表(jsonReq, jsonRes); } else if ("" == method) { } return(res); }
public RES Get(string keyName, string taskId) { var res = DataProcNode.GetInst().GetTask(keyName, taskId); return(res); }