Ejemplo n.º 1
0
        // edit by Chatas C. 17 June 2011
        /// <summary>
        /// Load Purchase orde in selected time range.
        /// </summary>
        /// <param name="dtmPO_DATE_FROM">Start Date</param>
        /// <param name="dtmPO_DATE_TO">End Date</param>
        /// <param name="bIncludeCancel">Is show all PO include cancel</param>
        /// <returns></returns>
        public DataTable LoadPurchaseOrderDByPONoWithCriteria(DateTime dtmPO_DATE_FROM, DateTime dtmPO_DATE_TO, bool bIncludeCancel)
        {
            PurchaseOrderHDAO dao = new PurchaseOrderHDAO(CommonLib.Common.CurrentDatabase);

            if (bIncludeCancel)
            {
                return(dao.LoadAllPurchaseOrderDByPONo(null, dtmPO_DATE_FROM, dtmPO_DATE_TO));
            }
            else
            {
                return(dao.LoadPurchaseOrderDByPONo(null, dtmPO_DATE_FROM, dtmPO_DATE_TO));
            }
        }
Ejemplo n.º 2
0
        public DataTable LoadPurchaseOrderDByPONo(DateTime dtmPO_DATE_FROM, DateTime dtmPO_DATE_TO)
        {
            PurchaseOrderHDAO dao = new PurchaseOrderHDAO(CommonLib.Common.CurrentDatabase);

            return(dao.LoadPurchaseOrderDByPONo(null, dtmPO_DATE_FROM, dtmPO_DATE_TO));
        }