示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteslineserlotchanges(ref DataRow row, Wteslineserlotchanges entity)
 {
     row.SetField("lineno", entity.lineno);
     row.SetField("bofl", entity.bofl);
     row.SetField("qtyship", entity.qtyship);
     row.SetField("stkqtyship", entity.stkqtyship);
     row.SetField("qtyunavail", entity.qtyunavail);
     row.SetField("nosnlotso", entity.nosnlotso);
     row.SetField("binloc", entity.binloc);
 }
示例#2
0
        public static Wteslineserlotchanges BuildWteslineserlotchangesFromRow(DataRow row)
        {
            Wteslineserlotchanges entity = new Wteslineserlotchanges();

            entity.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.bofl       = row.Field <bool>("bofl");
            entity.qtyship    = row.IsNull("qtyship") ? decimal.Zero : row.Field <decimal>("qtyship");
            entity.stkqtyship = row.IsNull("stkqtyship") ? decimal.Zero : row.Field <decimal>("stkqtyship");
            entity.qtyunavail = row.IsNull("qtyunavail") ? decimal.Zero : row.Field <decimal>("qtyunavail");
            entity.nosnlotso  = row.IsNull("nosnlotso") ? decimal.Zero : row.Field <decimal>("nosnlotso");
            entity.binloc     = row.IsNull("binloc") ? string.Empty : row.Field <string>("binloc");
            return(entity);
        }