Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteilineserlotchanges(ref DataRow row, Wteilineserlotchanges entity)
 {
     row.SetField("lineno", entity.lineno);
     row.SetField("cancelfl", entity.cancelfl);
     row.SetField("qtyrcv", entity.qtyrcv);
     row.SetField("stkqtyrcv", entity.stkqtyrcv);
     row.SetField("qtyunavail", entity.qtyunavail);
     row.SetField("nosnlots", entity.nosnlots);
 }
Esempio n. 2
0
        public static Wteilineserlotchanges BuildWteilineserlotchangesFromRow(DataRow row)
        {
            Wteilineserlotchanges entity = new Wteilineserlotchanges();

            entity.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.cancelfl   = row.Field <bool>("cancelfl");
            entity.qtyrcv     = row.IsNull("qtyrcv") ? decimal.Zero : row.Field <decimal>("qtyrcv");
            entity.stkqtyrcv  = row.IsNull("stkqtyrcv") ? decimal.Zero : row.Field <decimal>("stkqtyrcv");
            entity.qtyunavail = row.IsNull("qtyunavail") ? decimal.Zero : row.Field <decimal>("qtyunavail");
            entity.nosnlots   = row.IsNull("nosnlots") ? decimal.Zero : row.Field <decimal>("nosnlots");
            return(entity);
        }