// 开始检测收支平衡 private void btnCheck_Click(object sender, EventArgs e) { StatService stat = ServiceMgr.getInstance().getSys <StatService>(ServiceType.serviceTypeStat); if (stat.isBusy()) { MessageBox.Show("忙碌中,请稍候"); return; } int playerId = 0; if (!int.TryParse(txtPlayerId.Text, out playerId)) { MessageBox.Show("玩家ID非法"); return; } DateTime mint = DateTime.Now, maxt = DateTime.Now; bool res = Tool.splitTimeStr(txtGameTime.Text, ref mint, ref maxt); if (!res || mint.AddDays(1) != maxt) { MessageBox.Show("游戏时间非法"); return; } ParamCheck param = new ParamCheck(); param.m_gameId = StrName.s_onlineGameIdList[m_gameList.SelectedIndex]; param.m_playerId = playerId; param.m_startTime = mint; param.m_endTime = maxt; param.m_itemId = s_itemId[m_moneyType.SelectedIndex]; param.m_from = this; stat.startCheck(param); }