Ejemplo n.º 1
0
 private void ShowInfo(int Id)
 {
     RuRo.BLL.NormalLisReport   bll   = new RuRo.BLL.NormalLisReport();
     RuRo.Model.NormalLisReport model = bll.GetModel(Id);
     this.lblId.Text            = model.Id.ToString();
     this.lblhospnum.Text       = model.hospnum;
     this.lblpatname.Text       = model.patname;
     this.lblSex.Text           = model.Sex;
     this.lblAge.Text           = model.Age;
     this.lblage_month.Text     = model.age_month;
     this.lblext_mthd.Text      = model.ext_mthd;
     this.lblchinese.Text       = model.chinese;
     this.lblresult.Text        = model.result;
     this.lblunits.Text         = model.units;
     this.lblref_flag.Text      = model.ref_flag;
     this.lbllowvalue.Text      = model.lowvalue;
     this.lblhighvalue.Text     = model.highvalue;
     this.lblprint_ref.Text     = model.print_ref;
     this.lblcheck_date.Text    = model.check_date;
     this.lblcheck_by_name.Text = model.check_by_name;
     this.lblprnt_order.Text    = model.prnt_order;
     this.lblIsDel.Text         = model.IsDel?"是":"否";
 }
Ejemplo n.º 2
0
 private void ShowInfo(int Id)
 {
     RuRo.BLL.NormalLisReport   bll   = new RuRo.BLL.NormalLisReport();
     RuRo.Model.NormalLisReport model = bll.GetModel(Id);
     this.lblId.Text            = model.Id.ToString();
     this.txthospnum.Text       = model.hospnum;
     this.txtpatname.Text       = model.patname;
     this.txtSex.Text           = model.Sex;
     this.txtAge.Text           = model.Age;
     this.txtage_month.Text     = model.age_month;
     this.txtext_mthd.Text      = model.ext_mthd;
     this.txtchinese.Text       = model.chinese;
     this.txtresult.Text        = model.result;
     this.txtunits.Text         = model.units;
     this.txtref_flag.Text      = model.ref_flag;
     this.txtlowvalue.Text      = model.lowvalue;
     this.txthighvalue.Text     = model.highvalue;
     this.txtprint_ref.Text     = model.print_ref;
     this.txtcheck_date.Text    = model.check_date;
     this.txtcheck_by_name.Text = model.check_by_name;
     this.txtprnt_order.Text    = model.prnt_order;
     this.chkIsDel.Checked      = model.IsDel;
 }
Ejemplo n.º 3
0
 private void ShowInfo(int Id)
 {
     RuRo.BLL.NormalLisReport bll=new RuRo.BLL.NormalLisReport();
     RuRo.Model.NormalLisReport model=bll.GetModel(Id);
     this.lblId.Text=model.Id.ToString();
     this.lblhospnum.Text=model.hospnum;
     this.lblpatname.Text=model.patname;
     this.lblSex.Text=model.Sex;
     this.lblAge.Text=model.Age;
     this.lblage_month.Text=model.age_month;
     this.lblext_mthd.Text=model.ext_mthd;
     this.lblchinese.Text=model.chinese;
     this.lblresult.Text=model.result;
     this.lblunits.Text=model.units;
     this.lblref_flag.Text=model.ref_flag;
     this.lbllowvalue.Text=model.lowvalue;
     this.lblhighvalue.Text=model.highvalue;
     this.lblprint_ref.Text=model.print_ref;
     this.lblcheck_date.Text=model.check_date;
     this.lblcheck_by_name.Text=model.check_by_name;
     this.lblprnt_order.Text=model.prnt_order;
     this.lblIsDel.Text=model.IsDel?"是":"否";
 }
Ejemplo n.º 4
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txthospnum.Text.Trim().Length == 0)
            {
                strErr += "病人门诊号、住院号不能为空!\\n";
            }
            if (this.txtpatname.Text.Trim().Length == 0)
            {
                strErr += "姓名不能为空!\\n";
            }
            if (this.txtSex.Text.Trim().Length == 0)
            {
                strErr += "性别不能为空!\\n";
            }
            if (this.txtAge.Text.Trim().Length == 0)
            {
                strErr += "年龄不能为空!\\n";
            }
            if (this.txtage_month.Text.Trim().Length == 0)
            {
                strErr += "月不能为空!\\n";
            }
            if (this.txtext_mthd.Text.Trim().Length == 0)
            {
                strErr += "项目总称不能为空!\\n";
            }
            if (this.txtchinese.Text.Trim().Length == 0)
            {
                strErr += "项目名称不能为空!\\n";
            }
            if (this.txtresult.Text.Trim().Length == 0)
            {
                strErr += "结果不能为空!\\n";
            }
            if (this.txtunits.Text.Trim().Length == 0)
            {
                strErr += "单位不能为空!\\n";
            }
            if (this.txtref_flag.Text.Trim().Length == 0)
            {
                strErr += "高低 不能为空!\\n";
            }
            if (this.txtlowvalue.Text.Trim().Length == 0)
            {
                strErr += "正常低值不能为空!\\n";
            }
            if (this.txthighvalue.Text.Trim().Length == 0)
            {
                strErr += "正常高值不能为空!\\n";
            }
            if (this.txtprint_ref.Text.Trim().Length == 0)
            {
                strErr += "正常范围不能为空!\\n";
            }
            if (this.txtcheck_date.Text.Trim().Length == 0)
            {
                strErr += "批准时间不能为空!\\n";
            }
            if (this.txtcheck_by_name.Text.Trim().Length == 0)
            {
                strErr += "批准人不能为空!\\n";
            }
            if (this.txtprnt_order.Text.Trim().Length == 0)
            {
                strErr += "打印顺序序号不能为空!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            int    Id            = int.Parse(this.lblId.Text);
            string hospnum       = this.txthospnum.Text;
            string patname       = this.txtpatname.Text;
            string Sex           = this.txtSex.Text;
            string Age           = this.txtAge.Text;
            string age_month     = this.txtage_month.Text;
            string ext_mthd      = this.txtext_mthd.Text;
            string chinese       = this.txtchinese.Text;
            string result        = this.txtresult.Text;
            string units         = this.txtunits.Text;
            string ref_flag      = this.txtref_flag.Text;
            string lowvalue      = this.txtlowvalue.Text;
            string highvalue     = this.txthighvalue.Text;
            string print_ref     = this.txtprint_ref.Text;
            string check_date    = this.txtcheck_date.Text;
            string check_by_name = this.txtcheck_by_name.Text;
            string prnt_order    = this.txtprnt_order.Text;
            bool   IsDel         = this.chkIsDel.Checked;


            RuRo.Model.NormalLisReport model = new RuRo.Model.NormalLisReport();
            model.Id            = Id;
            model.hospnum       = hospnum;
            model.patname       = patname;
            model.Sex           = Sex;
            model.Age           = Age;
            model.age_month     = age_month;
            model.ext_mthd      = ext_mthd;
            model.chinese       = chinese;
            model.result        = result;
            model.units         = units;
            model.ref_flag      = ref_flag;
            model.lowvalue      = lowvalue;
            model.highvalue     = highvalue;
            model.print_ref     = print_ref;
            model.check_date    = check_date;
            model.check_by_name = check_by_name;
            model.prnt_order    = prnt_order;
            model.IsDel         = IsDel;

            RuRo.BLL.NormalLisReport bll = new RuRo.BLL.NormalLisReport();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "list.aspx");
        }
