Exemplo n.º 1
0
 public bool GetData(int PCode)
 {
     ClassLibrary.JDataBase DB = new ClassLibrary.JDataBase();
     try
     {
         DB.setQuery("select * from AUTLineSubsidy where code=" + PCode);
         if (DB.Query_DataReader())
         {
             if (DB.DataReader.Read())
             {
                 ClassLibrary.JTable.SetToClassProperty(this, DB.DataReader);
                 return(true);
             }
         }
     }
     finally
     {
         DB.Dispose();
     }
     return(false);
 }