Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtrrarreptnewreptrun(ref DataRow row, Wtrrarreptnewreptrun entity)
 {
     row.SetField("requesttype", entity.requesttype);
     row.SetField("whse", entity.whse);
     row.SetField("fromwhse", entity.fromwhse);
     row.SetField("towhse", entity.towhse);
     row.SetField("printusagehistfl", entity.printusagehistfl);
     row.SetField("printrushfl", entity.printrushfl);
     row.SetField("printdnrfl", entity.printdnrfl);
     row.SetField("printsubsfl", entity.printsubsfl);
     row.SetField("printcommentsfl", entity.printcommentsfl);
     row.SetField("whsesurplus", entity.whsesurplus);
     row.SetField("processtype", entity.processtype);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Wtrrarreptnewreptrun BuildWtrrarreptnewreptrunFromRow(DataRow row)
        {
            Wtrrarreptnewreptrun entity = new Wtrrarreptnewreptrun();

            entity.requesttype      = row.IsNull("requesttype") ? string.Empty : row.Field <string>("requesttype");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.fromwhse         = row.IsNull("fromwhse") ? string.Empty : row.Field <string>("fromwhse");
            entity.towhse           = row.IsNull("towhse") ? string.Empty : row.Field <string>("towhse");
            entity.printusagehistfl = row.Field <bool>("printusagehistfl");
            entity.printrushfl      = row.Field <bool>("printrushfl");
            entity.printdnrfl       = row.Field <bool>("printdnrfl");
            entity.printsubsfl      = row.Field <bool>("printsubsfl");
            entity.printcommentsfl  = row.Field <bool>("printcommentsfl");
            entity.whsesurplus      = row.IsNull("whsesurplus") ? string.Empty : row.Field <string>("whsesurplus");
            entity.processtype      = row.IsNull("processtype") ? string.Empty : row.Field <string>("processtype");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }