Beispiel #1
0
        /// <summary>
        /// Create a new QCSInfo object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        /// <param name="heatSeal">Initial value of the HeatSeal property.</param>
        /// <param name="bin">Initial value of the Bin property.</param>
        /// <param name="time">Initial value of the Time property.</param>
        public static QCSInfo CreateQCSInfo(global::System.Int32 id, global::System.String heatSeal, global::System.String bin, global::System.DateTime time)
        {
            QCSInfo qCSInfo = new QCSInfo();

            qCSInfo.id       = id;
            qCSInfo.HeatSeal = heatSeal;
            qCSInfo.Bin      = bin;
            qCSInfo.Time     = time;
            return(qCSInfo);
        }
Beispiel #2
0
 public string SaveQCS(string heatseal, string location)
 {
     OnTheSpot.EFStuff.QCSInfo dbItem = new OnTheSpot.EFStuff.QCSInfo()
     {
         HeatSeal = heatseal, Bin = location, Time = DateTime.Now
     };
     db.QCSInfoes.AddObject(dbItem);
     try
     {
         db.SaveChanges();
     }
     catch (Exception e)
     {
         return(e.InnerException.Message);
     }
     return(string.Empty);
 }
Beispiel #3
0
         public string SaveQCS(string heatseal,string location)
         { 

             OnTheSpot.EFStuff.QCSInfo dbItem = new OnTheSpot.EFStuff.QCSInfo() {  HeatSeal=heatseal, Bin=location, Time = DateTime.Now };
             db.QCSInfoes.AddObject(dbItem);
             try
             {
                 db.SaveChanges();
             }
             catch (Exception e)
             {
                return e.InnerException.Message;
             }
             return string.Empty;
         }
Beispiel #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the QCSInfoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToQCSInfoes(QCSInfo qCSInfo)
 {
     base.AddObject("QCSInfoes", qCSInfo);
 }
Beispiel #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the QCSInfoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToQCSInfoes(QCSInfo qCSInfo)
 {
     base.AddObject("QCSInfoes", qCSInfo);
 }
Beispiel #6
0
 /// <summary>
 /// Create a new QCSInfo object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="heatSeal">Initial value of the HeatSeal property.</param>
 /// <param name="bin">Initial value of the Bin property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 public static QCSInfo CreateQCSInfo(global::System.Int32 id, global::System.String heatSeal, global::System.String bin, global::System.DateTime time)
 {
     QCSInfo qCSInfo = new QCSInfo();
     qCSInfo.id = id;
     qCSInfo.HeatSeal = heatSeal;
     qCSInfo.Bin = bin;
     qCSInfo.Time = time;
     return qCSInfo;
 }