Exemple #1
0
        private void QualitySelectView(string sqltemp, string group)
        {
            DataSet dataSet = App.GetDataSet(sqltemp);

            ListViewItem[] item = new ListViewItem[dataSet.Tables[0].Rows.Count];
            qhv = new Class_Quality_HLB_View[dataSet.Tables[0].Rows.Count];

            string str = "";

            for (int i = 0; i <= dataSet.Tables[0].Rows.Count - 1; i++)
            {
                //====================用于界面上显示
                qhv[i]                = new Class_Quality_HLB_View();
                qhv[i].Id             = Convert.ToInt32(dataSet.Tables[0].Rows[i]["ID"].ToString());
                qhv[i].Inpatient_Type = dataSet.Tables[0].Rows[i]["病人类型"].ToString();
                qhv[i].Base_Time      = dataSet.Tables[0].Rows[i]["参考时间"].ToString();
                qhv[i].Runcycle       = Convert.ToInt32(dataSet.Tables[0].Rows[i]["执行周期"].ToString());
                qhv[i].Runcycleunit   = dataSet.Tables[0].Rows[i]["执行周期单位"].ToString();
                qhv[i].Fix_Time       = SortString(dataSet.Tables[0].Rows[i]["固定执行时间点"].ToString());
                qhv[i].Take_Grade     = Convert.ToDouble(dataSet.Tables[0].Rows[i]["扣分值"].ToString());
                qhv[i].ExceTimes      = Convert.ToInt32(dataSet.Tables[0].Rows[i]["执行次数"].ToString());
                qhv[i].Item_Max       = dataSet.Tables[0].Rows[i]["项目最大值"].ToString() == ""?0f:float.Parse(dataSet.Tables[0].Rows[i]["项目最大值"].ToString());
                qhv[i].Item_Min       = dataSet.Tables[0].Rows[i]["项目最小值"].ToString() == ""?0f:float.Parse(dataSet.Tables[0].Rows[i]["项目最小值"].ToString());

                //=====================用于线程处理
                qhv[i].Document_Type = dataSet.Tables[0].Rows[i]["文档类型"].ToString();
                qhv[i].Sub_Item      = dataSet.Tables[0].Rows[i]["监控子项"].ToString();
                qhv[i].Isprealert    = dataSet.Tables[0].Rows[i]["是否预警"].ToString();
                qhv[i].Prealerttime  = Convert.ToInt32(dataSet.Tables[0].Rows[i]["报警提前时间"].ToString());
                qhv[i].Pretimeunit   = dataSet.Tables[0].Rows[i]["报警提前时间单位"].ToString();
                qhv[i].Isoveralert   = dataSet.Tables[0].Rows[i]["是否警告"].ToString();
                qhv[i].Overalerttime = Convert.ToInt32(dataSet.Tables[0].Rows[i]["报警提前时间超过"].ToString());
                qhv[i].Overtimeunit  = dataSet.Tables[0].Rows[i]["报警提前时间超过单位"].ToString();
                qhv[i].Is_Notice     = dataSet.Tables[0].Rows[i]["是否提醒"].ToString();
                qhv[i].Is_Renew      = dataSet.Tables[0].Rows[i]["超时补上是否扣分"].ToString();
                qhv[i].Istoday       = dataSet.Tables[0].Rows[i]["是否当天检查一次"].ToString();
                qhv[i].ThreadState   = dataSet.Tables[0].Rows[i]["线程状态"].ToString();

                if (group != "group4")
                {
                    str = ShowViewSet(group, qhv[i]);
                }
                else
                {
                    qhv[i].Sub_Item = dataSet.Tables[0].Rows[i]["监控子项"].ToString();
                    str             = ShowViewSet(group, qhv[i]);
                }


                lvwQualitys.Groups[group].Items.Add(str);

                tempList.Add(qhv[i]);
                item[i] = new ListViewItem(new string[] { str, qhv[i].ThreadState }, 0, lvwQualitys.Groups[group]);

                mapItemToQualitys[str] = qhv[i];

                lvwQualitys.Items.AddRange(new ListViewItem[] { item[i] });
            }
        }
Exemple #2
0
 private void removeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lvwQualitys.SelectedItems.Count > 0)
     {
         Class_Quality_HLB_View q = (Class_Quality_HLB_View)lvwQualitys.SelectedItems[0].Tag;
         string sqlDel            = "delete from t_quality_var_hlb where ID=" + q.Id;
         lvwQualitys.SelectedItems[0].Remove();
         int i = App.ExecuteSQL(sqlDel);
         if (i > 0)
         {
             App.Msg("删除成功!");
         }
     }
     else
     {
         App.MsgErr("请选择一条需要删除的记录");
     }
 }
Exemple #3
0
        /// <summary>
        /// 显示列表值设置
        /// </summary>
        public string ShowViewSet(string group, Class_Quality_HLB_View qhv)
        {
            string temp = "";

            switch (group)
            {
            case "group1":
                switch (qhv.Inpatient_Type)    //一般,发热
                {
                case "所有患者":
                    temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   新入院病人连续测3天,每天:" + qhv.ExceTimes + " 次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                    break;

                case "手术患者":
                    string shousTime = qhv.Base_Time.Substring(5, 2);
                    temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + shousTime + "术后3天,每天测:" + qhv.ExceTimes + " 次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                    break;

                case "转入患者":
                    temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   转入后连续测:" + qhv.ExceTimes + " 次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                    break;

                case "一般患者":
                    temp = qhv.Inpatient_Type + ":体温正常,T≤37.5℃ 参考时间:" + qhv.Base_Time + "   每天至少测:" + qhv.ExceTimes + " 次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                    break;

                case "发热患者":
                    if (qhv.Item_Min >= 38)
                    {
                        string pointMin = Temperature(qhv.Item_Min.ToString());

                        temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   T≥" + pointMin + "   每天测" + qhv.ExceTimes + " 次  体温正常后连续测3天,每天3次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                    }
                    else if (qhv.Item_Min == 37.5)
                    {
                        string pointMin = Temperature(qhv.Item_Min.ToString());
                        string pointMax = Temperature(qhv.Item_Max.ToString());

                        temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + pointMin + "<T≤" + pointMax + "   每天测" + qhv.ExceTimes + "次  体温正常后连续测3天,每天3次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + "分";
                    }
                    else
                    {
                        string pointMin = Temperature(qhv.Item_Min.ToString());
                        string pointMax = Temperature(qhv.Item_Max.ToString());

                        temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + pointMin + "≤T≤" + pointMax + "   每天测" + qhv.ExceTimes + "次  体温正常后连续测3天,每天3次" + "     测试时间点有:" + qhv.Fix_Time + "     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + "分";
                    }
                    break;
                }
                break;

            //case "group2":
            //    if (qhv.Sub_Item == "复测")
            //    {
            //        temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   体温与前一次相比突升幅度≥" + Temperature(qhv.Item_Max.ToString()) + "     体温与前一次相比突降幅度≥" + Temperature(qhv.Item_Min.ToString()) + " 提醒用户加复测标志" + "     扣分值:" + qhv.Take_Grade + " 分"; ;
            //    }
            //    else //降温
            //    {
            //        temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   体温大于≥" + Temperature(qhv.Item_Min.ToString()) + "   提醒用户降温" + "     扣分值:" + qhv.Take_Grade + " 分"; ;
            //    }
            //    break;

            case "group2":     //身高,体重
                //if (qhv.Base_Time != "日常时间")
                //{
                //string baseTime1 = qhv.Base_Time.Substring(0, 2);

                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ": " + baseTime1 + "当天测试 " + qhv.ExceTimes + " 次     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + "分";
                // }
                //else
                //{
                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ": 体温单换页的 "+qhv.Runcycle +" "+ qhv.Runcycleunit+" 内需记录 " + qhv.ExceTimes + " 次  黄灯提醒时间: "+qhv.Fix_Time+"    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + "分";
                // }
                //if (qhv.Sub_Item == "身高")
                //{
                temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":入院当天记录 " +
                       qhv.ExceTimes + " 次。入区后即亮黄灯,23:59亮红灯    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                //}
                //else
                //{
                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":每天记录 " + qhv.ExceTimes + " 次。入区后即亮黄灯,23:59亮红灯    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                //}
                break;

            case "group3":    //大小便
                //if (qhv.Sub_Item == "灌肠")
                //{
                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":   " + qhv.Runcycle + " " + qhv.Runcycleunit + "一次 大便连续3天为0,提醒用户进行灌肠。     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                //}
                //else
                //{

                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":每天记录 " + qhv.ExceTimes + " 次。入区后每天 " + qhv.Fix_Time + " 亮黄灯    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                //}
                temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":每天记录 " +
                       qhv.ExceTimes + " 次。入区后每天12:00亮黄灯,23:59亮红灯    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                break;

            case "group4":    //血压
                if (qhv.Inpatient_Type == "手术患者")
                {
                    temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":   手术当天记录 " +
                           qhv.ExceTimes + " 次。 手术开始即亮黄灯,23:59亮红灯。    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                }
                else
                {
                    temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   " + qhv.Sub_Item + ":入院当天记录 " +
                           qhv.ExceTimes + " 次。入区后即亮黄灯,23:59亮红灯    超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分";
                }
                break;
                //switch (qhv.Inpatient_Type)
                //{
                //case "一般患者":
                // temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   10岁以下小儿入区后   每天测 " + qhv.ExceTimes + "次     超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分 ";
                //break;

                // case "发热患者":
                // string pointMin = Temperature(qhv.Item_Min.ToString());
                //temp = qhv.Inpatient_Type + ":参考时间:" + qhv.Base_Time + "   10岁以下小儿体温≥ " + pointMin + "   每天 " + qhv.ExceTimes+" 次      超时补上是否扣分:" + qhv.Is_Renew + "     扣分值:" + qhv.Take_Grade + " 分 ";
                //break;
                //}


                //break;
            }
            return(temp);
        }
Exemple #4
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();
            }
        }