a
abc
6 天以前 be2c03b34845642968a66c4767250b98eaffb48a
a
17个文件已修改
65 ■■■■ 已修改文件
PPMX.Entity/obj/Debug/PPMX.Entity.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/Master/GroupLogic.cs 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/bin/Debug/PPMX.Logic.dll 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/bin/Debug/PPMX.Logic.pdb 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/obj/Debug/PPMX.Logic.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/obj/Debug/PPMX.Logic.dll 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Logic/obj/Debug/PPMX.Logic.pdb 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Utility/obj/Debug/PPMX.Utility.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/Areas/Master/Controllers/GroupController.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/Areas/System/Views/Permission/Form.cshtml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/bin/PPMX.Logic.dll 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/bin/PPMX.Logic.pdb 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/bin/PPMX.Web.dll 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/bin/PPMX.Web.pdb 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/obj/Debug/PPMX.Web.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/obj/Debug/PPMX.Web.dll 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Web/obj/Debug/PPMX.Web.pdb 补丁 | 查看 | 原始文档 | blame | 历史
PPMX.Entity/obj/Debug/PPMX.Entity.csproj.AssemblyReference.cache
Binary 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.dll
Binary files differ
PPMX.Logic/bin/Debug/PPMX.Logic.pdb
Binary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.csproj.AssemblyReference.cache
Binary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.dll
Binary files differ
PPMX.Logic/obj/Debug/PPMX.Logic.pdb
Binary files differ
PPMX.Utility/obj/Debug/PPMX.Utility.csproj.AssemblyReference.cache
Binary 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.dll
Binary files differ
PPMX.Web/bin/PPMX.Logic.pdb
Binary files differ
PPMX.Web/bin/PPMX.Web.dll
Binary files differ
PPMX.Web/bin/PPMX.Web.pdb
Binary files differ
PPMX.Web/obj/Debug/PPMX.Web.csproj.AssemblyReference.cache
Binary files differ
PPMX.Web/obj/Debug/PPMX.Web.dll
Binary files differ
PPMX.Web/obj/Debug/PPMX.Web.pdb
Binary files differ