示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCclocationscriteria(ref DataRow row, Cclocationscriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("bin_num", entity.binNum);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("aisle", entity.aisle);
     row.SetField("bin_hits", entity.binHits);
     row.SetField("abc", entity.abc);
     row.SetField("manual_list", entity.manualList);
     row.SetField("cclocuserfield", entity.cclocuserfield);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Cclocationscriteria BuildCclocationscriteriaFromRow(DataRow row)
        {
            Cclocationscriteria entity = new Cclocationscriteria();

            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.binNum         = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.whZone         = row.IsNull("wh_zone") ? string.Empty : row.Field <string>("wh_zone");
            entity.aisle          = row.IsNull("aisle") ? 0 : row.Field <int>("aisle");
            entity.binHits        = row.IsNull("bin_hits") ? 0 : row.Field <int>("bin_hits");
            entity.abc            = row.IsNull("abc") ? string.Empty : row.Field <string>("abc");
            entity.manualList     = row.IsNull("manual_list") ? string.Empty : row.Field <string>("manual_list");
            entity.cclocuserfield = row.IsNull("cclocuserfield") ? string.Empty : row.Field <string>("cclocuserfield");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }