Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoreceiptreport(ref DataRow row, Poreceiptreport entity)
 {
     row.SetField("linesort", entity.linesort);
     row.SetField("qtyfl", entity.qtyfl);
     row.SetField("brkbypofl", entity.brkbypofl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Poreceiptreport BuildPoreceiptreportFromRow(DataRow row)
        {
            Poreceiptreport entity = new Poreceiptreport();

            entity.linesort  = row.IsNull("linesort") ? string.Empty : row.Field <string>("linesort");
            entity.qtyfl     = row.Field <bool>("qtyfl");
            entity.brkbypofl = row.Field <bool>("brkbypofl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }