// 此方法供后台调用,用resultID查任务要求时间 public int GetAskingTimeByResultID(string strRstID, string strNodeType, ref string strStartTime, ref string strFinishTime) { TMisMonitorResultLogLogic objMomRstVo = new TMisMonitorResultLogLogic(); string strPlanId = objMomRstVo.GetPlanID(strRstID); return(getNodeTimeFrmDB(strPlanId, strNodeType, ref strStartTime, ref strFinishTime)); }
/// <summary> /// 历史数据 /// </summary> protected void GetLogInfo() { string strResultID = !string.IsNullOrEmpty(Request.QueryString["resultid"]) ? Request.QueryString["resultid"].ToString() : ""; TMisMonitorResultLogVo objVo = new TMisMonitorResultLogVo(); objVo.RESULT_ID = strResultID; objVo.SORT_FIELD = TMisMonitorResultLogVo.ID_FIELD; DataTable dt = new TMisMonitorResultLogLogic().SelectByTable(objVo); string strJson = CreateToJson(dt, dt.Rows.Count); Response.Write(strJson); Response.End(); }
// private string GetPlanID() { string strPlanId; if (Request["strPlanId"] != null) { strPlanId = Request["strPlanId"].ToString(); } else if (Request["strResultID"] != null) { string strResultID = Request["strResultID"].ToString(); TMisMonitorResultLogLogic objMomRstVo = new TMisMonitorResultLogLogic(); strPlanId = objMomRstVo.GetPlanID(strResultID); } else if (Request["strSampleID"] != null) { string strResultID = Request["strSampleID"].ToString(); TMisMonitorSampleInfoLogic objSampleLgc = new TMisMonitorSampleInfoLogic(); strPlanId = objSampleLgc.GetPlanID(strResultID); } else if (Request["strContratId"] != null) { string strTaskID = Request["strContratId"].ToString(); TMisMonitorTaskLogic objTakeLgc = new TMisMonitorTaskLogic(); strPlanId = objTakeLgc.GetPlanIDByContractID(strTaskID); } else { strPlanId = "error"; } return(strPlanId); }