/// <summary>
        /// HAM THUC HIEN TAO MOI CHI TIET DICH VU
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdNew_Click(object sender, EventArgs e)
        {
            frm_themmoi_dichvucls_chitiet frm = new frm_themmoi_dichvucls_chitiet();

            frm.txtID.Text          = "-1";
            frm.m_enAction          = action.Insert;
            frm.grdlistChitiet      = grdChitiet;
            frm.grdlist             = grdServiceDetail;
            frm.dtDataServiceDetail = dsTable;
            frm.Service_ID          = Utility.Int32Dbnull(txtLoaiDichvu.MyID, -1);
            frm.ShowDialog();
            grdServiceDetail_SelectionChanged(grdServiceDetail, e);
            ModifyCommand();
        }
 /// <summary>
 /// HAM THUC HIEN SUA THONG TIN CHI TIET
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdEdit_Click(object sender, EventArgs e)
 {
     if (_currentGRd != null && _currentGRd.Name == grdServiceDetail.Name)
     {
         if (Utility.isValidGrid(grdServiceDetail))
         {
             frm_themmoi_dichvucls_chitiet frm = new frm_themmoi_dichvucls_chitiet();
             frm.txtID.Text          = grdServiceDetail.GetValue(DmucDichvuclsChitiet.Columns.IdChitietdichvu).ToString();
             frm.m_enAction          = action.Update;
             frm.grdlist             = grdServiceDetail;
             frm.grdlistChitiet      = grdChitiet;
             frm.dtDataServiceDetail = dsTable;
             if (grdServiceDetail.CurrentRow != null)
             {
                 frm.drServiceDetail = Utility.FetchOnebyCondition(dsTable, DmucDichvuclsChitiet.Columns.IdChitietdichvu + "=" + v_ServiceDetail_Id);
             }
             frm.ShowDialog();
             grdServiceDetail_SelectionChanged(grdServiceDetail, e);
         }
     }
     else
     {
         if (Utility.isValidGrid(grdChitiet))
         {
             frm_themmoi_dichvucls_chitiet frm = new frm_themmoi_dichvucls_chitiet();
             frm.txtID.Text          = grdChitiet.GetValue(DmucDichvuclsChitiet.Columns.IdChitietdichvu).ToString();
             frm.m_enAction          = action.Update;
             frm.grdlist             = grdChitiet;
             frm.grdlistChitiet      = grdChitiet;
             frm.dtDataServiceDetail = dsTable;
             if (grdChitiet.CurrentRow != null)
             {
                 frm.drServiceDetail = Utility.FetchOnebyCondition(dsTable, DmucDichvuclsChitiet.Columns.IdChitietdichvu + "=" + v_ServiceDetail_Id);
             }
             frm.ShowDialog();
             grdServiceDetail_SelectionChanged(grdServiceDetail, e);
         }
     }
     ModifyCommand();
 }