Ejemplo n.º 1
0
 public void btn_Delete_ChungChi_Click(object sender, DirectEventArgs e)
 {
     try
     {
         foreach (var item in RowSelectionModel_ChungChi.SelectedRows)
         {
             new ChungChiUngVienController().Delete(int.Parse("0" + item.RecordID));
         }
         btn_Edit_ChungChi.Disabled   = true;
         btn_Delete_ChungChi.Disabled = true;
         GridPanel_ChungChi.Reload();
         RowSelectionModel_ChungChi.ClearSelections();
     }
     catch (Exception ex)
     {
         Dialog.ShowError(ex.Message);
     }
 }
Ejemplo n.º 2
0
    protected void btnUpdateChungChi_Click(object sender, DirectEventArgs e)
    {
        try
        {
            ChungChiUngVienController ctrol      = new ChungChiUngVienController();
            DAL.BangCapChungChi       hschungchi = new BangCapChungChi();
            hschungchi.MaChungChi = hdfTenChungChi.Text;
            if (df_NgayCap.SelectedDate.ToString().Contains("0001") == false)
            {
                hschungchi.NgayCap = df_NgayCap.SelectedDate;
            }
            if (df_NgayHetHan.SelectedDate.ToString().Contains("0001") == false)
            {
                hschungchi.NgayHetHan = df_NgayHetHan.SelectedDate;
            }
            hschungchi.NoiDaoTao  = cbx_NoiDaoTao.Text;
            hschungchi.MA_XEPLOAI = hdfTenXepLoai.Text;
            hschungchi.FR_KEY     = decimal.Parse(hdfRecordID.Text);
            hschungchi.GhiChu     = txtGhiChuChungChi.Text;
            if (e.ExtraParams["Command"] == "Edit")
            {
                hschungchi.ID = int.Parse("0" + RowSelectionModel_ChungChi.SelectedRecordID);
                ctrol.Update(hschungchi);
                wdAddChungChi.Hide();
                Dialog.ShowNotification("Cập nhật dữ liệu thành công!");
            }
            else
            {
                ctrol.Insert(hschungchi);
                Dialog.ShowNotification("Thêm mới thành công!");
            }

            if (e.ExtraParams["Close"] == "True")
            {
                wdAddChungChi.Hide();
            }
            GridPanel_ChungChi.Reload();
        }
        catch (Exception ex)
        {
            Dialog.ShowError(ex.Message);
        }
    }
Ejemplo n.º 3
0
 private void resetTabPanelAfterUpdate()
 {
     img_anhdaidien.ImageUrl = "../../NhanSu/ImageNhanSu/No_person.jpg";
     lblHoTen.Reset();
     lblGioiTinh.Reset();
     lblTTHN.Reset();
     lblEmail.Reset();
     lblTuoi.Reset();
     lblQuocGia.Reset();
     lblDanToc.Reset();
     lblTinhThanh.Reset();
     lblTonGiao.Reset();
     lblNoiOHienNay.Reset();
     lblChuyenNganh.Reset();
     lblTruongDaoTao.Reset();
     lblKinhNghiem.Reset();
     lblUuDiem.Reset();
     lblNhuocDiem.Reset();
     GridPanel_ChungChi.Reload();
     GridPanel_KinhNghiemLamViec.Reload();
     GridPanel_BangCap.Reload();
     GridPanel_TepTinDinhkem.Reload();
     GridPanel_KetQuaPV.Reload();
 }