/// <summary>
 /// hàm thực hiện việc cho phép thông tin của phiếu trả thuốc từ khoa nội trú về kho
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdUpdatePhieuNhap_Click(object sender, EventArgs e)
 {
     try
     {
         if (!InValiUpdateXoa())
         {
             return;
         }
         int IdPhieu = Utility.Int32Dbnull(grdList.GetValue(TPhieutrathuocthua.Columns.Id), -1);
         frm_themmoi_phieutrathuocthua frm = new frm_themmoi_phieutrathuocthua(KIEU_THUOC_VT);
         frm.m_enAction          = action.Update;
         frm.m_dtData            = m_dtPhieutrathuocthua;
         frm._OnInsertCompleted += frm__OnInsertCompleted;
         frm.idPhieutra          = IdPhieu;
         frm.ShowDialog();
     }
     catch (Exception exception)
     {
         if (globalVariables.IsAdmin)
         {
             Utility.ShowMsg(exception.ToString());
         }
     }
     finally
     {
         ModifyCommand();
     }
 }
 /// <summary>
 /// hàm thực hiện việc thêm phiếu
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdThemPhieuNhap_Click(object sender, EventArgs e)
 {
     try
     {
         frm_themmoi_phieutrathuocthua frm = new frm_themmoi_phieutrathuocthua(KIEU_THUOC_VT);
         frm.m_enAction          = action.Insert;
         frm._OnInsertCompleted += frm__OnInsertCompleted;
         frm.m_dtData            = m_dtPhieutrathuocthua;
         frm.idPhieutra          = -1;
         frm.ShowDialog();
     }
     catch (Exception exception)
     {
         if (globalVariables.IsAdmin)
         {
             Utility.ShowMsg(exception.ToString());
         }
     }
     finally
     {
         ModifyCommand();
     }
 }
        /// <summary>
        /// hàm thực hiện việc cho phép thông tin của phiếu trả thuốc từ khoa nội trú về kho
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdUpdatePhieuNhap_Click(object sender, EventArgs e)
        {
            try
            {
                if (!InValiUpdateXoa()) return;
                int IdPhieu = Utility.Int32Dbnull(grdList.GetValue(TPhieutrathuocthua.Columns.Id), -1);
                frm_themmoi_phieutrathuocthua frm = new frm_themmoi_phieutrathuocthua(KIEU_THUOC_VT);
                frm.m_enAction = action.Update;
                frm.m_dtData = m_dtPhieutrathuocthua;
                frm._OnInsertCompleted += frm__OnInsertCompleted;
                frm.idPhieutra = IdPhieu;
                frm.ShowDialog();

            }
            catch (Exception exception)
            {
                if (globalVariables.IsAdmin)
                {
                    Utility.ShowMsg(exception.ToString());
                }

            }
            finally
            {
                ModifyCommand();
            }
        }
        /// <summary>
        /// hàm thực hiện việc thêm phiếu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdThemPhieuNhap_Click(object sender, EventArgs e)
        {
            try
            {
                frm_themmoi_phieutrathuocthua frm = new frm_themmoi_phieutrathuocthua(KIEU_THUOC_VT);
                frm.m_enAction = action.Insert;
                frm._OnInsertCompleted+=frm__OnInsertCompleted;
                frm.m_dtData = m_dtPhieutrathuocthua;
                frm.idPhieutra = -1;
                frm.ShowDialog();

            }
            catch (Exception exception)
            {
                if (globalVariables.IsAdmin)
                {
                    Utility.ShowMsg(exception.ToString());
                }

            }
            finally
            {
                ModifyCommand();
            }
        }