private void InitData()
        {
            Result result = XetNghiemTayBus.GetDonViList();

            if (result.IsOK)
            {
                DataTable dt = result.QueryResult as DataTable;
                _uNormal_Chung.DonViList = dt;
            }
            else
            {
                MsgBox.Show(this.Text, result.GetErrorAsString("XetNghiemTayBus.GetDonViList"), IconType.Error);
                Utility.WriteToTraceLog(result.GetErrorAsString("XetNghiemTayBus.GetDonViList"));
            }
        }
Пример #2
0
        private void InitData()
        {
            Result result = XetNghiemTayBus.GetDonViList();

            if (result.IsOK)
            {
                DataTable dt = result.QueryResult as DataTable;
                _uNormal.DonViList = dt;
            }
            else
            {
                MsgBox.Show(this.Text, result.GetErrorAsString("XetNghiemTayBus.GetDonViList"), IconType.Error);
                Utility.WriteToTraceLog(result.GetErrorAsString("XetNghiemTayBus.GetDonViList"));
            }

            result = XetNghiemTayBus.GetNhomXetNghiemList();
            if (result.IsOK)
            {
                DataTable dt = result.QueryResult as DataTable;
                //cboNhomXetNghiem.Items.Add(string.Empty);
                foreach (DataRow row in dt.Rows)
                {
                    string nhomXetNghiem = row[0].ToString().Trim();
                    if (nhomXetNghiem == string.Empty)
                    {
                        continue;
                    }
                    cboNhomXetNghiem.Items.Add(nhomXetNghiem);
                }
            }
            else
            {
                MsgBox.Show(this.Text, result.GetErrorAsString("XetNghiemTayBus.GetNhomXetNghiemList"), IconType.Error);
                Utility.WriteToTraceLog(result.GetErrorAsString("XetNghiemTayBus.GetNhomXetNghiemList"));
            }
        }