public string SaveInfo() { return(base.ExecuteActionJsonResult("系统模块保存", () => { GI_SYSAPPINFO entity = base.GetPageData <GI_SYSAPPINFO>(0); sysAppInfoService.SaveInfo(entity); return new WebApi_Result(); })); }
public string GetInfoById() { return(base.ExecuteActionJsonResult("获取系统模块信息", () => { GI_SYSAPPINFO list = EntityOperate <GI_SYSAPPINFO> .GetEntityBySQL("select * from GI_SYSAPPINFO where SYSID = '" + Request["SYSID"] + "'"); return new WebApi_Result() { data = list }; })); }
public void SaveInfo(GI_SYSAPPINFO entity) { if (!string.IsNullOrWhiteSpace(entity.SYSID) && entity.SYSID != "null") { entity.UpdateM("SYSID"); } else { entity.SYSID = GetPrimaryId(); entity.ModifyTime = DateTime.Now; entity.SaveModelM(); } }