Ejemplo n.º 5
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(this.txthospnum.Text.Trim().Length==0)
            {
                strErr+="病人门诊号、住院号不能为空!\\n";
            }
            if(this.txtpatname.Text.Trim().Length==0)
            {
                strErr+="姓名不能为空!\\n";
            }
            if(this.txtsex.Text.Trim().Length==0)
            {
                strErr+="性别不能为空!\\n";
            }
            if(this.txtage.Text.Trim().Length==0)
            {
                strErr+="年龄不能为空!\\n";
            }
            if(this.txtage_month.Text.Trim().Length==0)
            {
                strErr+="月不能为空!\\n";
            }
            if(this.txtext_mthd.Text.Trim().Length==0)
            {
                strErr+="项目总称不能为空!\\n";
            }
            if(this.txtchinese.Text.Trim().Length==0)
            {
                strErr+="项目名称不能为空!\\n";
            }
            if(this.txtresult.Text.Trim().Length==0)
            {
                strErr+="结果不能为空!\\n";
            }
            if(this.txtunits.Text.Trim().Length==0)
            {
                strErr+="单位不能为空!\\n";
            }
            if(this.txtref_flag.Text.Trim().Length==0)
            {
                strErr+="高低 不能为空!\\n";
            }
            if(this.txtlowvalue.Text.Trim().Length==0)
            {
                strErr+="正常低值不能为空!\\n";
            }
            if(this.txthighvalue.Text.Trim().Length==0)
            {
                strErr+="正常高值不能为空!\\n";
            }
            if(this.txtprint_ref.Text.Trim().Length==0)
            {
                strErr+="正常范围不能为空!\\n";
            }
            if(this.txtcheck_date.Text.Trim().Length==0)
            {
                strErr+="批准时间不能为空!\\n";
            }
            if(this.txtcheck_by_name.Text.Trim().Length==0)
            {
                strErr+="批准人不能为空!\\n";
            }
            if(this.txtprnt_order.Text.Trim().Length==0)
            {
                strErr+="打印顺序序号不能为空!\\n";
            }

            if(strErr!="")
            {
                MessageBox.Show(this,strErr);
                return;
            }
            string hospnum=this.txthospnum.Text;
            string patname=this.txtpatname.Text;
            string sex=this.txtsex.Text;
            string age=this.txtage.Text;
            string age_month=this.txtage_month.Text;
            string ext_mthd=this.txtext_mthd.Text;
            string chinese=this.txtchinese.Text;
            string result=this.txtresult.Text;
            string units=this.txtunits.Text;
            string ref_flag=this.txtref_flag.Text;
            string lowvalue=this.txtlowvalue.Text;
            string highvalue=this.txthighvalue.Text;
            string print_ref=this.txtprint_ref.Text;
            string check_date=this.txtcheck_date.Text;
            string check_by_name=this.txtcheck_by_name.Text;
            string prnt_order=this.txtprnt_order.Text;
            bool isDel=this.chkisDel.Checked;

            RuRo.Model.NormalLisReport model=new RuRo.Model.NormalLisReport();
            model.hospnum=hospnum;
            model.patname=patname;
            model.sex=sex;
            model.age=age;
            model.age_month=age_month;
            model.ext_mthd=ext_mthd;
            model.chinese=chinese;
            model.result=result;
            model.units=units;
            model.ref_flag=ref_flag;
            model.lowvalue=lowvalue;
            model.highvalue=highvalue;
            model.print_ref=print_ref;
            model.check_date=check_date;
            model.check_by_name=check_by_name;
            model.prnt_order=prnt_order;
            model.isDel=isDel;

            RuRo.BLL.NormalLisReport bll=new RuRo.BLL.NormalLisReport();
            bll.Add(model);
            RuRo.Common.MessageBox.ShowAndRedirect(this,"保存成功!","add.aspx");
        }
Ejemplo n.º 6
0
 private void ShowInfo(int Id)
 {
     RuRo.BLL.NormalLisReport bll=new RuRo.BLL.NormalLisReport();
     RuRo.Model.NormalLisReport model=bll.GetModel(Id);
     this.lblId.Text=model.Id.ToString();
     this.txthospnum.Text=model.hospnum;
     this.txtpatname.Text=model.patname;
     this.txtSex.Text=model.Sex;
     this.txtAge.Text=model.Age;
     this.txtage_month.Text=model.age_month;
     this.txtext_mthd.Text=model.ext_mthd;
     this.txtchinese.Text=model.chinese;
     this.txtresult.Text=model.result;
     this.txtunits.Text=model.units;
     this.txtref_flag.Text=model.ref_flag;
     this.txtlowvalue.Text=model.lowvalue;
     this.txthighvalue.Text=model.highvalue;
     this.txtprint_ref.Text=model.print_ref;
     this.txtcheck_date.Text=model.check_date;
     this.txtcheck_by_name.Text=model.check_by_name;
     this.txtprnt_order.Text=model.prnt_order;
     this.chkIsDel.Checked=model.IsDel;
 }