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.
51 lines
1.9 KiB
51 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.IO;
|
|
using System.Text;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
using Sog;
|
|
|
|
|
|
namespace bill_statistics
|
|
{
|
|
public partial class LogWrapper
|
|
{
|
|
/*public static void PrintLottery()
|
|
{
|
|
FileStream fstream = new FileStream("./bill_out_lottery.txt", FileMode.Create);
|
|
StreamWriter fileWriter = new StreamWriter(fstream, Encoding.UTF8);
|
|
IWorkbook workbook = WriteExcelUtils.GetWorkBook();
|
|
ISheet sheet = workbook.CreateSheet("奖券");
|
|
string strMessage = "日期\t房间\t奖券产出";
|
|
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;
|
|
for (int i = 0; i < info.m_roomUserInfos.Count(); i ++)
|
|
{
|
|
var room = info.m_roomUserInfos[i];
|
|
if(room.lotteryCount > 0)
|
|
{
|
|
string str = "";
|
|
str += room.desc.roomSubType == (int)RoomSubType.Classic ? "传统" : "101";
|
|
str += room.desc.breakIceType == (int)BreakIceType.Dynamic ? "增强" : "普通";
|
|
str += room.desc.bet;
|
|
|
|
strMessage = string.Format("{0}/{1}/{2}\t{3}\t{4}", dateTime.Year, dateTime.Month, dateTime.Day, str, room.lotteryCount);
|
|
fileWriter.WriteLine(strMessage);
|
|
WriteExcelUtils.WriteExcelRow(strMessage, sheet);
|
|
}
|
|
}
|
|
}
|
|
fileWriter.Dispose();
|
|
fstream.Dispose();
|
|
}*/
|
|
}
|
|
}
|
|
|