public void Load(DataRow dr)
 {
     foreach (PropertyInfo ProInfo in _REM_Master_Project.GetType().GetProperties())
     {
         _REM_Master_Project.GetType().GetField("Edit" + ProInfo.Name).SetValue(_REM_Master_Project, false);
         if (dr.Table.Columns.Contains(ProInfo.Name))
         {
             if (!dr.IsNull(ProInfo.Name))
             {
                 ProInfo.SetValue(_REM_Master_Project, dr[ProInfo.Name], null);
                 //_REM_Master_Project.GetType().GetField("Edit" + ProInfo.Name).SetValue(_REM_Master_Project, true);
             }
         }
     }
 }
 public void Load(DataRow dr)
 {
     foreach (PropertyInfo ProInfo in _AP_Master_Supplier_Address.GetType().GetProperties())
     {
         _AP_Master_Supplier_Address.GetType().GetField("Edit" + ProInfo.Name).SetValue(_AP_Master_Supplier_Address, false);
         if (dr.Table.Columns.Contains(ProInfo.Name))
         {
             if (!dr.IsNull(ProInfo.Name))
             {
                 ProInfo.SetValue(_AP_Master_Supplier_Address, dr[ProInfo.Name], null);
                 //_AP_Master_Supplier_Address.GetType().GetField("Edit" + ProInfo.Name).SetValue(_AP_Master_Supplier_Address, true);
             }
         }
     }
 }
 public void Load(DataRow dr)
 {
     foreach (PropertyInfo ProInfo in _SAP_Interface_Log.GetType().GetProperties())
     {
         FieldInfo FieldInfo = _SAP_Interface_Log.GetType().GetField("Edit" + ProInfo.Name);
         if (FieldInfo != null)
         {
             FieldInfo.SetValue(_SAP_Interface_Log, false);
         }
         if (dr.Table.Columns.Contains(ProInfo.Name))
         {
             if (!dr.IsNull(ProInfo.Name))
             {
                 ProInfo.SetValue(_SAP_Interface_Log, dr[ProInfo.Name], null);
             }
         }
     }
 }
Esempio n. 4
0
 public void Load(DataRow dr)
 {
     foreach (PropertyInfo ProInfo in _JournalEntries_Lines.GetType().GetProperties())
     {
         FieldInfo FieldInfo = _JournalEntries_Lines.GetType().GetField("Edit" + ProInfo.Name);
         if (FieldInfo != null)
         {
             FieldInfo.SetValue(_JournalEntries_Lines, false);
         }
         if (dr.Table.Columns.Contains(ProInfo.Name))
         {
             if (!dr.IsNull(ProInfo.Name))
             {
                 ProInfo.SetValue(_JournalEntries_Lines, dr[ProInfo.Name], null);
             }
         }
     }
 }