EchoTex_Payroll/HRM.UI/Controllers/MobileAPI/Components/ServiceInitializer.cs
2024-10-14 10:01:49 +06:00

49 lines
1.9 KiB
C#

//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using Ease.Core.Model;
//using HRM.BO;
//using HRM.DA;
//namespace HRM.UI.Components
//{
// public static class ServiceInitializer
// {
// public static void Initialize(int EmpID)
// {
// Employee oEmp = new EmployeeService().Get(EmpID);
// if (oEmp != null)
// {
// GlobalFunctions.MONTH_START_DATE = 26;
// //SystemInformation.CurrentSysInfo.PayrollTypeID = oEmp.PayrollTypeID;
// HRM.BO.User.SetMobileUser(oEmp.EmployeeNo);
// HRM.BO.User.CurrentUser.LogInPayrollTypeID = oEmp.PayrollTypeID;
// HRM.BO.User.CurrentUser.LogInMode = EnumUserLogInMode.Normal;
// }
// }
// public static void Initialize(Employee oEmp)
// {
// if (oEmp != null)
// {
// GlobalFunctions.MONTH_START_DATE = 26;
// HRM.BO.User.SetMobileUser(oEmp.EmployeeNo);
// HRM.BO.User.CurrentUser.LogInPayrollTypeID = oEmp.PayrollTypeID;
// if (HRM.BO.SystemInformation.CurrentSysInfo != null)
// HRM.BO.SystemInformation.CurrentSysInfo.PayrollTypeID = oEmp.PayrollTypeID;
// HRM.BO.User.CurrentUser.LogInMode = EnumUserLogInMode.Normal;
// }
// }
// public static void Initialize(string EmployeeNo, int PayrollTypeID)
// {
// GlobalFunctions.MONTH_START_DATE = 26;
// HRM.BO.User.SetMobileUser(EmployeeNo);
// HRM.BO.User.CurrentUser.LogInPayrollTypeID = PayrollTypeID;
// if (HRM.BO.SystemInformation.CurrentSysInfo != null)
// HRM.BO.SystemInformation.CurrentSysInfo.PayrollTypeID = PayrollTypeID;
// HRM.BO.User.CurrentUser.LogInMode = EnumUserLogInMode.Normal;
// }
// }
//}