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); if (hs == null) { return; } txtEmployeeCode.Text = hs.EmployeeCode; txtBirthDate.Text = hs.BirthDateVn; txtDepartment.Text = hs.DepartmentName; txtPosition.Text = hs.PositionName; txtJobTitle.Text = hs.JobTitleName; txtIDNumber.Text = hs.IDNumber; txtIDIssueDate.Text = hs.IDIssueDate.ToString(); txtTeam.Text = hsTeam.TeamName; txtConstruction.Text = hsTeam.ConstructionName; } 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(); } }
protected void EditMoveToClick(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); if (hs != null) { txtUpdateFullname.Text = hs.FullName; } var business = hr_BusinessHistoryServices.GetById(id); if (business == null) { return; } txtUpdateDecisionNumber.Text = business.DecisionNumber; txtUpdateDescription.Text = business.Description; txtUpdateCurrentPosition.Text = business.CurrentPosition; txtUpdateShortDecision.Text = business.ShortDecision; cbxUpdateCurrentDepartment.Text = business.CurrentDepartment; cbxUpdateMakerPosition.Text = business.DecisionPosition; if (!string.IsNullOrEmpty(business.FileScan)) { int pos = business.FileScan.LastIndexOf('/'); if (pos != -1) { string tenTT = business.FileScan.Substring(pos + 1); uploadFileScan.Text = tenTT; } hdfTepTinDinhKem.Text = business.FileScan; } if (business.DecisionDate != null) { dfUpdateDecisionDate.SetValue(business.DecisionDate); } txtUpdateDecisionMaker.Text = business.DecisionMaker; if (business.ExpireDate != null) { dfUpdateExpireDate.SetValue(business.ExpireDate); } // init command name & window properties hdfCommandName.Text = @"Update"; hdfCommandUpdate.Text = @"Update"; // show window txtUpdateDecisionNumber.Disabled = false; dfUpdateDecisionDate.Disabled = false; dfUpdateExpireDate.Disabled = false; wdUpdateRetirement.Show(); }
protected void InitWindowWorkProcess(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); if (hs != null) { txtFullname.Text = hs.FullName; txtNewPosition.Text = hs.PositionName; txtNewJobTitle.Text = hs.JobTitleName; txtNewDepartment.Text = hs.DepartmentName; } var wp = hr_WorkProcessServices.GetById(id); if (wp == null) { return; } txtCapNhatSoQD.Text = wp.DecisionNumber; if (wp.DecisionDate != null) { dfCapNhatNgayQD.SelectedDate = (DateTime)wp.DecisionDate; } txtCapNhatNguoiQD.Text = wp.DecisionMaker; if (wp.EffectiveDate != null) { dfCapNhatNgayHieuLuc.SelectedDate = (DateTime)wp.EffectiveDate; } if (wp.ExpireDate != null) { dfUpdateExpireDate.SetValue(wp.ExpireDate); } txtUpdateSourceDepartment.Text = wp.SourceDepartment; cbxUpdateMakerPosition.Text = wp.MakerPosition; cbxChucVuMoi.Text = cat_PositionServices.GetFieldValueById(wp.NewPositionId, "Name"); cbxOldDEpartment.Text = cat_DepartmentServices.GetFieldValueById(wp.OldDepartmentId, "Name"); hdfOldPositionId.Text = wp.OldPositionId.ToString(); cbxOldPosition.Text = cat_PositionServices.GetFieldValueById(wp.OldPositionId, "Name"); //positionAllowance var salary = sal_SalaryDecisionServices.GetCurrent(wp.RecordId); // init command name & window properties hdfCommandName.Text = @"Update"; hdfCommandUpdate.Text = @"Update"; // show window wdCapNhatBoNhiemChucVu.Show(); }
public void BindData(ReportFilter filter) { try { ReportController rpCtr = new ReportController(); xrl_TenCongTy.Text = rpCtr.GetCompanyName(filter.SessionDepartment); var location = new ReportController().GetCityName(filter.SessionDepartment); xrtReportDate.Text = string.Format(xrtReportDate.Text, location, DateTime.Now.Day, DateTime.Now.Month, DateTime.Now.Year); //Lấy thông tin của nhân viên var record = RecordController.GetById(filter.RecordId); if (record != null) { xrl_FullName.Text = record.FullName; xrl_DepartmentName.Text = record.DepartmentName; xrl_Position.Text = record.PositionName; xrl_Occupation.Text = ""; xr_ParticipationDate.Text = record.ParticipationDate.ToString(); } //Tính thâm niên của nhân viên var seniority = SQLHelper.ExecuteTable( SQLBusinessAdapter.GetStore_CalculateSeniorityByRecordId(filter.RecordId)); if (seniority.Rows.Count > 0) { xrt_Seniority.Text = seniority.Rows[0]["Seniority"].ToString(); } // get data from date var fromDate = filter.StartDate != null ? filter.StartDate.Value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture) : string.Empty; // get data from date var toDate = filter.EndDate != null ? filter.EndDate.Value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture) : string.Empty; var table = SQLHelper.ExecuteTable( SQLBusinessAdapter.GetStore_ListContractOfEmployee(filter.RecordId, fromDate, toDate)); DataSource = table; xrt_ContractNumber.DataBindings.Add("Text", DataSource, "ContractNumber"); xrt_ContractType.DataBindings.Add("Text", DataSource, "ContractTypeName"); xrt_Job.DataBindings.Add("Text", DataSource, "JobName"); xrt_ContractDate.DataBindings.Add("Text", DataSource, "ContractDate", "{0:dd/MM/yyyy}"); xrt_EffectiveDate.DataBindings.Add("Text", DataSource, "EffectiveDate", "{0:dd/MM/yyyy}"); xrt_ContractEndDate.DataBindings.Add("Text", DataSource, "ContractEndDate", "{0:dd/MM/yyyy}"); xrt_ContractStatus.DataBindings.Add("Text", DataSource, "ContractStatusName"); } catch (Exception ex) { Dialog.ShowError("Có lỗi xảy ra: " + ex.Message); } }
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> /// TODO : using file upload function in base /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAccept_Click(object sender, DirectEventArgs e) { try { var filePath = string.Empty; //upload file var file = fufUploadControl.PostedFile; if (fufUploadControl.HasFile == false && file.ContentLength > 2000000) { Dialog.ShowNotification("File không được lớn hơn 200kb"); return; } else { try { var dir = new DirectoryInfo(Server.MapPath(hdfImageFolder.Text)); if (dir.Exists == false) { dir.Create(); } var path = Server.MapPath(hdfImageFolder.Text + "/") + fufUploadControl.FileName; filePath = hdfImageFolder.Text + "/" + Util.GetInstance().GetRandomString(10) + fufUploadControl.FileName; file.SaveAs(path); File.Move(path, Server.MapPath(filePath)); //update ảnh vào csdl if (!string.IsNullOrEmpty(hdfRecordId.Text)) { var hs = RecordController.GetById(Convert.ToInt32(hdfRecordId.Text)); hs.ImageUrl = filePath; RecordController.Update(hs); } hdfAnhDaiDien.Text = filePath; } catch (Exception ex) { Dialog.ShowError(ex.Message); } } wdUploadImageWindow.Hide(); //Hiển thị lại ảnh sau khi đã cập nhật xong // img_anhdaidien.ImageUrl = path1;//hdfImageFolder.Text + "/" + fufUploadControl.FileName; employeeDetail.SetProfileImage(filePath); grp_HoSoNhanSu.Reload(); } catch (Exception ex) { Dialog.ShowNotification(ex.Message); } }
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); if (hs != null) { cbxChonCanBo.SelectedItem.Text = hs.FullName; txtEmployeeCode.Text = hs.EmployeeCode; txtDepartment.Text = hs.DepartmentName; txtBirthDate.Text = hs.BirthDateVn; txtPosition.Text = hs.PositionName; txtJobTitle.Text = hs.JobTitleName; txtIDNumber.Text = hs.IDNumber; if (hs.IDIssueDate != null) { txtIDIssueDate.SelectedDate = (DateTime)hs.IDIssueDate; } } if (hsTeam == null) { return; } txtTeam.Text = hsTeam.TeamName; txtConstruction.Text = hsTeam.ConstructionName; var fluc = hr_FluctuationEmployeeServices.GetById(Convert.ToInt32(hdfKeyRecord.Text)); txtReason.Text = fluc.Reason; txtDate.SelectedDate = fluc.Date; if (fluc.Type == false) { rbIncrease.Checked = true; } else { rbDecrease.Checked = true; } wdCreateFluctuation.Title = @"Cập nhật quyết định tăng giảm nhân sự"; 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)); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ucChooseEmployee1_AfterClickAcceptButton(object sender, EventArgs e) { foreach (var item in ucChooseEmployee1.SelectedRow) { //RecordId, EmployeeCode, FullName, DepartmentName, PositionName, SalaryBasic, SalaryContract, //SalaryInsurance, SalaryPayDate // get employee information if (!string.IsNullOrEmpty(item.RecordID)) { // get employee information var recordModel = RecordController.GetById(Convert.ToInt32(item.RecordID)); // insert record to grid RM.RegisterClientScriptBlock("insert" + recordModel.Id, AddRecordString(recordModel)); } } }
private void ucChooseEmployee_AfterClickAcceptButton(object sender, EventArgs e) { var fullNames = string.Empty; var recordIds = string.Empty; foreach (var item in ucChooseEmployee.SelectedRow) { // get employee information var hs = RecordController.GetById(Convert.ToInt32(item.RecordID)); fullNames += "," + hs.FullName; recordIds += "," + hs.Id; } txtSelectedEmployee.Text = fullNames.TrimStart(',').TrimEnd(','); hdfSelectedEmployees.Text = recordIds.TrimStart(',').TrimEnd(','); }
public void BindData(ReportFilter filter) { try { // lấy thông tin chung xrl_TenCongTy.Text = ReportController.GetInstance().GetCompanyName(filter.SessionDepartment); var location = new ReportController().GetCityName(filter.SessionDepartment); xrt_ReportDate.Text = string.Format(xrt_ReportDate.Text, location, DateTime.Now.Day, DateTime.Now.Month, DateTime.Now.Year); //Lấy thông tin của nhân viên var record = RecordController.GetById(filter.RecordId); if (record != null) { xrl_HoTen.Text = record.FullName; xrl_PhongBan.Text = record.DepartmentName; xrl_ChucVu.Text = record.PositionName; xrl_ViTriCongViec.Text = ""; xr_TuyenChinhThuc.Text = record.ParticipationDate.ToString(); } //Tính thâm niên của nhân viên var seniority = SQLHelper.ExecuteTable( SQLManagementAdapter.GetStore_CalculateSeniorityByRecordId(filter.RecordId)); if (seniority.Rows.Count > 0) { xrThamNien.Text = seniority.Rows[0]["Seniority"].ToString(); } // lấy danh sách người phụ thuộc var table = SQLHelper.ExecuteTable( SQLManagementAdapter.GetStore_ListEmployeeDependence(filter.RecordId)); DataSource = table; xrt_FullName.DataBindings.Add("Text", DataSource, "FullName"); xrt_BirthYear.DataBindings.Add("Text", DataSource, "BirthYear"); xrt_Sex.DataBindings.Add("Text", DataSource, "SexName"); xrt_Relation.DataBindings.Add("Text", DataSource, "RelationName"); xrt_Occupation.DataBindings.Add("Text", DataSource, "Occupation"); xrt_WorkPlace.DataBindings.Add("Text", DataSource, "WorkPlace"); xrt_IDNumber.DataBindings.Add("Text", DataSource, "IDNumber"); xrt_Note.DataBindings.Add("Text", DataSource, "Note"); } catch (Exception ex) { Dialog.ShowNotification("Có lỗi xảy ra ", ex.Message); } }
/// <summary> /// Create report /// </summary> /// <returns></returns> private XtraReport CreateReport() { // init report //var report = new XtraReport(); // init report if (Enum.TryParse(Request.QueryString["rp"], true, out ReportTypeHJM rpType)) { switch (rpType) { //Curriculum case ReportTypeHJM.CurriculumVitae: var report = new rp_PrintCurriculumVitae(); // get report filter var filter = ((IBaseReport)report).GetFilter(); // set filter props filter.Departments = Request.QueryString["departments"]; filter.RecordIds = Request.QueryString["recordIds"]; filter.ReportDate = DateTime.Now; // update filter report ((IBaseReport)report).SetFilter(filter); // bind data ((IBaseReport)report).BindData(); return(report); //info employee detail 2C case ReportTypeHJM.InfoEmployeeDetail: var info = new rp_InformationEmployeeDetail(); var recordId = int.Parse(Request.QueryString["recordId"]); var record = RecordController.GetById(recordId); info.BindData(record); return(info); //info employee detail 2C - 98 case ReportTypeHJM.InfoEmployeeDetailV2: var infoDetail = new rp_InformationEmployeeDetail_V2(); var recordIdV2 = int.Parse(Request.QueryString["recordId"]); var recordV2 = RecordController.GetById(recordIdV2); infoDetail.BindData(recordV2); return(infoDetail); } } // return report return(null); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void ucChooseEmployee_AfterClickAcceptButton(object sender, EventArgs e) { try { hdfTotalRecord.Text = ucChooseEmployee.SelectedRow.Count.ToString(); foreach (var item in ucChooseEmployee.SelectedRow) { // get employee information var recordModel = RecordController.GetById(Convert.ToInt32(item.RecordID)); // insert record to grid RM.RegisterClientScriptBlock("insert" + recordModel.Id, AddRecordString(recordModel)); } } catch (Exception ex) { ExtNet.Msg.Alert("Thông báo từ hệ thống", "Có lỗi xảy ra: " + ex.Message).Show(); } }
public XtraReport CreateNewReport() { // sơ yếu lý lịch cán bộ v1 var info = new rp_InformationEmployeeDetail(); try { var rp = new Filter(); var prkey = int.Parse(Request.QueryString["prkey"]); var hs = RecordController.GetById(prkey); rp.RecordId = hs.Id; info.BindData(hs); } catch (Exception ex) { Dialog.ShowError("Có lỗi xảy ra " + ex.Message); } return(info); }
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> /// DataBind /// </summary> public void BindData() { try { //Lấy thông tin của nhân viên var record = RecordController.GetById(_filter.RecordId); if (record != null) { xrl_FullName.Text = record.FullName; xrl_DepartmentName.Text = record.DepartmentName; xrl_Position.Text = record.PositionName; xrl_Occupation.Text = ""; xr_ParticipationDate.Text = record.ParticipationDateVn; } //Tính thâm niên của nhân viên var seniority = SQLHelper.ExecuteTable(SQLReportAdapter.GetStore_CalculateSeniority(_filter.RecordId)); if (seniority.Rows.Count > 0) { xrt_Seniority.Text = seniority.Rows[0]["Seniority"].ToString(); } // from date var fromDate = _filter.StartDate != null?_filter.StartDate.Value.ToString("yyyy-MM-dd 00:00:00") : string.Empty; // to date var toDate = _filter.EndDate != null?_filter.EndDate.Value.ToString("yyyy-MM-dd 23:59:59") : string.Empty; // select form db var table = SQLHelper.ExecuteTable(SQLReportAdapter.GetStore_ContractOfEmployee(_filter.RecordId, fromDate, toDate, _filter.Condition)); DataSource = table; xrt_ContractNumber.DataBindings.Add("Text", DataSource, "ContractNumber"); xrt_ContractType.DataBindings.Add("Text", DataSource, "ContractTypeName"); xrt_Job.DataBindings.Add("Text", DataSource, "JobName"); xrt_ContractDate.DataBindings.Add("Text", DataSource, "ContractDate", "{0:dd/MM/yyyy}"); xrt_EffectiveDate.DataBindings.Add("Text", DataSource, "EffectiveDate", "{0:dd/MM/yyyy}"); xrt_ContractEndDate.DataBindings.Add("Text", DataSource, "ContractEndDate", "{0:dd/MM/yyyy}"); xrt_ContractStatus.DataBindings.Add("Text", DataSource, "ContractStatusName"); // other items // label report title if (!string.IsNullOrEmpty(_filter.ReportTitle)) { lblReportTitle.Text = _filter.ReportTitle; } // lablel duration if (_filter.StartDate != null && _filter.EndDate != null) { lblDuration.Text = lblDuration.Text.FormatWith(_filter.StartDate.Value.ToString("dd/MM/yyyy"), _filter.EndDate.Value.ToString("dd/MM/yyyy")); } else { lblDuration.Text = string.Empty; } // label report date lblReportDate.Text = lblReportDate.Text.FormatWith(_filter.ReportDate.Day, _filter.ReportDate.Month, _filter.ReportDate.Year); // created by if (!string.IsNullOrEmpty(_filter.CreatedByTitle)) { lblCreatedByTitle.Text = _filter.CreatedByTitle; } if (!string.IsNullOrEmpty(_filter.CreatedByName)) { lblCreatedByName.Text = _filter.CreatedByName; } // reviewed by if (!string.IsNullOrEmpty(_filter.ReviewedByTitle)) { lblReviewedByTitle.Text = _filter.ReviewedByTitle; } if (!string.IsNullOrEmpty(_filter.ReviewedByName)) { lblReviewedByName.Text = _filter.ReviewedByName; } // signed by if (!string.IsNullOrEmpty(_filter.SignedByTitle)) { lblSignedByTitle.Text = _filter.SignedByTitle; } if (!string.IsNullOrEmpty(_filter.SignedByName)) { lblSignedByName.Text = _filter.SignedByName; } } catch (Exception ex) { Dialog.ShowError(ex); } }
/// <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(); } }
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.GetByIdConditionRecord(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(); } }
/// <summary> /// /// </summary> /// <param name="keyword"></param> /// <param name="recordIds"></param> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <param name="start"></param> /// <param name="limit"></param> /// <returns></returns> public static PageResult <TimeSheetEventSummaryModel> GetReportDetail(string keyword, string recordIds, DateTime?startDate, DateTime?endDate, int?start, int?limit) { // init object var startPage = 0; int limitPage; var resultModels = new List <TimeSheetEventSummaryModel>(); var listRecordIds = new List <string>(); // string to list record id if (!string.IsNullOrEmpty(recordIds)) { listRecordIds = recordIds.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList(); } // caculate start limit page if (start != null) { startPage = (int)start; } if (limit != null && startPage + limit < listRecordIds.Count) { limitPage = (int)limit; } else { limitPage = listRecordIds.Count - startPage; } // paging by record id recordIds = string.Join(",", listRecordIds.GetRange(startPage, limitPage)); //get all events var timeSheetEvents = GetAll(keyword, recordIds, null, null, null, null, false, null, startDate, endDate, null, null, null, null); foreach (var id in listRecordIds.GetRange(startPage, limitPage)) { var timeSheetEvent = new TimeSheetEventModel(); // get event by record id var listEventByRecord = timeSheetEvents.Where(ts => ts.RecordId == Convert.ToInt32(id)).ToList(); if (listEventByRecord.Count > 0) { timeSheetEvent = listEventByRecord.First(); } else { if (!string.IsNullOrEmpty(keyword)) { continue; } // get record that has no event var record = RecordController.GetById(Convert.ToInt32(id)); timeSheetEvent.RecordId = record.Id; timeSheetEvent.FullName = record.FullName; timeSheetEvent.EmployeeCode = record.EmployeeCode; timeSheetEvent.DepartmentName = record.DepartmentName; } var timeSheetEventSummary = new TimeSheetEventSummaryModel(listEventByRecord, startDate, endDate) { RecordId = timeSheetEvent.RecordId, EmployeeCode = timeSheetEvent.EmployeeCode, FullName = timeSheetEvent.FullName, DepartmentName = timeSheetEvent.DepartmentName }; // add summary to list summary resultModels.Add(timeSheetEventSummary); } return(new PageResult <TimeSheetEventSummaryModel>(listRecordIds.Count, resultModels)); }
/// <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.GetByIdConditionRecord(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) { if (string.IsNullOrEmpty(hsl.QuantumCode)) { cbxNgachCu.SetValue(""); } else { cbxNgachCu.SetValue(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; } if (dfSalaryRaiseNextDate.Visible == true) { dfSalaryRaiseNextDate.SetValue(hsl.SalaryRaiseNextDate); } 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); } if (txtHeSoLuongMoi.Visible == true) { txtHeSoLuongMoi.SetValue(hsLuong.SalaryFactor); } if (txtMucLuongMoi.Visible == true) { 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(); } }
public void btnEdit_Click(RecordType type) { switch (type) { case RecordType.Default: wdInput.SetTitle("Cập nhật thông tin hồ sơ"); hdfType.Text = @"0"; break; case RecordType.Candidate: txtEmployeeCode.Hidden = true; txtCandidateCode.Hidden = false; panelJob.Disabled = true; panelPolitic.Disabled = true; panelEmployeeInsurance.Disabled = true; ctnCandidate.Hidden = false; wdInput.SetTitle("Cập nhật thông tin ứng viên"); hdfType.Text = @"1"; break; default: break; } if (string.IsNullOrEmpty(hdfRecordId.Text)) { return; } var hs = RecordController.GetById(Convert.ToInt32(hdfRecordId.Text)); if (hs == null) { return; } // Ho so nhan su if (!string.IsNullOrEmpty(hs.ImageUrl)) { img_anhdaidien.ImageUrl = @"~/" + Constant.PathLocationImageEmployee + @"/" + hs.ImageUrl; } txtEmployeeCode.Text = hs.EmployeeCode; txtFullName.Text = hs.FullName; txtAlias.Text = hs.Alias; cboDepartment.Text = hs.DepartmentName; hdfDepartmentId.Text = hs.DepartmentId.ToString(); dfBirthDate.SetValue(hs.BirthDateVn); cbxSex.Text = hs.SexName == "Nam" ? @"M" : @"F"; cboMaritalStatus.Text = hs.MaritalStatusName; hdfMaritalStatusId.Text = hs.MaritalStatusId.ToString(); txtCellPhoneNumber.Text = hs.CellPhoneNumber; txtHomePhoneNumber.Text = hs.HomePhoneNumber; txtWorkPhoneNumber.Text = hs.WorkPhoneNumber; cbxFolk.Text = hs.FolkName; hdfFolkId.Text = hs.FolkId.ToString(); cbxReligion.Text = hs.ReligionName; hdfReligionId.Text = hs.ReligionId.ToString(); txt_ResidentPlace.Text = hs.ResidentPlace; txtCPVCardNumber.Text = hs.CPVCardNumber; txtPersonalTaxCode.Text = hs.PersonalTaxCode; txtWorkEmail.Text = hs.WorkEmail; txtPersonalEmail.Text = hs.PersonalEmail; txt_Address.Text = hs.Address; //Ngay thu viec RecruimentDate.SetValue(hs.RecruimentDate); //Ngay chinh thuc ParticipationDate.SetValue(hs.ParticipationDate); txtRecruitmentDepartment.Text = hs.RecruimentDepartment; cbxPosition.Text = hs.PositionName; hdfPositionId.Text = hs.PositionId.ToString(); cbxBasicEducation.Text = hs.BasicEducationName; hdfBasicEducationId.Text = hs.BasicEducationId.ToString(); cbxEducation.Text = hs.EducationName; hdfEducationId.Text = hs.EducationId.ToString(); cbxPoliticLevel.Text = hs.PoliticLevelName; hdfPoliticLevelId.Text = hs.PoliticLevelId.ToString(); cbxJobTitle.Text = hs.JobTitleName; hdfJobTitleId.Text = hs.JobTitleId.ToString(); txtWorkStatus.Text = hs.WorkStatusName; hdfWorkStatusId.Text = hs.WorkStatusId.ToString(); cbxBirthPlaceProvince.Text = hs.BirthPlaceProvinceName; cbxBirthPlaceDistrict.Text = hs.BirthPlaceDistrictName; cbxBirthPlaceWard.Text = hs.BirthPlaceWardName; cbxHometownProvince.Text = hs.HometownProvinceName; cbxHometownDistrict.Text = hs.HometownDistrictName; cbxHometownWard.Text = hs.HometownWardName; hdfBirthPlaceProvinceId.Text = hs.BirthPlaceProvinceId.ToString(); hdfBirthPlaceDistrictId.Text = hs.BirthPlaceDistrictId.ToString(); hdfBirthPlaceWardId.Text = hs.BirthPlaceWardId.ToString(); hdfHometownProvinceId.Text = hs.HometownProvinceId.ToString(); hdfHometownDistrictId.Text = hs.HometownDistrictId.ToString(); hdfHometownWardId.Text = hs.HometownWardId.ToString(); if (!string.IsNullOrEmpty(hdfBirthPlaceDistrictId.Text)) { cbxBirthPlaceDistrict.Disabled = false; } if (!string.IsNullOrEmpty(hdfBirthPlaceWardId.Text)) { cbxBirthPlaceWard.Disabled = false; } if (!string.IsNullOrEmpty(hdfHometownDistrictId.Text)) { cbxHometownDistrict.Disabled = false; } if (!string.IsNullOrEmpty(hdfHometownWardId.Text)) { cbxHometownWard.Disabled = false; } cbxITLevel.Text = hs.ITLevelName; hdfITLevelId.Text = hs.ITLevelId.ToString(); cbxLanguageLevel.Text = hs.LanguageLevelName; hdfLanguageLevelId.Text = hs.LanguageLevelId.ToString(); cbxCPVPosition.Text = hs.CPVPositionName; hdfCPVPositionId.Text = hs.CPVPositionId.ToString(); cbxVYUPosition.Text = hs.VYUPositionName; hdfVYUPositionId.Text = hs.VYUPositionId.ToString(); cbxArmyLevel.Text = hs.ArmyLevelName; hdfArmyLevelId.Text = hs.ArmyLevelId.ToString(); ArmyJoinedDate.SetValue(hs.ArmyJoinedDate); ArmyLeftDate.SetValue(hs.ArmyLeftDate); cbxHealthStatus.Text = hs.HealthStatusName; hdfHealthStatusId.Text = hs.HealthStatusId.ToString(); cbxFamilyPolicy.Text = hs.FamilyPolicyName; hdfFamilyPolicyId.Text = hs.FamilyPolicyId.ToString(); cbxIDIssuePlace.Text = hs.IDIssuePlaceName; hdfIDIssuePlaceId.Text = hs.IDIssuePlaceId.ToString(); CPVJoinedDate.SetValue(hs.CPVJoinedDate); CPVOfficialJoinedDate.SetValue(hs.CPVOfficialJoinedDate); txtCPVJoinedPlace.Text = hs.CPVJoinedPlace; VYUJoinedDate.SetValue(hs.VYUJoinedDate); txtVYUJoinedPlace.Text = hs.VYUJoinedPlace; cbxBloodGroup.SetValue(hs.BloodGroup); txtHeight.SetValue(hs.Height); txtWeight.SetValue(hs.Weight); txtRankWounded.Text = hs.RankWounded; txtIDNumber.SetValue(hs.IDNumber); IDIssueDate.SetValue(hs.IDIssueDate); txtInsuranceNumber.Text = hs.InsuranceNumber; InsuranceIssueDate.SetValue(hs.InsuranceIssueDate); txtContactAddress.Text = hs.ContactAddress; txtContactPersonName.Text = hs.ContactPersonName; txtContactPhoneNumber.Text = hs.ContactPhoneNumber; txtContactRelation.Text = hs.ContactRelation; cbxInputIndustry.Text = hs.IndustryName; hdfInputIndustryId.Text = hs.IndustryId.ToString(); hdfImagePerson.Text = hs.ImageUrl; //Thong tin to doi hdfConstructionId.Text = hs.ConstructionId.ToString(); cbxConstruction.Text = cat_ConstructionServices.GetFieldValueById(hs.ConstructionId, "Name"); hdfTeamId.Text = hs.TeamId.ToString(); cbxTeam.Text = cat_TeamServices.GetFieldValueById(hs.TeamId, "Name"); txtStudyWorkingDay.Text = hs.StudyWorkingDay.ToString(); txtGraduationYear.Text = hs.GraduationYear.ToString(); //BHYT txtHealthInsuranceNumber.Text = hs.HealthInsuranceNumber; dfHealthJoinedDate.SetValue(hs.HealthJoinedDate); dfHealthExpiredDate.SetValue(hs.HealthExpiredDate); //Xếp loại hdfGraduationTypeId.Text = hs.GraduationTypeId.ToString(); cbxGraduationType.Text = cat_GraduationTypeServices.GetFieldValueById(hs.GraduationTypeId, "Name"); hdfUniversityId.Text = hs.UniversityId.ToString(); cbxUniversity.Text = cat_UniversityServices.GetFieldValueById(hs.UniversityId, "Name"); dfUnionJoinedDate.SetValue(hs.UnionJoinedDate); hdfUnionPosition.Text = hs.UnionJoinedPositionId.ToString(); cboUnionPosition.Text = cat_PositionServices.GetFieldValueById(hs.UnionJoinedPositionId); //Thoi gian thu viec txtProbationWorkingTime.Text = hs.ProbationWorkingTime.ToString(); hdfWorkingFormId.Text = hs.WorkingFormId.ToString(); cbxWorkingForm.Text = ((WorkingFormType)Enum.Parse(typeof(WorkingFormType), hdfWorkingFormId.Text)).Description(); hdfWorkLocationId.Text = hs.WorkLocationId.ToString(); cbxWorkLocation.Text = cat_WorkLocationServices.GetFieldValueById(hs.WorkLocationId, "Name"); // Tuyển dụng if (int.TryParse(hdfCandidateId.Text, out var result) && result > 0) { var candidate = CandidateController.GetById(result); if (candidate != null) { txtCandidateCode.Text = candidate.Code; hdfRequiredRecruitmentId.Text = candidate.RequiredRecruitmentId.ToString(); cboRequiredRecruitment.Text = candidate.RequiredRecruitmentName; hdfCandidateStatus.Text = candidate.Status.ToString(); cboCandidateStatus.Text = candidate.StatusName; txtDesiredSalary.SetValue(candidate.DesiredSalary); dfApplyDate.SetValue(candidate.ApplyDate); } } //show window hdfEven.Text = ""; wdInput.Show(); //Quan he gia dinh GridPanelFamilyRelationship.Reload(); }
/// <summary> /// /// </summary> protected void btnEdit_Click() { hdfPrKeyHoSo.Text = Request.QueryString["PrKeyHoSo"]; var hs = RecordController.GetById(Convert.ToInt32(hdfPrKeyHoSo.Text)); if (hs == null) { return; } // Ho so nhan su if (!string.IsNullOrEmpty(hs.ImageUrl)) { img_anhdaidien.ImageUrl = Constant.PathLocationImageEmployee + @"/" + hs.ImageUrl; } txtEmployeeCode.Text = hs.EmployeeCode; txtFullName.Text = hs.FullName; txtAlias.Text = hs.Alias; cboDepartment.Text = hs.DepartmentName; hdfDepartmentId.Text = hs.DepartmentId.ToString(); dfBirthDate.SetValue(hs.BirthDateVn); cbxSex.Text = hs.SexName == "Nam" ? @"M" : @"F"; cboMaritalStatus.Text = hs.MaritalStatusName; hdfMaritalStatusId.Text = hs.MaritalStatusId.ToString(); cbxPersonalClass.Text = hs.PersonalClassName; hdfPersonalClassId.Text = hs.PersonalClassId.ToString(); cbxFamilyClass.Text = hs.FamilyClassName; hdfFamilyClassId.Text = hs.FamilyClassId.ToString(); txtCellPhoneNumber.Text = hs.CellPhoneNumber; txtHomePhoneNumber.Text = hs.HomePhoneNumber; txtWorkPhoneNumber.Text = hs.WorkPhoneNumber; cbxFolk.Text = hs.FolkName; hdfFolkId.Text = hs.FolkId.ToString(); cbxReligion.Text = hs.ReligionName; hdfReligionId.Text = hs.ReligionId.ToString(); txt_ResidentPlace.Text = hs.ResidentPlace; txtCPVCardNumber.Text = hs.CPVCardNumber; txtPersonalTaxCode.Text = hs.PersonalTaxCode; txtWorkEmail.Text = hs.WorkEmail; txtPersonalEmail.Text = hs.PersonalEmail; txt_Address.Text = hs.Address; //Ngay thu viec RecruimentDate.SetValue(hs.RecruimentDate); //Ngay chinh thuc ParticipationDate.SetValue(hs.ParticipationDate); txtRecruitmentDepartment.Text = hs.RecruimentDepartment; cbxPosition.Text = hs.PositionName; hdfPositionId.Text = hs.PositionId.ToString(); cbxBasicEducation.Text = hs.BasicEducationName; hdfBasicEducationId.Text = hs.BasicEducationId.ToString(); cbxEducation.Text = hs.EducationName; hdfEducationId.Text = hs.EducationId.ToString(); cbxPoliticLevel.Text = hs.PoliticLevelName; hdfPoliticLevelId.Text = hs.PoliticLevelId.ToString(); cbxJobTitle.Text = hs.JobTitleName; hdfJobTitleId.Text = hs.JobTitleId.ToString(); cbxWorkStatus.Text = hs.WorkStatusName; txtWorkStatus.Text = hs.WorkStatusName; hdfWorkStatusId.Text = hs.WorkStatusId.ToString(); cbxBirthPlaceProvince.Text = hs.BirthPlaceProvinceName; cbxBirthPlaceDistrict.Text = hs.BirthPlaceDistrictName; cbxBirthPlaceWard.Text = hs.BirthPlaceWardName; cbxHometownProvince.Text = hs.HometownProvinceName; cbxHometownDistrict.Text = hs.HometownDistrictName; cbxHometownWard.Text = hs.HometownWardName; hdfBirthPlaceProvinceId.Text = hs.BirthPlaceProvinceId.ToString(); hdfBirthPlaceDistrictId.Text = hs.BirthPlaceDistrictId.ToString(); hdfBirthPlaceWardId.Text = hs.BirthPlaceWardId.ToString(); hdfHometownProvinceId.Text = hs.HometownProvinceId.ToString(); hdfHometownDistrictId.Text = hs.HometownDistrictId.ToString(); hdfHometownWardId.Text = hs.HometownWardId.ToString(); if (!string.IsNullOrEmpty(hdfBirthPlaceDistrictId.Text)) { cbxBirthPlaceDistrict.Disabled = false; } if (!string.IsNullOrEmpty(hdfBirthPlaceWardId.Text)) { cbxBirthPlaceWard.Disabled = false; } if (!string.IsNullOrEmpty(hdfHometownDistrictId.Text)) { cbxHometownDistrict.Disabled = false; } if (!string.IsNullOrEmpty(hdfHometownWardId.Text)) { cbxHometownWard.Disabled = false; } cbxITLevel.Text = hs.ITLevelName; hdfITLevelId.Text = hs.ITLevelId.ToString(); cbxLanguageLevel.Text = hs.LanguageLevelName; hdfLanguageLevelId.Text = hs.LanguageLevelId.ToString(); cbxCPVPosition.Text = hs.CPVPositionName; hdfCPVPositionId.Text = hs.CPVPositionId.ToString(); cbxVYUPosition.Text = hs.VYUPositionName; hdfVYUPositionId.Text = hs.VYUPositionId.ToString(); cbxArmyLevel.Text = hs.ArmyLevelName; hdfArmyLevelId.Text = hs.ArmyLevelId.ToString(); ArmyJoinedDate.SetValue(hs.ArmyJoinedDate); ArmyLeftDate.SetValue(hs.ArmyLeftDate); cbxHealthStatus.Text = hs.HealthStatusName; hdfHealthStatusId.Text = hs.HealthStatusId.ToString(); cbxFamilyPolicy.Text = hs.FamilyPolicyName; hdfFamilyPolicyId.Text = hs.FamilyPolicyId.ToString(); cbxIDIssuePlace.Text = hs.IDIssuePlaceName; hdfIDIssuePlaceId.Text = hs.IDIssuePlaceId.ToString(); CPVJoinedDate.SetValue(hs.CPVJoinedDate); CPVOfficialJoinedDate.SetValue(hs.CPVOfficialJoinedDate); txtCPVJoinedPlace.Text = hs.CPVJoinedPlace; VYUJoinedDate.SetValue(hs.VYUJoinedDate); txtVYUJoinedPlace.Text = hs.VYUJoinedPlace; cbxBloodGroup.SetValue(hs.BloodGroup); txtHeight.SetValue(hs.Height); txtWeight.SetValue(hs.Weight); txtRankWounded.Text = hs.RankWounded; txtIDNumber.SetValue(hs.IDNumber); IDIssueDate.SetValue(hs.IDIssueDate); txtInsuranceNumber.Text = hs.InsuranceNumber; InsuranceIssueDate.SetValue(hs.InsuranceIssueDate); txtContactAddress.Text = hs.ContactAddress; txtContactPersonName.Text = hs.ContactPersonName; txtContactPhoneNumber.Text = hs.ContactPhoneNumber; txtContactRelation.Text = hs.ContactRelation; cbxInputIndustry.Text = hs.IndustryName; hdfInputIndustryId.Text = hs.IndustryId.ToString(); hdfAnhDaiDien.Text = hs.ImageUrl; //Thong tin to doi var team = hr_TeamServices.GetByRecordId(hs.Id); if (team != null) { hdfConstructionId.Text = team.ConstructionId.ToString(); cbxConstruction.Text = cat_ConstructionServices.GetFieldValueById(team.ConstructionId, "Name"); hdfTeamId.Text = team.TeamId.ToString(); cbxTeam.Text = cat_TeamServices.GetFieldValueById(team.TeamId, "Name"); txtStudyWorkingDay.Text = team.StudyWorkingDay.ToString(); txtGraduationYear.Text = team.GraduationYear.ToString(); //BHYT txtHealthInsuranceNumber.Text = team.HealthInsuranceNumber; dfHealthJoinedDate.SetValue(team.HealthJoinedDate); dfHealthExpiredDate.SetValue(team.HealthExpiredDate); //Xếp loại hdfGraduationTypeId.Text = team.GraduationTypeId.ToString(); cbxGraduationType.Text = cat_GraduationTypeServices.GetFieldValueById(team.GraduationTypeId, "Name"); hdfUniversityId.Text = team.UniversityId.ToString(); cbxUniversity.Text = cat_UniversityServices.GetFieldValueById(team.UniversityId, "Name"); dfUnionJoinedDate.SetValue(team.UnionJoinedDate); txtUnionJoinedPosition.Text = team.UnionJoinedPosition; //Thoi gian thu viec txtProbationWorkingTime.Text = team.ProbationWorkingTime.ToString(); hdfWorkingFormId.Text = team.WorkingFormId.ToString(); cbxWorkingForm.Text = ((WorkingFormType)Enum.Parse(typeof(WorkingFormType), hdfWorkingFormId.Text)).Description(); hdfWorkLocationId.Text = team.WorkLocationId.ToString(); cbxWorkLocation.Text = cat_WorkLocationServices.GetFieldValueById(team.WorkLocationId, "Name"); } //Quan he gia dinh GridPanelFamilyRelationship.Reload(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbxChonCanBo_Selected(object sender, DirectEventArgs e) { try { var id = int.Parse(cbxChonCanBo.SelectedItem.Value); var hs = RecordController.GetById(id); if (hs != null) { // set general infomation txtChucVu.Text = hs.PositionName; txtCongViec.Text = hs.JobTitleName; txtDepartment.Text = hs.DepartmentName; // get newest salary development var wp = WorkProcessController.GetNewestDecision(id); var qtdc = wp.FirstOrDefault(); if (qtdc != null) { if (!string.IsNullOrEmpty(qtdc.DecisionNumber)) { txtSoQDCu.Text = qtdc.DecisionNumber; } dfNgayQDCu.SetValue(qtdc.DecisionDate); if (qtdc.DecisionMaker != null) { txtNguoiQDCu.Text = qtdc.DecisionMaker; } dfNgayCoHieuLucCu.SetValue(qtdc.EffectiveDate); if (!string.IsNullOrEmpty(qtdc.OldDepartmentName)) { txtBoPhanCu.Text = qtdc.OldDepartmentName; } if (!string.IsNullOrEmpty(qtdc.OldPositionName)) { txtChucVuCu.Text = qtdc.OldPositionName; } if (!string.IsNullOrEmpty(qtdc.OldDepartmentName)) { txtDepartment.Text = qtdc.OldDepartmentName; } hdfOldPositionId.Text = qtdc.OldDepartmentId.ToString(); } else { txtSoQDCu.Text = ""; dfNgayQDCu.SetValue(""); txtNguoiQDCu.Text = ""; dfNgayCoHieuLucCu.SetValue(""); txtBoPhanCu.Text = ""; txtChucVuCu.Text = ""; hdfOldPositionId.Text = ""; } } else { txtChucVu.Text = ""; txtCongViec.Text = ""; txtDepartment.Text = ""; hdfOldPositionId.Text = ""; } } 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(); } }
public void GetEmployeeDetailInformation() { if (!string.IsNullOrEmpty(hdfRecordId.Text)) { var record = RecordController.GetById(Convert.ToInt32(hdfRecordId.Text)); var imageUrl = Constant.PathProfileImageDefault; if (!string.IsNullOrEmpty(record.ImageUrl)) { //imageUrl = record.ImageUrl.Replace("~/Modules", ".."); imageUrl = Constant.PathLocationImageEmployee + @"/" + record.ImageUrl; } var cpvOfficialJoinedDate = string.Empty; var cpvJoinedDate = string.Empty; var effectiveDate = string.Empty; var idIssueDate = string.Empty; if (record.CPVOfficialJoinedDate != null) { cpvOfficialJoinedDate = "employeeDetail_txtCPVOfficialJoinedDate.setValue(RenderDate('" + record.CPVOfficialJoinedDate + "', null, null)); "; } if (record.CPVJoinedDate != null) { cpvJoinedDate = "employeeDetail_txtCPVJoinedDate.setValue(RenderDate('" + record.CPVJoinedDate + " ', null, null)); "; } if (record.EffectiveDate != null) { effectiveDate = "employeeDetail_txtEffectiveDate.setValue(RenderDate('" + record.EffectiveDate + "', null, null)); "; } if (record.IDIssueDate != null) { idIssueDate = "employeeDetail_txtIDIssueDate.setValue(RenderDate('" + record.IDIssueDate + "', null, null)); "; } RM.RegisterClientScriptBlock("setValueEmployeeDetail", "employeeDetail_hsImage.setImageUrl('" + imageUrl + "');" + "employeeDetail_txtEmployeeCode.setValue('" + record.EmployeeCode + "');" + "employeeDetail_txtFullName.setValue('" + record.FullName + "');" + "employeeDetail_txtAlias.setValue('" + record.Alias + "');" + "employeeDetail_txtBirthDate.setValue('" + record.BirthDateVn + "');" + "employeeDetail_txtBirthPlace.setValue('" + record.BirthPlace + "');" + "employeeDetail_txtHometown.setValue('" + record.Hometown + "');" + "employeeDetail_txtPersonalClassName.setValue('" + record.PersonalClassName + "');" + "employeeDetail_txtFamilyClassName.setValue('" + record.FamilyClassName + "');" + "employeeDetail_txtFolkName.setValue('" + record.FolkName + "');" + "employeeDetail_txtReligionName.setValue('" + record.ReligionName + "');" + "employeeDetail_txtResidentPlace.setValue('" + record.ResidentPlace + "');" + "employeeDetail_txtAddress.setValue('" + record.Address + "');" + "employeeDetail_txtBasicEducationName.setValue('" + record.BasicEducationName + "');" + "employeeDetail_txtEducationName.setValue('" + record.EducationName + "');" + "employeeDetail_txtPoliticLevelName.setValue('" + record.PoliticLevelName + "');" + "employeeDetail_txtManagementLevelName.setValue('" + record.ManagementLevelName + "');" + "employeeDetail_txtLanguageLevelName.setValue('" + record.LanguageLevelName + "');" + "employeeDetail_txtITLevelName.setValue('" + record.ITLevelName + "');" + "employeeDetail_txtPreviousJob.setValue('" + record.PreviousJob + "');" + "employeeDetail_txtRecruimentDate.setValue('" + record.RecruimentDate + "');" + "employeeDetail_txtRecruimentDepartment.setValue('" + record.RecruimentDepartment + "'); " + "employeeDetail_txtPositionName.setValue('" + record.PositionName + "'); " + cpvJoinedDate + cpvOfficialJoinedDate + "employeeDetail_txtCPVCardNumber.setValue('" + record.CPVCardNumber + "'); " + "employeeDetail_txtCPVPositionName.setValue('" + record.CPVPositionName + "'); " + "employeeDetail_txtVYUJoinedDate.setValue('" + record.VYUJoinedDate + "'); " + "employeeDetail_txtVYUPositionName.setValue('" + record.VYUPositionName + "'); " + "employeeDetail_txtAssignedWork.setValue('" + record.AssignedWork + "'); " + "employeeDetail_txtQuantumName.setValue('" + record.QuantumName + "'); " + "employeeDetail_txtQuantumCode.setValue('" + record.QuantumCode + "'); " + //"employeeDetail_txtSalaryGrade.setValue('" + record.SalaryGrade + "'); " + "employeeDetail_txtSalaryFactor.setValue('" + record.SalaryFactor + "'); " + effectiveDate + "employeeDetail_txtIDNumber.setValue('" + record.IDNumber + "');" + idIssueDate + "employeeDetail_txtIDIssuePlaceName.setValue('" + record.IDIssuePlaceName + "'); " + "employeeDetail_txtArmyJoinedDate.setValue('" + record.ArmyJoinedDate + "'); " + "employeeDetail_txtArmyLeftDate.setValue('" + record.ArmyLeftDate + "'); " + "employeeDetail_txtArmyLevelName.setValue('" + record.ArmyLevelName + "'); " + "employeeDetail_txtTitleAwarded.setValue('" + record.TitleAwarded + "'); " + "employeeDetail_txtSkills.setValue('" + record.Skills + "'); " + "employeeDetail_txtHealthStatusName.setValue('" + record.HealthStatusName + "'); " + "employeeDetail_txtHeight.setValue('" + record.Height + "'); " + "employeeDetail_txtWeight.setValue('" + record.Weight + "'); " + "employeeDetail_txtBloodGroup.setValue('" + record.BloodGroup + "'); " + "employeeDetail_txtRankWounded.setValue('" + record.RankWounded + "'); " + "employeeDetail_txtFamilyPolicyName.setValue('" + record.FamilyPolicyName + "'); " + "employeeDetail_txtInsuranceNumber.setValue('" + record.InsuranceNumber + "'); " + "employeeDetail_txtInsuranceIssueDate.setValue('" + record.InsuranceIssueDate + "'); " + "employeeDetail_txtWorkStatusName.setValue('" + record.WorkStatusName + "'); " + "employeeDetail_txtMaritalStatusName.setValue('" + record.MaritalStatusName + "'); " + "employeeDetail_txtPersonalTaxCode.setValue('" + record.PersonalTaxCode + "'); " + "employeeDetail_txtCellPhoneNumber.setValue('" + record.CellPhoneNumber + "'); " + "employeeDetail_txtHomePhoneNumber.setValue('" + record.HomePhoneNumber + "'); " + "employeeDetail_txtWorkPhoneNumber.setValue('" + record.WorkPhoneNumber + "'); " + "employeeDetail_txtWorkEmail.setValue('" + record.WorkEmail + "'); " + "employeeDetail_txtPersonalEmail.setValue('" + record.PersonalEmail + "'); " + "employeeDetail_txtAccountNumber.setValue('" + record.AccountNumber + "'); " + "employeeDetail_txtBankName.setValue('" + record.BankName + "'); " + "employeeDetail_txtContactPersonName.setValue('" + record.ContactPersonName + "'); " + "employeeDetail_txtContactRelation.setValue('" + record.ContactRelation + "'); " + "employeeDetail_txtContactPhoneNumber.setValue('" + record.ContactPhoneNumber + "'); " + "employeeDetail_txtContactAddress.setValue('" + record.ContactAddress + "');"); } }