예제 #1
0
        public byte[] GetRportData(byte[] loginTicket, string sReportName, string sFilter, bool bIsGetCount, int nPageIndex)
        {
            try
            {
                Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

                DataTable data = new dalExtGridControl(loginer).GetRportData(sReportName, sFilter, bIsGetCount, nPageIndex);
                return ZipTools.CompressionDataSet(DataConverter.TableToDataSet(data));
            }
            catch (Exception ex)
            {
                throw new FaultException(ex.Message);
            }
        }
예제 #2
0
        public byte[] GetDataTableBySQL(byte[] loginTicket, string sql)
        {
            try
            {
                Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

                DataTable data = new dalExtGridControl(loginer).GetDataTableBySQL(sql);
                return ZipTools.CompressionDataSet(DataConverter.TableToDataSet(data));
            }
            catch (Exception ex)
            {
                throw new FaultException(ex.Message);
            }
        }