コード例 #1
0
        private void AuthorizationBtn_Click(object sender, RoutedEventArgs e)
        {
            Button AuthorBtn = sender as Button;

            SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEVIEW AuthorUser = AuthorBtn.Tag as SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEVIEW;
            permclient.GetUserByEmployeeIDAsync(AuthorUser.EMPLOYEEID);
        }
コード例 #2
0
        private void InitParas(string sysUserID)
        {
            ServiceClent.SysUserInfoUpdateCompleted       += new EventHandler <SysUserInfoUpdateCompletedEventArgs>(SysUserClient_SysUserInfoUpdateCompleted);
            ServiceClent.GetUserByEmployeeIDCompleted     += new EventHandler <GetUserByEmployeeIDCompletedEventArgs>(ServiceClent_GetUserByEmployeeIDCompleted);
            ServiceClent.GetUserByIDCompleted             += new EventHandler <GetUserByIDCompletedEventArgs>(ServiceClent_GetUserByIDCompleted);
            ServiceClent.SysUserBatchUpdateCompleted      += new EventHandler <SysUserBatchUpdateCompletedEventArgs>(SysUserClient_SysUserBatchUpdateCompleted);
            salaryClient.GetSystemParamSetPagingCompleted += new EventHandler <GetSystemParamSetPagingCompletedEventArgs>(salaryClient_GetSystemParamSetPagingCompleted);
            if (!string.IsNullOrEmpty(sysUserID))
            {
                this.txtUserName.IsEnabled = false;

                //ServiceClent.GetUserByIDAsync(sysUserID);
                ServiceClent.GetUserByEmployeeIDAsync(sysUserID);
            }
        }