Esempio n. 1
0
 public SrvListQueryFrm(string dbHost, string dbName, string tbName, string outputPath)
     : this(new WindowsAuthConStrBuilder(dbHost, dbName).Build().GetConStr(),
            SqlTextHelper.GetTblSqlByName(tbName), outputPath)
 {
     this.DbHost = dbHost;
     this.DbName = dbName;
     this.TbName = tbName;
 }
Esempio n. 2
0
 internal void InitView(IQueryView view)
 {
     view.ConnectionString = new WindowsAuthConStrBuilder(view.DbHost, view.DbName).Build().GetConStr();
     view.SqlText          = SqlTextHelper.GetTblSqlByName(view.TbName);
     if (!string.IsNullOrEmpty(view.Filter) && view.UnFilteredShowDataSrc != null)
     {
         view.ShowDataSrc = DataTableHelper.GetFilteredDatatable(view.UnFilteredShowDataSrc, view.Filter);
     }
     else
     {
         view.ShowDataSrc = view.UnFilteredShowDataSrc;
     }
 }