Exemplo n.º 1
0
 /// <summary>
 /// Call Proc [usp_select_SupplierInvoice]
 /// Get the supplier invoice by supplierinvoiceId
 /// </summary>
 /// <param name="supplierInvoiceId"></param>
 /// <returns></returns>
 public static SupplierInvoice Get(System.Int32?supplierInvoiceId)
 {
     Rebound.GlobalTrader.DAL.SupplierInvoiceDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.SupplierInvoice.Get(supplierInvoiceId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         SupplierInvoice obj = new SupplierInvoice();
         obj.SupplierInvoiceID     = objDetails.SupplierInvoiceID;
         obj.SupplierInvoiceNumber = objDetails.SupplierInvoiceNumber;
         obj.CompanyNo             = objDetails.CompanyNo;
         obj.ClientNo            = objDetails.ClientNo;
         obj.SupplierInvoiceDate = objDetails.SupplierInvoiceDate;
         obj.SupplierCode        = objDetails.SupplierCode;
         obj.SupplierName        = objDetails.SupplierName;
         obj.CurrencyNo          = objDetails.CurrencyNo;
         obj.InvoiceAmount       = objDetails.InvoiceAmount;
         obj.GoodsValue          = objDetails.GoodsValue;
         obj.Tax                 = objDetails.Tax;
         obj.DeliveryCharge      = objDetails.DeliveryCharge;
         obj.CreditCardFee       = objDetails.CreditCardFee;
         obj.BankFee             = objDetails.BankFee;
         obj.Exported            = objDetails.Exported;
         obj.Notes               = objDetails.Notes;
         obj.SecondRef           = objDetails.SecondRef;
         obj.Narrative           = objDetails.Narrative;
         obj.CanbeExported       = objDetails.CanbeExported;
         obj.URNNumber           = objDetails.URNNumber;
         obj.UpdatedBy           = objDetails.UpdatedBy;
         obj.DLUP                = objDetails.DLUP;
         obj.PurchaseOrderNumber = objDetails.PurchaseOrderNumber;
         obj.PurchaseOrderNo     = objDetails.PurchaseOrderNo;
         obj.CurrencyCode        = objDetails.CurrencyCode;
         obj.TaxNo               = objDetails.TaxNo;
         obj.TaxName             = objDetails.TaxName;
         obj.TaxCode             = objDetails.TaxCode;
         obj.StatusReasonId      = objDetails.StatusReasonId;
         obj.StatusReason        = objDetails.StatusReason;
         objDetails              = null;
         return(obj);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get detail for supplier invoice detail page
 /// Call Proc [usp_select_SupplierInvoice_for_Page]
 /// </summary>
 /// <param name="supplierInvoiceId"></param>
 /// <returns></returns>
 public static SupplierInvoice GetForPage(System.Int32?supplierInvoiceId)
 {
     Rebound.GlobalTrader.DAL.SupplierInvoiceDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.SupplierInvoice.GetForPage(supplierInvoiceId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         SupplierInvoice obj = new SupplierInvoice();
         obj.SupplierInvoiceID     = objDetails.SupplierInvoiceID;
         obj.SupplierInvoiceNumber = objDetails.SupplierInvoiceNumber;
         obj.SupplierName          = objDetails.SupplierName;
         obj.CompanyNo             = objDetails.CompanyNo;
         obj.ClientNo = objDetails.ClientNo;
         objDetails   = null;
         return(obj);
     }
 }