Example #1
0
        public static ReportNPR GetGoodsInLineById(System.Int32 goodsInLineId)
        {
            Rebound.GlobalTrader.DAL.ReportNPRDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.ReportNPR.GetGoodsInLineById(goodsInLineId);
            if (objDetails == null)
            {
                return(null);
            }
            else
            {
                Rebound.GlobalTrader.BLL.ReportNPR obj = new Rebound.GlobalTrader.BLL.ReportNPR();
                obj.GoodsInNo           = objDetails.GoodsInNo;
                obj.GoodsInLineId       = objDetails.GoodsInLineId;
                obj.CurrentDate         = objDetails.CurrentDate;
                obj.QLocation           = objDetails.QLocation;
                obj.NPRNo               = objDetails.NPRNo;
                obj.ReceiverName        = objDetails.ReceiverName;
                obj.PartNo              = objDetails.PartNo;
                obj.RejectedQty         = objDetails.RejectedQty;
                obj.UnitCost            = objDetails.UnitCost;
                obj.Supplier            = objDetails.Supplier;
                obj.PurchaseOrderNumber = objDetails.PurchaseOrderNumber;
                obj.AdviceNote          = objDetails.AdviceNote;
                obj.TotalRejectedValue  = objDetails.TotalRejectedValue;
                obj.CustomerName        = objDetails.CustomerName;
                obj.CompanyNo           = objDetails.CompanyNo;
                obj.SalesOrderNo        = objDetails.SalesOrderNo;
                obj.RaisedBy            = objDetails.RaisedBy;
                //[0001] start
                obj.CurrencyCode = objDetails.CurrencyCode;
                //[0001] end
                // obj.CustomerRMANo = objDetails.CustomerRMANo;
                // obj.SupplierRMANo = objDetails.SupplierRMANo;
                obj.RejectionReason = objDetails.RejectionReason;
                //[0002] start
                obj.Reason1    = objDetails.Reason1;
                obj.Reason1    = objDetails.Reason1;
                obj.NPRComment = objDetails.NPRComment;

                //[0002] end

                objDetails = null;
                return(obj);
            }
        }
Example #2
0
 /// <summary>
 /// Get NPR by NPRId
 /// calls [usp_select_NPRbyId]
 /// </summary>
 /// <param name="nprId"></param>
 /// <returns></returns>
 public static ReportNPR Get(System.Int32 nprId, System.Int32?clientNo)
 {
     Rebound.GlobalTrader.DAL.ReportNPRDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.ReportNPR.Get(nprId, clientNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         Rebound.GlobalTrader.BLL.ReportNPR obj = new Rebound.GlobalTrader.BLL.ReportNPR();
         obj.NPRId                     = objDetails.NPRId;
         obj.NPRNo                     = objDetails.NPRNo;
         obj.RaisedBy                  = objDetails.RaisedBy;
         obj.NPRdate                   = objDetails.NPRdate;
         obj.QLocation                 = objDetails.QLocation;
         obj.GoodsInLineId             = objDetails.GoodsInLineId;
         obj.GoodsInNo                 = objDetails.GoodsInNo;
         obj.SalesOrderNo              = objDetails.SalesOrderNo;
         obj.TotalRejectedValue        = objDetails.TotalRejectedValue;
         obj.RejectionReason           = objDetails.RejectionReason;
         obj.SupplierRMANo             = objDetails.SupplierRMANo;
         obj.CorrectiveActionReport    = objDetails.CorrectiveActionReport;
         obj.SupplierShipVia           = objDetails.SupplierShipVia;
         obj.SupplierShipAccount       = objDetails.SupplierShipAccount;
         obj.SupplierToCredit          = objDetails.SupplierToCredit;
         obj.SupplierRef               = objDetails.SupplierRef;
         obj.IncurredCostToSales_Scrap = objDetails.IncurredCostToSales_Scrap;
         obj.Comments                  = objDetails.Comments;
         obj.StockLocation             = objDetails.StockLocation;
         obj.IncurredCostToSales_Stock = objDetails.IncurredCostToSales_Stock;
         obj.OutworkerName             = objDetails.OutworkerName;
         obj.OutworkerPONo             = objDetails.OutworkerPONo;
         obj.SalesPersonNo             = objDetails.SalesPersonNo;
         obj.SalesAuthorisePersonNo    = objDetails.SalesAuthorisePersonNo;
         obj.SalesAuthoriseDate        = objDetails.SalesAuthoriseDate;
         obj.LogisticSRMANo            = objDetails.LogisticSRMANo;
         obj.LogisticSRMADate          = objDetails.LogisticSRMADate;
         obj.DebitNoteNo               = objDetails.DebitNoteNo;
         obj.DebitNoteDate             = objDetails.DebitNoteDate;
         obj.NPRCompletedByNo          = objDetails.NPRCompletedByNo;
         obj.NPRCompletedDate          = objDetails.NPRCompletedDate;
         obj.UpdatedBy                 = objDetails.UpdatedBy;
         obj.DLUP                = objDetails.DLUP;
         obj.ReceiverName        = objDetails.ReceiverName;
         obj.RejectedQty         = objDetails.RejectedQty;
         obj.CompanyNo           = objDetails.CompanyNo;
         obj.AdviceNote          = objDetails.AdviceNote;
         obj.Supplier            = objDetails.Supplier;
         obj.PartNo              = objDetails.PartNo;
         obj.CustomerName        = objDetails.CustomerName;
         obj.CompletedByName     = objDetails.CompletedByName;
         obj.ShipViaName         = objDetails.ShipViaName;
         obj.BuyerId             = objDetails.BuyerId;
         obj.BuyerName           = objDetails.BuyerName;
         obj.GoodsInNumber       = objDetails.GoodsInNumber;
         obj.UnitCost            = objDetails.UnitCost;
         obj.SalesAuthoriseBy    = objDetails.SalesAuthoriseBy;
         obj.SalesAuthoriseName  = objDetails.SalesAuthoriseName;
         obj.IsAuthorise         = objDetails.IsAuthorise;
         obj.SalesPerson         = objDetails.SalesPerson;
         obj.PurchaseOrderNumber = objDetails.PurchaseOrderNumber;
         obj.QtyAdvised          = objDetails.QtyAdvised;
         //[0001] start
         obj.CurrencyCode = objDetails.CurrencyCode;
         //[0001] end
         //[0002] start
         obj.Reason1     = objDetails.Reason1;
         obj.Reason2     = objDetails.Reason2;
         obj.Reason1Val  = objDetails.Reason1Val;
         obj.Reason2Val  = objDetails.Reason2Val;
         obj.NPRComment  = objDetails.NPRComment;
         obj.SalesAction = objDetails.SalesAction;
         obj.ClientNo    = objDetails.ClientNo;
         obj.ClientName  = objDetails.ClientName;
         //[0002] end
         objDetails = null;
         return(obj);
     }
 }