Exemple #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));
            }
        }
Exemple #2
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));                
            }
        }