Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdeminitializepdsc3(ref DataRow row, Pdeminitializepdsc3 entity)
 {
     row.SetField("fiProd-visible", entity.fiProdVisible);
     row.SetField("fiProd-sensitive", entity.fiProdSensitive);
     row.SetField("btnLookupProd-visible", entity.btnLookupProdVisible);
     row.SetField("btnLookupProd-sensitive", entity.btnLookupProdSensitive);
     row.SetField("lblProd-visible", entity.lblProdVisible);
     row.SetField("lblProd-sensitive", entity.lblProdSensitive);
     row.SetField("fiWhse-visible", entity.fiWhseVisible);
     row.SetField("btnLookupWhse-visible", entity.btnLookupWhseVisible);
     row.SetField("fiLevel2Ty-visible", entity.fiLevel2TyVisible);
     row.SetField("btnLookupLevel2Ty-visible", entity.btnLookupLevel2TyVisible);
     row.SetField("fiLevel2Ty-label", entity.fiLevel2TyLabel);
     row.SetField("lblProd-screen-value", entity.lblProdScreenValue);
     row.SetField("fiCustType-visible", entity.fiCustTypeVisible);
     row.SetField("btnLookupCustType-visible", entity.btnLookupCustTypeVisible);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Pdeminitializepdsc3 BuildPdeminitializepdsc3FromRow(DataRow row)
        {
            Pdeminitializepdsc3 entity = new Pdeminitializepdsc3();

            entity.fiProdVisible            = row.Field <bool>("fiProd-visible");
            entity.fiProdSensitive          = row.Field <bool>("fiProd-sensitive");
            entity.btnLookupProdVisible     = row.Field <bool>("btnLookupProd-visible");
            entity.btnLookupProdSensitive   = row.Field <bool>("btnLookupProd-sensitive");
            entity.lblProdVisible           = row.Field <bool>("lblProd-visible");
            entity.lblProdSensitive         = row.Field <bool>("lblProd-sensitive");
            entity.fiWhseVisible            = row.Field <bool>("fiWhse-visible");
            entity.btnLookupWhseVisible     = row.Field <bool>("btnLookupWhse-visible");
            entity.fiLevel2TyVisible        = row.Field <bool>("fiLevel2Ty-visible");
            entity.btnLookupLevel2TyVisible = row.Field <bool>("btnLookupLevel2Ty-visible");
            entity.fiLevel2TyLabel          = row.IsNull("fiLevel2Ty-label") ? string.Empty : row.Field <string>("fiLevel2Ty-label");
            entity.lblProdScreenValue       = row.IsNull("lblProd-screen-value") ? string.Empty : row.Field <string>("lblProd-screen-value");
            entity.fiCustTypeVisible        = row.Field <bool>("fiCustType-visible");
            entity.btnLookupCustTypeVisible = row.Field <bool>("btnLookupCustType-visible");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }