コード例 #1
0
ファイル: frmConfirmCriticalVal.cs プロジェクト: ewin66/HIS
 public frmConfirmCriticalVal(EntityCriticalMain _mainVo, List <EntityCriticalLis> _lstItems)
 {
     InitializeComponent();
     if (!DesignMode)
     {
         mainVo   = _mainVo;
         lstItems = _lstItems;
     }
 }
コード例 #2
0
        private void lvItem_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (lvItem.SelectedItems.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                EntityCriticalMain vo = lvItem.SelectedItems[0].Tag as EntityCriticalMain;
                this.lblCardNo.Text    = vo.cardno;
                this.lblCardNo.Tag     = vo.cvmid.ToString();
                this.lblIpNo.Text      = vo.ipno;
                this.lblItemName.Text  = vo.applyitem;
                this.lblPatName.Text   = vo.patname;
                this.lblSex.Text       = vo.patsex;
                this.lblAge.Text       = vo.patage;
                this.lblApplyDate.Text = vo.applydate.ToString("yyyy-MM-dd HH:mm:ss");

                bizCriticalValue         svc    = (bizCriticalValue)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(bizCriticalValue));
                List <EntityCriticalLis> lstDet = svc.GetCriDetail(vo.cvmid);
                svc = null;
                this.dvItem.Rows.Clear();
                if (lstDet != null && lstDet.Count > 0)
                {
                    int index = 0;
                    foreach (EntityCriticalLis item in lstDet)
                    {
                        index = this.dvItem.Rows.Add();
                        this.dvItem.Rows[index].Cells[0].Value = ((!string.IsNullOrEmpty(item.checkitemengname) && item.checkitemname.IndexOf(item.checkitemengname) >= 0) ? item.checkitemname : item.checkitemname + "(" + item.checkitemengname + ")");
                        this.dvItem.Rows[index].Cells[1].Value = item.unit;
                        this.dvItem.Rows[index].Cells[2].Value = item.alarmlowval + "~" + item.alarmupval;
                        this.dvItem.Rows[index].Cells[3].Value = item.resultvalue;
                        this.dvItem.Rows[index].Cells[4].Value = item.alertflag;
                    }
                }
                this.Cursor = Cursors.Default;
            }
            else
            {
                this.lblCardNo.Tag = string.Empty;
            }
        }