private void Initialize() { DataTable dt = showcardbase.GetDisease(); //中医诊断 DataRow[] diseaseDR = dt.Select("sort='B'"); dtzy = dt.Clone(); dtzy.Rows.Clear(); foreach (DataRow dr in diseaseDR) { dtzy.Rows.Add(dr.ItemArray); } //证型 DataRow[] rows = dt.Select("sort='Z'"); dtzx = dt.Clone(); dtzx.Rows.Clear(); foreach (DataRow dr in rows) { dtzx.Rows.Add(dr.ItemArray); } //西医诊断 DataRow[] rowss = dt.Select("sort='D'"); dtxy = dt.Clone(); dtxy.Rows.Clear(); foreach (DataRow dr in rowss) { dtxy.Rows.Add(dr.ItemArray); } this.txtzy.SetSelectionCardDataSource(dtzy); this.txtzx.SetSelectionCardDataSource(dtzx); this.txtxy.SetSelectionCardDataSource(dtxy); }
public FrmDeath(HIS.Model.ZY_PatList _patlist, long _userid, long _deptid) { InitializeComponent(); patlist = _patlist; userid = Convert.ToInt32(_userid); deptid = Convert.ToInt32(_deptid); this.BindPat(); DataTable dt = showcardbase.GetDisease(); this.txtdiag.SetSelectionCardDataSource(dt); orderop = new HIS.ZYDoc_BLL.OrderInfo.OrderOperation(); }