Exemple #1
0
        public byte[] GetDataDictByTableName(byte[] loginTicket, string tableName)
        {
            Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

            dalBaseDataDict dict = new dalBaseDataDict(loginer, tableName);
            DataTable data = dict.GetSummaryData();
            return ZipTools.CompressionObject(DataConverter.TableToDataSet(data));
        }
Exemple #2
0
        public byte[] DownloadDicts(byte[] loginTicket)
        {
            try
            {
                Loginer loginer = WebServiceSecurity.ValidateLoginer(loginTicket);

                DataSet data = new dalBaseDataDict(loginer).DownloadDicts();

                return ZipTools.CompressionObject(data);//序列化返回对象
            }
            catch (Exception ex)
            {
                throw new FaultException(ex.Message);
            }
        }