/// <summary> /// テーブル更新通知処理 /// </summary> /// <param name="opeType"></param> /// <returns></returns> public void UpdateTableProc() { switch (this._updateTableNotifyCtrl.notifyStatus) { case UpdateTableNotifyCtrl.eStatus.Init: // 初期処理 this._updateTableNotifyCtrl.notifyStatus = UpdateTableNotifyCtrl.eStatus.SendUpdateTable; break; case UpdateTableNotifyCtrl.eStatus.SendUpdateTable: // テーブル更新通知 this._updateTableNotifyCtrl.updateTableMsg = new CellMonTabMsgPutUpdateTable(); this._updateTableNotifyCtrl.updateTableMsg.tabList = this._updateTableNotifyCtrl.tabList; Console.WriteLine("テーブル更新通知送信"); // テーブル更新通知メッセージ送信 if (true == this._cellMonTabMsgCtrl.SendMessage(this._updateTableNotifyCtrl.updateTableMsg)) { this._updateTableNotifyCtrl.notifyStatus = UpdateTableNotifyCtrl.eStatus.WaitResponse; } break; case UpdateTableNotifyCtrl.eStatus.WaitResponse: // テーブル更新通知応答待ち if (this._updateTableNotifyCtrl.updateTableMsg.SendStatus == CellMonTabMessage.eSendStatus.SendNg) { // 送信失敗 this._updateTableNotifyCtrl.updateTableMsg = null; this._updateTableNotifyCtrl.notifyStatus = UpdateTableNotifyCtrl.eStatus.Error; } else if (this._updateTableNotifyCtrl.ResError != CellMonTabMsgError.eCmdError.None) { // 異常応答 this._updateTableNotifyCtrl.updateTableMsg = null; this._updateTableNotifyCtrl.notifyStatus = UpdateTableNotifyCtrl.eStatus.Error; } else if (this._updateTableNotifyCtrl.updateTableMsg.SendStatus == CellMonTabMessage.eSendStatus.RecvRes) { // 応答受信 this._updateTableNotifyCtrl.updateTableMsg = null; this._updateTableNotifyCtrl.notifyStatus = UpdateTableNotifyCtrl.eStatus.Complete; } break; case UpdateTableNotifyCtrl.eStatus.Complete: // テーブル更新通知完了 this._updateTableNotifyCtrl = null; break; case UpdateTableNotifyCtrl.eStatus.Error: // テーブル更新通知異常 this._updateTableNotifyCtrl = null; break; default: break; } }
/// <summary> /// テーブル更新通知要求 /// </summary> /// <param name="tableList"></param> /// <returns></returns> public bool ReqUpdateTable(List <string> tableList) { bool ret = false; if (this._updateTableNotifyCtrl == null) { this._updateTableNotifyCtrl = new UpdateTableNotifyCtrl(); this._updateTableNotifyCtrl.tabList = tableList; ret = true; } return(ret); }