using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.IO; using System.Text; using Sog; namespace bill_statistics { public static partial class LogWrapper { /*public static void PrintExchangeCouponInfo() { FileStream fsFile = new FileStream("./bill_out_ExchangeCouponInfo.txt", FileMode.Create); IWorkbook workbook = WriteExcelUtils.GetWorkBook(); ISheet sheet = workbook.CreateSheet("兑换记录"); StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8); string strMessage = "日期\t用户ID\t昵称\t电话卡ID\t唯一ID\t电话卡金额\t订单号\t真实姓名\t手机号\t运营商\tE-mail\t是否送牌作弊"; fileWriter.WriteLine(strMessage); WriteExcelUtils.WriteExcelRow(strMessage, sheet); foreach (KeyValuePair pair in BillAlldays.Instance.m_billAllDays) { DateTime dateTime = pair.Key; BillInfoEveryDay info = pair.Value; foreach (ExchangeCouponDbResInfo data in info.m_ExchangeCouponDbResUserList) { int sendCardCheat = BillAlldays.Instance.IsSendCardCheatUid(data.uid) ? 1 : 0; strMessage = string.Format("{0}/{1}/{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}\t{11}\t{12}\t{13}", dateTime.Year, dateTime.Month, dateTime.Day, data.uid, data.nick, data.itemid, data.uniqueID, data.phoneCardMoney, data.transactionId, data.trueName, data.phoneNum, data.telcom, data.email, sendCardCheat); fileWriter.WriteLine(strMessage); WriteExcelUtils.WriteExcelRow(strMessage, sheet); } } fileWriter.Dispose(); fsFile.Dispose(); }*/ } }