Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPorrarreptmergerunsngl(ref DataRow row, Porrarreptmergerunsngl entity)
 {
     row.SetField("orderdtmonth", entity.orderdtmonth);
     row.SetField("orderdtday", entity.orderdtday);
     row.SetField("orderdtyear", entity.orderdtyear);
     row.SetField("printpofl", entity.printpofl);
     row.SetField("printourprodfl", entity.printourprodfl);
     row.SetField("convertfl", entity.convertfl);
     row.SetField("deleteunmergefl", entity.deleteunmergefl);
     row.SetField("faxwhereapprfl", entity.faxwhereapprfl);
     row.SetField("ediwhereapprfl", entity.ediwhereapprfl);
     row.SetField("edifile", entity.edifile);
     row.SetField("poorder", entity.poorder);
     row.SetField("mergenonstock", entity.mergenonstock);
     row.SetField("centwhseoverride", entity.centwhseoverride);
     row.SetField("progbuypotype", entity.progbuypotype);
     row.SetField("progbuyconswhse", entity.progbuyconswhse);
     row.SetField("progbuyconsperwhse", entity.progbuyconsperwhse);
     row.SetField("progbuywodiscfl", entity.progbuywodiscfl);
 }
Пример #2
0
        public static Porrarreptmergerunsngl BuildPorrarreptmergerunsnglFromRow(DataRow row)
        {
            Porrarreptmergerunsngl entity = new Porrarreptmergerunsngl();

            entity.orderdtmonth       = row.IsNull("orderdtmonth") ? string.Empty : row.Field <string>("orderdtmonth");
            entity.orderdtday         = row.IsNull("orderdtday") ? string.Empty : row.Field <string>("orderdtday");
            entity.orderdtyear        = row.IsNull("orderdtyear") ? string.Empty : row.Field <string>("orderdtyear");
            entity.printpofl          = row.Field <bool>("printpofl");
            entity.printourprodfl     = row.Field <bool>("printourprodfl");
            entity.convertfl          = row.Field <bool>("convertfl");
            entity.deleteunmergefl    = row.Field <bool>("deleteunmergefl");
            entity.faxwhereapprfl     = row.Field <bool>("faxwhereapprfl");
            entity.ediwhereapprfl     = row.Field <bool>("ediwhereapprfl");
            entity.edifile            = row.IsNull("edifile") ? string.Empty : row.Field <string>("edifile");
            entity.poorder            = row.IsNull("poorder") ? string.Empty : row.Field <string>("poorder");
            entity.mergenonstock      = row.IsNull("mergenonstock") ? string.Empty : row.Field <string>("mergenonstock");
            entity.centwhseoverride   = row.IsNull("centwhseoverride") ? string.Empty : row.Field <string>("centwhseoverride");
            entity.progbuypotype      = row.IsNull("progbuypotype") ? string.Empty : row.Field <string>("progbuypotype");
            entity.progbuyconswhse    = row.IsNull("progbuyconswhse") ? string.Empty : row.Field <string>("progbuyconswhse");
            entity.progbuyconsperwhse = row.IsNull("progbuyconsperwhse") ? string.Empty : row.Field <string>("progbuyconsperwhse");
            entity.progbuywodiscfl    = row.Field <bool>("progbuywodiscfl");
            return(entity);
        }