コード例 #1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_BackOrder]
        /// </summary>
        public static List <BackOrder> GetList(System.Int32?pageIndex, System.Int32?pageSize)
        {
            List <BackOrderDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BackOrder.GetList(pageIndex, pageSize);

            if (lstDetails == null)
            {
                return(new List <BackOrder>());
            }
            else
            {
                List <BackOrder> lst = new List <BackOrder>();
                foreach (BackOrderDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.BackOrder obj = new Rebound.GlobalTrader.BLL.BackOrder();
                    obj.SalesOrderLineNo = objDetails.SalesOrderLineNo;
                    obj.Quantity         = objDetails.Quantity;
                    obj.UpdatedBy        = objDetails.UpdatedBy;
                    obj.DLUP             = objDetails.DLUP;
                    obj.RowNum           = objDetails.RowNum;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
        private static BackOrder PopulateFromDBDetailsObject(BackOrderDetails obj)
        {
            BackOrder objNew = new BackOrder();

            objNew.BackOrderId      = obj.BackOrderId;
            objNew.SalesOrderLineNo = obj.SalesOrderLineNo;
            objNew.Quantity         = obj.Quantity;
            objNew.UpdatedBy        = obj.UpdatedBy;
            objNew.DLUP             = obj.DLUP;
            objNew.RowNum           = obj.RowNum;
            return(objNew);
        }
コード例 #3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_BackOrder]
 /// </summary>
 public static BackOrder Get(System.Int32?salesOrderLineNo)
 {
     Rebound.GlobalTrader.DAL.BackOrderDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.BackOrder.Get(salesOrderLineNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         BackOrder obj = new BackOrder();
         obj.SalesOrderLineNo = objDetails.SalesOrderLineNo;
         obj.Quantity         = objDetails.Quantity;
         obj.UpdatedBy        = objDetails.UpdatedBy;
         obj.DLUP             = objDetails.DLUP;
         objDetails           = null;
         return(obj);
     }
 }