Exemplo n.º 1
0
 public DataTable GetData(int year)
 {
     try
     {
         IBaseDAO baseDAOSQLite = BaseDAOFactory.GetBaseDAOSQLite();
         Dictionary <string, object> dictionary = new Dictionary <string, object>();
         string str = year.ToString();
         dictionary.Add("Year", str);
         UserMsg msg = new UserMsg();
         if (msg.IsAdmin)
         {
             dictionary.Add("AdminBz", 1);
         }
         else
         {
             dictionary.Add("AdminBz", 0);
         }
         dictionary.Add("Admin", msg.MC);
         return(baseDAOSQLite.querySQLDataTable("aisino.fwkp.fpkj.YFCX", dictionary));
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         MessageManager.ShowMsgBox(exception.Message);
         return(null);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         MessageManager.ShowMsgBox(exception2.Message);
         return(null);
     }
 }
Exemplo n.º 2
0
 private void method_3()
 {
     try
     {
         IBaseDAO baseDAOSQLite = BaseDAOFactory.GetBaseDAOSQLite();
         string   str           = "SELECT * FROM XTBBXX";
         this.dataTable_0 = baseDAOSQLite.querySQLDataTable(str);
     }
     catch (Exception exception)
     {
         this.ilog_0.Error("LoadReginfoFromDB异常:" + exception.ToString());
     }
 }