Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdemexcelnewsetupdtcinit(ref DataRow row, Pdemexcelnewsetupdtcinit entity)
 {
     row.SetField("fiCustno-hidden", entity.fiCustnoHidden);
     row.SetField("btnLookupCustno-hidden", entity.btnLookupCustnoHidden);
     row.SetField("fiShipTo-hidden", entity.fiShipToHidden);
     row.SetField("btnLookupShipTo-hidden", entity.btnLookupShipToHidden);
     row.SetField("fiCustType-hidden", entity.fiCustTypeHidden);
     row.SetField("btnLookupCustType-hidden", entity.btnLookupCustTypeHidden);
     row.SetField("fiProduct-hidden", entity.fiProductHidden);
     row.SetField("btnLookupProduct-hidden", entity.btnLookupProductHidden);
     row.SetField("fiProdPrcType-hidden", entity.fiProdPrcTypeHidden);
     row.SetField("btnLookupProdPrcType-hidden", entity.btnLookupProdPrcTypeHidden);
     row.SetField("tgPriceRebFl-hidden", entity.tgPriceRebFlHidden);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Pdemexcelnewsetupdtcinit BuildPdemexcelnewsetupdtcinitFromRow(DataRow row)
        {
            Pdemexcelnewsetupdtcinit entity = new Pdemexcelnewsetupdtcinit();

            entity.fiCustnoHidden             = row.Field <bool>("fiCustno-hidden");
            entity.btnLookupCustnoHidden      = row.Field <bool>("btnLookupCustno-hidden");
            entity.fiShipToHidden             = row.Field <bool>("fiShipTo-hidden");
            entity.btnLookupShipToHidden      = row.Field <bool>("btnLookupShipTo-hidden");
            entity.fiCustTypeHidden           = row.Field <bool>("fiCustType-hidden");
            entity.btnLookupCustTypeHidden    = row.Field <bool>("btnLookupCustType-hidden");
            entity.fiProductHidden            = row.Field <bool>("fiProduct-hidden");
            entity.btnLookupProductHidden     = row.Field <bool>("btnLookupProduct-hidden");
            entity.fiProdPrcTypeHidden        = row.Field <bool>("fiProdPrcType-hidden");
            entity.btnLookupProdPrcTypeHidden = row.Field <bool>("btnLookupProdPrcType-hidden");
            entity.tgPriceRebFlHidden         = row.Field <bool>("tgPriceRebFl-hidden");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }