Beispiel #1
0
        void client_GetEmployeeEvectionRecordByIDCompleted(object sender, GetEmployeeEvectionRecordByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                Evection = e.Result;
                client.GetAttendanceRecordByEmployeeIDAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, dpStartDate.Text, "dpStartDate");
                client.GetAttendanceRecordByEmployeeIDAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, dpEndDate.Text, "dpEndDate");
                perClient.GetEmployeeDetailByIDAsync(Evection.EMPLOYEEID);

                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
Beispiel #2
0
        void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
        {
            T_SYS_USER user = e.Result;

            if (user != null && user.PASSWORD == paw.Password)
            {
                // SMT.SAAS.Main.CurrentContext.Common.CurrentConfig.CurrentUser.UserInfo = user;
                //TODO: 暂时注销用户权限
                client.GetUserPermissionByUserAsync(user.SYSUSERID);

                personelClient.GetEmployeeDetailByIDAsync(user.EMPLOYEEID);

                MainPage mainPage = new MainPage();
                App.Navigation(mainPage);
            }
            else
            {
                MessageBox.Show("用户名或密码错误!");
            }
        }
        void clientAtt_GetAttendMonthlyBalanceByIDCompleted(object sender, GetAttendMonthlyBalanceByIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                entAttendMonthlyBalance = e.Result;
                this.DataContext        = entAttendMonthlyBalance;

                if (entAttendMonthlyBalance != null)
                {
                    clientPer.GetEmployeeDetailByIDAsync(entAttendMonthlyBalance.EMPLOYEEID);
                }


                RefreshUI(RefreshedTypes.AuditInfo);
                SetToolBar();
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }