Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReplpendingcriteria(ref DataRow row, Replpendingcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("abs_num", entity.absNum);
     row.SetField("aisle", entity.aisle);
     row.SetField("from_zone", entity.fromZone);
     row.SetField("to_zone", entity.toZone);
     row.SetField("showTopOffs", entity.showTopOffs);
     row.SetField("showConsolidations", entity.showConsolidations);
     row.SetField("showOther", entity.showOther);
     row.SetField("replpendinguserfield", entity.replpendinguserfield);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Replpendingcriteria BuildReplpendingcriteriaFromRow(DataRow row)
        {
            Replpendingcriteria entity = new Replpendingcriteria();

            entity.coNum                = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum                = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.absNum               = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.aisle                = row.IsNull("aisle") ? 0 : row.Field <int>("aisle");
            entity.fromZone             = row.IsNull("from_zone") ? string.Empty : row.Field <string>("from_zone");
            entity.toZone               = row.IsNull("to_zone") ? string.Empty : row.Field <string>("to_zone");
            entity.showTopOffs          = row.Field <bool>("showTopOffs");
            entity.showConsolidations   = row.Field <bool>("showConsolidations");
            entity.showOther            = row.Field <bool>("showOther");
            entity.replpendinguserfield = row.IsNull("replpendinguserfield") ? string.Empty : row.Field <string>("replpendinguserfield");
            entity.userfield            = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }