/// <summary> /// Author: Josephine Monteza /// Date Created: 03/Oct/2017 /// Descrption: Get Vendor list of Driver /// ============================================================= /// </summary> public List <VehicleVendorDTO> GetDriverVendorList(string sLoginUser, string sUserID, string sVendorToFind, bool bIsToBeAdded, string sVendorType, int iStartRow, int iMaxRow, Int16 iLoadType, string sOrderBy, string sToLoad) { string sToFind = sVendorToFind == null ? "" : sVendorToFind; if (iLoadType == 0 || sToLoad == "VehicleToAdd") { UserVendorBLL.DriverVendorGet(sLoginUser, sUserID, sToFind, bIsToBeAdded, sVendorType, iStartRow, iMaxRow, iLoadType, sOrderBy); } List <VehicleVendorDTO> listVehicleVendorToAdd = new List <VehicleVendorDTO>(); if (sVendorType == "Vehicle") { if (bIsToBeAdded) { if (Session["User_VehicleVendorToAdd"] != null) { listVehicleVendorToAdd = (List <VehicleVendorDTO>)Session["User_VehicleVendorToAdd"]; } } } return(listVehicleVendorToAdd); }
/// <summary> /// Author: Josephine Monteza /// Date Created: 03/Oct/2017 /// Descrption: Get Vendor list of Driver /// ============================================================= /// </summary> public List <VehicleVendorDTO> GetDriverVehicleVendorAddedList(string sLoginUser, string sUserID, string sVendorToFind, bool bIsToBeAdded, string sVendorType, int iStartRow, int iMaxRow, Int16 iLoadType, string sOrderBy, string sToLoad) { List <VehicleVendorDTO> listVehicleVendorAdded = new List <VehicleVendorDTO>(); string sToFind = ""; if (iLoadType == 1 || sToLoad == "VehicleAdded") { UserVendorBLL.DriverVendorGet(sLoginUser, sUserID, sToFind, bIsToBeAdded, sVendorType, iStartRow, iMaxRow, iLoadType, sOrderBy); } if (Session["User_VehicleVendorAdded"] != null) { listVehicleVendorAdded = (List <VehicleVendorDTO>)Session["User_VehicleVendorAdded"]; } return(listVehicleVendorAdded); }