void Handle(Input.InsTrgr Action) { if (!string.IsNullOrWhiteSpace(Ad)) { Db.Transact(() => { new DD() { Ad = Ad, Dnm = (int)Dnm, Info = Info, PP = PPoNo == 0 ? null : Db.FromId <PP>((ulong)PPoNo) }; }); ONo = 0; //PushChanges(); // Kendisi dahil Diger Clients Insert gormuyor, Refresh gerekli } Opened = false; var p = this.Parent as DDsPage; //p.DDs.Data = Db.SQL<DD>("SELECT r FROM DD r order by r.Dnm DESC"); p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is DDsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }
void Handle(Input.InsTrgr Action) { var p = this.Parent as TTsPage; if (!string.IsNullOrWhiteSpace(Ad)) { Msj = TT.InsertRec(p.PPId, Ad, Info, Email, Tel); if (!string.IsNullOrEmpty(Msj)) { Action.Cancelled = true; return; } } Opened = false; p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is HHsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }
void Handle(Input.InsTrgr Action) { var p = this.Parent as CUsPage; List <string> pps = new List <string>(); foreach (var pp in p.PPs) { if (pp.Selected) { pps.Add(pp.Id.ToString()); } } CU.InsertRec((ulong)p.CCId, Ad, Pwd, string.Join <string>(",", pps)); Id = 0; Opened = false; p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is CUsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }
void Handle(Input.InsTrgr Action) { //TrhX girilmediginde 00:00:00 geliyor. DateTime'a convert edince Gunun tarihi geliyor! //When only the time is present, the date portion uses the current date. //When only the date is present, the time portion is midnight. //When the year isn't specified in a date, the current year is used. //When the day of the month isn't specified, the first of the month is used. //How to set only time part of a DateTime variable //var newDate = oldDate.Date + new TimeSpan(11, 30, 55); var r = Root as MasterPage; var p = this.Parent as FFsRpr; Msj = FF.InsertRec(p.PPId, HHId, TTId, $"{TrhX} {ZmnX}", Ad, TutTur, Tut, r.CUId); if (!string.IsNullOrEmpty(Msj)) { Action.Cancelled = true; return; } Id = 0; Opened = false; p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is FFsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }
void Handle(Input.InsTrgr Action) { var p = this.Parent as CUPsPage; CUP.InsertRec((ulong)p.CCId, (ulong)p.CUId, (ulong)PPId, (int)Mode); Id = 0; Opened = false; p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is CUPsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }
void Handle(Input.InsTrgr Action) { var p = this.Parent as PPsPage; if (!string.IsNullOrWhiteSpace(Ad)) { PP.InsertRec(p.CCId, Ad, BasTrhX, BitTrhX); Id = 0; } Opened = false; p.Data = null; Session.RunTaskForAll((s, sId) => { var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage; if (cp is PPsPage) { (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null; s.CalculatePatchAndPushOnWebSocket(); } }); }