예제 #1
0
 public DataTable GetDataTableBySQL(string sql)
 {
     using (ExtGridControl_WClient client = SoapClientFactory.CreateExtGridControl_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetDataTableBySQL(loginTicket, sql);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
예제 #2
0
 public DataTable GetRportData(string sReportName, string sFilter, bool bIsGetCount, int nPageIndex)
 {
     using (ExtGridControl_WClient client = SoapClientFactory.CreateExtGridControl_WClient())
     {
         byte[] loginTicket  = WebServiceSecurity.EncryptLoginer(Loginer.CurrentUser);
         byte[] receivedData = client.GetRportData(loginTicket, sReportName, sFilter, bIsGetCount, nPageIndex);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }