private void Ex()
        {
            var terminalInfo = this.Argu as Wlst.Sr.EquipmentInfoHolding.Model.WjParaBase;

            if (terminalInfo == null)
            {
                LogInfo.Log("无法执行开灯命令,参数错误....");
                return;
            }

            if (Wlst.Sr.EquipmentInfoHolding.Services.Others.OpenCloseLightSecondConfirm == 1)
            {
                if (
                    Cr.MessageBoxOverride.MessageBoxOverride.WlstMessageBox.View.WlstMessageBox.Show(
                        "您将要对 (" + terminalInfo.RtuPhyId + " - " + terminalInfo.RtuName + ") 进行开灯操作,是否继续?", WlstMessageBoxType.YesNo) == WlstMessageBoxResults.No)
                {
                    return;
                }
            }
            else if (Wlst.Sr.EquipmentInfoHolding.Services.Others.OpenCloseLightSecondConfirm == 2)
            {
                var sss = UMessageBoxWantPassWord.Show("密码验证", "请输入您的用户密码", "");
                if (sss == UMessageBoxWantPassWord.CancelReturn)
                {
                    return;
                }
                if (sss != UserInfo.UserLoginInfo.UserPassword)
                {
                    UMessageBox.Show("验证失败", "您输入的密码与本用户密码不匹配,请检查......",
                                     UMessageBoxButton.Yes);
                    return;
                }
            }
            var rtuId = terminalInfo.RtuId;

            if (rtuId < 1)
            {
                return;
            }

            OrderServer.OpenLight(rtuId, LoopId);

            //var args = new PublishEventArgs
            //{
            //    EventType = PublishEventType.Core,
            //    EventId = Sr.EquipmentInfoHolding.Services.EventIdAssign.UserOperateRtu,
            //};
            //args.AddParams(rtuId);
            //args.AddParams(OpType.RtuOpen );
            //args.AddParams(LoopId);
            //args.AddParams(terminalInfo.RtuModel);
            //args.AddParams(null);
            //EventPublish.PublishEvent(args);


            //var arg = new List<int>();
            //arg.Add(rtuId);

            //var data = new OpenCloseLightData();
            //data.Open = 1; //# 开关灯指令 0 关 1 开
            //data.Loops.Add(LoopId);
            //int gid = Infrastructure.UtilityFunction.TickCount.EnvironmentTickCount;
            //SndOrderServer .OrderSnd(PPProtocol.EventIdAssign.OpenLight, arg, data, gid);
            //Wlst.Cr.Core.UtilityFunction.LogInfo.Log(terminalInfo.RtuName + "  开K" + LoopId + ",开灯命令已经发送");
            // Wlst.Cr.CoreMims.ShowMsgInfo.ShowNewMsg.AddNewShowMsg(rtuId, terminalInfo.RtuName, LoopId,
            //                                                               PPProtocol.EventIdAssign.OpenLight, "开灯",
            //                                                               "等待", 1, null);
        }