You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
3.3 KiB

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 PrintTreasureDrawInfo()
{
FileStream fsFile = new FileStream("./bill_out_treasuredrawinfo.txt", FileMode.Create);
IWorkbook workbook = WriteExcelUtils.GetWorkBook();
ISheet sheet = workbook.CreateSheet("夺宝");
StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8);
string strMessage = "日期\t总参与用户\t消耗筹码\t1开奖次数\t1参与玩家\t2开奖次数\t2参与玩家\t3开奖次数\t3参与玩家\t4开奖次数\t4参与玩家\t5开奖次数\t5参与玩家\t6开奖次数\t6参与玩家\t7开奖次数\t7参与玩家\t8开奖次数\t8参与玩家\t9开奖次数\t9参与玩家\t10开奖次数\t10参与玩家\t11开奖次数\t11参与玩家\t12开奖次数\t12参与玩家\t13开奖次数\t13参与玩家\t14开奖次数\t14参与玩家";
fileWriter.WriteLine(strMessage);
WriteExcelUtils.WriteExcelRow(strMessage, sheet);
foreach (KeyValuePair<DateTime, BillInfoEveryDay> pair in BillAlldays.Instance.m_billAllDays)
{
DateTime dateTime = pair.Key;
BillInfoEveryDay info = pair.Value;
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}\t{14}\t{15}\t{16}\t{17}\t{18}\t{19}\t{20}\t{21}\t{22}\t{23}\t{24}\t{25}\t{26}\t{27}\t{28}\t{29}\t{30}\t{31}\t{32}",
dateTime.Year, dateTime.Month, dateTime.Day,
info.TreasureUserCount
, info.TreasureDrawConsume
, info.m_treasureItemDrawCount[1]
, info.m_treasureItemDrawUserCount[1].Count
, info.m_treasureItemDrawCount[2]
, info.m_treasureItemDrawUserCount[2].Count
, info.m_treasureItemDrawCount[3]
, info.m_treasureItemDrawUserCount[3].Count
, info.m_treasureItemDrawCount[4]
, info.m_treasureItemDrawUserCount[4].Count
, info.m_treasureItemDrawCount[5]
, info.m_treasureItemDrawUserCount[5].Count
, info.m_treasureItemDrawCount[6]
, info.m_treasureItemDrawUserCount[6].Count
, info.m_treasureItemDrawCount[7]
, info.m_treasureItemDrawUserCount[7].Count
, info.m_treasureItemDrawCount[8]
, info.m_treasureItemDrawUserCount[8].Count
, info.m_treasureItemDrawCount[9]
, info.m_treasureItemDrawUserCount[9].Count
, info.m_treasureItemDrawCount[10]
, info.m_treasureItemDrawUserCount[10].Count
, info.m_treasureItemDrawCount[11]
, info.m_treasureItemDrawUserCount[11].Count
, info.m_treasureItemDrawCount[12]
, info.m_treasureItemDrawUserCount[12].Count
, info.m_treasureItemDrawCount[13]
, info.m_treasureItemDrawUserCount[13].Count
, info.m_treasureItemDrawCount[14]
, info.m_treasureItemDrawUserCount[14].Count
);
fileWriter.WriteLine(strMessage);
WriteExcelUtils.WriteExcelRow(strMessage, sheet);
}
fileWriter.Dispose();
fsFile.Dispose();
}*/
}
}