Beispiel #1
0
    //AUTHOR : APRIL SHAR
    public CheckHasTemp CheckHasTempHead(string deptCode)
    {
        bool         checkHasTemp = EFBroker_Employee.isDeptHaveTempHead(deptCode);
        CheckHasTemp cht          = new CheckHasTemp();

        cht.HasTemp = checkHasTemp;
        return(cht);
    }
Beispiel #2
0
    //AUTHOR : APRIL SHAR
    //End Collection Function Part
    public IsTemp CheckIsTempHead(string id)
    {
        Employee e = EFBroker_Employee.GetEmployee(Convert.ToInt32(id));
        bool     isTemp;

        isTemp = Utility.checkIsTempDepHead(e);
        IsTemp it = new IsTemp();

        it.IsTempHead = isTemp;
        return(it);
    }
Beispiel #3
0
    private static void ApproveMailNotification()
    {
        List <String> clerkEmails = EFBroker_Employee.getAllClerkMails();

        if (clerkEmails != null)
        {
            for (int i = 0; i < clerkEmails.Count; i++)
            {
                Utility.sendMail(clerkEmails[i].ToString(), "Request Stationery Items", "New Requisition Form from is requested");
            }
        }
    }
Beispiel #4
0
    private void CPMailNotification()
    {
        List <String> clerkEmails = EFBroker_Employee.getAllClerkMails();

        if (clerkEmails != null)
        {
            for (int i = 0; i < clerkEmails.Count; i++)
            {
                Utility.sendMail(clerkEmails[i].ToString(), "Change Collection Point", "New Collection Point is updated!");
            }
        }
    }
Beispiel #5
0
    public static Employee login(string email, string password)
    {
        bool isValid = EFBroker_Employee.verifyLogin(email, password);

        if (isValid)
        {
            Employee emp = EFBroker_Employee.GetEmployeeByEmail(email);
            //Check is temp head or not
            if (Utility.checkIsTempDepHead(emp) == true)
            {
                //set role for temp head
                emp.Role = "DepartmentTempHead";
            }
            return(emp);
        }
        return(null);
    }
Beispiel #6
0
 public static Employee GetEmployeeByEmail(string email)
 {
     return(EFBroker_Employee.GetEmployeeByEmail(email));
 }
Beispiel #7
0
 public static bool verifyLogin(string email, string password)
 {
     return(EFBroker_Employee.verifyLogin(email, password));
 }
Beispiel #8
0
 public static bool isDeptHaveTempHead(string deptCode)
 {
     return(EFBroker_Employee.isDeptHaveTempHead(deptCode));
 }
Beispiel #9
0
 public static List <String> getAllClerkMails()
 {
     return(EFBroker_Employee.getAllClerkMails());
 }
Beispiel #10
0
 public static Employee GetDeptHeadTempHeadEmail(Employee em)
 {
     return(EFBroker_Employee.GetHeadEmail(em));
 }