Exemplo n.º 1
0
        public void InitEveryThing()
        {
            ListModel   = new List <ConsulationDoctorsModel>();
            ConModel    = new ConsulationBaseInfoModel();
            ConDocModel = new ConsulationDoctorsModel();
            if (!string.IsNullOrEmpty(this.IDCardNo))
            {
                this.Model = new RecordsBaseInfoBLL().GetModel(this.IDCardNo);
            }
            this.lbAddress.Text        = this.Model.Address;
            this.lbName.Text           = this.Model.CustomerName;
            this.lbIDCard.Text         = this.Model.IDCardNo;
            this.tbCreateMenName.Text  = this.Model.CreateMenName;
            this.tbCreateUnitName.Text = this.Model.CreateUnitName;
            this.dtpCreatTime.Text     = this.Model.CreateDate.Value.ToString();
            if (this.Model.Sex == "1")
            {
                this.lbSex.Text = "男";
            }
            else if (this.Model.Sex == "2")
            {
                this.lbSex.Text = "女";
            }


            this.ConModel.IDCardNo = lbIDCard.Text;
            this.EveryThingIsOk    = true;
        }
Exemplo n.º 2
0
 public void ReadInfo(int outkey)
 {
     for (int i = 0; i < dgConsulate.Rows.Count; i++)
     {
         ConDocModel = new ConsulationDoctorsModel();
         ConDocModel.ConsultationUnitName = dgConsulate.Rows[i].Cells[1].Value.ToString();
         ConDocModel.ConsultationDoctor1  = dgConsulate.Rows[i].Cells[2].Value.ToString();
         ConDocModel.ConsultationDoctor2  = dgConsulate.Rows[i].Cells[3].Value.ToString();
         ConDocModel.ConsultationDoctor3  = dgConsulate.Rows[i].Cells[4].Value.ToString();
         ConDocModel.OutKey = outkey;
         ListModel.Add(ConDocModel);
     }
 }
Exemplo n.º 3
0
 public void ReadInfo(int outkey)
 {
     for (int i = 0; i < dgConsulate.Rows.Count; i++)
     {
         doctorModel = new ConsulationDoctorsModel();
         doctorModel.ConsultationUnitName = dgConsulate.Rows[i].Cells["Column2"].Value.ToString();
         doctorModel.ConsultationDoctor1  = dgConsulate.Rows[i].Cells["Column3"].Value.ToString();
         doctorModel.ConsultationDoctor2  = dgConsulate.Rows[i].Cells["Column4"].Value.ToString();
         doctorModel.ConsultationDoctor3  = dgConsulate.Rows[i].Cells["Column5"].Value.ToString();
         if (string.IsNullOrEmpty(dgConsulate.Rows[i].Cells["Column6"].Value.ToString()))
         {
             doctorModel.OutKey = ID;
             AddListModel.Add(doctorModel);
         }
         else
         {
             doctorModel.ID = int.Parse(dgConsulate.Rows[i].Cells["Column6"].Value.ToString());
             ListModel.Add(doctorModel);
         }
     }
 }