PPMX.Entity/obj/Debug/PPMX.Entity.csproj.AssemblyReference.cacheBinary files differ
PPMX.Logic/Master/GroupLogic.cs
@@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; @@ -14,18 +15,10 @@ { public object Get(string primaryKey) { //using (var db = GetInstance()) //{ // var data = db.Queryable<MapGroup>() // .WhereIF(!string.IsNullOrEmpty(keyWord), it => (it.FullName.Contains(keyWord))) // .WhereIF(status == 0 || status == 1, it => (it.IsEnable == status)) // .OrderBy(it => it.Id, OrderByType.Asc); // receive.Code = 0; // receive.Message = "SUCCESS"; // receive.total = data.Count(); // receive.rows = data.ToPageList(pageIndex, pageSize); //} return null; using (var db = GetInstance()) { return db.Queryable<MapGroup>().InSingle(primaryKey); } } public Receive GetList(int pageIndex, int pageSize, string keyWord, int status) @@ -55,17 +48,47 @@ public int Insert(MapGroup model) { throw new NotImplementedException(); using (var db = GetInstance()) { if (db.Queryable<MapGroup>().Where(x=>x.FullName.Equals(model.FullName)).Any()) { model = db.Queryable<MapGroup>().Where(x => x.FullName.Equals(model.FullName)).First(); model.IsEnable = 1; return db.Updateable<MapGroup>(model).UpdateColumns(it => new { it.IsEnable, }).ExecuteCommand(); } else { model.IsEnable = 1; return db.Insertable<MapGroup>(model).ExecuteCommand(); } } } public int Update(MapGroup model) { throw new NotImplementedException(); using (var db = GetInstance()) { return db.Updateable<MapGroup>(model).UpdateColumns(it => new { it.FullName, }).ExecuteCommand(); } } public int Delete(string primaryKey) { throw new NotImplementedException(); using (var db = GetInstance()) { MapGroup model = db.Queryable<MapGroup>().InSingle(primaryKey); model.IsEnable = 0; return db.Updateable<MapGroup>(model).UpdateColumns(it => new { it.IsEnable, }).ExecuteCommand(); } } } } PPMX.Logic/bin/Debug/PPMX.Logic.dllBinary files differ
PPMX.Logic/bin/Debug/PPMX.Logic.pdbBinary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.csproj.AssemblyReference.cacheBinary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.dllBinary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.pdbBinary files differ
PPMX.Utility/obj/Debug/PPMX.Utility.csproj.AssemblyReference.cacheBinary files differ
PPMX.Web/Areas/Master/Controllers/GroupController.cs
@@ -51,7 +51,7 @@ [HttpPost, ValidateAntiForgeryToken] public ActionResult Form(MapGroup model) { if (model.Id==null) if (model.Id == 0) { int row = groupLogic.Insert(model); return row > 0 ? Success() : Error(); @@ -67,7 +67,7 @@ public ActionResult GetForm(string primaryKey) { var entity = groupLogic.Get(primaryKey); return Content(entity.ToJson()); return Json(entity); } [HttpPost] PPMX.Web/Areas/System/Views/Permission/Form.cshtml
@@ -47,6 +47,12 @@ </select> </div> </div> <div class="layui-inline"> <label class="layui-form-label">JsEvent</label> <div class="layui-input-inline"> <input type="text" name="JsEvent" placeholder="绑定JsEvent" autocomplete="off" class="layui-input"> </div> </div> </div> <div class="layui-form-item"> <div class="layui-inline"> @@ -90,7 +96,7 @@ var form = layui.form; var layer = layui.layer; var primaryKey = $.getQueryString("primaryKey"); alert(primaryKey) if (primaryKey) { $("#ParentId").bindSelect({ url: "/System/Permission/GetParent?permitId=" + primaryKey PPMX.Web/bin/PPMX.Logic.dllBinary files differ
PPMX.Web/bin/PPMX.Logic.pdbBinary files differ
PPMX.Web/bin/PPMX.Web.dllBinary files differ
PPMX.Web/bin/PPMX.Web.pdbBinary files differ
PPMX.Web/obj/Debug/PPMX.Web.csproj.AssemblyReference.cacheBinary files differ
PPMX.Web/obj/Debug/PPMX.Web.dllBinary files differ
PPMX.Web/obj/Debug/PPMX.Web.pdbBinary files differ