Ejemplo n.º 1
0
    /// <summary>
    /// 将任务发送至下一环节
    /// </summary>
    /// <param name="strTaskId">任务ID</param>
    /// <returns></returns>
    public string SendToNext(string strTaskId, string iSample)
    {
        string strMsg    = "";
        bool   isSuccess = true;

        //if (new TMisMonitorResultLogic().isAllSend(strTaskId, "40"))
        if (isSuccess)
        {
            DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfoEx_QHD(LogInfo.UserInfo.ID, "duty_other_analyse_result", strTaskId, "03,021,02", "2", "40");
            foreach (DataRow row in objTable.Rows)
            {
                string strId = row["ID"].ToString();
                //根据子任务ID获取监测子任务审核表ID
                i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
                TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
                string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
                i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
                TMisMonitorSubtaskAppVo.ID                = strSubTaskAppId;
                TMisMonitorSubtaskAppVo.RESULT_CHECK      = LogInfo.UserInfo.ID;
                TMisMonitorSubtaskAppVo.RESULT_CHECK_DATE = DateTime.Now.ToString();
                new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
            }
            isSuccess = new TMisMonitorResultLogic().SendTaskCheckToNextFlow_QHD(strTaskId, LogInfo.UserInfo.ID, "03,021,02", "duty_other_analyse_result", "2", "40", "50", false, iSample);
        }
        else
        {
            isSuccess = false;
            strMsg    = "该环节需要汇合所有项目一起发送";
        }
        return(isSuccess == true ? "{\"result\":\"1\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"0\",\"msg\":\"" + strMsg + "\"}");
    }
Ejemplo n.º 2
0
    //发送到下一环节
    private string SendToNext(string strTaskId)
    {
        TMisMonitorSubtaskVo TMisMonitorSubtaskVo = new TMisMonitorSubtaskVo();

        TMisMonitorSubtaskVo.TASK_ID     = strTaskId;
        TMisMonitorSubtaskVo.TASK_STATUS = "023";
        DataTable objTable = new TMisMonitorSubtaskLogic().SelectByTable(TMisMonitorSubtaskVo);

        #region 审核人修改
        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.SAMPLING_QC_CHECK = LogInfo.UserInfo.ID;
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }
        #endregion

        //bool IsSuccess = new TMisMonitorResultLogic().TaskGoBackInSampleResultQcCheck(strTaskId, "023", "24");

        bool IsSuccess = new TMisMonitorResultLogic().SetSampleResultStatus(strTaskId, "023", "50");

        if (IsSuccess == true)
        {
            new TMisMonitorResultLogic().TaskGoBackInSampleResultQcCheck(strTaskId, "023", "03");
        }
        #region 注释
        //if (IsSuccess == true)
        //{
        //    if (new TMisMonitorResultLogic().allTaskIsFinish_ZZ(strTaskId, "24", "50"))
        //    {
        //        i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVo = new i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo();
        //        TMisMonitorTaskVo.ID = strTaskId;
        //        TMisMonitorTaskVo.TASK_STATUS = "09";
        //        new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Edit(TMisMonitorTaskVo);

        //        i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVoTemp = new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Details(strTaskId);
        //        if (TMisMonitorTaskVoTemp.CONTRACT_TYPE == "05")
        //        {
        //            //根据任务ID获取项目负责人
        //            string strProjectId = TMisMonitorTaskVoTemp.PROJECT_ID;
        //            TMisMonitorReportVo objMrUpdate = new TMisMonitorReportVo();
        //            objMrUpdate.IF_SEND = "1";
        //            objMrUpdate.REPORT_SCHEDULER = strProjectId;
        //            TMisMonitorReportVo objMrWhere = new TMisMonitorReportVo();
        //            objMrWhere.TASK_ID = strTaskId;
        //            new TMisMonitorReportLogic().Edit(objMrUpdate, objMrWhere);
        //        }
        //    }
        //}
        #endregion
        return(IsSuccess == true ? "1" : "0");
    }
    private string SendToNext(string strTaskId, string strTaskType)
    {
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfo_QHD(LogInfo.UserInfo.ID, "duty_other_analyse_control", strTaskId, "03,021,02", "2", "50");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_QC_CHECK      = LogInfo.UserInfo.ID;
            TMisMonitorSubtaskAppVo.RESULT_QC_CHECK_DATE = DateTime.Now.ToString();
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }

        bool IsSuccess = true;

        if (strTaskType != "1")     //非环境质量类的任务
        {
            IsSuccess = new TMisMonitorResultLogic().SendQcTaskToNextFlow(strTaskId, LogInfo.UserInfo.ID, "09", "duty_other_analyse_control");
            if (IsSuccess == true)
            {
                i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVo = new i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo();
                TMisMonitorTaskVo.ID          = strTaskId;
                TMisMonitorTaskVo.TASK_STATUS = "09";
                new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Edit(TMisMonitorTaskVo);
            }
        }
        else //环境质量类
        {
            IsSuccess = new TMisMonitorResultLogic().SendTaskCheckToNextFlow_QHD(strTaskId, LogInfo.UserInfo.ID, "03,021,02", "duty_other_analyse_result", "2", "50", "60", false, "");
            if (IsSuccess == true)
            {
                if (new TMisMonitorResultLogic().isAllSend(strTaskId, "60", false))
                {
                    IsSuccess = new TMisMonitorResultLogic().SendQcTaskToNextFlow(strTaskId, LogInfo.UserInfo.ID, "09", "duty_other_analyse_control");
                    if (IsSuccess == true)
                    {
                        i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVo = new i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo();
                        TMisMonitorTaskVo.ID          = strTaskId;
                        TMisMonitorTaskVo.TASK_STATUS = "09";
                        new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Edit(TMisMonitorTaskVo);
                    }
                }
            }
        }
        return(IsSuccess == true ? "1" : "0");
    }
Ejemplo n.º 4
0
    /// <summary>
    /// 将任务发送至下一环节
    /// </summary>
    /// <param name="strTaskId">任务ID</param>
    /// <returns></returns>
    public string SendToNext(string strTaskId, string iSample)
    {
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfoEx_QHD(LogInfo.UserInfo.ID, "duty_other_audit", strTaskId, "03,021,02", "2", "30");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID           = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_AUDIT = LogInfo.UserInfo.ID;
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }
        bool isSuccess = new TMisMonitorResultLogic().SendTaskCheckToNextFlow_QHD(strTaskId, LogInfo.UserInfo.ID, "03,021,02", "duty_other_audit", "2", "30", "40", false, iSample);

        return(isSuccess == true ? "1" : "0");
    }
Ejemplo n.º 5
0
    private string SendToNext(string strTaskId)
    {
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfo_QHD(LogInfo.UserInfo.ID, "duty_other_analyse_control", strTaskId, "03", "0", "40");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID           = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_CHECK = LogInfo.UserInfo.ID;
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }
        bool isSuccess = new TMisMonitorResultLogic().SendTaskCheckToNextFlow_QHD(strTaskId, LogInfo.UserInfo.ID, "03", "duty_other_analyse_control", "0", "40", "50", true, "");

        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 将任务发送至下一环节
    /// </summary>
    /// <param name="strTaskId">任务ID</param>
    /// <returns></returns>
    public string SendToNext(string strTaskId)
    {
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfo_QHD(LogInfo.UserInfo.ID, "duty_other_analyse_result", strTaskId, "03", "0", "30");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            TMisMonitorSubtaskAppVoTemp            = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp);
            string strSubTaskAppId = TMisMonitorSubtaskAppVoTemp.ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID           = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_AUDIT = LogInfo.UserInfo.ID;
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }

        bool   isSuccess = false;
        string strMsg    = "";

        isSuccess = new TMisMonitorResultLogic().SendTaskCheckToNextFlow_QY(strTaskId, LogInfo.UserInfo.ID, "03", "30", "50");
        bool IsAnyscene     = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskLogic().isExistAnyscene(strTaskId, "");
        bool IsAnysceneDept = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskLogic().isExistAnysceneDept(strTaskId, "");

        if (IsAnyscene && IsAnysceneDept)
        {
            strMsg = "现场项目结果核录、分析室主任审核";
        }
        else if (IsAnyscene)
        {
            strMsg = "分析室主任审核";
        }
        else if (IsAnysceneDept)
        {
            strMsg = "现场项目结果核录";
        }

        return(isSuccess == true ? "{\"result\":\"1\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"0\",\"msg\":\"" + strMsg + "\"}");
    }
    private string SendToNext(string strTaskId)
    {
        //记录当前分析环节的发送人
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfo_QHD(LogInfo.UserInfo.ID, "qc_manager_audit", strTaskId, "03", "0", "60");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_QC_CHECK = LogInfo.UserInfo.ID;
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }

        //分析环节任务完结状态改变
        bool IsSuccess = new TMisMonitorResultLogic().SendQcTaskToNextFlow(strTaskId, LogInfo.UserInfo.ID, "09", "qc_manager_audit");

        if (IsSuccess == true)
        {
            //如果是环境质量将自动对数据进行填报
            foreach (DataRow row in objTable.Rows)
            {
                string strSubTaskId  = row["ID"].ToString();
                string strMonitorId  = row["MONITOR_ID"].ToString();
                string strSampleDate = row["SAMPLE_FINISH_DATE"].ToString();
                i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskVo TMisMonitorSubtaskVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskVo();
                TMisMonitorSubtaskVo.ID                 = strSubTaskId;
                TMisMonitorSubtaskVo.MONITOR_ID         = strMonitorId;
                TMisMonitorSubtaskVo.SAMPLE_FINISH_DATE = strSampleDate;
                if (strMonitorId == "EnvRiver" || strMonitorId == "EnvReservoir" || strMonitorId == "EnvDrinking" || strMonitorId == "EnvDrinkingSource" || strMonitorId == "EnvStbc" || strMonitorId == "EnvMudRiver" || strMonitorId == "EnvPSoild" || strMonitorId == "EnvSoil" || strMonitorId == "EnvAir" || strMonitorId == "EnvSpeed" || strMonitorId == "EnvDust" || strMonitorId == "EnvRain")
                {
                    new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskLogic().SetEnvFillData(TMisMonitorSubtaskVo, false, "");
                }
                if (strMonitorId == "AreaNoise" || strMonitorId == "EnvRoadNoise" || strMonitorId == "FunctionNoise")
                {
                    new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskLogic().SetEnvFillData(TMisMonitorSubtaskVo, true, "");
                }
            }
            if (new TMisMonitorResultLogic().allTaskIsFinish_ZZ(strTaskId, "24", "60"))
            {
                i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVo = new i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo();
                TMisMonitorTaskVo.ID          = strTaskId;
                TMisMonitorTaskVo.TASK_STATUS = "09";
                new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Edit(TMisMonitorTaskVo);

                i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVoTemp = new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Details(strTaskId);
                if (TMisMonitorTaskVoTemp.CONTRACT_TYPE == "05")
                {
                    //根据任务ID获取项目负责人
                    string strProjectId             = TMisMonitorTaskVoTemp.PROJECT_ID;
                    TMisMonitorReportVo objMrUpdate = new TMisMonitorReportVo();
                    objMrUpdate.IF_SEND          = "1";
                    objMrUpdate.REPORT_SCHEDULER = strProjectId;
                    TMisMonitorReportVo objMrWhere = new TMisMonitorReportVo();
                    objMrWhere.TASK_ID = strTaskId;
                    new TMisMonitorReportLogic().Edit(objMrUpdate, objMrWhere);
                }
            }
        }
        return(IsSuccess == true ? "1" : "0");
    }
Ejemplo n.º 8
0
    private string SendToNext(string strTaskId)
    {
        DataTable objTable = new TMisMonitorResultLogic().geResultChecktItemTypeInfo_QHD(LogInfo.UserInfo.ID, "analysis_result_qccheck", strTaskId, "03", "0", "40");

        foreach (DataRow row in objTable.Rows)
        {
            string strId = row["ID"].ToString();
            //根据子任务ID获取监测子任务审核表ID
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVoTemp = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVoTemp.SUBTASK_ID = strId;
            string strSubTaskAppId = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Details(TMisMonitorSubtaskAppVoTemp).ID;
            i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo TMisMonitorSubtaskAppVo = new i3.ValueObject.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppVo();
            TMisMonitorSubtaskAppVo.ID = strSubTaskAppId;
            TMisMonitorSubtaskAppVo.RESULT_QC_CHECK      = LogInfo.UserInfo.ID;
            TMisMonitorSubtaskAppVo.RESULT_QC_CHECK_DATE = DateTime.Now.ToString();
            new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskAppLogic().Edit(TMisMonitorSubtaskAppVo);
        }
        string strMsg = "";

        bool isSuccess = new TMisMonitorResultLogic().SendQcTaskToNextFlowForQy(strTaskId, LogInfo.UserInfo.ID, "09", "analysis_result_check");

        if (isSuccess == true)
        {
            bool IsFinish = false;
            IsFinish = new i3.BusinessLogic.Channels.Mis.Monitor.SubTask.TMisMonitorSubtaskLogic().isFinishSubTask(strTaskId, true);
            if (IsFinish == true)
            {
                i3.ValueObject.Channels.Mis.Monitor.Task.TMisMonitorTaskVo TMisMonitorTaskVo = new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Details(strTaskId);
                TMisMonitorTaskVo.ID          = strTaskId;
                TMisMonitorTaskVo.TASK_STATUS = "09";
                if (TMisMonitorTaskVo.TASK_TYPE == "1")
                {
                    objTable = new TMisMonitorSubtaskLogic().SelectByTable(new TMisMonitorSubtaskVo()
                    {
                        TASK_ID = strTaskId
                    });
                    //如果是环境质量将自动对数据进行填报
                    foreach (DataRow row in objTable.Rows)
                    {
                        string strSubTaskId  = row["ID"].ToString();
                        string strMonitorId  = row["MONITOR_ID"].ToString();
                        string strAskDate    = row["SAMPLE_ASK_DATE"].ToString();
                        string strSampleDate = row["SAMPLE_FINISH_DATE"].ToString();
                        TMisMonitorSubtaskVo TMisMonitorSubtaskVo = new TMisMonitorSubtaskVo();
                        TMisMonitorSubtaskVo.ID                 = strSubTaskId;
                        TMisMonitorSubtaskVo.MONITOR_ID         = strMonitorId;
                        TMisMonitorSubtaskVo.SAMPLE_ASK_DATE    = strAskDate;
                        TMisMonitorSubtaskVo.SAMPLE_FINISH_DATE = strSampleDate;
                        if (strMonitorId == "EnvRiver" || strMonitorId == "EnvReservoir" || strMonitorId == "EnvDrinking" || strMonitorId == "EnvDrinkingSource" || strMonitorId == "EnvStbc" || strMonitorId == "EnvMudRiver" || strMonitorId == "EnvPSoild" || strMonitorId == "EnvSoil" || strMonitorId == "EnvAir" || strMonitorId == "EnvSpeed" || strMonitorId == "EnvDust" || strMonitorId == "EnvRain")
                        {
                            new TMisMonitorSubtaskLogic().SetEnvFillData(TMisMonitorSubtaskVo, false, TMisMonitorTaskVo.SAMPLE_SEND_MAN);
                        }
                        if (strMonitorId == "AreaNoise" || strMonitorId == "EnvRoadNoise" || strMonitorId == "FunctionNoise")
                        {
                            new TMisMonitorSubtaskLogic().SetEnvFillData(TMisMonitorSubtaskVo, true, TMisMonitorTaskVo.SAMPLE_SEND_MAN);
                        }
                    }

                    strMsg = "数据填报";
                }
                else
                {
                    if (TMisMonitorTaskVo.REPORT_HANDLE == "")
                    {
                        TMisMonitorTaskVo.REPORT_HANDLE = getNextReportUserID("Report_UserID");
                    }
                    strMsg = "报告办理";
                }
                new i3.BusinessLogic.Channels.Mis.Monitor.Task.TMisMonitorTaskLogic().Edit(TMisMonitorTaskVo);
            }
        }

        return(isSuccess == true ? "{\"result\":\"1\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"0\",\"msg\":\"" + strMsg + "\"}");
    }