protected void InitWindowFluctuation(object sender, DirectEventArgs e) { int id; if (!int.TryParse(hdfKeyRecord.Text, out id) || id <= 0) { return; } var recordId = int.Parse(hdfRecordId.Text); var hs = RecordController.GetById(recordId); var hsTeam = TeamController.GetByRecordId(recordId); var hsSalary = SalaryDecisionController.GetCurrent(recordId); var hsContract = ContractController.GetByConditionRecord(recordId); if (hs != null) { cbxChonCanBo.SelectedItem.Text = hs.FullName; txtEmployeeCode.Text = hs.EmployeeCode; txtDepartment.Text = hs.DepartmentName; txtBirthDate.Text = hs.BirthDateVn; txtPosition.Text = hs.PositionName; } txtTeam.Text = hsTeam.TeamName; txtConstruction.Text = hsTeam.ConstructionName; txtSalaryInsurance.Text = hsSalary.InsuranceSalary.ToString(); txtInsuranceSubmit.Text = (hsSalary.InsuranceSalary * (decimal)0.32).ToString(); txtContractNumber.Text = hsContract.ContractNumber; if (hsContract.ContractDate != null) { txtContractDate.SelectedDate = (DateTime)hsContract.ContractDate; } if (hsContract.EffectiveDate != null) { txtEffectiveDate.SelectedDate = (DateTime)hsContract.EffectiveDate; } var fluc = hr_FluctuationInsuranceServices.GetById(Convert.ToInt32(hdfKeyRecord.Text)); txtReason.Text = fluc.Reason; if (fluc.Type == false) { rbIncrease.Checked = true; } else { rbDecrease.Checked = true; } wdCreateFluctuation.Title = @"Cập nhật quyết định tăng giảm BHXH, BHYT, BHTN"; wdCreateFluctuation.Show(); hdfCommandName.Text = @"Update"; hdfChonCanBo.Text = hsTeam.RecordId.ToString(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cboEmployee_Selected(object sender, DirectEventArgs e) { try { if (!string.IsNullOrEmpty(cboEmployee.SelectedItem.Value)) { var record = RecordController.GetById(Convert.ToInt32(cboEmployee.SelectedItem.Value)); if (record != null) { // bind record data txtDepartmentName.Text = record.DepartmentName; txtPositionName.Text = record.PositionName; txtJobTitleName.Text = record.JobTitleName; // get current salary decision var salaryDecsion = SalaryDecisionController.GetCurrent(record.Id); if (salaryDecsion != null) { // bind current salary decision txtCurrName.Text = salaryDecsion.Name; txtCurrDecisionNumber.Text = salaryDecsion.DecisionNumber; txtCurrDecisionDate.Text = salaryDecsion.DecisionDate.ToString("dd/MM/yyyy"); txtCurrSignerName.Text = salaryDecsion.SignerName; txtCurrSignerPosition.Text = salaryDecsion.SignerPosition; txtCurrContractTypeName.Text = salaryDecsion.ContractTypeName; txtCurrBasicSalary.Text = salaryDecsion.BasicSalary.ToString("#,###"); txtCurrFactor.Text = salaryDecsion.Factor.ToString("#,###.00"); txtCurrGrossSalary.Text = salaryDecsion.GrossSalary.ToString("#,###"); txtCurrNetSalary.Text = salaryDecsion.NetSalary.ToString("#,###"); txtCurrContractSalary.Text = salaryDecsion.ContractSalary.ToString("#,###"); txtCurrInsuranceSalary.Text = salaryDecsion.InsuranceSalary.ToString("#,###"); txtCurrPercentageLeader.Text = salaryDecsion.PercentageLeader.ToString("0.00 %"); // bind new salary decision txtBasicSalary.Text = salaryDecsion.BasicSalary.ToString("#,###"); txtPercentageLeader.Text = salaryDecsion.PercentageLeader.ToString("0.00"); txtPercentageOverGrade.Text = salaryDecsion.PercentageOverGrade.ToString("0.00"); } } } } catch (Exception ex) { // show dilog Dialog.ShowError(ex); // log exception SystemLogController.Create(new SystemLogModel(CurrentUser.User.UserName, "Diễn biến lương - cboEmployee_Selected", ex)); } }
protected void cbxChonCanBo_Selected(object sender, DirectEventArgs e) { try { var id = int.Parse(cbxChonCanBo.SelectedItem.Value); var hs = RecordController.GetById(id); var hsTeam = TeamController.GetByRecordId(id); var hsSalary = SalaryDecisionController.GetCurrent(id); var hsContract = ContractController.GetByConditionRecord(id); if (hs == null) { return; } txtEmployeeCode.Text = hs.EmployeeCode; txtBirthDate.Text = hs.BirthDateVn; txtDepartment.Text = hs.DepartmentName; txtPosition.Text = hs.PositionName; txtTeam.Text = hsTeam.TeamName; txtConstruction.Text = hsTeam.ConstructionName; txtSalaryInsurance.Text = hsSalary.InsuranceSalary.ToString(); if (hsSalary.InsuranceSalary != null) { txtInsuranceSubmit.Text = (hsSalary.InsuranceSalary * (decimal)0.32).ToString(); } txtContractNumber.Text = hsContract.ContractNumber; if (hsContract.ContractDate != null) { txtContractDate.SelectedDate = (DateTime)hsContract.ContractDate; } if (hsContract.EffectiveDate != null) { txtEffectiveDate.SelectedDate = (DateTime)hsContract.EffectiveDate; } } catch (Exception ex) { ExtNet.Msg.Alert("Thông báo từ hệ thống", "Có lỗi xảy ra khi chọn cán bộ: " + ex.Message).Show(); } }
/// <summary> /// Sửa thông tin quyết định lương /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnEdit_Click(object sender, DirectEventArgs e) { try { var hsLuong = SalaryDecisionController.GetById(Convert.ToInt32(hdfRecordId.Text)); if (hsLuong == null) { X.Msg.Alert("Thông báo từ hệ thống", "Không tìm thấy quyết định lương").Show(); return; } // load general information for employee var hs = RecordController.GetById(hsLuong.RecordId); if (hs != null) { hdfChooseEmployee.Text = hs.Id.ToString(); cbxChooseEmployee.Text = hs.FullName; txtDepartment.Text = hs.DepartmentName; txtPosition.Text = hs.PositionName; txtJob.Text = hs.JobTitleName; } // load newest salary decision information var hsl = SalaryDecisionController.GetCurrent(hsLuong.RecordId); if (hsl != null) { //if (txtDecisionNumberOld.Visible == true && !string.IsNullOrEmpty(hsl.DecisionNumber)) // txtDecisionNumberOld.Text = hsl.DecisionNumber; //if (txtDecisionNameOld.Visible == true && !string.IsNullOrEmpty(hsl.DecisionName)) // txtDecisionNameOld.Text = hsl.DecisionName; //if (DecisionDateOld.Visible == true) // DecisionDateOld.SetValue(hsl.DecisionDate); //if (txtDecisionMakerOld.Visible == true && hsl.DecisionMaker != null) // txtDecisionMakerOld.Text = hsl.DecisionMaker; //if (EffectiveDateOld.Visible == true) // EffectiveDateOld.SetValue(hsl.EffectiveDate); //if (txtSalaryBasicOld.Visible == true && hsl.SalaryBasic != null) // txtSalaryBasicOld.SetValue(hsl.SalaryBasic); //txtSalaryGrossOld.SetValue(hsl.SalaryGross); //txtSalaryNetOld.SetValue(hsl.SalaryNet); //if (txtSalaryInsuranceOld.Visible == true && hsl.SalaryInsurance != null) // txtSalaryInsuranceOld.SetValue(hsl.SalaryInsurance); //if (txtOtherAllowanceOld.Visible == true && hsl.OtherAllowance != null) // txtOtherAllowanceOld.SetValue(hsl.OtherAllowance); //if (txtResponsibilityAllowanceOld.Visible == true && hsl.ResponsibilityAllowance != null) // txtResponsibilityAllowanceOld.SetValue(hsl.ResponsibilityAllowance); //if (txtAreaAllowanceOld.Visible == true && hsl.AreaAllowance != null) // txtAreaAllowanceOld.SetValue(hsl.AreaAllowance); var strContractTypeOldId = hr_ContractServices.GetFieldValueById(hsLuong.ContractId, "ContractTypeId"); if (!string.IsNullOrEmpty(strContractTypeOldId)) { var contractTypeOldName = cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeOldId), "Name"); txtContractTypeOld.Text = "" + contractTypeOldName; } } // load current decision information //if (txtDecisionNumberNew.Visible) // txtDecisionNumberNew.Text = hsLuong.DecisionNumber; //if (DecisionDateNew.Visible) // DecisionDateNew.SetValue(hsLuong.DecisionDate); //if (txtDecisionNameNew.Visible) // txtDecisionNameNew.Text = hsLuong.DecisionName; //if (EffectiveDateNew.Visible) // EffectiveDateNew.SetValue(hsLuong.EffectiveDate); //if (txtDecisionMakerNew.Visible) // txtDecisionMakerNew.Text = hsLuong.DecisionMaker; //cbxMakerPosition.Text = hsLuong.MakerPosition; var strContractTypeId = hr_ContractServices.GetFieldValueById(hsLuong.ContractId, "ContractTypeId"); if (!string.IsNullOrEmpty(strContractTypeId)) { var contractTypeName = cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeId), "Name"); cbxContractTypeNew.Text = "" + contractTypeName; hdfContractTypeNew.SetValue(strContractTypeId); } // them ten nguoi qd if (composifieldAttach.Visible) { hdfAttachFile.Text = hsLuong.AttachFileName; if (!string.IsNullOrEmpty(hsLuong.AttachFileName)) { hdfAttachFile.Text = hsLuong.AttachFileName; uploadAttachFile.Text = GetFileName(hsLuong.AttachFileName); } } if (txtNoteNew.Visible) { txtNoteNew.Text = hsLuong.Note; } //txtSalaryBasicNew.SetValue(hsLuong.SalaryBasic); //txtSalaryContractNew.SetValue(hsLuong.SalaryContract); //txtSalaryGrossNew.SetValue(hsLuong.SalaryGross); //txtSalaryNetNew.SetValue(hsLuong.SalaryNet); //txtSalaryInsuranceNew.SetValue(hsLuong.SalaryInsurance); //txtSalaryFactorNew.SetValue(hsLuong.SalaryFactor.ToString().Replace(".", ",")); //txtPercentageSalaryNew.SetValue(hsLuong.PercentageSalary); //txtOtherAllowanceNew.SetValue(hsLuong.OtherAllowance); //txtAreaAllowanceNew.SetValue(hsLuong.AreaAllowance); //txtPositionAllowanceNew.SetValue(hsLuong.PositionAllowance); //txtResponsibilityAllowanceNew.SetValue(hsLuong.ResponsibilityAllowance); //txtBranchAllowanceNew.SetValue(hsLuong.BranchAllowance); // update form information wdCreateDecisionSalary.Title = @"Cập nhật thông tin quyết định lương"; wdCreateDecisionSalary.Icon = Icon.Pencil; btnUpdate.Hide(); btnUpdateEdit.Show(); btnUpdateClose.Hide(); wdCreateDecisionSalary.Show(); } catch (Exception ex) { X.MessageBox.Alert("Có lỗi xảy ra: ", ex.Message).Show(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbxChooseEmployee_Selected(object sender, DirectEventArgs e) { try { if (!string.IsNullOrEmpty(cbxChooseEmployee.SelectedItem.Value)) { int recordId = Convert.ToInt32(cbxChooseEmployee.SelectedItem.Value); var hs = RecordController.GetById(recordId); if (hs != null) { // set general infomation txtPosition.Text = hs.PositionName; txtJob.Text = hs.JobTitleName; txtDepartment.Text = hs.DepartmentName; // get newest salary development var hsl = SalaryDecisionController.GetCurrent(recordId); if (hsl != null) { //if (!string.IsNullOrEmpty(hsl.DecisionNumber)) // txtDecisionNumberOld.Text = hsl.DecisionNumber; //if (hsl.DecisionName != null) // txtDecisionNameOld.Text = hsl.DecisionName; //DecisionDateOld.SetValue(hsl.DecisionDate); //EffectiveDateOld.SetValue(hsl.EffectiveDate); //if (hsl.SalaryBasic != null) // txtSalaryBasicOld.SetValue(hsl.SalaryBasic); //if (hsl.SalaryInsurance != null) // txtSalaryInsuranceOld.SetValue(hsl.SalaryInsurance); //if (hsl.OtherAllowance != null) // txtOtherAllowanceOld.SetValue(hsl.OtherAllowance); //var strContractTypeId = // hr_ContractServices.GetFieldValueById(hsl.ContractId, "ContractTypeId"); //if (!string.IsNullOrEmpty(strContractTypeId)) //{ // var contractTypeName = // cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeId), // "Name"); // txtContractTypeOld.Text = "" + contractTypeName; //} //if (hsl.BranchAllowance != null) // txtBranchAllowanceOld.SetValue(hsl.BranchAllowance); } else { txtDecisionNumberOld.Text = ""; txtDecisionNameOld.Text = ""; DecisionDateOld.SetValue(""); txtDecisionMakerOld.Text = ""; EffectiveDateOld.SetValue(""); txtSalaryBasicOld.Text = ""; txtSalaryInsuranceOld.Text = ""; txtOtherAllowanceOld.Text = ""; txtContractTypeOld.Text = ""; } } else { txtPosition.Text = ""; txtJob.Text = ""; txtDepartment.Text = ""; } } } catch (Exception ex) { X.Msg.Alert("Thông báo từ hệ thống", "Có lỗi xảy ra khi chọn cán bộ: " + ex.Message).Show(); } }
/// <summary> /// Sửa thông tin quyết định lương /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnEdit_Click(object sender, DirectEventArgs e) { try { var hsLuong = SalaryDecisionController.GetById(Convert.ToInt32(hdfRecordId.Text)); if (hsLuong == null) { X.Msg.Alert("Thông báo từ hệ thống", "Không tìm thấy quyết định lương").Show(); return; } // load general information for employee var hs = RecordController.GetById(hsLuong.RecordId); if (hs != null) { hdfChonCanBo.Text = hs.Id.ToString(); cbxChonCanBo.Text = hs.FullName; txtDepartment.Text = hs.DepartmentName; txtChucVu.Text = hs.PositionName; txtCongViec.Text = hs.JobTitleName; } // load newest salary decision information var hsl = SalaryDecisionController.GetCurrent(hsLuong.RecordId); if (hsl != null) { //if(txtSoQDCu.Visible == true && !string.IsNullOrEmpty(hsl.DecisionNumber)) // txtSoQDCu.Text = hsl.DecisionNumber; //if(txtTenQDCu.Visible == true && !string.IsNullOrEmpty(hsl.DecisionName)) // txtTenQDCu.Text = hsl.DecisionName; //if(dfNgayQDCu.Visible == true) // dfNgayQDCu.SetValue(hsl.DecisionDate); //if(txtNguoiQDCu.Visible == true && hsl.DecisionMaker != null) // txtNguoiQDCu.Text = hsl.DecisionMaker; //if(dfNgayCoHieuLucCu.Visible == true) // dfNgayCoHieuLucCu.SetValue(hsl.EffectiveDate); //if(cbxNgachCu.Visible == true) //{ // cbxNgachCu.SetValue(string.IsNullOrEmpty(hsl.QuantumCode) ? "" : hsl.QuantumName); //} //if(txtBacLuongCu.Visible == true && !string.IsNullOrEmpty(hsl.SalaryGrade)) // txtBacLuongCu.Text = hsl.SalaryGrade; //if(txtHeSoLuongCu.Visible == true && hsl.SalaryFactor != null) // txtHeSoLuongCu.SetValue(hsl.SalaryFactor); //if(txtMucLuongCu.Visible == true && hsl.SalaryBasic != null) // txtMucLuongCu.SetValue(hsl.SalaryBasic); //if(txtLuongDongBHCu.Visible == true && hsl.SalaryInsurance != null) // txtLuongDongBHCu.SetValue(hsl.SalaryInsurance); //if(txtPhuCapKhacCu.Visible == true && hsl.OtherAllowance != null) // txtPhuCapKhacCu.SetValue(hsl.OtherAllowance); //if(txtPCTrachNhiemCu.Visible == true && hsl.ResponsibilityAllowance != null) // txtPCTrachNhiemCu.SetValue(hsl.ResponsibilityAllowance); //if(txtPCKhuVucCu.Visible == true && hsl.AreaAllowance != null) // txtPCKhuVucCu.SetValue(hsl.AreaAllowance); //if(txtVuotKhungCu.Visible == true && hsl.OutFrame != null) // txtVuotKhungCu.SetValue(hsl.OutFrame); var strContractTypeOldId = hr_ContractServices.GetFieldValueById(hsLuong.ContractId, "ContractTypeId"); if (!string.IsNullOrEmpty(strContractTypeOldId)) { var contractTypeOldName = cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeOldId), "Name"); cbHopDongLoaiHopDongCu.Text = "" + contractTypeOldName; } } // load current decision information if (txtSoQDMoi.Visible == true) { txtSoQDMoi.Text = hsLuong.DecisionNumber; } if (dfNgayQDMoi.Visible == true) { dfNgayQDMoi.SetValue(hsLuong.DecisionDate); } //if(txtTenQDMoi.Visible == true) // txtTenQDMoi.Text = hsLuong.DecisionName; if (dfNgayHieuLucMoi.Visible == true) { dfNgayHieuLucMoi.SetValue(hsLuong.EffectiveDate); } //if(txtNguoiQD.Visible == true) // txtNguoiQD.Text = hsLuong.DecisionMaker; //cbxMakerPosition.Text = hsLuong.MakerPosition; var strContractTypeId = hr_ContractServices.GetFieldValueById(hsLuong.ContractId, "ContractTypeId"); if (!string.IsNullOrEmpty(strContractTypeId)) { var contractTypeName = cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeId), "Name"); cbHopDongLoaiHopDongMoi.Text = "" + contractTypeName; hdfLoaiHopDong.SetValue(strContractTypeId); } // them ten nguoi qd if (composifieldAttach.Visible == true) { hdfTepTinDinhKem.Text = hsLuong.AttachFileName; if (!string.IsNullOrEmpty(hsLuong.AttachFileName)) { hdfTepTinDinhKem.Text = hsLuong.AttachFileName; fufTepTinDinhKem.Text = GetFileName(hsLuong.AttachFileName); } } if (txtGhiChuMoi.Visible == true) { txtGhiChuMoi.Text = hsLuong.Note; } // load current salary information if (cbx_ngachMoi.Visible == true) { //if(string.IsNullOrEmpty(hsl.QuantumCode)) //{ // hdfQuantumId.SetValue(""); // cbx_ngachMoi.SetValue(""); //} //else //{ // hdfQuantumId.SetValue(hsl.QuantumId); // cbx_ngachMoi.SetValue(hsl.QuantumName); //} } //if(cbxBacMoi.Visible == true) //{ // hdfSalaryGrade.SetValue(hsLuong.SalaryGrade); // cbxBacMoi.SetValue("Bậc " + hsLuong.SalaryGrade.ToString()); //} //if(txtHeSoLuongMoi.Visible) // txtHeSoLuongMoi.SetValue(hsLuong.SalaryFactor); //if(txtMucLuongMoi.Visible) // txtMucLuongMoi.SetValue(hsLuong.SalaryBasic); //if(txtLuongDongBHMoi.Visible == true) // txtLuongDongBHMoi.SetValue(hsLuong.SalaryInsurance); //if(txtBacLuongNBMoi.Visible == true) // txtBacLuongNBMoi.Text = hsLuong.SalaryGradeLift; //if(dfNgayHLNBMoi.Visible == true && !Util.GetInstance().IsDateNull(hsLuong.SalaryGradeDate)) // dfNgayHLNBMoi.SetValue(hsLuong.SalaryGradeDate); //if(txtPhuCapKhacMoi.Visible == true) // txtPhuCapKhacMoi.SetValue(hsLuong.OtherAllowance); //if(txtPhuCapChucVuMoi.Visible == true) // txtPhuCapChucVuMoi.SetValue(hsLuong.PositionAllowance); //if(txtVuotKhungMoi.Visible == true) // txtVuotKhungMoi.SetValue(hsLuong.OutFrame); //txtThamnien.SetValue(hsLuong.Seniority); //if(txtPhuCapTrachNhiemMoi.Visible == true) // txtPhuCapTrachNhiemMoi.SetValue(hsLuong.ResponsibilityAllowance); //if(txtPhuCapKhuVucMoi.Visible == true) // txtPhuCapKhuVucMoi.SetValue(hsLuong.AreaAllowance); //txtPCNganh.SetValue(hsLuong.BranchAllowance); // update form information wdTaoQuyetDinhLuong.Title = "Cập nhật thông tin quyết định lương"; wdTaoQuyetDinhLuong.Icon = Icon.Pencil; btnCapNhat.Hide(); btnCapNhatSua.Show(); btnCapNhatDongLai.Hide(); wdTaoQuyetDinhLuong.Show(); } catch (Exception ex) { X.MessageBox.Alert("Có lỗi xảy ra: ", ex.Message).Show(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbxChonCanBo_Selected(object sender, DirectEventArgs e) { try { if (!string.IsNullOrEmpty(cbxChonCanBo.SelectedItem.Value)) { int recordId = Convert.ToInt32(cbxChonCanBo.SelectedItem.Value); var hs = RecordController.GetById(recordId); if (hs != null) { // set general infomation txtChucVu.Text = hs.PositionName; txtCongViec.Text = hs.JobTitleName; txtDepartment.Text = hs.DepartmentName; // get newest salary development var hsl = SalaryDecisionController.GetCurrent(recordId); if (hsl != null) { if (!string.IsNullOrEmpty(hsl.DecisionNumber)) { txtSoQDCu.Text = hsl.DecisionNumber; } //if(hsl.DecisionName != null) // txtTenQDCu.Text = hsl.DecisionName; //dfNgayQDCu.SetValue(hsl.DecisionDate); ////if (hsl.HOSO != null) //// txtNguoiQDCu.Text = hsl.HOSO.HO_TEN; //dfNgayCoHieuLucCu.SetValue(hsl.EffectiveDate); //cbxNgachCu.SetValue(hsl.QuantumName); //if(!string.IsNullOrEmpty(hsl.SalaryGrade)) // txtBacLuongCu.Text = "Bậc " + hsl.SalaryGrade; //if(hsl.SalaryFactor != null) // txtHeSoLuongCu.SetValue(hsl.SalaryFactor); //if(hsl.SalaryBasic != null) // txtMucLuongCu.SetValue(hsl.SalaryBasic); //if(hsl.SalaryInsurance != null) // txtLuongDongBHCu.SetValue(hsl.SalaryInsurance); //if(hsl.OtherAllowance != null) // txtPhuCapKhacCu.SetValue(hsl.OtherAllowance); //if(hsl.OutFrame != null) // txtVuotKhungCu.SetValue(hsl.OutFrame); var strContractTypeId = hr_ContractServices.GetFieldValueById(hsl.ContractId, "ContractTypeId"); if (!string.IsNullOrEmpty(strContractTypeId)) { var contractTypeName = cat_ContractTypeServices.GetFieldValueById(Convert.ToInt32(strContractTypeId), "Name"); cbHopDongLoaiHopDongCu.Text = "" + contractTypeName; } //if(hsl.Seniority != null) // txtThamNienCu.SetValue(hsl.Seniority); //if(hsl.BranchAllowance != null) // txtPCNganhCu.SetValue(hsl.BranchAllowance); } else { txtSoQDCu.Text = ""; txtTenQDCu.Text = ""; dfNgayQDCu.SetValue(""); txtNguoiQDCu.Text = ""; dfNgayCoHieuLucCu.SetValue(""); cbxNgachCu.Text = ""; txtBacLuongCu.Text = ""; txtHeSoLuongCu.Text = ""; txtMucLuongCu.Text = ""; txtLuongDongBHCu.Text = ""; txtPhuCapKhacCu.Text = ""; txtVuotKhungCu.Text = ""; cbHopDongLoaiHopDongCu.Text = ""; } } else { txtChucVu.Text = ""; txtCongViec.Text = ""; txtDepartment.Text = ""; } } } catch (Exception ex) { X.Msg.Alert("Thông báo từ hệ thống", "Có lỗi xảy ra khi chọn cán bộ: " + ex.Message).Show(); } }