public List <T_FB_REPAYAPPLYDETAIL> GetPersonAccountListByMultSearchForMobile(string employeeID, string companyID) { using (PersonAccountBLL repayBLL = new PersonAccountBLL()) { string strFilter = string.Empty; List <object> paras = new List <object>(); string strSortKey = "PERSONACCOUNTID"; if (!string.IsNullOrEmpty(companyID)) { if (!string.IsNullOrEmpty(strFilter)) { strFilter += " and "; } strFilter += "@" + paras.Count().ToString() + ".Contains(OWNERCOMPANYID) "; paras.Add(companyID); } if (!string.IsNullOrEmpty(employeeID)) { if (!string.IsNullOrEmpty(strFilter)) { strFilter += " and "; } strFilter += "@" + paras.Count().ToString() + ".Contains(OWNERID) "; paras.Add(employeeID); } return(PersonAccountBLL.GetAllPersonAccountRdListByMultSearchForMobile(strFilter, paras, strSortKey, employeeID).ToList()); } }
public List<T_FB_REPAYAPPLYDETAIL> GetPersonAccountListByMultSearchForMobile(string employeeID, string companyID) { using (PersonAccountBLL repayBLL = new PersonAccountBLL()) { string strFilter = string.Empty; List<object> paras = new List<object>(); string strSortKey = "PERSONACCOUNTID"; if (!string.IsNullOrEmpty(companyID)) { if (!string.IsNullOrEmpty(strFilter)) { strFilter += " and "; } strFilter += "@" + paras.Count().ToString() + ".Contains(OWNERCOMPANYID) "; paras.Add(companyID); } if (!string.IsNullOrEmpty(employeeID)) { if (!string.IsNullOrEmpty(strFilter)) { strFilter += " and "; } strFilter += "@" + paras.Count().ToString() + ".Contains(OWNERID) "; paras.Add(employeeID); } return PersonAccountBLL.GetAllPersonAccountRdListByMultSearchForMobile(strFilter, paras, strSortKey,employeeID).ToList(); } }
public List <T_FB_PERSONACCOUNT> GetPersonAccountListByMultSearch(string strFilter, List <object> objArgs, string strSortKey) { return(PersonAccountBLL.GetAllPersonAccountRdListByMultSearch(strFilter, objArgs, strSortKey).ToList()); }