//required by datasource in generate optrak files screens /// <summary> /// Gets the shipments count. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="sortExpression">The sort expression.</param> /// <param name="pageIndex">Index of the page.</param> /// <param name="numRows">The num rows.</param> /// <param name="fullyPopulate">if set to <c>true</c> [fully populate].</param> /// <returns></returns> public static int GetShipmentsCount(ShipmentCriteria criteria, string sortExpression, int pageIndex, int numRows, bool fullyPopulate) { return(DataAccessProvider.Instance().GetTDCShipmentsCount(criteria)); }
public static List <TDCShipment> GetShipments( ShipmentCriteria criteria, string sortExpression, int pageIndex, int numRows, bool fullyPopulate) { // Get the opco shipments from the db return(GetShipments <TDCShipment>(criteria, sortExpression, pageIndex, numRows, fullyPopulate)); }
/// <summary> /// Gets the shipments. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="sortExpression">The sort expression.</param> /// <param name="pageIndex">Index of the page.</param> /// <param name="numRows">The num rows. -1 WILL BRING BACK ALL RECORDS</param> /// <param name="fullyPopulate">if set to <c>true</c> [fully populate].</param> /// <returns></returns> public static List <T> GetShipments <T>( ShipmentCriteria criteria, string sortExpression, int pageIndex, int numRows, bool fullyPopulate) where T : TDCShipment, new() { return(CBO <T> .FillCollection( DataAccessProvider.Instance().GetTDCShipments(criteria, sortExpression, pageIndex, numRows), CustomShipmentFill, fullyPopulate)); }
/// <summary> /// Gets the shipments. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="sortExpression">The sort expression.</param> /// <param name="pageIndex">Index of the page.</param> /// <param name="numRows">The num rows.</param> /// <param name="fullyPopulate">if set to <c>true</c> [fully populate].</param> /// <returns></returns> public static List <OpCoShipment> GetShipments( ShipmentCriteria criteria, string sortExpression, int pageIndex, int numRows, bool fullyPopulate) { // Get the opco shipments from the db return(CBO <OpCoShipment> .FillCollection( DataAccessProvider.Instance().GetOpCoShipments(criteria, sortExpression, pageIndex, numRows), CustomShipmentFill, fullyPopulate)); }
public IActionResult GetShipmentToUnLock(ShipmentCriteria criteria) { var results = shipmentService.GetShipmentToUnLock(criteria); return(Ok(results)); }
/// <summary> /// Gets the drops. /// </summary> /// <param name="criteria">The criteria.</param> /// <returns></returns> public static List <ShipmentDrop> GetDrops(ShipmentCriteria criteria) { return(CBO <ShipmentDrop> .FillCollection(DataAccessProvider.Instance().GetDrops(criteria))); }
/// <summary> /// Gets the shipments. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="sortExpression">The sort expression.</param> /// <param name="fullyPopulate">if set to <c>true</c> [fully populate].</param> /// <returns></returns> public static List <TDCShipment> GetShipments(ShipmentCriteria criteria, string sortExpression, bool fullyPopulate) { return(GetShipments(criteria, sortExpression, 0, -1, fullyPopulate)); }
/// <summary> /// Gets the shipments count. /// </summary> /// <param name="criteria">The criteria.</param> /// <returns></returns> public static int GetShipmentsCount(ShipmentCriteria criteria) { return(DataAccessProvider.Instance().GetTDCShipmentsCount(criteria)); }
public ShipmentCriteriaControl() { // Seed shipment criteria criteria = new ShipmentCriteria(); }