Exemple #1
0
        //[001] code start
        /// <summary>
        /// GetListForStock
        /// Calls [usp_selectAll_StockImage_for_Stock]
        /// </summary>
        public static List <StockImage> GetListForStockSAN(System.Int32?stockId)
        {
            List <StockImageDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockImage.GetListForStockSAN(stockId);

            if (lstDetails == null)
            {
                return(new List <StockImage>());
            }
            else
            {
                List <StockImage> lst = new List <StockImage>();
                foreach (StockImageDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.StockImage obj = new Rebound.GlobalTrader.BLL.StockImage();
                    obj.StockImageId = objDetails.StockImageId;
                    obj.StockNo      = objDetails.StockNo;
                    obj.Caption      = objDetails.Caption;
                    obj.ImageName    = objDetails.ImageName;
                    obj.UpdatedBy    = objDetails.UpdatedBy;
                    obj.DLUP         = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Exemple #2
0
        // [001] code start
        /// <summary>
        /// GetListForSalesOrder
        /// Calls [usp_selectAll_StockPDF_for_Stock]
        /// </summary>
        public static List <StockImage> GetImageListForReq(System.Int32?sourcingResultNo, System.String fileType)
        {
            List <StockImageDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.BOM.GetImageListForReq(sourcingResultNo, fileType);

            if (lstDetails == null)
            {
                return(new List <StockImage>());
            }
            else
            {
                List <StockImage> lst = new List <StockImage>();
                foreach (StockImageDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.StockImage obj = new Rebound.GlobalTrader.BLL.StockImage();
                    obj.StockImageId = objDetails.StockImageId;
                    //obj.PDFDocumentRefNo = objDetails.PDFDocumentRefNo;
                    obj.Caption            = objDetails.Caption;
                    obj.ImageName          = objDetails.ImageName;
                    obj.UpdatedBy          = objDetails.UpdatedBy;
                    obj.By                 = objDetails.UpdatedByName;
                    obj.DLUP               = objDetails.DLUP;
                    obj.ImageDocumentRefNo = objDetails.ImageDocumentRefNo;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Exemple #3
0
        private static StockImage PopulateFromDBDetailsObject(StockImageDetails obj)
        {
            StockImage objNew = new StockImage();

            objNew.StockImageId              = obj.StockImageId;
            objNew.StockNo                   = obj.StockNo;
            objNew.Caption                   = obj.Caption;
            objNew.ThumbnailImage            = obj.ThumbnailImage;
            objNew.ThumbnailImageContentType = obj.ThumbnailImageContentType;
            objNew.MediumImage               = obj.MediumImage;
            objNew.MediumImageContentType    = obj.MediumImageContentType;
            objNew.FullsizeImage             = obj.FullsizeImage;
            objNew.FullsizeImageContentType  = obj.FullsizeImageContentType;
            objNew.UpdatedBy                 = obj.UpdatedBy;
            objNew.DLUP = obj.DLUP;
            return(objNew);
        }
Exemple #4
0
 /// <summary>
 /// GetThumbnailImage
 /// Calls [usp_select_StockImage_ThumbnailImage]
 /// </summary>
 public static StockImage GetThumbnailImage(System.Int32?stockImageId)
 {
     Rebound.GlobalTrader.DAL.StockImageDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockImage.GetThumbnailImage(stockImageId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         StockImage obj = new StockImage();
         obj.StockImageId              = objDetails.StockImageId;
         obj.StockNo                   = objDetails.StockNo;
         obj.ThumbnailImage            = objDetails.ThumbnailImage;
         obj.ThumbnailImageContentType = objDetails.ThumbnailImageContentType;
         objDetails = null;
         return(obj);
     }
 }
Exemple #5
0
 /// <summary>
 /// Get
 /// Calls [usp_select_StockImage]
 /// </summary>
 public static StockImage Get(System.Int32?stockImageId)
 {
     Rebound.GlobalTrader.DAL.StockImageDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockImage.Get(stockImageId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         StockImage obj = new StockImage();
         obj.StockImageId = objDetails.StockImageId;
         obj.StockNo      = objDetails.StockNo;
         obj.Caption      = objDetails.Caption;
         obj.UpdatedBy    = objDetails.UpdatedBy;
         obj.DLUP         = objDetails.DLUP;
         objDetails       = null;
         return(obj);
     }
 }