Example #1
0
 public static IEnumerable <object> getAllEntiresList(int type, String companyId, String divisionId, String keyStroke)
 {
     if (type == 1)
     {
         return(EmpId.getEmpByCompanyList(companyId, divisionId, keyStroke).Cast <object>());;
     }
     else if (type == 2)
     {
         return(SSN.getSSNByCompanyList(companyId, divisionId, keyStroke).Cast <object>());;
     }
     else if (type == 3)
     {
         return(ZipCode.getZipByCompanyList(companyId, divisionId, keyStroke).Cast <object>());;
     }
     else if (type == 4)
     {
         return(Address.getCityByCompanyList(companyId, divisionId, keyStroke).Cast <object>());;
     }
     else if (type == 5)
     {
         // return Person.getEmpByCompanyList(companyId, divisionId,keyStroke).Cast<object>();
         return(CardNo.GetCardNoByCompanyAndDivisionList(companyId, divisionId, keyStroke).Cast <object>());
     }
     return(new List <object>());
 }