Ejemplo n.º 1
0
        public void NavOnLoad(params object[] parsObjects)
        {
            if (parsObjects.Count() < 2)
            {
                return;
            }

            isViewActive = true;
            Msg          = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 召测指令已发送...";
            LocalInfo.Clear();

            var ctrid = (int)parsObjects[1];

            this.CtrlId = ctrid;
            var sluid = (int)parsObjects[0];

            this.SluId = sluid;

            var t = Wlst.Sr.SlusglInfoHold.Services.SluSglInfoHold.MySlef.Get(CtrlId);

            if (t == null)
            {
                return;
            }
            this.CtrlPhyId = t.CtrlId;
            this.CtrlName  = t.CtrlName;//(sluId, ctrlId);// t.CtrlName;
        }
Ejemplo n.º 2
0
        public void NavOnLoad(params object[] parsObjects)
        {
            isViewActive = true;

            if (parsObjects.Length > 0)
            {
                try
                {
                    if (parsObjects.Count() > 0)
                    {
                        var rtulinfo = parsObjects[0] as Tuple <int, int>;
                        var sluid    = rtulinfo.Item1;
                        var ctrlid   = rtulinfo.Item2;
                        if (Wlst.Sr.EquipmentInfoHolding.Services.EquipmentIdAssignRang.IsSlu(sluid))
                        {
                            SluId = sluid;
                            if (ctrlid > 0)
                            {
                                CtrlId = ctrlid;
                            }
                        }

                        LocalInfo.Clear();
                        Remind = "";
                    }
                }
                catch (Exception ex)
                {
                }
            }
        }
Ejemplo n.º 3
0
 public void OnUserHideOrClosing()
 {
     isViewActive = false;
     LocalInfo.Clear();
     //this.Items.Clear();
 }