public int SaveState(BO.TheGridState rec, int j03id) { rec.pid = rec.j75ID; if (rec.j75PageSize < 0) { rec.j75PageSize = 100; } var p = new DL.Params4Dapper(); p.AddInt("pid", rec.j75ID); p.AddInt("j72ID", rec.j72ID, true); p.AddInt("j03ID", j03id, true); p.AddInt("j75PageSize", rec.j75PageSize); p.AddInt("j75CurrentPagerIndex", rec.j75CurrentPagerIndex); p.AddInt("j75CurrentRecordPid", rec.j75CurrentRecordPid); p.AddString("j75SortDataField", rec.j75SortDataField); p.AddString("j75SortOrder", rec.j75SortOrder); p.AddString("j75Filter", rec.j75Filter); p.AddInt("j75HeightPanel1", rec.j75HeightPanel1); int intJ75ID = _db.SaveRecord("j75TheGridState", p.getDynamicDapperPars(), rec, false, true); return(intJ75ID); }
private void RefreshState_Batch(ref TagsBatch v, int j72id, string pids) { BO.TheGridState c = Factory.j72TheGridTemplateBL.LoadState(j72id, Factory.CurrentUser.pid); v.j72ID = j72id; v.Record_Entity = c.j72Entity; v.Record_Pids = pids; string prefix = v.Record_Entity.Substring(0, 3); v.lisO53 = Factory.o53TagGroupBL.GetList(new BO.myQuery("o53TagGroup")).Where(p => p.o53Entities == null || p.o53Entities.Contains(prefix)); if (v.SelectedO53ID > 0) { v.RecO53 = Factory.o53TagGroupBL.Load(v.SelectedO53ID); var mq = new BO.myQuery("o51Tag"); mq.IsRecordValid = true; mq.o53id = v.SelectedO53ID; v.ApplicableTags = Factory.o51TagBL.GetList(mq); } }