예제 #1
0
        private void InitParas(string strID)
        {
            client = new PersonnelServiceClient();
            flowClient = new Saas.Tools.FlowWFService.ServiceClient();
            client.GetLeftOfficeByIDCompleted += new EventHandler<GetLeftOfficeByIDCompletedEventArgs>(client_GetLeftOfficeByIDCompleted);
            client.LeftOfficeUpdateCompleted += new EventHandler<LeftOfficeUpdateCompletedEventArgs>(client_LeftOfficeUpdateCompleted);
            client.LeftOfficeAddCompleted += new EventHandler<LeftOfficeAddCompletedEventArgs>(client_LeftOfficeAddCompleted);
            client.LeftOfficeDeleteCompleted += new EventHandler<LeftOfficeDeleteCompletedEventArgs>(client_LeftOfficeDeleteCompleted);
            client.GetPostsActivedByEmployeeIDCompleted += new EventHandler<GetPostsActivedByEmployeeIDCompletedEventArgs>(client_GetPostsActivedByEmployeeIDCompleted);
            client.GetEmployeePostByEmployeePostIDCompleted += new EventHandler<GetEmployeePostByEmployeePostIDCompletedEventArgs>(client_GetEmployeePostByEmployeePostIDCompleted);
            client.GetEmployeeToEngineCompleted += new EventHandler<GetEmployeeToEngineCompletedEventArgs>(client_GetEmployeeToEngineCompleted);
            DMClient.GetPersonAccountListByMultSearchCompleted += new EventHandler<GetPersonAccountListByMultSearchCompletedEventArgs>(DMClient_GetPersonAccountListByMultSearchCompleted);
            flowClient.IsExistFlowDataByUserIDCompleted += new EventHandler<Saas.Tools.FlowWFService.IsExistFlowDataByUserIDCompletedEventArgs>(flowClient_IsExistFlowDataByUserIDCompleted);
            fbClient.GetLeavingUserCompleted += new EventHandler<Saas.Tools.FBServiceWS.GetLeavingUserCompletedEventArgs>(fbClient_GetLeavingUserCompleted);

            client.GetEmployeeViewsPagingCompleted += new EventHandler<GetEmployeeViewsPagingCompletedEventArgs>(client_GetEmployeeViewsPagingCompleted);

            this.Loaded += new RoutedEventHandler(LeftOfficeForm_Loaded);
            #region 原来的
            /*
            if (FormType == FormTypes.Browse || FormType == FormTypes.Audit)
            {
                this.IsEnabled = false;
            }
            */
            #endregion
        }
예제 #2
0
 private void InitParas(string strID)
 {
     client = new PersonnelServiceClient();
     flowClient = new Saas.Tools.FlowWFService.ServiceClient();
     client.GetEmployeePostChangeByIDCompleted += new EventHandler<GetEmployeePostChangeByIDCompletedEventArgs>(client_GetEmployeePostChangeByIDCompleted);
     client.EmployeePostChangeAddCompleted += new EventHandler<EmployeePostChangeAddCompletedEventArgs>(client_EmployeePostChangeAddCompleted);
     client.EmployeePostChangeUpdateCompleted += new EventHandler<EmployeePostChangeUpdateCompletedEventArgs>(client_EmployeePostChangeUpdateCompleted);
     client.EmployeePostChangeDeleteCompleted += new EventHandler<EmployeePostChangeDeleteCompletedEventArgs>(client_EmployeePostChangeDeleteCompleted);
     client.GetEmployeePostByIDCompleted += new EventHandler<GetEmployeePostByIDCompletedEventArgs>(client_GetEmployeePostByIDCompleted);
     client.EmployeePostUpdateCompleted += new EventHandler<EmployeePostUpdateCompletedEventArgs>(client_EmployeePostUpdateCompleted);
     client.EmployeePostAddCompleted += new EventHandler<EmployeePostAddCompletedEventArgs>(client_EmployeePostAddCompleted);
     client.EmployeePostChangeCompleted += new EventHandler<EmployeePostChangeCompletedEventArgs>(client_EmployeePostChangeCompleted);
     client.GetEmployeeToEngineCompleted += new EventHandler<GetEmployeeToEngineCompletedEventArgs>(client_GetEmployeeToEngineCompleted);
     client.GetAllPostByEmployeeIDCompleted += new EventHandler<GetAllPostByEmployeeIDCompletedEventArgs>(client_GetAllPostByEmployeeIdCompeted);
     client.CheckBusinesstripCompleted += new EventHandler<CheckBusinesstripCompletedEventArgs>(Client_CheckBusinesstripCompleted);
     client.GetPostsActivedByEmployeeIDCompleted += new EventHandler<GetPostsActivedByEmployeeIDCompletedEventArgs>(client_GetPostsActivedByEmployeeIDCompleted);
     orgClient = new SMT.Saas.Tools.OrganizationWS.OrganizationServiceClient();
     orgClient.GetPostByIdCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostByIdCompletedEventArgs>(orgClient_GetPostByIdCompleted);
     orgClient.GetPostNumberCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostNumberCompletedEventArgs>(orgClient_GetPostNumberCompleted);
     //fbClient.GetLeavingUserCompleted += new EventHandler<SMT.Saas.Tools.FBServiceWS.GetLeavingUserCompletedEventArgs>(fbClient_GetLeavingUserCompleted);
     //flowClient.IsExistFlowDataByUserIDAsync("","");
     flowClient.IsExistFlowDataByUserIDCompleted += new EventHandler<Saas.Tools.FlowWFService.IsExistFlowDataByUserIDCompletedEventArgs>(flowClient_IsExistFlowDataByUserIDCompleted);
     //DMClient.GetPersonAccountListByMultSearchCompleted += new EventHandler<GetPersonAccountListByMultSearchCompletedEventArgs>(DMClient_GetPersonAccountListByMultSearchCompleted);
     
     this.Loaded += new RoutedEventHandler(EmployeePostChangeForm_Loaded);
     #region 原来的
     /*
     if (FormType == FormTypes.Browse || FormType == FormTypes.Audit)
     {
         this.IsEnabled = false;
     }
     */
     #endregion
 }
예제 #3
0
 public FBFlowService()
 {
     flowService = new Saas.Tools.FlowWFService.ServiceClient();
     flowService.GetFlowInfoCompleted += new EventHandler <Saas.Tools.FlowWFService.GetFlowInfoCompletedEventArgs>(flowService_GetFlowInfoCompleted);
 }
예제 #4
0
파일: AuditControlFB.cs 프로젝트: JuRogn/OA
 public FBFlowService()
 {
     flowService = new Saas.Tools.FlowWFService.ServiceClient();
     flowService.GetFlowInfoCompleted += new EventHandler<Saas.Tools.FlowWFService.GetFlowInfoCompletedEventArgs>(flowService_GetFlowInfoCompleted);
 }