/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { Parent.Children.Add(loadbar); loadbar.Stop(); client = new PersonnelServiceClient(); client.GetEmployeePagingCompleted += new EventHandler <GetEmployeePagingCompletedEventArgs>(client_GetEmployeePagingCompleted); kpiClient = new PerformanceServiceClient(); kpiClient.GetRandomGroupPersonAllCompleted += new EventHandler <GetRandomGroupPersonAllCompletedEventArgs>(client_GetRandomGroupPersonAllCompleted); kpiClient.GetRandomGroupPersonByIDCompleted += new EventHandler <GetRandomGroupPersonByIDCompletedEventArgs>(client_GetRandomGroupPersonByIDCompleted); kpiClient.AddRandomGroupPersonListCompleted += new EventHandler <AddRandomGroupPersonListCompletedEventArgs>(client_AddRandomGroupPersonListCompleted); kpiClient.DeleteRandomGroupPersonsCompleted += new EventHandler <DeleteRandomGroupPersonsCompletedEventArgs>(client_DeleteRandomGroupPersonsCompleted); kpiClient.UpdateRandomGroupPersonListCompleted += new EventHandler <UpdateRandomGroupPersonListCompletedEventArgs>(client_UpdateRandomGroupPersonListCompleted); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); DtGrid.CurrentCellChanged += new EventHandler <EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(Employee_Loaded); } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// 构造EditGroupPerson /// </summary> /// <param name="type">窗口状态</param> /// <param name="randomGroup">抽查组实体</param> public EditPerformance(FormTypes type, string SUMID) { FormType = type; kpiClient = new PerformanceServiceClient(); SumPerformance = new T_HR_SUMPERFORMANCERECORD(); SumPerformance.SUMID = SUMID; kpiClient.GetSumPerformanceRecordByIDAsync(SUMID); InitializeComponent(); SetPerformanceInfoEnable(false); SetReviewInfoEnable(false); InitPara(); }
private void InitParas() { client = new PerformanceServiceClient(); client.KPIRecordUpdateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_KPIRecordUpdateCompleted); client.GetCompainRecordByIDCompleted += new EventHandler <GetCompainRecordByIDCompletedEventArgs>(client_GetCompainRecordByIDCompleted); client.CompainRecordUpdateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateCompleted); client.UpdateKPIRecordComplainCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateKPIRecordComplainCompleted); client.GetVcomplainRecordByIDCompleted += new EventHandler <GetVcomplainRecordByIDCompletedEventArgs>(client_GetVcomplainRecordByIDCompleted); client.CompainRecordUpdateOverCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateOverCompleted); if (FormType == FormTypes.New) { KPIRecordComplain = new T_HR_KPIRECORDCOMPLAIN(); KPIRecordComplain.COMPLAINID = Guid.NewGuid().ToString(); KPIRecordComplain.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); SetToolBar(); } else { client.GetVcomplainRecordByIDAsync(KPIRecordComplain.COMPLAINID); //client.GetCompainRecordByIDAsync(KPIRecordComplain.COMPLAINID); } }
public void InitPara() { PARENT.Children.Add(loadbar); try { //orgClient = new OrganizationServiceClient(); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); client = new PerformanceServiceClient(); client.GetComplainRecordPagingCompleted += new EventHandler<GetComplainRecordPagingCompletedEventArgs>(client_GetComplainRecordPagingCompleted); client.ComplainRecordDeleteCompleted += new EventHandler<ComplainRecordDeleteCompletedEventArgs>(client_ComplainRecordDeleteCompleted); } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); loadbar.Stop(); } //ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click); ToolBar.btnNew.Visibility = Visibility.Collapsed; ToolBar.btnEdit.Visibility = Visibility.Collapsed; ToolBar.btnReSubmit.Visibility = Visibility.Collapsed; //ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click); ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click); ToolBar.btnAudit.Click += new RoutedEventHandler(btnAudit_Click); ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click); ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click); Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", Convert.ToInt32(CheckStates.All).ToString()); ToolBar.btnReSubmit.Visibility = Visibility.Collapsed; //this.Loaded += new RoutedEventHandler(AuditState_Loaded); //this.Loaded += new RoutedEventHandler(Left_Loaded); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged); }
public void InitPara() { PARENT.Children.Add(loadbar); try { //orgClient = new OrganizationServiceClient(); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); client = new PerformanceServiceClient(); client.GetComplainRecordPagingCompleted += new EventHandler <GetComplainRecordPagingCompletedEventArgs>(client_GetComplainRecordPagingCompleted); client.ComplainRecordDeleteCompleted += new EventHandler <ComplainRecordDeleteCompletedEventArgs>(client_ComplainRecordDeleteCompleted); } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); loadbar.Stop(); } //ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click); ToolBar.btnNew.Visibility = Visibility.Collapsed; ToolBar.btnEdit.Visibility = Visibility.Collapsed; ToolBar.btnReSubmit.Visibility = Visibility.Collapsed; //ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click); ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click); ToolBar.btnAudit.Click += new RoutedEventHandler(btnAudit_Click); ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click); ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click); Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", Convert.ToInt32(CheckStates.All).ToString()); ToolBar.btnReSubmit.Visibility = Visibility.Collapsed; //this.Loaded += new RoutedEventHandler(AuditState_Loaded); //this.Loaded += new RoutedEventHandler(Left_Loaded); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged); }
/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { // 1s 冉龙军 PARENT.Children.Add(loadbar); loadbar.Stop(); // 1e client = new PersonnelServiceClient(); kpiClient = new PerformanceServiceClient(); kpiClient.GetKPIRecordPagingCompleted += new EventHandler<GetKPIRecordPagingCompletedEventArgs>(client_GetKPIRecordPagingCompleted); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); DtGrid.CurrentCellChanged += new EventHandler<EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(Employee_Loaded); this.Loaded += new RoutedEventHandler(AuditState_Loaded); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); //this.ToolBar.btnNew.Click += new RoutedEventHandler(btnAdd_Click); this.ToolBar.btnNew.Visibility = Visibility.Collapsed; this.ToolBar.btnEdit.Visibility = Visibility.Collapsed; this.ToolBar.btnDelete.Visibility = Visibility.Collapsed; this.ToolBar.btnRefresh.Visibility = Visibility.Collapsed; this.ToolBar.BtnView.Visibility = Visibility.Collapsed; // 1s 冉龙军 this.ToolBar.btnAudit.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged); this.ToolBar.retNew.Visibility = Visibility.Collapsed; this.ToolBar.retEdit.Visibility = Visibility.Collapsed; this.ToolBar.retDelete.Visibility = Visibility.Collapsed; this.ToolBar.retRefresh.Visibility = Visibility.Collapsed; this.ToolBar.retAudit.Visibility = Visibility.Collapsed; this.ToolBar.retAuditNoPass.Visibility = Visibility.Collapsed; this.ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed; // 1e ImageButton btnComplain = new ImageButton(); btnComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4405_d.png", Utility.GetResourceStr("COMPLAIN")).Click += new RoutedEventHandler(btnComplain_Click); ImageButton btnEditComplain = new ImageButton(); btnEditComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("EDIT")).Click += new RoutedEventHandler(btnEditComplain_Click); ImageButton btnViewComplain = new ImageButton(); btnViewComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("VIEWCOMPLAIN")).Click += new RoutedEventHandler(btnViewComplain_Click); ImageButton btnViewReview = new ImageButton(); btnViewReview.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1036.png", Utility.GetResourceStr("VIEWREVIEW")).Click += new RoutedEventHandler(btnReview_Click); this.ToolBar.stpOtherAction.Children.Add(btnComplain); // 1s 冉龙军 //this.ToolBar.stpOtherAction.Children.Add(btnEditComplain); //修改 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewComplain); // 1s 冉龙军 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewReview); } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { // 1s 冉龙军 PARENT.Children.Add(loadbar); loadbar.Stop(); // 1e client = new PersonnelServiceClient(); kpiClient = new PerformanceServiceClient(); kpiClient.GetKPIRecordPagingCompleted += new EventHandler <GetKPIRecordPagingCompletedEventArgs>(client_GetKPIRecordPagingCompleted); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); DtGrid.CurrentCellChanged += new EventHandler <EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(Employee_Loaded); this.Loaded += new RoutedEventHandler(AuditState_Loaded); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); //this.ToolBar.btnNew.Click += new RoutedEventHandler(btnAdd_Click); this.ToolBar.btnNew.Visibility = Visibility.Collapsed; this.ToolBar.btnEdit.Visibility = Visibility.Collapsed; this.ToolBar.btnDelete.Visibility = Visibility.Collapsed; this.ToolBar.btnRefresh.Visibility = Visibility.Collapsed; this.ToolBar.BtnView.Visibility = Visibility.Collapsed; // 1s 冉龙军 this.ToolBar.btnAudit.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged); this.ToolBar.retNew.Visibility = Visibility.Collapsed; this.ToolBar.retEdit.Visibility = Visibility.Collapsed; this.ToolBar.retDelete.Visibility = Visibility.Collapsed; this.ToolBar.retRefresh.Visibility = Visibility.Collapsed; this.ToolBar.retAudit.Visibility = Visibility.Collapsed; this.ToolBar.retAuditNoPass.Visibility = Visibility.Collapsed; this.ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed; // 1e ImageButton btnComplain = new ImageButton(); btnComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4405_d.png", Utility.GetResourceStr("COMPLAIN")).Click += new RoutedEventHandler(btnComplain_Click); ImageButton btnEditComplain = new ImageButton(); btnEditComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("EDIT")).Click += new RoutedEventHandler(btnEditComplain_Click); ImageButton btnViewComplain = new ImageButton(); btnViewComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("VIEWCOMPLAIN")).Click += new RoutedEventHandler(btnViewComplain_Click); ImageButton btnViewReview = new ImageButton(); btnViewReview.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1036.png", Utility.GetResourceStr("VIEWREVIEW")).Click += new RoutedEventHandler(btnReview_Click); this.ToolBar.stpOtherAction.Children.Add(btnComplain); // 1s 冉龙军 //this.ToolBar.stpOtherAction.Children.Add(btnEditComplain); //修改 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewComplain); // 1s 冉龙军 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewReview); } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { client = new PersonnelServiceClient(); client.GetEmployeePagingCompleted += new EventHandler<GetEmployeePagingCompletedEventArgs>(client_GetEmployeePagingCompleted); client.GetEmployeeByIDsCompleted += new EventHandler<GetEmployeeByIDsCompletedEventArgs>(client_GetEmployeeByIDsCompleted); kpiClient = new PerformanceServiceClient(); kpiClient.GetSumPerformanceRecordByIDCompleted += new EventHandler<GetSumPerformanceRecordByIDCompletedEventArgs>(kpiClient_GetSumPerformanceRecordByIDCompleted); kpiClient.GetPerformanceAllBySumIDCompleted += new EventHandler<GetPerformanceAllBySumIDCompletedEventArgs>(client_GetPerformanceAllBySumIDCompleted); kpiClient.AddSumPerformanceCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_AddSumPerformanceCompleted); kpiClient.DeleteSumPerformanceCompleted += new EventHandler<DeleteSumPerformanceCompletedEventArgs>(client_DeleteSumPerformanceCompleted); kpiClient.UpdateSumPerformanceAndSumCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateSumPerformanceAndSumCompleted); kpiClient.UpdateSumPerformanceCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateSumPerformanceCompleted); orgClient = new OrganizationServiceClient(); orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); orgClient.GetDepartmentByIdCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentByIdCompletedEventArgs>(orgClient_GetDepartmentByIdCompleted); DtGrid.CurrentCellChanged += new EventHandler<EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(EditPerformance_Loaded); if (FormType == FormTypes.New) { SumPerformance = new T_HR_SUMPERFORMANCERECORD(); SumPerformance.SUMID = Guid.NewGuid().ToString(); SumPerformance.T_HR_PERFORMANCERECORD = new ObservableCollection<T_HR_PERFORMANCERECORD>(); SumPerformance.SUMPERSONID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; SumPerformance.SUMDEPTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; SumPerformance.SUMDATE = DateTime.Now; SumPerformance.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); SetPerformanceInfoEnable(true); SetToolBar(); } else { SetReviewInfoEnable(true); kpiClient.GetSumPerformanceRecordByIDAsync(this.SumPerformance.SUMID); } } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { Parent.Children.Add(loadbar); loadbar.Stop(); client = new PersonnelServiceClient(); client.GetEmployeePagingCompleted += new EventHandler<GetEmployeePagingCompletedEventArgs>(client_GetEmployeePagingCompleted); kpiClient = new PerformanceServiceClient(); kpiClient.GetRandomGroupPersonAllCompleted += new EventHandler<GetRandomGroupPersonAllCompletedEventArgs>(client_GetRandomGroupPersonAllCompleted); kpiClient.GetRandomGroupPersonByIDCompleted += new EventHandler<GetRandomGroupPersonByIDCompletedEventArgs>(client_GetRandomGroupPersonByIDCompleted); kpiClient.AddRandomGroupPersonListCompleted += new EventHandler<AddRandomGroupPersonListCompletedEventArgs>(client_AddRandomGroupPersonListCompleted); kpiClient.DeleteRandomGroupPersonsCompleted += new EventHandler<DeleteRandomGroupPersonsCompletedEventArgs>(client_DeleteRandomGroupPersonsCompleted); kpiClient.UpdateRandomGroupPersonListCompleted += new EventHandler<UpdateRandomGroupPersonListCompletedEventArgs>(client_UpdateRandomGroupPersonListCompleted); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); DtGrid.CurrentCellChanged += new EventHandler<EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(Employee_Loaded); } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
private void InitParas() { client = new PerformanceServiceClient(); client.KPIRecordUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_KPIRecordUpdateCompleted); client.GetCompainRecordByIDCompleted += new EventHandler<GetCompainRecordByIDCompletedEventArgs>(client_GetCompainRecordByIDCompleted); client.CompainRecordUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateCompleted); client.UpdateKPIRecordComplainCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateKPIRecordComplainCompleted); client.GetVcomplainRecordByIDCompleted += new EventHandler<GetVcomplainRecordByIDCompletedEventArgs>(client_GetVcomplainRecordByIDCompleted); client.CompainRecordUpdateOverCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateOverCompleted); if (FormType == FormTypes.New) { KPIRecordComplain = new T_HR_KPIRECORDCOMPLAIN(); KPIRecordComplain.COMPLAINID = Guid.NewGuid().ToString(); KPIRecordComplain.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); SetToolBar(); } else { client.GetVcomplainRecordByIDAsync(KPIRecordComplain.COMPLAINID); //client.GetCompainRecordByIDAsync(KPIRecordComplain.COMPLAINID); } }