Esempio n. 1
0
 private void ShowInfo(int id)
 {
     RuRo.BLL.PatientDiagnose bll=new RuRo.BLL.PatientDiagnose();
     RuRo.Model.PatientDiagnose model=bll.GetModel(id);
     this.lblid.Text=model.id.ToString();
     this.lblCardno.Text=model.Cardno;
     this.lblCsrq00.Text=model.Csrq00;
     this.lblPatientName.Text=model.PatientName;
     this.lblSex.Text=model.Sex;
     this.lblBrithday.Text=model.Brithday.ToString();
     this.lblCardId.Text=model.CardId;
     this.lblTel.Text=model.Tel;
     this.lblRegisterNo.Text=model.RegisterNo;
     this.lblIcd.Text=model.Icd;
     this.lblDiagnose.Text=model.Diagnose;
     this.lblType.Text=model.Type;
     this.lblFlag.Text=model.Flag;
     this.lblDiagnoseDate.Text=model.DiagnoseDate;
     this.lblisDel.Text=model.isDel?"是":"否";
 }
Esempio n. 2
0
 private void ShowInfo(int id)
 {
     RuRo.BLL.PatientDiagnose   bll   = new RuRo.BLL.PatientDiagnose();
     RuRo.Model.PatientDiagnose model = bll.GetModel(id);
     this.lblid.Text           = model.id.ToString();
     this.lblCardno.Text       = model.Cardno;
     this.lblCsrq00.Text       = model.Csrq00;
     this.lblPatientName.Text  = model.PatientName;
     this.lblSex.Text          = model.Sex;
     this.lblBrithday.Text     = model.Brithday.ToString();
     this.lblCardId.Text       = model.CardId;
     this.lblTel.Text          = model.Tel;
     this.lblRegisterNo.Text   = model.RegisterNo;
     this.lblIcd.Text          = model.Icd;
     this.lblDiagnose.Text     = model.Diagnose;
     this.lblType.Text         = model.Type;
     this.lblFlag.Text         = model.Flag;
     this.lblDiagnoseDate.Text = model.DiagnoseDate;
     this.lblIsDel.Text        = model.IsDel?"是":"否";
 }
Esempio n. 3
0
 private void ShowInfo(int id)
 {
     RuRo.BLL.PatientDiagnose   bll   = new RuRo.BLL.PatientDiagnose();
     RuRo.Model.PatientDiagnose model = bll.GetModel(id);
     this.lblid.Text           = model.id.ToString();
     this.txtCardno.Text       = model.Cardno;
     this.txtCsrq00.Text       = model.Csrq00;
     this.txtPatientName.Text  = model.PatientName;
     this.txtSex.Text          = model.Sex;
     this.txtBrithday.Text     = model.Brithday.ToString();
     this.txtCardId.Text       = model.CardId;
     this.txtTel.Text          = model.Tel;
     this.txtRegisterNo.Text   = model.RegisterNo;
     this.txtIcd.Text          = model.Icd;
     this.txtDiagnose.Text     = model.Diagnose;
     this.txtType.Text         = model.Type;
     this.txtFlag.Text         = model.Flag;
     this.txtDiagnoseDate.Text = model.DiagnoseDate;
     this.chkIsDel.Checked     = model.IsDel;
 }
Esempio n. 4
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(!PageValidate.IsNumber(txtid.Text))
            {
                strErr+="id格式错误!\\n";
            }
            if(this.txtCardno.Text.Trim().Length==0)
            {
                strErr+="卡号不能为空!\\n";
            }
            if(this.txtCsrq00.Text.Trim().Length==0)
            {
                strErr+="查询日期不能为空!\\n";
            }
            if(this.txtPatientName.Text.Trim().Length==0)
            {
                strErr+="姓名不能为空!\\n";
            }
            if(this.txtSex.Text.Trim().Length==0)
            {
                strErr+="性别不能为空!\\n";
            }
            if(!PageValidate.IsDateTime(txtBrithday.Text))
            {
                strErr+="出生日期格式错误!\\n";
            }
            if(this.txtCardId.Text.Trim().Length==0)
            {
                strErr+="身份证号不能为空!\\n";
            }
            if(this.txtTel.Text.Trim().Length==0)
            {
                strErr+="Tel不能为空!\\n";
            }
            if(this.txtRegisterNo.Text.Trim().Length==0)
            {
                strErr+="RegisterNo不能为空!\\n";
            }
            if(this.txtIcd.Text.Trim().Length==0)
            {
                strErr+="ICD码不能为空!\\n";
            }
            if(this.txtDiagnose.Text.Trim().Length==0)
            {
                strErr+="诊断名称不能为空!\\n";
            }
            if(this.txtType.Text.Trim().Length==0)
            {
                strErr+="诊断类型:1:中医疾病 2:中不能为空!\\n";
            }
            if(this.txtFlag.Text.Trim().Length==0)
            {
                strErr+="诊断类别:1:西医诊断 2 中不能为空!\\n";
            }
            if(this.txtDiagnoseDate.Text.Trim().Length==0)
            {
                strErr+="诊断日期不能为空!\\n";
            }

            if(strErr!="")
            {
                MessageBox.Show(this,strErr);
                return;
            }
            int id=int.Parse(this.txtid.Text);
            string Cardno=this.txtCardno.Text;
            string Csrq00=this.txtCsrq00.Text;
            string PatientName=this.txtPatientName.Text;
            string Sex=this.txtSex.Text;
            DateTime Brithday=DateTime.Parse(this.txtBrithday.Text);
            string CardId=this.txtCardId.Text;
            string Tel=this.txtTel.Text;
            string RegisterNo=this.txtRegisterNo.Text;
            string Icd=this.txtIcd.Text;
            string Diagnose=this.txtDiagnose.Text;
            string Type=this.txtType.Text;
            string Flag=this.txtFlag.Text;
            string DiagnoseDate=this.txtDiagnoseDate.Text;
            bool isDel=this.chkisDel.Checked;

            RuRo.Model.PatientDiagnose model=new RuRo.Model.PatientDiagnose();
            model.id=id;
            model.Cardno=Cardno;
            model.Csrq00=Csrq00;
            model.PatientName=PatientName;
            model.Sex=Sex;
            model.Brithday=Brithday;
            model.CardId=CardId;
            model.Tel=Tel;
            model.RegisterNo=RegisterNo;
            model.Icd=Icd;
            model.Diagnose=Diagnose;
            model.Type=Type;
            model.Flag=Flag;
            model.DiagnoseDate=DiagnoseDate;
            model.isDel=isDel;

            RuRo.BLL.PatientDiagnose bll=new RuRo.BLL.PatientDiagnose();
            bll.Add(model);
            RuRo.Common.MessageBox.ShowAndRedirect(this,"保存成功!","add.aspx");
        }
Esempio n. 5
0
 private void ShowInfo(int id)
 {
     RuRo.BLL.PatientDiagnose bll=new RuRo.BLL.PatientDiagnose();
     RuRo.Model.PatientDiagnose model=bll.GetModel(id);
     this.lblid.Text=model.id.ToString();
     this.txtCardno.Text=model.Cardno;
     this.txtCsrq00.Text=model.Csrq00;
     this.txtPatientName.Text=model.PatientName;
     this.txtSex.Text=model.Sex;
     this.txtBrithday.Text=model.Brithday.ToString();
     this.txtCardId.Text=model.CardId;
     this.txtTel.Text=model.Tel;
     this.txtRegisterNo.Text=model.RegisterNo;
     this.txtIcd.Text=model.Icd;
     this.txtDiagnose.Text=model.Diagnose;
     this.txtType.Text=model.Type;
     this.txtFlag.Text=model.Flag;
     this.txtDiagnoseDate.Text=model.DiagnoseDate;
     this.chkisDel.Checked=model.isDel;
 }
Esempio n. 6
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtCardno.Text.Trim().Length == 0)
            {
                strErr += "卡号不能为空!\\n";
            }
            if (this.txtCsrq00.Text.Trim().Length == 0)
            {
                strErr += "查询日期不能为空!\\n";
            }
            if (this.txtPatientName.Text.Trim().Length == 0)
            {
                strErr += "姓名不能为空!\\n";
            }
            if (this.txtSex.Text.Trim().Length == 0)
            {
                strErr += "性别不能为空!\\n";
            }
            if (!PageValidate.IsDateTime(txtBrithday.Text))
            {
                strErr += "出生日期格式错误!\\n";
            }
            if (this.txtCardId.Text.Trim().Length == 0)
            {
                strErr += "身份证号不能为空!\\n";
            }
            if (this.txtTel.Text.Trim().Length == 0)
            {
                strErr += "Tel不能为空!\\n";
            }
            if (this.txtRegisterNo.Text.Trim().Length == 0)
            {
                strErr += "RegisterNo不能为空!\\n";
            }
            if (this.txtIcd.Text.Trim().Length == 0)
            {
                strErr += "ICD码不能为空!\\n";
            }
            if (this.txtDiagnose.Text.Trim().Length == 0)
            {
                strErr += "诊断名称不能为空!\\n";
            }
            if (this.txtType.Text.Trim().Length == 0)
            {
                strErr += "诊断类型:1:中医疾病 2:中不能为空!\\n";
            }
            if (this.txtFlag.Text.Trim().Length == 0)
            {
                strErr += "诊断类别:1:西医诊断 2 中不能为空!\\n";
            }
            if (this.txtDiagnoseDate.Text.Trim().Length == 0)
            {
                strErr += "诊断日期不能为空!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            int      id           = int.Parse(this.lblid.Text);
            string   Cardno       = this.txtCardno.Text;
            string   Csrq00       = this.txtCsrq00.Text;
            string   PatientName  = this.txtPatientName.Text;
            string   Sex          = this.txtSex.Text;
            DateTime Brithday     = DateTime.Parse(this.txtBrithday.Text);
            string   CardId       = this.txtCardId.Text;
            string   Tel          = this.txtTel.Text;
            string   RegisterNo   = this.txtRegisterNo.Text;
            string   Icd          = this.txtIcd.Text;
            string   Diagnose     = this.txtDiagnose.Text;
            string   Type         = this.txtType.Text;
            string   Flag         = this.txtFlag.Text;
            string   DiagnoseDate = this.txtDiagnoseDate.Text;
            bool     IsDel        = this.chkIsDel.Checked;


            RuRo.Model.PatientDiagnose model = new RuRo.Model.PatientDiagnose();
            model.id           = id;
            model.Cardno       = Cardno;
            model.Csrq00       = Csrq00;
            model.PatientName  = PatientName;
            model.Sex          = Sex;
            model.Brithday     = Brithday;
            model.CardId       = CardId;
            model.Tel          = Tel;
            model.RegisterNo   = RegisterNo;
            model.Icd          = Icd;
            model.Diagnose     = Diagnose;
            model.Type         = Type;
            model.Flag         = Flag;
            model.DiagnoseDate = DiagnoseDate;
            model.IsDel        = IsDel;

            RuRo.BLL.PatientDiagnose bll = new RuRo.BLL.PatientDiagnose();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "list.aspx");
        }