예제 #1
0
        private void ReagentSettingLoad()
        {
            lstReagentSettingsInfo = new BioA.Service.ReagentSetting().QueryReagentSettingsInfo("QueryReagentSetting1", "");
            //把获取到的数据绑定到gridControl1控件上,显示到界面
            InitialReagentInfos(lstReagentSettingsInfo);

            lstReagentSettingsR2Info = new BioA.Service.ReagentSetting().QueryReagentSettingsInfo("QueryReagentSetting2", "");
            //把获取到的数据绑定到gridControl2控件上,显示到界面
            InitialReagentInfos2(lstReagentSettingsR2Info);
            rs = ReagentConfigInfoConstrunction.ReagentStateInfo;
            if (rs.ReagentStatusModule == 1)
            {
                if (frmloadingReagent == null)
                {
                    frmloadingReagent = new frmLoadingReagent();
                    frmloadingReagent.StartPosition     = FormStartPosition.CenterScreen;
                    frmloadingReagent.GetsReagentEvent += GeTheReagentAfterPreservationEvent;
                }
            }
            else if (rs.ReagentStatusModule == 2)
            {
                if (lReagentBlock == null)
                {
                    lReagentBlock = new LoadingReagentBlocking();
                    lReagentBlock.StartPosition             = FormStartPosition.CenterScreen;
                    lReagentBlock.ScannSingleReagentEvent  += OnScannSingleReagentEvent;
                    lReagentBlock.InputReagentBarcodeEvent += OnInputReagentBarcodeEvent;
                    lReagentBlock.RefreshReagentInfoEvent  += GeTheReagentAfterPreservationEvent;
                }
            }
        }
예제 #2
0
 public void LoadingReagentBlocking_Load(object sender, EventArgs e)
 {
     dtpValidDate.DateTime = DateTime.Now.AddMonths(1);
     rs = ReagentConfigInfoConstrunction.ReagentStateInfo;
     rc = ReagentConfigInfoConstrunction.ReagentConfig;
     //异步方法调用
     this.loadFrmReagent();
 }
예제 #3
0
 /// <summary>
 /// 修改试剂状态设置信息
 /// </summary>
 /// <param name="rs"></param>
 public void UpdateReagentStateInfo(ReagentStateInfo rs)
 {
     try
     {
         string Sql = string.Format("update reagentstatetb set ReagentStatusModule = {0}, ReagentChannelNum1 = {1}, ReagentChannelNum2 = {2}", rs.ReagentStatusModule, rs.ReagentChannelNum1, rs.ReagentChannelNum2);
         ism_SqlMap.Update("ReagentInfo.SaveAndUpdateReagentStateInfo", Sql);
     }
     catch (Exception ex)
     {
         LogInfo.WriteErrorLog("UpdateReagentStateInfo(ReagentStateInfo rs) == " + ex.Message, Module.Reagent);
     }
 }
예제 #4
0
        /// <summary>
        /// 获取试剂状态设置信息
        /// </summary>
        /// <returns></returns>
        public ReagentStateInfo QueryReagentStateSettingInfo()
        {
            ReagentStateInfo rs = null;

            try
            {
                rs = ism_SqlMap.QueryForObject("ReagentInfo.QueryReagentStateSettingInfo", string.Format("select * from reagentstatetb")) as ReagentStateInfo;
            }
            catch (Exception ex)
            {
                LogInfo.WriteErrorLog("ReagentStateInfo GetReagentStateInfo() == " + ex.Message, Module.Reagent);
            }
            return(rs);
        }
예제 #5
0
        /// <summary>
        /// 显示条码配置和试剂状态设置数据
        /// </summary>
        /// <param name="rs"></param>
        /// <param name="rc"></param>
        private void DisplayReagentConfig(ReagentStateInfo rs, ReagentConfigInfo rc)
        {
            if (rc != null)
            {
                this.chkSDBROpen.Checked = rc.IsSampBarcodeOpen;
                this.chkRDBROpen.Checked = rc.IsReagentBarcodeOpen;
                this.chkHBROpen.Checked  = rc.IsHandheldBarcodeOpen;
                this.textBox1.Text       = rc.SampleBracodeLength.ToString();
                this.textBox2.Text       = rc.ReagentBarcodeLength.ToString();
            }
            if (rs != null)
            {
                switch (rs.ReagentStatusModule)
                {
                case 1:
                    this.checkReagentOpen.Checked = true;
                    break;

                case 2:
                    this.checkReagentSemiBlocking.Checked = true;
                    this.grpChannleNumber.Enabled         = true;
                    break;
                }
                if (rs.ReagentNumberList.Count > 0)
                {
                    for (int i = 0; i < rs.ReagentNumberList.Count; i++)
                    {
                        if (rs.ReagentNumberList[i] == 1)
                        {
                            this.checkEdit1.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 2)
                        {
                            this.checkEdit2.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 3)
                        {
                            this.checkEdit3.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 4)
                        {
                            this.checkEdit4.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 5)
                        {
                            this.checkEdit5.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 6)
                        {
                            this.checkEdit6.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 7)
                        {
                            this.checkEdit7.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 8)
                        {
                            this.checkEdit8.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 9)
                        {
                            this.checkEdit9.Checked = true;
                            continue;
                        }
                        else if (rs.ReagentNumberList[i] == 10)
                        {
                            this.checkEdit10.Checked = true;
                            continue;
                        }
                    }
                }
            }
        }
예제 #6
0
        /// <summary>
        /// 保存试剂状态设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void chekSaveSetting_CheckedChanged(object sender, EventArgs e)
        {
            ReagentStateInfo rs = new ReagentStateInfo();
            int checkValue1     = 0;
            int checkValue2     = 0;

            if (this.checkReagentOpen.Checked == true)
            {
                rs.ReagentStatusModule = 1;
            }
            if (this.checkReagentSemiBlocking.Checked == true)
            {
                rs.ReagentStatusModule = 2;
                checkValue1            = 31;
                if (this.checkEdit1.Checked == true)
                {
                    checkValue1 = checkValue1 & 31;
                }
                else
                {
                    checkValue1 = checkValue1 & 30;
                }

                if (this.checkEdit2.Checked == true)
                {
                    checkValue1 = checkValue1 & 31;
                }
                else
                {
                    checkValue1 = checkValue1 & 29;
                }

                if (this.checkEdit3.Checked == true)
                {
                    checkValue1 = checkValue1 & 31;
                }
                else
                {
                    checkValue1 = checkValue1 & 27;
                }

                if (this.checkEdit4.Checked == true)
                {
                    checkValue1 = checkValue1 & 31;
                }
                else
                {
                    checkValue1 = checkValue1 & 23;
                }

                if (this.checkEdit5.Checked == true)
                {
                    checkValue1 = checkValue1 & 31;
                }
                else
                {
                    checkValue1 = checkValue1 & 15;
                }
                //---checkValue2-------
                checkValue2 = 31;
                if (this.checkEdit6.Checked == true)
                {
                    checkValue2 = checkValue2 & 31;
                }
                else
                {
                    checkValue2 = checkValue2 & 30;
                }

                if (this.checkEdit7.Checked == true)
                {
                    checkValue2 = checkValue2 & 31;
                }
                else
                {
                    checkValue2 = checkValue2 & 29;
                }

                if (this.checkEdit8.Checked == true)
                {
                    checkValue2 = checkValue2 & 31;
                }
                else
                {
                    checkValue2 = checkValue2 & 27;
                }

                if (this.checkEdit9.Checked == true)
                {
                    checkValue2 = checkValue2 & 31;
                }
                else
                {
                    checkValue2 = checkValue2 & 23;
                }

                if (this.checkEdit10.Checked == true)
                {
                    checkValue2 = checkValue2 & 31;
                }
                else
                {
                    checkValue2 = checkValue2 & 15;
                }
            }
            rs.ReagentChannelNum1 = checkValue1;
            rs.ReagentChannelNum2 = checkValue2;
            new BioA.Service.ReagentState().IUpdateReagentStateInfo(rs);
            ReagentConfigInfoConstrunction.ReagentStateInfo = null;
        }
예제 #7
0
 /// <summary>
 /// 修改试剂状态设置信息
 /// </summary>
 /// <param name="rs"></param>
 public void IUpdateReagentStateInfo(ReagentStateInfo rs)
 {
     myBatis.UpdateReagentStateInfo(rs);
 }