Esempio n. 1
0
 public FrmSsApply(HIS.Model.ZY_PatList _patlist, long _userid, long _deptid)
 {
     InitializeComponent();
     patlist = _patlist;
     user    = new User(_userid);
     dept    = new Deptment(_deptid);
     HIS_ZYDocManager.PatientControl patient = new PatientControl();
     this.inPatientPanel1.InPaitent = patient.SetData(patlist);
     applyop = new HIS.ZYDoc_BLL.OperaApply.SsApply();
     apply   = new HIS.Model.SS_APPLY();
     InitData();
 }
Esempio n. 2
0
 /// <summary>
 /// 选项改变时事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabPageControl1.SelectedIndex == 0)
     {
         if (listView1.SelectedItems.Count > 0)
         {
             patlist = (HIS.Model.ZY_PatList)listView1.SelectedItems[0].Tag;
             HIS_ZYDocManager.PatientControl patient = new PatientControl();
             this.inPatientPanel1.InPatientExtDB = patient.SetData(patlist);
         }
     }
     else
     {
         if (listView2.SelectedItems.Count > 0)
         {
             patlist = (HIS.Model.ZY_PatList)listView2.SelectedItems[0].Tag;
             HIS_ZYDocManager.PatientControl patient = new PatientControl();
             this.inPatientPanel1.InPatientExtDB = patient.SetData(patlist);
         }
     }
 }