Пример #1
0
        public FrmCommonDiagnosis(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser   = new User(currentUserId);
            this.Text      = chineseName;
            this.FormTitle = chineseName;

            _commonDiagnosis = new HIS.MZDoc_BLL.CommonDiagnosis();
            dGVEMain.SetSelectionCardDataSource(_commonDiagnosis.LoadShowCardData(), _firstInputColumnIndex);
            Controller = new HIS_MZDocManager.Action.FrmDataInstallController(this);
            Controller.LoadData();
        }
Пример #2
0
        public void RefreshData()
        {
            this._lvwOfenDiagnosis.Items.Clear();
            DataTable dataSource = new HIS.MZDoc_BLL.CommonDiagnosis().LoadCommonData(_employeeId);

            for (int index = 0; index < dataSource.Rows.Count; index++)
            {
                ListViewItem listViewItem = new ListViewItem();
                listViewItem.Text = dataSource.Rows[index]["Diagnosis_Code"].ToString();
                listViewItem.SubItems.Add(dataSource.Rows[index]["Diagnosis_Name"].ToString());
                listViewItem.SubItems.Add(dataSource.Rows[index]["Frequency"].ToString());
                listViewItem.SubItems.Add(dataSource.Rows[index]["Py_code"].ToString());
                listViewItem.SubItems.Add(dataSource.Rows[index]["Wb_code"].ToString());
                this._lvwOfenDiagnosis.Items.Add(listViewItem);
            }
        }