Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPorrarreptadjdaysinit(ref DataRow row, Porrarreptadjdaysinit entity)
 {
     row.SetField("reportno", entity.reportno);
     row.SetField("printusagehistfl", entity.printusagehistfl);
     row.SetField("whsesurplus", entity.whsesurplus);
     row.SetField("printaltvendorsfl", entity.printaltvendorsfl);
     row.SetField("printsubsfl", entity.printsubsfl);
     row.SetField("printblfl", entity.printblfl);
     row.SetField("printrushfl", entity.printrushfl);
     row.SetField("prodlinefl", entity.prodlinefl);
     row.SetField("processtype", entity.processtype);
     row.SetField("printdnrfl", entity.printdnrfl);
     row.SetField("printlnignorefl", entity.printlnignorefl);
     row.SetField("printcommentsfl", entity.printcommentsfl);
     row.SetField("halfwayfl", entity.halfwayfl);
 }
Beispiel #2
0
        public static Porrarreptadjdaysinit BuildPorrarreptadjdaysinitFromRow(DataRow row)
        {
            Porrarreptadjdaysinit entity = new Porrarreptadjdaysinit();

            entity.reportno          = row.IsNull("reportno") ? 0 : row.Field <int>("reportno");
            entity.printusagehistfl  = row.Field <bool>("printusagehistfl");
            entity.whsesurplus       = row.IsNull("whsesurplus") ? string.Empty : row.Field <string>("whsesurplus");
            entity.printaltvendorsfl = row.Field <bool>("printaltvendorsfl");
            entity.printsubsfl       = row.Field <bool>("printsubsfl");
            entity.printblfl         = row.Field <bool>("printblfl");
            entity.printrushfl       = row.Field <bool>("printrushfl");
            entity.prodlinefl        = row.Field <bool>("prodlinefl");
            entity.processtype       = row.IsNull("processtype") ? string.Empty : row.Field <string>("processtype");
            entity.printdnrfl        = row.Field <bool>("printdnrfl");
            entity.printlnignorefl   = row.Field <bool>("printlnignorefl");
            entity.printcommentsfl   = row.Field <bool>("printcommentsfl");
            entity.halfwayfl         = row.Field <bool>("halfwayfl");
            return(entity);
        }