示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetlabelprintbinmstresults(ref DataRow row, Getlabelprintbinmstresults entity)
 {
     row.SetField("wh_zone", entity.whZone);
     row.SetField("aisle", entity.aisle);
     row.SetField("bin_num", entity.binNum);
     row.SetField("abs_num", entity.absNum);
     row.SetField("item_descr", entity.itemDescr);
     row.SetField("loc_type", entity.locType);
     row.SetField("prim_pick_type", entity.primPickType);
     row.SetField("max_lvl", entity.maxLvl);
     row.SetField("min_lvl", entity.minLvl);
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Getlabelprintbinmstresults BuildGetlabelprintbinmstresultsFromRow(DataRow row)
        {
            Getlabelprintbinmstresults entity = new Getlabelprintbinmstresults();

            entity.whZone       = row.IsNull("wh_zone") ? string.Empty : row.Field <string>("wh_zone");
            entity.aisle        = row.IsNull("aisle") ? 0 : row.Field <int>("aisle");
            entity.binNum       = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.absNum       = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.itemDescr    = row.IsNull("item_descr") ? string.Empty : row.Field <string>("item_descr");
            entity.locType      = row.IsNull("loc_type") ? string.Empty : row.Field <string>("loc_type");
            entity.primPickType = row.IsNull("prim_pick_type") ? string.Empty : row.Field <string>("prim_pick_type");
            entity.maxLvl       = row.IsNull("max_lvl") ? decimal.Zero : row.Field <decimal>("max_lvl");
            entity.minLvl       = row.IsNull("min_lvl") ? decimal.Zero : row.Field <decimal>("min_lvl");
            entity.rowID        = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }