Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceucheckserlotcriteria(ref DataRow row, Iceucheckserlotcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("mode", entity.mode);
     row.SetField("stkqtyship", entity.stkqtyship);
     row.SetField("unit", entity.unit);
     row.SetField("orderno", entity.orderno);
     row.SetField("refer", entity.refer);
     row.SetField("noassn", entity.noassn);
     row.SetField("reasunavty", entity.reasunavty);
     row.SetField("numselectedrows", entity.numselectedrows);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Iceucheckserlotcriteria BuildIceucheckserlotcriteriaFromRow(DataRow row)
        {
            Iceucheckserlotcriteria entity = new Iceucheckserlotcriteria();

            entity.whse            = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prod            = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.mode            = row.IsNull("mode") ? string.Empty : row.Field <string>("mode");
            entity.stkqtyship      = row.IsNull("stkqtyship") ? decimal.Zero : row.Field <decimal>("stkqtyship");
            entity.unit            = row.IsNull("unit") ? string.Empty : row.Field <string>("unit");
            entity.orderno         = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.refer           = row.IsNull("refer") ? string.Empty : row.Field <string>("refer");
            entity.noassn          = row.IsNull("noassn") ? decimal.Zero : row.Field <decimal>("noassn");
            entity.reasunavty      = row.IsNull("reasunavty") ? string.Empty : row.Field <string>("reasunavty");
            entity.numselectedrows = row.IsNull("numselectedrows") ? 0 : row.Field <int>("numselectedrows");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }