Exemplo n.º 1
0
 protected void grid_Load(object sender, EventArgs e)
 {
     for (int flg = 0; flg < UC_ReportFilter1.paramFilter.Length; flg++)
     {
         if (UC_ReportFilter1.paramFilter[flg] is string)
         {
             string param = (string)UC_ReportFilter1.paramFilter[flg];
             if (param == "(none)")
             {
                 UC_ReportFilter1.paramFilter[flg] = null;
             }
         }
     }
     ReportSys.gridBind(grid, (string)ViewState["strSQL"], UC_ReportFilter1.paramFilter, UC_ReportFilter1.strFilter, conn);
 }
Exemplo n.º 2
0
 protected void grid_Load(object sender, EventArgs e)
 {
     ReportSys.gridBind(grid, "select * from " + tableName + " where batchid = '" + batchId + "' ", null, null, conn);
 }