Exemplo n.º 1
0
 /// <summary>
 /// “文书类型”Combobox改变事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cboTextKind_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.cboTextKind.Text != "请选择..." &&
         !string.IsNullOrEmpty(this.cboTextKind.Text)) //体温单
     {
         this.cboMonitoring.Enabled = true;
     }
     else
     {
         this.cboMonitoring.Enabled = false;
         this.txtExecCycles.Enabled = true;
         this.cboCyclesUnit.Enabled = true;
         Con_ClearCntrValue.ClearCntrValue(this.gpbFixTime, true);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        ///  保存监测值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSaveJC_Click(object sender, EventArgs e)
        {
            if (flagTemperature)
            {
                GetMonitoringTextBoxValue();
                //血压没有起作用,同样屏蔽掉
                //string tempSQL = "update T_TEMPERATURE_MONITORING t set t.TemperatureMax=" + ctm.TemperatureMax + ",t.TemperatureMin=" + ctm.TemperatureMin + ",t.PulseMax=" + ctm.PulseMax + ",t.PulseMin=" + ctm.PulseMin + ",t.BreathMax=" + ctm.BreathMax + ",t.BreathMin=" + ctm.BreathMin + ",t.SBPMax=" + ctm.SBPMax + ",t.SBPMin=" + ctm.SBPMin + ",t.DBPMax=" + ctm.DBPMax + ",t.DBPMin=" + ctm.DBPMin + ",t.StoolMax=" + ctm.StoolMax + ",t.StoolMin=" + ctm.StoolMin;
                string       tempSQL = "update T_TEMPERATURE_MONITORING t set t.TemperatureMax=" + ctm.TemperatureMax + ",t.TemperatureMin=" + ctm.TemperatureMin + ",t.PulseMax=" + ctm.PulseMax + ",t.PulseMin=" + ctm.PulseMin + ",t.BreathMax=" + ctm.BreathMax + ",t.BreathMin=" + ctm.BreathMin + ",t.StoolMax=" + ctm.StoolMax + ",t.StoolMin=" + ctm.StoolMin;
                int          i       = 0;
                DialogResult result  = MessageBox.Show("确认要保存已修改的数据?", "警告", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
                if (result == DialogResult.OK)
                {
                    i = App.ExecuteSQL(tempSQL);
                }
                else
                {
                    return;
                }


                if (i > 0)
                {
                    App.Msg("数据修改成功!");
                    QualityView();
                }
                else
                {
                    App.MsgErr("数据修改失败!");
                }
            }
            else
            {
                if (Con_ClearCntrValue.IsNotNull(grpMonitoring))
                {
                    return;
                }
                else
                {
                    GetMonitoringTextBoxValue();

                    string tempSQL = "insert into T_TEMPERATURE_MONITORING values(" + ctm.TemperatureMax + "," + ctm.TemperatureMin + "," + ctm.PulseMax + "," + ctm.PulseMin + "," + ctm.BreathMax + "," + ctm.BreathMin + "," + ctm.SBPMax + "," + ctm.SBPMin + "," + ctm.DBPMin + "," + ctm.DBPMax + "," + ctm.StoolMax + "," + ctm.StoolMin + ")";

                    int          i      = 0;
                    DialogResult result = MessageBox.Show("确认要保存数据?", "消息", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
                    if (result == DialogResult.OK)
                    {
                        i = App.ExecuteSQL(tempSQL);
                    }
                    else
                    {
                        return;
                    }


                    if (i > 0)
                    {
                        App.Msg("添加成功!");
                        QualityView();
                    }
                    else
                    {
                        App.MsgErr("添加失败!");
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            updateFlag = true;

            Con_ClearCntrValue.ClearCntrValue(this.gpbFixTime, true);

            if (lvwQualitys.SelectedItems.Count > 0)
            {
                Class_Quality_HLB_View q = (Class_Quality_HLB_View)lvwQualitys.SelectedItems[0].Tag;
                chp.Id              = q.Id;
                cboTextKind.Text    = q.Document_Type;        //文书类型
                cboMonitoring.Text  = q.Sub_Item;             //监控子项
                cboMonitorType.Text = q.Inpatient_Type;       //患者类型
                txtExceTimes.Text   = q.ExceTimes.ToString(); //执行次数
                cboCKTime.Text      = q.Base_Time;            //参考时间
                txtExecCycles.Text  = q.Runcycle.ToString();  //执行周期
                cboCyclesUnit.Text  = q.Runcycleunit;         //执行周期单位
                txtItemMax.Text     = q.Item_Max.ToString();  //项目最大值
                txtItemMin.Text     = q.Item_Min.ToString();  //项目最小值

                if (q.Isprealert == "是")
                {
                    rdoIsOverAlert.Checked  = true;
                    rdoIsOverAlertF.Checked = false;
                    txtPrealertTime.Text    = q.Prealerttime.ToString(); //预警时间
                    cboPrealertUnit.Text    = q.Pretimeunit;             //单位
                }
                else
                {
                    rdoIsOverAlert.Checked  = false;
                    rdoIsOverAlertF.Checked = true;
                }

                if (q.Is_Renew == "是")
                {
                    rdoIsMend.Checked  = true;
                    rdoIsMendF.Checked = false;
                    txtDeduction.Text  = q.Take_Grade.ToString();//扣分值
                }
                else
                {
                    rdoIsMend.Checked  = false;
                    rdoIsMendF.Checked = true;
                }

                if (q.Is_Notice == "是")
                {
                    rdoIsNotice.Checked = true;//是否提醒
                }
                else
                {
                    rdoIsNotice.Checked = false;
                }


                if (q.Istoday == "是")
                {
                    rdoIsCheck.Checked = true;//是否当天检查一次
                }
                else
                {
                    rdoIsCheck.Checked = false;
                }

                if (txtExceTimes.Text != "")
                {
                    txtExceTimes.Enabled = true;
                }

                Con_CheckBoxListUtil.SetCheck(gpbFixTime, q.Fix_Time);
            }
            else
            {
                App.MsgErr("请选择一条修改的记录");
                ResetAll();
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 重设方法
 /// </summary>
 public void ResetAll()
 {
     Con_ClearCntrValue.ClearCntrValue(this.groupBox1, true);
     updateFlag = false;
 }