Example #1
0
        private void InitEvent()
        {
            client = new SmtOADocumentAdminClient();
            client.GetBorrowAppListCompleted    += new EventHandler <GetBorrowAppListCompletedEventArgs>(client_GetBorrowAppListCompleted);
            ToolBar.cbxCheckState.Visibility     = Visibility.Collapsed;
            ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
            ToolBar.btnAudit.Visibility          = Visibility.Collapsed;
            ToolBar.BtnView.Visibility           = Visibility.Collapsed;

            ToolBar.btnDelete.Visibility = Visibility.Collapsed;
            //ToolBar.btnRead.Visibility = Visibility.Collapsed;
            //ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
            //ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
            ToolBar.btnNew.Visibility  = Visibility.Collapsed;
            ToolBar.btnEdit.Visibility = Visibility.Collapsed;
            //ToolBar.btnRefresh.Visibility = Visibility.Collapsed;
            ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
            ToolBar.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4406in.png", Utility.GetResourceStr("RETURN")).Click += new RoutedEventHandler(FrmLicenseReturnManagement_Click);
            ToolBar.btnImports("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4406go.png", Utility.GetResourceStr("LEND")).Click       += new RoutedEventHandler(FrmLicenseReturnManagement1_Click);
            Utility.CbxItemBinder(CBLendState, "LENDSTATE", "5");
            LoadData();
            SetButtonVisible();
            this.Loaded += new RoutedEventHandler(FrmLicenseReturnManagement_Loaded);
            //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
            dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
            ToolBar.ShowRect();
        }
 private void InitEvent()
 {
     InfoObj = new T_OA_CONTRACTTYPE();
     contractClient = new SmtOADocumentAdminClient();
     contractClient.ContractTypeAddCompleted += new EventHandler<ContractTypeAddCompletedEventArgs>(contractClient_ContractTypeAddCompleted);//添加
     contractClient.UpdateContraTypeCompleted += new EventHandler<UpdateContraTypeCompletedEventArgs>(contractClient_UpdateContraTypeCompleted);//修改
 }
Example #3
0
 private void InitEvent()
 {
    
     client = new SmtOADocumentAdminClient();
     client.GetOrganListCompleted += new EventHandler<GetOrganListCompletedEventArgs>(client_GetOrganListCompleted);
     client.DeleteOrganCompleted += new EventHandler<DeleteOrganCompletedEventArgs>(client_DeleteOrganCompleted);
     //SetButtonVisible();
     //LoadData();
     ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
     ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     //ToolBar.btnRead.Click += new RoutedEventHandler(btnRead_Click);
     ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
     ToolBar.btnAudit.Click += new RoutedEventHandler(btnAudit_Click);
     //CheckStateCBX.SetCheckStateCBX(ToolBar.cbxCheckState);
     ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");
     
     //SetButtonVisible();
     //SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_ORGANIZATION");
     Utility.DisplayGridToolBarButton(ToolBar, "T_OA_ORGANIZATION", true);
     this.Loaded += new RoutedEventHandler(FrmOrganRegister_Loaded);
     //dgOrgan.CurrentCellChanged += new EventHandler<EventArgs>(dgOrgan_CurrentCellChanged);
     dgOrgan.SelectionChanged += new SelectionChangedEventHandler(dgOrgan_SelectionChanged);
     ToolBar.ShowRect();
 }
 private void InitEvent()
 {
     caswsc = new SmtOADocumentAdminClient();
     selecContractInfoObj = new V_ContractPrint();
     caswsc.GetInquiryContractPrintingRecordInfoCompleted += new EventHandler<GetInquiryContractPrintingRecordInfoCompletedEventArgs>(caswsc_GetInquiryContractPrintingRecordInfoCompleted);
     LoadData();
 }
 private void InitEvent()
 {
     BenefitsAdministration = new SmtOADocumentAdminClient();
     WelfareProvision       = new V_WelfareProvision();
     BenefitsAdministration.GetWelfarePSelectRecordCompleted += new EventHandler <GetWelfarePSelectRecordCompletedEventArgs>(BenefitsAdministration_GetWelfarePSelectRecordCompleted);
     LoadData();
 }
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetBorrowAppListCompleted += new EventHandler<GetBorrowAppListCompletedEventArgs>(client_GetBorrowAppListCompleted);
     ToolBar.cbxCheckState.Visibility = Visibility.Collapsed;
     ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
     ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     ToolBar.BtnView.Visibility = Visibility.Collapsed;
     
     ToolBar.btnDelete.Visibility = Visibility.Collapsed;
     //ToolBar.btnRead.Visibility = Visibility.Collapsed;
     //ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
     //ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.btnNew.Visibility = Visibility.Collapsed;
     ToolBar.btnEdit.Visibility = Visibility.Collapsed;
     //ToolBar.btnRefresh.Visibility = Visibility.Collapsed;
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4406in.png", Utility.GetResourceStr("RETURN")).Click += new RoutedEventHandler(FrmLicenseReturnManagement_Click);
     ToolBar.btnImports("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4406go.png", Utility.GetResourceStr("LEND")).Click += new RoutedEventHandler(FrmLicenseReturnManagement1_Click);
     Utility.CbxItemBinder(CBLendState, "LENDSTATE", "5");            
     LoadData();
     SetButtonVisible();
     this.Loaded += new RoutedEventHandler(FrmLicenseReturnManagement_Loaded);
     //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
     dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
     ToolBar.ShowRect();
 }
Example #7
0
 private void InitEvent()
 {
     caswsc = new SmtOADocumentAdminClient();
     caswsc.GetApprovalListByUserIdCompleted     += new EventHandler <GetApprovalListByUserIdCompletedEventArgs>(caswsc_GetApprovalListByUserIdCompleted);//根据ID查
     caswsc.DeleteContraApprovalCompleted        += new EventHandler <DeleteContraApprovalCompletedEventArgs>(caswsc_DeleteContraApprovalCompleted);
     FormToolBar1.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
 }
 private void InitEvent()
 {
     caswsc = new SmtOADocumentAdminClient();
     caswsc.GetInquiryViewContractApplicationCompleted += new EventHandler <GetInquiryViewContractApplicationCompletedEventArgs>(caswsc_GetInquiryViewContractApplicationCompleted);//查询合同查看申请
     FormToolBar1.cbxCheckState.SelectionChanged       += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     caswsc.DeleteViewapplicationsCompleted            += new EventHandler <DeleteViewapplicationsCompletedEventArgs>(caswsc_DeleteViewapplicationsCompleted);
 }
Example #9
0
 private void InitEvent()
 {
     InfoObj        = new T_OA_CONTRACTTYPE();
     contractClient = new SmtOADocumentAdminClient();
     contractClient.ContractTypeAddCompleted  += new EventHandler <ContractTypeAddCompletedEventArgs>(contractClient_ContractTypeAddCompleted);   //添加
     contractClient.UpdateContraTypeCompleted += new EventHandler <UpdateContraTypeCompletedEventArgs>(contractClient_UpdateContraTypeCompleted); //修改
 }
Example #10
0
        //private void Event_AllFilesFinished(object sender, FileCountEventArgs e)
        //{

        //}
        private void InitEvent()
        {
            client = new SmtOADocumentAdminClient();
            client.AddArchivesCompleted     += new EventHandler <AddArchivesCompletedEventArgs>(client_AddArchivesCompleted);
            client.UpdateArchivesCompleted  += new EventHandler <UpdateArchivesCompletedEventArgs>(client_UpdateArchivesCompleted);
            client.GetArchivesByIdCompleted += new EventHandler <GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
        }
Example #11
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     client.AddArchivesReturnCompleted += new EventHandler<AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
     client.GetLendingListByLendingIdAsync(lendingID);
 }
Example #12
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLendingListByLendingIdCompleted += new EventHandler <GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     client.AddArchivesReturnCompleted         += new EventHandler <AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
     client.GetLendingListByLendingIdAsync(lendingID);
 }
Example #13
0
        private void InitEvent()
        {
            client = new SmtOADocumentAdminClient();
            client.GetOrganListCompleted += new EventHandler <GetOrganListCompletedEventArgs>(client_GetOrganListCompleted);
            client.DeleteOrganCompleted  += new EventHandler <DeleteOrganCompletedEventArgs>(client_DeleteOrganCompleted);
            //SetButtonVisible();
            //LoadData();
            ToolBar.btnNew.Click     += new RoutedEventHandler(btnNew_Click);
            ToolBar.btnEdit.Click    += new RoutedEventHandler(btnEdit_Click);
            ToolBar.btnDelete.Click  += new RoutedEventHandler(btnDelete_Click);
            ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
            ToolBar.BtnView.Click    += new RoutedEventHandler(BtnView_Click);
            //ToolBar.btnRead.Click += new RoutedEventHandler(btnRead_Click);
            ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
            ToolBar.btnAudit.Click    += new RoutedEventHandler(btnAudit_Click);
            //CheckStateCBX.SetCheckStateCBX(ToolBar.cbxCheckState);
            ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
            Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");

            //SetButtonVisible();
            //SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_ORGANIZATION");
            Utility.DisplayGridToolBarButton(ToolBar, "T_OA_ORGANIZATION", true);
            this.Loaded += new RoutedEventHandler(FrmOrganRegister_Loaded);
            //dgOrgan.CurrentCellChanged += new EventHandler<EventArgs>(dgOrgan_CurrentCellChanged);
            dgOrgan.SelectionChanged += new SelectionChangedEventHandler(dgOrgan_SelectionChanged);
            ToolBar.ShowRect();
        }
 private void InitEvent()
 {
     BenefitsAdministration = new SmtOADocumentAdminClient();
     WelfareProvision = new V_WelfareProvision();
     BenefitsAdministration.GetWelfarePSelectRecordCompleted += new EventHandler<GetWelfarePSelectRecordCompletedEventArgs>(BenefitsAdministration_GetWelfarePSelectRecordCompleted);
     LoadData();
 }
Example #15
0
 private void InitEvent()
 {
     ContractManagement = new SmtOADocumentAdminClient();
     ContractManagement.GetContractTemplateInfoCompleted += new EventHandler <GetContractTemplateInfoCompletedEventArgs>(TemplateRoomClient_GetContractTemplateInfoCompleted);
     ContractManagement.DeleteContraTemplateCompleted    += new EventHandler <DeleteContraTemplateCompletedEventArgs>(ContractManagement_DeleteContraTemplateCompleted);
     LoadData();
 }
Example #16
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddLicenseBorrowCompleted         += new EventHandler <AddLicenseBorrowCompletedEventArgs>(client_AddLicenseBorrowCompleted);
     client.GetLicenseBorrowListByIdCompleted += new EventHandler <GetLicenseBorrowListByIdCompletedEventArgs>(client_GetLicenseBorrowListByIdCompleted);
     client.UpdateLicenseBorrowCompleted      += new EventHandler <UpdateLicenseBorrowCompletedEventArgs>(client_UpdateLicenseBorrowCompleted);
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     if (action == Action.Add)
     {
         //LicenseViewObj = new V_LicenseBorrow();
         //LicenseViewObj.licenseUser = new T_OA_LICENSEUSER();
         LicenseObj           = new T_OA_LICENSEUSER();
         licenseObj.STARTDATE = DateTime.Now;
         licenseObj.ENDDATE   = DateTime.Now.AddDays(7);
         //this.SumbitButton.Visibility = Visibility.Collapsed;
         //licenseObj = new T_OA_LICENSEUSER();
     }
     else
     {
         if (action == Action.AUDIT)
         {
             actionFlag = DataActionFlag.SubmitComplete;
         }
         client.GetLicenseBorrowListByIdAsync(licenseID);
     }
 }
Example #17
0
 private void InitEvent()
 {
     caswsc    = new SmtOADocumentAdminClient();
     printInfo = new V_ContractApplications();
     caswsc.GetApprovalListByIdCompleted += new EventHandler <GetApprovalListByIdCompletedEventArgs>(caswsc_GetApprovalListByIdCompleted);//根据ID查询审批通过的数据
     LoadData();
 }
Example #18
0
 private void InitEvent()
 {
     caswsc = new SmtOADocumentAdminClient();
     printInfo = new V_ContractApplications();
     caswsc.GetApprovalListByIdCompleted += new EventHandler<GetApprovalListByIdCompletedEventArgs>(caswsc_GetApprovalListByIdCompleted);//根据ID查询审批通过的数据
     LoadData();
 }
Example #19
0
 private void InitEvent()
 {
     ContractManagements = new SmtOADocumentAdminClient();
     ContractManagements.GetContractTypeInfoCompleted += new EventHandler <GetContractTypeInfoCompletedEventArgs>(cmsfc_GetContractTypeInfoCompleted);
     ContractManagements.DeleteContraTypeCompleted    += new EventHandler <DeleteContraTypeCompletedEventArgs>(ContractManagements_DeleteContraTypeCompleted);
     LoadData();
 }
Example #20
0
        private void InitEvent()
        {
            //lendingDelID = new ObservableCollection<string>();
            client = new SmtOADocumentAdminClient();
            client.GetLendingListByUserIdCompleted += new EventHandler <GetLendingListByUserIdCompletedEventArgs>(client_GetLendingListByUserIdCompleted);
            client.DeleteArchivesLendingCompleted  += new EventHandler <DeleteArchivesLendingCompletedEventArgs>(client_DeleteArchivesLendingCompleted);
            client.IsArchivesCanBrowserCompleted   += new EventHandler <IsArchivesCanBrowserCompletedEventArgs>(client_IsArchivesCanBrowserCompleted);
            client.AddArchivesCompleted            += new EventHandler <AddArchivesCompletedEventArgs>(client_AddArchivesCompleted);
            client.AddArchivesReturnCompleted      += new EventHandler <AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
            //client.SubmitCommentLendingCompleted += new EventHandler<SubmitCommentLendingCompletedEventArgs>(client_SubmitCommentLendingCompleted);
            //ToolBar.btnAudit.Visibility = Visibility.Collapsed;
            ToolBar.btnNew.Click    += new RoutedEventHandler(btnNew_Click);
            ToolBar.btnEdit.Click   += new RoutedEventHandler(btnEdit_Click);
            ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click);
            ToolBar.BtnView.Click   += new RoutedEventHandler(btnRead_Click);
            //ToolBar.btnRead.Click += new RoutedEventHandler(btnRead_Click);
            ToolBar.btnRefresh.Click  += new RoutedEventHandler(btnRefresh_Click);
            ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
            ToolBar.btnAudit.Click    += new RoutedEventHandler(btnAudit_Click);
            //ToolBar.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_129_p.png", Utility.GetResourceStr("VIEW")).Click += new RoutedEventHandler(btnRead_Click);

            //ToolBar.cbxCheckState.Items.Remove()
            ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
            Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");
            SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_LENDARCHIVES");
            ToolBar.ShowRect();
            //LoadData();
            //SetButtonVisible();
        }
Example #21
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     //client.GetArchivesCanBorrowCompleted += new EventHandler<GetArchivesCanBorrowCompletedEventArgs>(client_GetArchivesCanBorrowCompleted);
     client.GetArchivesCanBorrowByConditionCompleted += new EventHandler <GetArchivesCanBorrowByConditionCompletedEventArgs>(client_GetArchivesCanBorrowByConditionCompleted);
     //client.GetArchivesCanBorrowAsync();
     client.GetArchivesCanBorrowByConditionAsync("", "");
 }
Example #22
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     //client.GetArchivesCanBorrowCompleted += new EventHandler<GetArchivesCanBorrowCompletedEventArgs>(client_GetArchivesCanBorrowCompleted);
     client.GetArchivesCanBorrowByConditionCompleted += new EventHandler<GetArchivesCanBorrowByConditionCompletedEventArgs>(client_GetArchivesCanBorrowByConditionCompleted);
     //client.GetArchivesCanBorrowAsync();
     client.GetArchivesCanBorrowByConditionAsync("", "");
 }
Example #23
0
 private void InitEvent()
 {
     BenefitsAdministration = new SmtOADocumentAdminClient();
     BenefitsAdministration.GetWelfarePaymentWithdrawalCompleted += new EventHandler <GetWelfarePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_GetWelfarePaymentWithdrawalCompleted);
     BenefitsAdministration.DeletePaymentWithdrawalCompleted     += new EventHandler <DeletePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_DeletePaymentWithdrawalCompleted);
     FormToolBar1.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     //LoadData();
 }
Example #24
0
 private void InitEvent()
 {
     if (action == Action.Return)
     {
         this.txtStartDate.IsEnabled = false;
     }
     client = new SmtOADocumentAdminClient();
     client.LendOrReturnCompleted += new EventHandler <LendOrReturnCompletedEventArgs>(client_LendOrReturnCompleted);
 }
Example #25
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetArchivesByIdCompleted += new EventHandler <GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
     client.GetArchivesByIdAsync(archiveID);
     //client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     //client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
     //client.GetLendingListByLendingIdAsync(archiveID);
 }
Example #26
0
 private void InitEvent()
 {
     if (action == Action.Return)
     {
         this.txtStartDate.IsEnabled = false;
     }
     client = new SmtOADocumentAdminClient();
     client.LendOrReturnCompleted += new EventHandler<LendOrReturnCompletedEventArgs>(client_LendOrReturnCompleted);
 }        
 private void InitEvent()
 {
     cmsfc        = new SmtOADocumentAdminClient();
     cprinting    = new T_OA_CONTRACTPRINT();
     personclient = new PersonnelServiceClient();
     cmsfc.ContractPrintingAddCompleted     += new EventHandler <ContractPrintingAddCompletedEventArgs>(cmsfc_ContractPrintingAddCompleted);       //打印
     cmsfc.UpdateContractPrintingCompleted  += new EventHandler <UpdateContractPrintingCompletedEventArgs>(cmsfc_UpdateContractPrintingCompleted); //上传附件
     personclient.GetEmployeeByIDsCompleted += new EventHandler <GetEmployeeByIDsCompletedEventArgs>(personclient_GetEmployeeByIDsCompleted);
 }
Example #28
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddArchivesLendingCompleted        += new EventHandler <AddArchivesLendingCompletedEventArgs>(client_AddArchivesLendingCompleted);
     client.UpdateArchivesLendingCompleted     += new EventHandler <UpdateArchivesLendingCompletedEventArgs>(client_UpdateArchivesLendingCompleted);
     client.GetLendingListByLendingIdCompleted += new EventHandler <GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
 }
Example #29
0
 private void InitEvent()
 {
     ContractManagement = new SmtOADocumentAdminClient();
     InfoObj            = new T_OA_CONTRACTTEMPLATE();
     ContractManagement.GetContractTypeNameInfosToComboxAsync();
     ContractManagement.ContractTemplateAddCompleted              += new EventHandler <ContractTemplateAddCompletedEventArgs>(ctsc_ContractTemplateAddCompleted);                 //添加
     ContractManagement.UpdateContraTemplateCompleted             += new EventHandler <UpdateContraTemplateCompletedEventArgs>(ContractManagement_UpdateContraTemplateCompleted); //修改
     ContractManagement.GetContractTypeNameInfosToComboxCompleted += new EventHandler <GetContractTypeNameInfosToComboxCompletedEventArgs>(cmfc_GetContractTypeNameInfosToComboxCompleted);
 }
Example #30
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
     client.GetArchivesByIdAsync(archiveID);
     //client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     //client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
     //client.GetLendingListByLendingIdAsync(archiveID);
 }
 /// <summary>
 /// 数据初始化
 /// </summary>
 private void InitEvent()
 {
     wssc   = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     wssc.WelfareStandardAddCompleted               += new EventHandler <WelfareStandardAddCompletedEventArgs>(wssc_WelfareStandardAddCompleted);                             //添加
     wssc.UpdateWelfareStandardCompleted            += new EventHandler <UpdateWelfareStandardCompletedEventArgs>(wssc_UpdateWelfareStandardCompleted);                       //修改
     wssc.GetBenefitsAdministrationDetailsCompleted += new EventHandler <GetBenefitsAdministrationDetailsCompletedEventArgs>(wssc_GetBenefitsAdministrationDetailsCompleted); //查询标准明细
     wssc.GetWelfareByIdCompleted          += new EventHandler <GetWelfareByIdCompletedEventArgs>(wssc_GetWelfareByIdCompleted);
     client.GetEmployeeDetailByIDCompleted += new EventHandler <GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
 }
Example #32
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLicenseListByIdCompleted += new EventHandler <GetLicenseListByIdCompletedEventArgs>(client_GetLicenseListByIdCompleted);
     //client.GetLicenseListCompleted += new EventHandler<GetLicenseListCompletedEventArgs>(client_GetLicenseListCompleted);
     client.UpdateLicenseDetailCompleted  += new EventHandler <UpdateLicenseDetailCompletedEventArgs>(client_UpdateLicenseDetailCompleted);
     client.GetLicenseDetailListCompleted += new EventHandler <GetLicenseDetailListCompletedEventArgs>(client_GetLicenseDetailListCompleted);
     Utility.CbxItemBinder(comboxType, "REGISTERTYPE", "0");
     client.GetLicenseListByIdAsync(licenseID);
 }
Example #33
0
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     cmsfc  = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     client.GetEmployeeDetailByIDCompleted      += new EventHandler <GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
     cmsfc.ContractViewapplicationsAddCompleted += new EventHandler <ContractViewapplicationsAddCompletedEventArgs>(cmsfc_ContractViewapplicationsAddCompleted); //新增合同查看申请
     cmsfc.UpdateContractViewCompleted          += new EventHandler <UpdateContractViewCompletedEventArgs>(cmsfc_UpdateContractViewCompleted);                   //修改合同查看申请
     cmsfc.GetContractViewByIdCompleted         += new EventHandler <GetContractViewByIdCompletedEventArgs>(cmsfc_GetContractViewByIdCompleted);                 //根据查看ID查询
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     cmsfc        = new SmtOADocumentAdminClient();
     personclient = new PersonnelServiceClient();
     personclient.GetEmployeeByIDsCompleted          += new EventHandler <GetEmployeeByIDsCompletedEventArgs>(personclient_GetEmployeeByIDsCompleted);
     cmsfc.GetContractTypeNameInfosToComboxCompleted += new EventHandler <GetContractTypeNameInfosToComboxCompletedEventArgs>(cmsfc_GetContractTypeNameInfosToComboxCompleted);
     cmsfc.UpdateContraApprovalCompleted             += new EventHandler <UpdateContraApprovalCompletedEventArgs>(cmsfc_UpdateContraApprovalCompleted); //修改
     cmsfc.ContractApprovalAddCompleted     += new EventHandler <ContractApprovalAddCompletedEventArgs>(caswsc_ContractApprovalAddCompleted);           //新增
     cmsfc.GetContractApprovalByIdCompleted += new EventHandler <GetContractApprovalByIdCompletedEventArgs>(cmsfc_GetContractApprovalByIdCompleted);    //根据合同申请ID查询
 }
Example #35
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddOrganCompleted += new EventHandler <AddOrganCompletedEventArgs>(client_AddOrganCompleted);
     client.GetOrganListByOrganIdCompleted += new EventHandler <GetOrganListByOrganIdCompletedEventArgs>(client_GetOrganListByOrganIdCompleted);
     client.UpdateOrganCompleted           += new EventHandler <UpdateOrganCompletedEventArgs>(client_UpdateOrganCompleted);
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     client.GetLicenseMatsterListByOrganIdCompleted += new EventHandler <GetLicenseMatsterListByOrganIdCompletedEventArgs>(client_GetLicenseMatsterListByOrganIdCompleted);
     //client.SubmitFlowCompleted += new EventHandler<SubmitFlowCompletedEventArgs>(client_SubmitFlowCompleted);
     fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     BenefitsAdministration = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     ssc    = new SalaryServiceClient();
     client.GetEmployeeDetailByIDCompleted += new EventHandler <GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
     BenefitsAdministration.GetWelfarePaymentWithdrawalByIdCompleted += new EventHandler <GetWelfarePaymentWithdrawalByIdCompletedEventArgs>(BenefitsAdministration_GetWelfarePaymentWithdrawalByIdCompleted);
     BenefitsAdministration.WelfarePaymentWithdrawalAddCompleted     += new EventHandler <WelfarePaymentWithdrawalAddCompletedEventArgs>(BenefitsAdministration_WelfarePaymentWithdrawalAddCompleted);
     BenefitsAdministration.UpdateWelfarePaymentWithdrawalCompleted  += new EventHandler <UpdateWelfarePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_UpdateWelfarePaymentWithdrawalCompleted);
     BenefitsAdministration.GetProvisionByIdCompleted             += new EventHandler <GetProvisionByIdCompletedEventArgs>(BenefitsAdministration_GetProvisionByIdCompleted);
     BenefitsAdministration.GetByIdWelfarePaymentDetailsCompleted += new EventHandler <GetByIdWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_GetByIdWelfarePaymentDetailsCompleted);
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     BenefitsAdministration = new SmtOADocumentAdminClient();
     ssc = new SalaryServiceClient();
     BenefitsAdministration.GetWelfareInformationCompleted            += new EventHandler <GetWelfareInformationCompletedEventArgs>(wsscs_GetWelfareInformationCompleted);                                        //查询出福利项目
     BenefitsAdministration.UpdateWelfarePaymentDetailsCompleted      += new EventHandler <UpdateWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_UpdateWelfarePaymentDetailsCompleted);           //修改明细
     BenefitsAdministration.WelfareProvisionAddCompleted              += new EventHandler <WelfareProvisionAddCompletedEventArgs>(wpsc_WelfareProvisionAddCompleted);                                             //添加
     BenefitsAdministration.UpdateWelfareProvisionCompleted           += new EventHandler <UpdateWelfareProvisionCompletedEventArgs>(BenefitsAdministration_UpdateWelfareProvisionCompleted);                     //修改
     BenefitsAdministration.GetBenefitsDetailsAdministrationCompleted += new EventHandler <GetBenefitsDetailsAdministrationCompletedEventArgs>(BenefitsAdministration_GetBenefitsDetailsAdministrationCompleted); //查询标准明细
     BenefitsAdministration.GetByIdWelfarePaymentDetailsCompleted     += new EventHandler <GetByIdWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_GetByIdWelfarePaymentDetailsCompleted);
     BenefitsAdministration.DeleteWelfarePaymentDetailCompleted       += new EventHandler <DeleteWelfarePaymentDetailCompletedEventArgs>(BenefitsAdministration_DeleteWelfarePaymentDetailCompleted);
     BenefitsAdministration.GetProvisionByIdCompleted += new EventHandler <GetProvisionByIdCompletedEventArgs>(BenefitsAdministration_GetProvisionByIdCompleted);
 }
Example #38
0
        private void InitEvent()
        {
            client = new SmtOADocumentAdminClient();
            client.GetLicenseListPagingCompleted += new EventHandler <GetLicenseListPagingCompletedEventArgs>(client_GetLicenseListPagingCompleted);
            ToolBar.btnEdit.Click               += new RoutedEventHandler(btnEdit_Click);
            ToolBar.BtnView.Click               += new RoutedEventHandler(BtnView_Click);
            ToolBar.btnRefresh.Click            += new RoutedEventHandler(btnRefresh_Click);
            ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
            ToolBar.cbxCheckState.Visibility     = Visibility.Collapsed;
            ToolBar.btnNew.Visibility            = Visibility.Collapsed;
            ToolBar.btnDelete.Visibility         = Visibility.Collapsed;
            //ToolBar.btnRead.Visibility = Visibility.Collapsed;

            ToolBar.btnAudit.Visibility = Visibility.Collapsed;
            ToolBar.retNew.Visibility   = Visibility.Collapsed;

            //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
            dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
            ToolBar.ShowRect();
        }
Example #39
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLicenseListPagingCompleted += new EventHandler<GetLicenseListPagingCompletedEventArgs>(client_GetLicenseListPagingCompleted);
     ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
     ToolBar.cbxCheckState.Visibility = Visibility.Collapsed;
     ToolBar.btnNew.Visibility = Visibility.Collapsed;
     ToolBar.btnDelete.Visibility = Visibility.Collapsed;
     //ToolBar.btnRead.Visibility = Visibility.Collapsed;
     
     ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     ToolBar.retNew.Visibility = Visibility.Collapsed;
     
     //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
     dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
     ToolBar.ShowRect();
 }
Example #40
0
        private void InitEvent()
        {
            client = new SmtOADocumentAdminClient();
            client.DeleteArchivesCompleted += new EventHandler <DeleteArchivesCompletedEventArgs>(client_DeleteArchivesCompleted);
            client.GetArchivesCompleted    += new EventHandler <GetArchivesCompletedEventArgs>(client_GetArchivesCompleted);
            LoadData();
            //SetStyle();
            ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
            ToolBar.btnAudit.Visibility          = Visibility.Collapsed;

            ToolBar.cbxCheckState.Visibility = Visibility.Collapsed;
            ToolBar.btnNew.Click            += new RoutedEventHandler(btnNew_Click);
            ToolBar.btnEdit.Click           += new RoutedEventHandler(btnEdit_Click);
            ToolBar.btnDelete.Click         += new RoutedEventHandler(btnDelete_Click);
            ToolBar.btnRefresh.Click        += new RoutedEventHandler(btnRefresh_Click);
            ToolBar.BtnView.Click           += new RoutedEventHandler(BtnView_Click);
            //FormToolBar toolbar = new FormToolBar();
            //dgArchives.CurrentCellChanged += new EventHandler<EventArgs>(dgArchives_CurrentCellChanged);
            dgArchives.SelectionChanged += new SelectionChangedEventHandler(dgArchives_SelectionChanged);
            ToolBar.ShowRect();
        }
Example #41
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.DeleteArchivesCompleted += new EventHandler<DeleteArchivesCompletedEventArgs>(client_DeleteArchivesCompleted);
     client.GetArchivesCompleted += new EventHandler<GetArchivesCompletedEventArgs>(client_GetArchivesCompleted);            
     LoadData();
     //SetStyle();
     ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
     ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     
     ToolBar.cbxCheckState.Visibility = Visibility.Collapsed;
     ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
     ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     //FormToolBar toolbar = new FormToolBar();
     //dgArchives.CurrentCellChanged += new EventHandler<EventArgs>(dgArchives_CurrentCellChanged);
     dgArchives.SelectionChanged += new SelectionChangedEventHandler(dgArchives_SelectionChanged);
     ToolBar.ShowRect();
 }
 private void InitEvent()
 {
     //licenseObj = new V_LicenseBorrow();
     client = new SmtOADocumentAdminClient();
     client.GetLicenseBorrowListCompleted += new EventHandler<GetLicenseBorrowListCompletedEventArgs>(client_GetLicenseBorrowListCompleted);
     client.DeleteLicenseBorrowCompleted += new EventHandler<DeleteLicenseBorrowCompletedEventArgs>(client_DeleteLicenseBorrowCompleted);
     ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
     ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click);
     ToolBar.btnAudit.Click += new RoutedEventHandler(btnAudit_Click);
     ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);            
     ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");
     //SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_LICENSEUSER");
     //ToolBar.btnRead.Visibility = Visibility.Collapsed;  
     //LoadData();
     this.Loaded += new RoutedEventHandler(FrmLicenseBorrowManagement_Loaded);
     //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
     dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
     ToolBar.ShowRect();
     //SetButtonVisible();       
 }
Example #43
0
 private void InitEvent()
 {
     //licenseObj = new V_LicenseBorrow();
     client = new SmtOADocumentAdminClient();
     client.GetLicenseBorrowListCompleted += new EventHandler <GetLicenseBorrowListCompletedEventArgs>(client_GetLicenseBorrowListCompleted);
     client.DeleteLicenseBorrowCompleted  += new EventHandler <DeleteLicenseBorrowCompletedEventArgs>(client_DeleteLicenseBorrowCompleted);
     ToolBar.btnNew.Click      += new RoutedEventHandler(btnNew_Click);
     ToolBar.btnEdit.Click     += new RoutedEventHandler(btnEdit_Click);
     ToolBar.BtnView.Click     += new RoutedEventHandler(BtnView_Click);
     ToolBar.btnDelete.Click   += new RoutedEventHandler(btnDelete_Click);
     ToolBar.btnAudit.Click    += new RoutedEventHandler(btnAudit_Click);
     ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
     ToolBar.btnRefresh.Click  += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");
     //SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_LICENSEUSER");
     //ToolBar.btnRead.Visibility = Visibility.Collapsed;
     //LoadData();
     this.Loaded += new RoutedEventHandler(FrmLicenseBorrowManagement_Loaded);
     //this.dgLicense.CurrentCellChanged += new EventHandler<EventArgs>(dgLicense_CurrentCellChanged);
     dgLicense.SelectionChanged += new SelectionChangedEventHandler(dgLicense_SelectionChanged);
     ToolBar.ShowRect();
     //SetButtonVisible();
 }
Example #44
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetReturnListByUserIdCompleted += new EventHandler<GetReturnListByUserIdCompletedEventArgs>(client_GetReturnListByUserIdCompleted);
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     ToolBar.btnNew.Visibility = Visibility.Collapsed;
     ToolBar.btnEdit.Visibility = Visibility.Collapsed;
     ToolBar.btnDelete.Visibility = Visibility.Collapsed;
     ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     ToolBar.cbxCheckState.Visibility = Visibility.Collapsed;
     ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed;
     //ToolBar.btnRefresh.Visibility = Visibility.Collapsed;
     ToolBar.retNew.Visibility = Visibility.Collapsed;
     ToolBar.retEdit.Visibility = Visibility.Collapsed;
     ToolBar.retDelete.Visibility = Visibility.Collapsed;
     ToolBar.retRead.Visibility = Visibility.Collapsed;
     ToolBar.retAudit.Visibility = Visibility.Collapsed;            
     ToolBar.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4406in.png", Utility.GetResourceStr("RETURN")).Click += new RoutedEventHandler(FrmArchivesReturn_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     LoadData();
     //dgArchives.CurrentCellChanged += new EventHandler<EventArgs>(dgArchives_CurrentCellChanged);
     dgArchives.SelectionChanged += new SelectionChangedEventHandler(dgArchives_SelectionChanged);
     ToolBar.ShowRect();
 }
Example #45
0
 private void InitEvent()
 {
     //lendingDelID = new ObservableCollection<string>();
     client = new SmtOADocumentAdminClient();            
     client.GetLendingListByUserIdCompleted += new EventHandler<GetLendingListByUserIdCompletedEventArgs>(client_GetLendingListByUserIdCompleted);
     client.DeleteArchivesLendingCompleted += new EventHandler<DeleteArchivesLendingCompletedEventArgs>(client_DeleteArchivesLendingCompleted);
     client.IsArchivesCanBrowserCompleted += new EventHandler<IsArchivesCanBrowserCompletedEventArgs>(client_IsArchivesCanBrowserCompleted);
     client.AddArchivesCompleted += new EventHandler<AddArchivesCompletedEventArgs>(client_AddArchivesCompleted);
     client.AddArchivesReturnCompleted += new EventHandler<AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
     //client.SubmitCommentLendingCompleted += new EventHandler<SubmitCommentLendingCompletedEventArgs>(client_SubmitCommentLendingCompleted);
     //ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     ToolBar.btnNew.Click += new RoutedEventHandler(btnNew_Click);
     ToolBar.btnEdit.Click += new RoutedEventHandler(btnEdit_Click);
     ToolBar.btnDelete.Click += new RoutedEventHandler(btnDelete_Click);
     ToolBar.BtnView.Click += new RoutedEventHandler(btnRead_Click);
     //ToolBar.btnRead.Click += new RoutedEventHandler(btnRead_Click);
     ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click);
     ToolBar.btnReSubmit.Click += new RoutedEventHandler(btnReSubmit_Click);
     ToolBar.btnAudit.Click += new RoutedEventHandler(btnAudit_Click);
     //ToolBar.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_129_p.png", Utility.GetResourceStr("VIEW")).Click += new RoutedEventHandler(btnRead_Click);
     
     //ToolBar.cbxCheckState.Items.Remove()
     ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", "5");
     SMT.SaaS.FrameworkUI.Common.Utility.SetToolBarButtonByCheckState(int.Parse(checkState), ToolBar, "T_OA_LENDARCHIVES");
     ToolBar.ShowRect();
     //LoadData();
     //SetButtonVisible();
 }
 private void InitEvent()
 {
     BenefitsAdministration = new SmtOADocumentAdminClient();
     BenefitsAdministration.GetWelfarePaymentWithdrawalCompleted += new EventHandler<GetWelfarePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_GetWelfarePaymentWithdrawalCompleted);
     BenefitsAdministration.DeletePaymentWithdrawalCompleted += new EventHandler<DeletePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_DeletePaymentWithdrawalCompleted);
     FormToolBar1.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     //LoadData();
 }
Example #47
0
 private void InitEvent()
 {
     BenefitsAdministration = new SmtOADocumentAdminClient();
     BenefitsAdministration.GetWelfareProvisionListByUserIdCompleted += new EventHandler<GetWelfareProvisionListByUserIdCompletedEventArgs>(wpsc_GetWelfareProvisionListByUserIdCompleted);
     FormToolBar1.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
     //LoadData();
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     BenefitsAdministration = new SmtOADocumentAdminClient();
     ssc = new SalaryServiceClient();
     BenefitsAdministration.GetWelfareInformationCompleted += new EventHandler<GetWelfareInformationCompletedEventArgs>(wsscs_GetWelfareInformationCompleted);//查询出福利项目
     BenefitsAdministration.UpdateWelfarePaymentDetailsCompleted += new EventHandler<UpdateWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_UpdateWelfarePaymentDetailsCompleted);//修改明细
     BenefitsAdministration.WelfareProvisionAddCompleted += new EventHandler<WelfareProvisionAddCompletedEventArgs>(wpsc_WelfareProvisionAddCompleted);//添加
     BenefitsAdministration.UpdateWelfareProvisionCompleted += new EventHandler<UpdateWelfareProvisionCompletedEventArgs>(BenefitsAdministration_UpdateWelfareProvisionCompleted);//修改
     BenefitsAdministration.GetBenefitsDetailsAdministrationCompleted += new EventHandler<GetBenefitsDetailsAdministrationCompletedEventArgs>(BenefitsAdministration_GetBenefitsDetailsAdministrationCompleted);//查询标准明细
     BenefitsAdministration.GetByIdWelfarePaymentDetailsCompleted += new EventHandler<GetByIdWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_GetByIdWelfarePaymentDetailsCompleted);
     BenefitsAdministration.DeleteWelfarePaymentDetailCompleted += new EventHandler<DeleteWelfarePaymentDetailCompletedEventArgs>(BenefitsAdministration_DeleteWelfarePaymentDetailCompleted);
     BenefitsAdministration.GetProvisionByIdCompleted += new EventHandler<GetProvisionByIdCompletedEventArgs>(BenefitsAdministration_GetProvisionByIdCompleted);
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     cmsfc = new SmtOADocumentAdminClient();
     personclient = new PersonnelServiceClient();
     personclient.GetEmployeeByIDsCompleted += new EventHandler<GetEmployeeByIDsCompletedEventArgs>(personclient_GetEmployeeByIDsCompleted);
     cmsfc.GetContractTypeNameInfosToComboxCompleted += new EventHandler<GetContractTypeNameInfosToComboxCompletedEventArgs>(cmsfc_GetContractTypeNameInfosToComboxCompleted);
     cmsfc.UpdateContraApprovalCompleted += new EventHandler<UpdateContraApprovalCompletedEventArgs>(cmsfc_UpdateContraApprovalCompleted);//修改
     cmsfc.ContractApprovalAddCompleted += new EventHandler<ContractApprovalAddCompletedEventArgs>(caswsc_ContractApprovalAddCompleted);//新增
     cmsfc.GetContractApprovalByIdCompleted += new EventHandler<GetContractApprovalByIdCompletedEventArgs>(cmsfc_GetContractApprovalByIdCompleted);//根据合同申请ID查询
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     cmsfc = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     client.GetEmployeeDetailByIDCompleted += new EventHandler<GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
     cmsfc.ContractViewapplicationsAddCompleted += new EventHandler<ContractViewapplicationsAddCompletedEventArgs>(cmsfc_ContractViewapplicationsAddCompleted);//新增合同查看申请
     cmsfc.UpdateContractViewCompleted += new EventHandler<UpdateContractViewCompletedEventArgs>(cmsfc_UpdateContractViewCompleted);//修改合同查看申请
     cmsfc.GetContractViewByIdCompleted += new EventHandler<GetContractViewByIdCompletedEventArgs>(cmsfc_GetContractViewByIdCompleted);//根据查看ID查询
 }
Example #51
0
        private void InitEvent()
        {

            client = new SmtOADocumentAdminClient();
            client.AddLicenseBorrowCompleted += new EventHandler<AddLicenseBorrowCompletedEventArgs>(client_AddLicenseBorrowCompleted);
            client.GetLicenseBorrowListByIdCompleted += new EventHandler<GetLicenseBorrowListByIdCompletedEventArgs>(client_GetLicenseBorrowListByIdCompleted);
            client.UpdateLicenseBorrowCompleted += new EventHandler<UpdateLicenseBorrowCompletedEventArgs>(client_UpdateLicenseBorrowCompleted);
            //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
            //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
            if (action == Action.Add)
            {
                //LicenseViewObj = new V_LicenseBorrow();
                //LicenseViewObj.licenseUser = new T_OA_LICENSEUSER();
                LicenseObj = new T_OA_LICENSEUSER();
                licenseObj.STARTDATE = DateTime.Now;
                licenseObj.ENDDATE = DateTime.Now.AddDays(7);
                //this.SumbitButton.Visibility = Visibility.Collapsed;
                //licenseObj = new T_OA_LICENSEUSER();
            }
            else
            {
                if (action == Action.AUDIT)
                {
                    actionFlag = DataActionFlag.SubmitComplete;
                }
                client.GetLicenseBorrowListByIdAsync(licenseID);
            }
        }
Example #52
0
 //private void Event_AllFilesFinished(object sender, FileCountEventArgs e)
 //{            
     
 //}
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddArchivesCompleted += new EventHandler<AddArchivesCompletedEventArgs>(client_AddArchivesCompleted);
     client.UpdateArchivesCompleted += new EventHandler<UpdateArchivesCompletedEventArgs>(client_UpdateArchivesCompleted);
     client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted);
 }
 private void InitEvent()
 {
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
     BenefitsAdministration = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     ssc = new SalaryServiceClient();
     client.GetEmployeeDetailByIDCompleted += new EventHandler<GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
     BenefitsAdministration.GetWelfarePaymentWithdrawalByIdCompleted += new EventHandler<GetWelfarePaymentWithdrawalByIdCompletedEventArgs>(BenefitsAdministration_GetWelfarePaymentWithdrawalByIdCompleted);
     BenefitsAdministration.WelfarePaymentWithdrawalAddCompleted += new EventHandler<WelfarePaymentWithdrawalAddCompletedEventArgs>(BenefitsAdministration_WelfarePaymentWithdrawalAddCompleted);
     BenefitsAdministration.UpdateWelfarePaymentWithdrawalCompleted += new EventHandler<UpdateWelfarePaymentWithdrawalCompletedEventArgs>(BenefitsAdministration_UpdateWelfarePaymentWithdrawalCompleted);
     BenefitsAdministration.GetProvisionByIdCompleted += new EventHandler<GetProvisionByIdCompletedEventArgs>(BenefitsAdministration_GetProvisionByIdCompleted);
     BenefitsAdministration.GetByIdWelfarePaymentDetailsCompleted += new EventHandler<GetByIdWelfarePaymentDetailsCompletedEventArgs>(BenefitsAdministration_GetByIdWelfarePaymentDetailsCompleted);
 }
        private void DocTORecordBtn_Click(object sender, RoutedEventArgs e)
        {
            if (Companysenddoc != null)
            {
                try
                {
                    SmtOADocumentAdminClient ArchivesClient = new SmtOADocumentAdminClient();
                    T_OA_ARCHIVES ArchiveT = new T_OA_ARCHIVES();
                    ArchiveT.ARCHIVESID = System.Guid.NewGuid().ToString();
                    ArchiveT.ARCHIVESTITLE = Companysenddoc.OACompanySendDoc.SENDDOCTITLE;
                    ArchiveT.COMPANYID = Companysenddoc.OACompanySendDoc.CREATECOMPANYID;
                    ArchiveT.CONTENT = Companysenddoc.OACompanySendDoc.CONTENT;
                    ArchiveT.CREATEDATE = System.DateTime.Now;

                    ArchiveT.RECORDTYPE = "SENDDOC";
                    ArchiveT.SOURCEFLAG = "0"; //自动导入

                    
                    ArchiveT.CREATECOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                    ArchiveT.CREATEDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                    ArchiveT.CREATEPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
                    ArchiveT.CREATEUSERID = Common.CurrentLoginUserInfo.EmployeeID;
                    ArchiveT.CREATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName;

                    ArchiveT.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                    ArchiveT.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                    ArchiveT.OWNERID = Common.CurrentLoginUserInfo.EmployeeID;
                    ArchiveT.OWNERNAME = Common.CurrentLoginUserInfo.EmployeeName;
                    ArchiveT.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;

                    ArchiveT.UPDATEDATE = null;
                    ArchiveT.UPDATEUSERID = "";
                    ArchiveT.UPDATEUSERNAME = "";

                    T_OA_SENDDOC SendDocT = new T_OA_SENDDOC();
                    SendDocT = Companysenddoc.OACompanySendDoc;
                    SendDocT.UPDATEDATE = System.DateTime.Now;
                    //SendDocT.UPDATEUSERID = "1";
                    SendDocT.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID;
                    SendDocT.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName;
                    SendDocT.ISSAVE = "1";
                    
                    tmpSendDoc = SendDocT;
                    tmpSendDoc.T_OA_SENDDOCTYPE = Companysenddoc.doctype;

                    ArchivesClient.AddArchivesCompleted += new EventHandler<AddArchivesCompletedEventArgs>(ArchivesClient_AddArchivesCompleted);
                    ArchivesClient.AddArchivesAsync(ArchiveT);

                    //SendDocClient.SendDocBatchDelAsync(DelInfosList);

                }
                catch (Exception ex)
                {
                    //com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow.titlename, Result);
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "COMPANYDOC"), Utility.GetResourceStr("CONFIRMBUTTON"));              
            }    
        }
Example #55
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddOrganCompleted += new EventHandler<AddOrganCompletedEventArgs>(client_AddOrganCompleted);
     client.GetOrganListByOrganIdCompleted += new EventHandler<GetOrganListByOrganIdCompletedEventArgs>(client_GetOrganListByOrganIdCompleted);
     client.UpdateOrganCompleted += new EventHandler<UpdateOrganCompletedEventArgs>(client_UpdateOrganCompleted);
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     client.GetLicenseMatsterListByOrganIdCompleted += new EventHandler<GetLicenseMatsterListByOrganIdCompletedEventArgs>(client_GetLicenseMatsterListByOrganIdCompleted);
     //client.SubmitFlowCompleted += new EventHandler<SubmitFlowCompletedEventArgs>(client_SubmitFlowCompleted);
     fbCtr.SaveCompleted += new EventHandler<SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
 }
Example #56
0
 private void InitEvent()
 {
     ContractManagements = new SmtOADocumentAdminClient();
     ContractManagements.GetContractTypeInfoCompleted += new EventHandler<GetContractTypeInfoCompletedEventArgs>(cmsfc_GetContractTypeInfoCompleted);
     ContractManagements.DeleteContraTypeCompleted += new EventHandler<DeleteContraTypeCompletedEventArgs>(ContractManagements_DeleteContraTypeCompleted);
     LoadData();
 }
 private void InitEvent()
 {
     caswsc = new SmtOADocumentAdminClient();
     caswsc.GetApprovalListByUserIdCompleted += new EventHandler<GetApprovalListByUserIdCompletedEventArgs>(caswsc_GetApprovalListByUserIdCompleted);//根据ID查
     caswsc.DeleteContraApprovalCompleted += new EventHandler<DeleteContraApprovalCompletedEventArgs>(caswsc_DeleteContraApprovalCompleted);
     FormToolBar1.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged);
 }
 private void InitEvent()
 {
     wssc = new SmtOADocumentAdminClient();
     wssc.GetWelfarePaymentDetailsInfosCompleted += new EventHandler<GetWelfarePaymentDetailsInfosCompletedEventArgs>(wssc_GetWelfarePaymentDetailsInfosCompleted);
     LoadData();
 }
Example #59
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.AddArchivesLendingCompleted += new EventHandler<AddArchivesLendingCompletedEventArgs>(client_AddArchivesLendingCompleted);
     client.UpdateArchivesLendingCompleted += new EventHandler<UpdateArchivesLendingCompletedEventArgs>(client_UpdateArchivesLendingCompleted);
     client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
     //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
 }
 /// <summary>
 /// 数据初始化
 /// </summary>
 private void InitEvent()
 {
     wssc = new SmtOADocumentAdminClient();
     client = new PersonnelServiceClient();
     wssc.WelfareStandardAddCompleted += new EventHandler<WelfareStandardAddCompletedEventArgs>(wssc_WelfareStandardAddCompleted);//添加
     wssc.UpdateWelfareStandardCompleted += new EventHandler<UpdateWelfareStandardCompletedEventArgs>(wssc_UpdateWelfareStandardCompleted);//修改
     wssc.GetBenefitsAdministrationDetailsCompleted += new EventHandler<GetBenefitsAdministrationDetailsCompletedEventArgs>(wssc_GetBenefitsAdministrationDetailsCompleted);//查询标准明细
     wssc.GetWelfareByIdCompleted += new EventHandler<GetWelfareByIdCompletedEventArgs>(wssc_GetWelfareByIdCompleted);
     client.GetEmployeeDetailByIDCompleted += new EventHandler<GetEmployeeDetailByIDCompletedEventArgs>(client_GetEmployeeDetailByIDCompleted);
 }