Пример #1
0
        //[001] code end
        #endregion

        /// <summary>
        /// Returns a new IncotermDetails instance filled with the DataReader's current record data
        /// </summary>
        protected virtual IncotermDetails GetIncotermFromReader(DbDataReader reader)
        {
            IncotermDetails incoterm = new IncotermDetails();

            if (reader.HasRows)
            {
                incoterm.IncotermId = GetReaderValue_Int32(reader, "IncotermId", 0);       //From: [Table]
                incoterm.Code       = GetReaderValue_String(reader, "Code", "");           //From: [Table]
                incoterm.Name       = GetReaderValue_String(reader, "Name", "");           //From: [Table]
            }
            return(incoterm);
        }
Пример #2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_Incoterm]
 /// </summary>
 public static Incoterm Get(System.Int32?incotermId)
 {
     Rebound.GlobalTrader.DAL.IncotermDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.Incoterm.Get(incotermId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         Incoterm obj = new Incoterm();
         obj.IncotermId = objDetails.IncotermId;
         obj.Code       = objDetails.Code;
         obj.Name       = objDetails.Name;
         //[001] code start
         obj.Active = objDetails.Active;
         //[001] code end
         objDetails = null;
         return(obj);
     }
 }