/// <summary> /// MU解除要求処理 /// </summary> public void EjectProc() { switch (this._ejectNotifyCtrl.notifyStatus) { case EjectNotifyCtrl.eStatus.Init: // 初期処理 this._ejectNotifyCtrl.notifyStatus = EjectNotifyCtrl.eStatus.SendEject; break; case EjectNotifyCtrl.eStatus.SendEject: // MU解除要求 this._ejectNotifyCtrl.ejectMsg = new CellMonTabMsgGetEject(); this._ejectNotifyCtrl.ejectMsg.MuId = this._ejectNotifyCtrl.MuId; Console.WriteLine("MU解除要求送信"); // MU解除要求メッセージ送信 if (true == this._cellMonTabMsgCtrl.SendMessage(this._ejectNotifyCtrl.ejectMsg)) { this._ejectNotifyCtrl.notifyStatus = EjectNotifyCtrl.eStatus.WaitResponse; } break; case EjectNotifyCtrl.eStatus.WaitResponse: // MU解除要求応答待ち if (this._ejectNotifyCtrl.ejectMsg.SendStatus == CellMonTabMessage.eSendStatus.SendNg) { // 送信失敗 this._ejectNotifyCtrl.ejectMsg = null; this._ejectNotifyCtrl.notifyStatus = EjectNotifyCtrl.eStatus.Error; } else if (this._ejectNotifyCtrl.ResError != CellMonTabMsgError.eCmdError.None) { // 異常応答 this._ejectNotifyCtrl.ejectMsg = null; this._ejectNotifyCtrl.notifyStatus = EjectNotifyCtrl.eStatus.Error; } else if (this._ejectNotifyCtrl.ejectMsg.SendStatus == CellMonTabMessage.eSendStatus.RecvRes) { // 応答受信 this._ejectNotifyCtrl.ejectMsg = null; this._ejectNotifyCtrl.notifyStatus = EjectNotifyCtrl.eStatus.Complete; } break; case EjectNotifyCtrl.eStatus.Complete: // MU解除要求完了 this._ejectNotifyCtrl = null; break; case EjectNotifyCtrl.eStatus.Error: // MU解除要求異常 this._ejectNotifyCtrl = null; break; default: break; } }
/// <summary> /// MU解除要求 /// </summary> public bool ReqEject(UInt32 muId) { bool ret = false; if (this._ejectNotifyCtrl == null) { this._ejectNotifyCtrl = new EjectNotifyCtrl(); this._ejectNotifyCtrl.MuId = muId; ret = true; } return(ret); }