Beispiel #1
0
        void Handle(Input.UpdTrgr Action)
        {
            var p = this.Parent as CUsPage;

            if (Id != 0)
            {
                List <string> pps = new List <string>();
                foreach (var pp in p.PPs)
                {
                    if (pp.Selected)
                    {
                        pps.Add(pp.Id.ToString());
                    }
                }

                CU.UpdateRec((ulong)Id, Ad, Pwd, string.Join <string>(",", pps));

                Id = 0;

                Session.RunTaskForAll((s, id) =>
                {
                    s.CalculatePatchAndPushOnWebSocket();
                });
            }
            Opened = false;
        }
Beispiel #2
0
        void Handle(Input.UpdTrgr Action)
        {
            if (Id != 0)
            {
                var r = Root as MasterPage;

                Msj = FF.UpdateRec((ulong)Id, (ulong)HHId, (ulong)TTId, $"{TrhX} {ZmnX}", Ad, TutTur, Tut, (ulong)r.CUId);
                if (!string.IsNullOrEmpty(Msj))
                {
                    Action.Cancelled = true;
                    return;
                }

                var p = this.Parent as FFsRpr;
                p.RefreshToplam();

                Id = 0;

                Session.RunTaskForAll((s, id) =>
                {
                    s.CalculatePatchAndPushOnWebSocket();
                });
            }
            Opened = false;
        }
Beispiel #3
0
        void Handle(Input.UpdTrgr Action)
        {
            TT.UpdateRec(Id, Ad, Info, Email, Tel);

            Session.RunTaskForAll((s, id) =>
            {
                s.CalculatePatchAndPushOnWebSocket();
            });

            Opened = false;
        }
Beispiel #4
0
        void Handle(Input.UpdTrgr Action)
        {
            HH.UpdateRec(Id, Ad, ThmGdr, ThmGlr, Info);

            Session.RunTaskForAll((s, id) =>
            {
                s.CalculatePatchAndPushOnWebSocket();
            });

            Opened = false;
        }
Beispiel #5
0
        void Handle(Input.UpdTrgr Action)
        {
            if (Id != 0)
            {
                PP.UpdateRec(Id, Ad, BasTrhX, BitTrhX);

                Id = 0;

                Session.RunTaskForAll((s, id) =>
                {
                    s.CalculatePatchAndPushOnWebSocket();
                });
            }
            Opened = false;
        }
Beispiel #6
0
        void Handle(Input.UpdTrgr Action)
        {
            var p = this.Parent as CUPsPage;

            if (Id != 0)
            {
                CUP.UpdateRec((ulong)Id, (ulong)PPId, (int)Mode);

                Id = 0;

                Session.RunTaskForAll((s, id) =>
                {
                    s.CalculatePatchAndPushOnWebSocket();
                });
            }
            Opened = false;
        }
Beispiel #7
0
        void Handle(Input.UpdTrgr Action)
        {
            if (ONo != 0)
            {
                Db.Transact(() =>
                {
                    var r  = Db.FromId <DD>((ulong)ONo);
                    r.Ad   = Ad.ToUpper();
                    r.Dnm  = (int)Dnm;
                    r.Info = Info;
                    r.PP   = PPoNo == 0 ? null : Db.FromId <PP>((ulong)PPoNo);
                });
                ONo = 0;

                Session.RunTaskForAll((s, id) =>
                {
                    s.CalculatePatchAndPushOnWebSocket();
                });
            }
            Opened = false;
        }