Ejemplo n.º 1
0
 public string SaveInfo()
 {
     return(base.ExecuteActionJsonResult("系统模块保存", () =>
     {
         GI_SYSAPPINFO entity = base.GetPageData <GI_SYSAPPINFO>(0);
         sysAppInfoService.SaveInfo(entity);
         return new WebApi_Result();
     }));
 }
Ejemplo n.º 2
0
 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
         };
     }));
 }
Ejemplo n.º 3
0
 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();
     }
 }