Esempio n. 1
0
 /// <summary>
 /// Insert (without parameters)
 /// Calls [usp_insert_Quote]
 /// </summary>
 //public Int32 Insert() {
 //    return Rebound.GlobalTrader.DAL.SiteProvider.Quote.Insert(ClientNo, Notes, CompanyNo, ContactNo,  CurrencyNo,  Closed,  UpdatedBy);
 //}
 //[002] code end
 /// <summary>
 /// Get
 /// Calls [usp_select_PurchaseRequest]
 /// </summary>
 public static PurchaseQuote Get(System.Int32?poQuoteId)
 {
     Rebound.GlobalTrader.DAL.POQuoteDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.POQuote.Get(poQuoteId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         PurchaseQuote obj = new PurchaseQuote();
         obj.POQuoteId     = objDetails.POQuoteId;
         obj.ClientNo      = objDetails.ClientNo;
         obj.POQuoteNumber = objDetails.POQuoteNumber;
         obj.Notes         = objDetails.Notes;
         obj.CompanyNo     = objDetails.CompanyNo;
         obj.ContactNo     = objDetails.ContactNo;
         // obj.CurrencyNo = objDetails.CurrencyNo;
         obj.UpdatedBy   = objDetails.UpdatedBy;
         obj.DLUP        = objDetails.DLUP;
         obj.CompanyName = objDetails.CompanyName;
         obj.ContactName = objDetails.ContactName;
         //obj.CurrencyCode = objDetails.CurrencyCode;
         //obj.CurrencyDescription = objDetails.CurrencyDescription;
         obj.SalesPersonNo    = objDetails.SalesPersonNo;
         obj.SalesPersonName  = objDetails.SalesPersonName;
         obj.DivisionNo       = objDetails.DivisionNo;
         obj.DivisionName     = objDetails.DivisionName;
         obj.SalesPersonEmail = objDetails.SalesPersonEmail;
         obj.PQStatus         = objDetails.PQStatus;
         objDetails           = null;
         return(obj);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// GetForPage
 /// Calls [usp_select_POQuote_for_Page]
 /// </summary>
 public static PurchaseQuote GetForPage(System.Int32?poQuoteId)
 {
     Rebound.GlobalTrader.DAL.POQuoteDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.POQuote.GetForPage(poQuoteId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         PurchaseQuote obj = new PurchaseQuote();
         obj.POQuoteId     = objDetails.POQuoteId;
         obj.POQuoteNumber = objDetails.POQuoteNumber;
         obj.ClientNo      = objDetails.ClientNo;
         obj.CompanyNo     = objDetails.CompanyNo;
         obj.CompanyName   = objDetails.CompanyName;
         obj.Closed        = objDetails.Closed;
         obj.PRStatus      = objDetails.PRStatus;
         objDetails        = null;
         return(obj);
     }
 }