/// <summary>
        /// 对象编辑
        /// </summary>
        /// <param name="tMisMonitorQcTwin_UpdateSet">UpdateSet用户对象</param>
        /// <param name="tMisMonitorQcTwin_UpdateWhere">UpdateWhere用户对象</param>
        /// <returns>是否成功</returns>
        public bool Edit(TMisMonitorQcTwinVo tMisMonitorQcTwin_UpdateSet, TMisMonitorQcTwinVo tMisMonitorQcTwin_UpdateWhere)
        {
            string strSQL = SqlHelper.BuildUpdateExpress(tMisMonitorQcTwin_UpdateSet, TMisMonitorQcTwinVo.T_MIS_MONITOR_QC_TWIN_TABLE);

            strSQL += this.BuildWhereStatement(tMisMonitorQcTwin_UpdateWhere);
            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
        /// <summary>
        /// 对象编辑
        /// </summary>
        /// <param name="tMisMonitorQcTwin">用户对象</param>
        /// <returns>是否成功</returns>
        public bool Edit(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = SqlHelper.BuildUpdateExpress(tMisMonitorQcTwin, TMisMonitorQcTwinVo.T_MIS_MONITOR_QC_TWIN_TABLE);

            strSQL += string.Format(" where ID='{0}' ", tMisMonitorQcTwin.ID);
            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
        /// <summary>
        /// 获取对象DataTable
        /// </summary>
        /// <param name="tMisMonitorQcTwin">对象</param>
        /// <param name="iIndex">起始页码</param>
        /// <param name="iCount">每页数目</param>
        /// <returns>返回结果</returns>
        public DataTable SelectByTable(TMisMonitorQcTwinVo tMisMonitorQcTwin, int iIndex, int iCount)
        {
            string strSQL = " select * from T_MIS_MONITOR_QC_TWIN {0} ";

            strSQL = String.Format(strSQL, BuildWhereStatement(tMisMonitorQcTwin));
            return(SqlHelper.ExecuteDataTable(BuildPagerExpress(strSQL, iIndex, iCount)));
        }
        /// <summary>
        /// 对象删除
        /// </summary>
        /// <param name="Id">ID</param>
        /// <returns>是否成功</returns>
        public bool Delete(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = "delete from T_MIS_MONITOR_QC_TWIN ";

            strSQL += this.BuildWhereStatement(tMisMonitorQcTwin);

            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tMisMonitorQcTwin_UpdateSet">UpdateSet用户对象</param>
 /// <param name="tMisMonitorQcTwin_UpdateWhere">UpdateWhere用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TMisMonitorQcTwinVo tMisMonitorQcTwin_UpdateSet, TMisMonitorQcTwinVo tMisMonitorQcTwin_UpdateWhere)
 {
     return(access.Edit(tMisMonitorQcTwin_UpdateSet, tMisMonitorQcTwin_UpdateWhere));
 }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tMisMonitorQcTwin">用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.Edit(tMisMonitorQcTwin));
 }
 /// <summary>
 /// 对象添加
 /// </summary>
 /// <param name="sysRole">对象</param>
 /// <returns>是否成功</returns>
 public bool Create(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.Create(tMisMonitorQcTwin));
 }
        /// <summary>
        /// 对象添加
        /// </summary>
        /// <param name="tMisMonitorQcTwin">对象</param>
        /// <returns>是否成功</returns>
        public bool Create(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = SqlHelper.BuildInsertExpress(tMisMonitorQcTwin, TMisMonitorQcTwinVo.T_MIS_MONITOR_QC_TWIN_TABLE);

            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
 /// <summary>
 /// 根据对象获取全部数据,用Table承载
 ///  数据量较小时使用【不推荐】
 /// </summary>
 /// <param name="tMisMonitorQcTwin"></param>
 /// <returns></returns>
 public DataTable SelectByTable(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.SelectByTable(tMisMonitorQcTwin));
 }
 /// <summary>
 /// 获取对象List
 /// </summary>
 /// <param name="tMisMonitorQcTwin">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public List <TMisMonitorQcTwinVo> SelectByObject(TMisMonitorQcTwinVo tMisMonitorQcTwin, int iIndex, int iCount)
 {
     return(access.SelectByObject(tMisMonitorQcTwin, iIndex, iCount));
 }
 /// <summary>
 /// 获得查询结果总行数,用于分页
 /// </summary>
 /// <param name="tMisMonitorQcTwin">对象</param>
 /// <returns>返回行数</returns>
 public int GetSelectResultCount(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.GetSelectResultCount(tMisMonitorQcTwin));
 }
        /// <summary>
        /// 获取对象List
        /// </summary>
        /// <param name="tMisMonitorQcTwin">对象</param>
        /// <param name="iIndex">起始页码</param>
        /// <param name="iCount">每页数目</param>
        /// <returns>返回结果</returns>
        public List <TMisMonitorQcTwinVo> SelectByObject(TMisMonitorQcTwinVo tMisMonitorQcTwin, int iIndex, int iCount)
        {
            string strSQL = String.Format("select * from  T_MIS_MONITOR_QC_TWIN " + this.BuildWhereStatement(tMisMonitorQcTwin));

            return(SqlHelper.ExecuteObjectList(tMisMonitorQcTwin, BuildPagerExpress(strSQL, iIndex, iCount)));
        }
        /// <summary>
        /// 对象明细
        /// </summary>
        /// <param name="tMisMonitorQcTwin">对象条件</param>
        /// <returns>对象</returns>
        public TMisMonitorQcTwinVo Details(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = String.Format("select * from  T_MIS_MONITOR_QC_TWIN " + this.BuildWhereStatement(tMisMonitorQcTwin));

            return(SqlHelper.ExecuteObject(new TMisMonitorQcTwinVo(), strSQL));
        }
        /// <summary>
        /// 获得查询结果总行数,用于分页
        /// </summary>
        /// <param name="tMisMonitorQcTwin">对象</param>
        /// <returns>返回行数</returns>
        public int GetSelectResultCount(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = "select Count(*) from T_MIS_MONITOR_QC_TWIN " + this.BuildWhereStatement(tMisMonitorQcTwin);

            return(Convert.ToInt32(SqlHelper.ExecuteScalar(strSQL)));
        }
        /// <summary>
        /// 根据对象构造条件语句
        /// </summary>
        /// <param name="tMisMonitorQcTwin"></param>
        /// <returns></returns>
        public string BuildWhereStatement(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            StringBuilder strWhereStatement = new StringBuilder(" Where 1=1 ");

            if (null != tMisMonitorQcTwin)
            {
                //ID
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.ID.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND ID = '{0}'", tMisMonitorQcTwin.ID.ToString()));
                }
                //原始样分析结果 ID
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.RESULT_ID_SRC.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND RESULT_ID_SRC = '{0}'", tMisMonitorQcTwin.RESULT_ID_SRC.ToString()));
                }
                //平行样分析结果ID1
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.RESULT_ID_TWIN1.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND RESULT_ID_TWIN1 = '{0}'", tMisMonitorQcTwin.RESULT_ID_TWIN1.ToString()));
                }
                //平行样分析结果ID2
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.RESULT_ID_TWIN2.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND RESULT_ID_TWIN2 = '{0}'", tMisMonitorQcTwin.RESULT_ID_TWIN2.ToString()));
                }
                //平行样测定值1
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.TWIN_RESULT1.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND TWIN_RESULT1 = '{0}'", tMisMonitorQcTwin.TWIN_RESULT1.ToString()));
                }
                //平行样测定值2
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.TWIN_RESULT2.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND TWIN_RESULT2 = '{0}'", tMisMonitorQcTwin.TWIN_RESULT2.ToString()));
                }
                //平行测定均值
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.TWIN_AVG.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND TWIN_AVG = '{0}'", tMisMonitorQcTwin.TWIN_AVG.ToString()));
                }
                //相对偏差(%)
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.TWIN_OFFSET.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND TWIN_OFFSET = '{0}'", tMisMonitorQcTwin.TWIN_OFFSET.ToString()));
                }
                //是否合格
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.TWIN_ISOK.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND TWIN_ISOK = '{0}'", tMisMonitorQcTwin.TWIN_ISOK.ToString()));
                }
                //质控类别
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.QC_TYPE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND QC_TYPE = '{0}'", tMisMonitorQcTwin.QC_TYPE.ToString()));
                }
                //备注1
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.REMARK1.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK1 = '{0}'", tMisMonitorQcTwin.REMARK1.ToString()));
                }
                //备注2
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.REMARK2.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK2 = '{0}'", tMisMonitorQcTwin.REMARK2.ToString()));
                }
                //备注3
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.REMARK3.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK3 = '{0}'", tMisMonitorQcTwin.REMARK3.ToString()));
                }
                //备注4
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.REMARK4.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK4 = '{0}'", tMisMonitorQcTwin.REMARK4.ToString()));
                }
                //备注5
                if (!String.IsNullOrEmpty(tMisMonitorQcTwin.REMARK5.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK5 = '{0}'", tMisMonitorQcTwin.REMARK5.ToString()));
                }
            }
            return(strWhereStatement.ToString());
        }
 /// <summary>
 /// 对象删除
 /// </summary>
 /// <param name="Id">ID</param>
 /// <returns>是否成功</returns>
 public bool Delete(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.Delete(tMisMonitorQcTwin));
 }
 public TMisMonitorQcTwinLogic(TMisMonitorQcTwinVo _tMisMonitorQcTwin)
 {
     tMisMonitorQcTwin = _tMisMonitorQcTwin;
     access            = new TMisMonitorQcTwinAccess();
 }
        /// <summary>
        /// 根据对象获取全部数据,用Table承载
        ///  数据量较小时使用【不推荐】
        /// </summary>
        /// <param name="tMisMonitorQcTwin"></param>
        /// <returns></returns>
        public DataTable SelectByTable(TMisMonitorQcTwinVo tMisMonitorQcTwin)
        {
            string strSQL = "select * from T_MIS_MONITOR_QC_TWIN " + this.BuildWhereStatement(tMisMonitorQcTwin);

            return(SqlHelper.ExecuteDataTable(strSQL));
        }
 /// <summary>
 /// 对象明细
 /// </summary>
 /// <param name="tMisMonitorQcTwin">对象条件</param>
 /// <returns>对象</returns>
 public TMisMonitorQcTwinVo Details(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.Details(tMisMonitorQcTwin));
 }
    /// <summary>
    /// 新增现场平行质控信息
    /// </summary>
    /// <returns></returns>
    private static bool AddQcTwinInfo(string strSampleID, string strQcType, string strListQc3, string strQc3Count)
    {
        bool   IsSuccess                  = true;
        string strOldResultID             = "";
        TMisMonitorSampleInfoVo objSample = new TMisMonitorSampleInfoLogic().Details(strSampleID);

        objSample.ID                    = GetSerialNumber("MonitorSampleId");
        objSample.QC_TYPE               = strQcType;
        objSample.QC_SOURCE_ID          = strSampleID;
        objSample.SAMPLE_CODE           = GetSampleCode(strSampleID);
        objSample.SAMPLECODE_CREATEDATE = DateTime.Now.ToString("yyyy-MM-dd");
        if (strQcType == "4")
        {
            objSample.SAMPLE_NAME += "密码平行";
        }
        else
        {
            objSample.SAMPLE_NAME += "现场平行";
        }

        if (!new TMisMonitorSampleInfoLogic().Create(objSample))
        {
            IsSuccess = false;
        }

        for (int i = 0; i < strListQc3.Split(',').Length; i++)
        {
            TMisMonitorResultVo objResult = new TMisMonitorResultVo();
            objResult.SAMPLE_ID = strSampleID;
            objResult.QC_TYPE   = "0";
            objResult.ITEM_ID   = strListQc3.Split(',')[i];
            objResult           = new TMisMonitorResultLogic().Details(objResult);

            strOldResultID         = objResult.ID;
            objResult.ID           = GetSerialNumber("MonitorResultId");
            objResult.SAMPLE_ID    = objSample.ID;
            objResult.QC_TYPE      = strQcType;
            objResult.QC_SOURCE_ID = strOldResultID;
            objResult.SOURCE_ID    = strOldResultID;
            objResult.QC           = strQC;
            if (!new TMisMonitorResultLogic().Create(objResult))
            {
                IsSuccess = false;
            }
            InsertResultAPP(objResult.ID);

            TMisMonitorQcTwinVo objQcTwin = new TMisMonitorQcTwinVo();
            objQcTwin.ID              = GetSerialNumber("QcTwinId");
            objQcTwin.RESULT_ID_SRC   = strOldResultID;
            objQcTwin.RESULT_ID_TWIN1 = objResult.ID;
            objQcTwin.QC_TYPE         = strQcType;
            if (!new TMisMonitorQcTwinLogic().Create(objQcTwin))
            {
                IsSuccess = false;
            }
        }
        if (strQc3Count == "2")
        {
            objSample.ID = GetSerialNumber("MonitorSampleId");
            if (strQcType == "4")
            {
                objSample.SAMPLE_NAME += "密码平行2";
            }
            else
            {
                objSample.SAMPLE_NAME += "现场平行2";
            }
            objSample.SAMPLE_CODE           = GetSampleCode(strSampleID);
            objSample.SAMPLECODE_CREATEDATE = DateTime.Now.ToString("yyyy-MM-dd");
            if (!new TMisMonitorSampleInfoLogic().Create(objSample))
            {
                IsSuccess = false;
            }

            for (int i = 0; i < strListQc3.Split(',').Length; i++)
            {
                TMisMonitorResultVo objResult = new TMisMonitorResultVo();
                objResult.SAMPLE_ID = strSampleID;
                objResult.QC_TYPE   = "0";
                objResult.ITEM_ID   = strListQc3.Split(',')[i];
                objResult           = new TMisMonitorResultLogic().Details(objResult);

                strOldResultID         = objResult.ID;
                objResult.ID           = GetSerialNumber("MonitorResultId");
                objResult.SAMPLE_ID    = objSample.ID;
                objResult.QC_TYPE      = strQcType;
                objResult.QC_SOURCE_ID = strOldResultID;
                objResult.SOURCE_ID    = strOldResultID;
                objResult.QC           = strQC;
                if (!new TMisMonitorResultLogic().Create(objResult))
                {
                    IsSuccess = false;
                }
                InsertResultAPP(objResult.ID);

                TMisMonitorQcTwinVo objQcTwin = new TMisMonitorQcTwinVo();
                objQcTwin.RESULT_ID_SRC = strOldResultID;
                objQcTwin.QC_TYPE       = strQcType;
                objQcTwin = new TMisMonitorQcTwinLogic().Details(objQcTwin);
                objQcTwin.TWIN_RESULT2 = objResult.ID;
                if (!new TMisMonitorQcTwinLogic().Edit(objQcTwin))
                {
                    IsSuccess = false;
                }
            }
        }

        return(IsSuccess);
    }
 /// <summary>
 /// 获取对象DataTable
 /// </summary>
 /// <param name="tMisMonitorQcTwin">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public DataTable SelectByTable(TMisMonitorQcTwinVo tMisMonitorQcTwin, int iIndex, int iCount)
 {
     return(access.SelectByTable(tMisMonitorQcTwin, iIndex, iCount));
 }
 /// <summary>
 /// 根据对象特征获取单一对象
 /// </summary>
 /// <param name="tMisMonitorQcTwin">对象</param>
 /// <returns></returns>
 public TMisMonitorQcTwinVo SelectByObject(TMisMonitorQcTwinVo tMisMonitorQcTwin)
 {
     return(access.SelectByObject(tMisMonitorQcTwin));
 }
    private static bool createQcInfo(string strSampleID, string strQcType, string strItemId)
    {
        bool isSuccess = true;

        if (strItemId == "")
        {
            return(isSuccess);
        }

        TMisMonitorSampleInfoVo objSample = new TMisMonitorSampleInfoLogic().Details(strSampleID);
        string strQcSampleId = GetSerialNumber("MonitorSampleId");

        objSample.ID           = strQcSampleId;
        objSample.QC_TYPE      = strQcType;
        objSample.QC_SOURCE_ID = strSampleID;
        //objSample.SAMPLE_CODE = GetSampleCode_QHD(strSampleID);
        //objSample.SAMPLE_CODE = GetSampleCode(strSampleID);
        objSample.SAMPLECODE_CREATEDATE = DateTime.Now.ToString("yyyy-MM-dd");
        if (strQcType == "3")
        {
            objSample.SAMPLE_NAME += "现场平行";
        }
        if (strQcType == "4")
        {
            objSample.SAMPLE_NAME += "密码平行";
        }

        //在样品表中添加样品数据
        if (!new TMisMonitorSampleInfoLogic().Create(objSample))
        {
            isSuccess = false;
        }

        //遍历监测项目信息,将监测项目信息添加到结果表、结果分析执行表、平行样结果表中
        for (int i = 0; i < strItemId.Split(',').Length; i++)
        {
            //根据需要做质控的监测项目获取原始样的结果表ID
            TMisMonitorResultVo objSourceResult = new TMisMonitorResultVo();
            objSourceResult.SAMPLE_ID = strSampleID;
            objSourceResult.QC_TYPE   = "0";
            objSourceResult.ITEM_ID   = strItemId.Split(',')[i];
            TMisMonitorResultVo objResult = new TMisMonitorResultLogic().Details(objSourceResult);
            string strSourceId            = objResult.ID;

            //将数据写入结果表中
            objResult.ID           = GetSerialNumber("MonitorResultId");
            objResult.SAMPLE_ID    = strQcSampleId;
            objResult.QC_TYPE      = strQcType;
            objResult.SOURCE_ID    = strSourceId;
            objResult.QC_SOURCE_ID = strSourceId;
            if (!new TMisMonitorResultLogic().Create(objResult))
            {
                isSuccess = false;
            }

            //将数据写入结果分析执行表中
            InsertResultAPP(objResult.ID);

            //将结果写入分析样结果表中
            TMisMonitorQcTwinVo objQcTwin = new TMisMonitorQcTwinVo();
            objQcTwin.ID              = GetSerialNumber("QcTwinId");
            objQcTwin.RESULT_ID_SRC   = strSourceId;
            objQcTwin.RESULT_ID_TWIN1 = objResult.ID;
            objQcTwin.QC_TYPE         = strQcType;
            if (!new TMisMonitorQcTwinLogic().Create(objQcTwin))
            {
                isSuccess = false;
            }
        }
        return(isSuccess);
    }
    /// <summary>
    /// 保存质控数据
    /// </summary>
    /// <returns></returns>
    public string saveQcValue()
    {
        bool isSuccess = false;

        if (this.hidQC_TYPE.Value == "5")
        {
            //空白数据
            string strEmptyValue1 = Request["QC_EMPTY_IN_VALUE1"] == "" ? "0" : Request["QC_EMPTY_IN_VALUE1"].ToString();
            string strEmptyValue2 = Request["QC_EMPTY_IN_VALUE2"] == "" ? "0" : Request["QC_EMPTY_IN_VALUE2"].ToString();
            string strEmptyValue3 = Request["QC_EMPTY_IN_VALUE3"] == "" ? "0" : Request["QC_EMPTY_IN_VALUE3"].ToString();
            string strEmptyValue  = Request["QC_EMPTY_IN_RESULT"] == "" ? "0" : Request["QC_EMPTY_IN_RESULT"].ToString();
            string strEmptyCount  = this.dEmptyCount.Value.Trim() == "" ? "0" : this.dEmptyCount.Value.Trim();

            TMisMonitorQcEmptyBatVo QcEmptyBatVo = new TMisMonitorQcEmptyBatVo();
            QcEmptyBatVo.ID = this.hidID.Value;
            QcEmptyBatVo.QC_EMPTY_IN_RESULT = strEmptyValue;
            QcEmptyBatVo.REMARK1            = strEmptyValue1;
            QcEmptyBatVo.REMARK2            = strEmptyValue2;
            QcEmptyBatVo.REMARK3            = strEmptyValue3;
            QcEmptyBatVo.QC_EMPTY_IN_COUNT  = strEmptyCount;
            isSuccess = new TMisMonitorQcEmptyBatLogic().Edit(QcEmptyBatVo);
        }
        if (this.hidQC_TYPE.Value == "8")
        {
            //标准样数据
            string strSRC_IN_VALUE1 = Request["SRC_IN_VALUE1"] == "" ? "0" : Request["SRC_IN_VALUE1"].ToString();
            string strSRC_IN_VALUE2 = Request["SRC_IN_VALUE2"] == "" ? "0" : Request["SRC_IN_VALUE2"].ToString();
            string strSRC_IN_VALUE3 = Request["SRC_IN_VALUE3"] == "" ? "0" : Request["SRC_IN_VALUE3"].ToString();
            string strStResult      = this.dSrcCount.Value.Trim() == "" ? "0" : this.dSrcCount.Value.Trim();

            TMisMonitorQcStVo QcStVo = new TMisMonitorQcStVo();
            QcStVo.ID        = this.hidID.Value;
            QcStVo.REMARK1   = strSRC_IN_VALUE1;
            QcStVo.REMARK2   = strSRC_IN_VALUE2;
            QcStVo.REMARK3   = strSRC_IN_VALUE3;
            QcStVo.ST_RESULT = strStResult;
            isSuccess        = new TMisMonitorQcStLogic().Edit(QcStVo);
        }
        if (this.hidQC_TYPE.Value == "6")
        {
            //实验室加标数据
            string strAddResultEx = Request["ADD_RESULT_EX"] == "" ? "0" : Request["ADD_RESULT_EX"].ToString();
            string strQcAdd       = Request["QC_ADD"] == "" ? "0" : Request["QC_ADD"].ToString();
            string strAddBack     = Request["ADD_BACK"] == "" ? "0" : Request["ADD_BACK"].ToString();

            TMisMonitorQcAddVo QcAddVo = new TMisMonitorQcAddVo();
            QcAddVo.ID            = this.hidID.Value;
            QcAddVo.ADD_RESULT_EX = strAddResultEx;
            QcAddVo.QC_ADD        = strQcAdd;
            QcAddVo.ADD_BACK      = strAddBack;
            isSuccess             = new TMisMonitorQcAddLogic().Edit(QcAddVo);
        }
        if (this.hidQC_TYPE.Value == "7")
        {
            //实验室明码平行
            string strTwinResult1 = Request["TWIN_RESULT1"] == "" ? "0" : Request["TWIN_RESULT1"].ToString();
            string strTwinResult2 = Request["TWIN_RESULT2"] == "" ? "0" : Request["TWIN_RESULT2"].ToString();
            string strTwinAvg     = Request["TWIN_AVG"] == "" ? "0" : Request["TWIN_AVG"].ToString();
            string strTwinOffSet  = Request["TWIN_OFFSET"] == "" ? "0" : Request["TWIN_OFFSET"].ToString();

            TMisMonitorQcTwinVo QcTwinVo = new TMisMonitorQcTwinVo();
            QcTwinVo.ID           = this.hidID.Value;
            QcTwinVo.TWIN_RESULT1 = strTwinResult1;
            QcTwinVo.TWIN_RESULT2 = strTwinResult2;
            QcTwinVo.TWIN_AVG     = strTwinAvg;
            QcTwinVo.TWIN_OFFSET  = strTwinOffSet;
            isSuccess             = new TMisMonitorQcTwinLogic().Edit(QcTwinVo);
            if (isSuccess)
            {
                TMisMonitorResultVo ResultVo = new TMisMonitorResultVo();
                ResultVo.ID          = this.hidSrcResultID.Value;
                ResultVo.ITEM_RESULT = strTwinAvg;
                isSuccess            = new TMisMonitorResultLogic().Edit(ResultVo);
            }
        }
        return(isSuccess == true ? "1" : "0");
    }