コード例 #1
0
 private void FrmDiaglogGhiChuXetNghiem_Load(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(maKQ))
     {
         XtraMessageBox.Show("Không tìm thấy nội dung mà bạn cần!", "BioNet - Chương trình sàng lọc sơ sinh!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         this.btnSua.Enabled = false;
         this.btnThoat.Focus();
     }
     else
     {
         var res = BioNet_Bus.GetGhiChuPhongXetNghiem(maKQ);
         if (!string.IsNullOrEmpty(res))
         {
             this.txtGhiChu.Text     = res;
             this.btnSua.Enabled     = true;
             this.txtGhiChu.Enabled  = false;
             this.txtGhiChu.ReadOnly = true;
         }
         else
         {
             XtraMessageBox.Show("Không tìm thấy nội dung mà bạn cần!", "BioNet - Chương trình sàng lọc sơ sinh!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             this.btnSua.Enabled = false;
             this.btnThoat.Focus();
         }
     }
 }