public static T_COM_Master_Employee_PositionCollection Search(SearchFilter SearchKey) { T_COM_Master_Employee_PositionCollection collection = new T_COM_Master_Employee_PositionCollection(); using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_Position_Search", SearchFilterManager.SqlSearchConditionNoCompany(SearchKey))) { while (reader.Read()) { T_COM_Master_Employee_Position obj = new T_COM_Master_Employee_Position(); obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }
public static T_COM_Master_Employee_PositionCollection GetbyUser(string CreatedUser) { T_COM_Master_Employee_PositionCollection collection = new T_COM_Master_Employee_PositionCollection(); T_COM_Master_Employee_Position obj; using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_Position_GetAll_byUser", new SqlParameter("@CreatedUser", CreatedUser))) { while (reader.Read()) { obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }
public static T_COM_Master_Employee_PositionCollection GetAllItem() { T_COM_Master_Employee_PositionCollection collection = new T_COM_Master_Employee_PositionCollection(); using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_Position_GetAll", null)) { while (reader.Read()) { T_COM_Master_Employee_Position obj = new T_COM_Master_Employee_Position(); obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }