Ejemplo n.º 1
0
 public string GetInfoById()
 {
     return(base.ExecuteActionJsonResult("获取系统业务参数信息", () =>
     {
         GI_SYSAPPParam list = EntityOperate <GI_SYSAPPParam> .GetEntityBySQL("select * from GI_SYSAPPPARAM where PARAMID = '" + Request["ParamID"] + "'");
         return new WebApi_Result()
         {
             data = list
         };
     }));
 }
Ejemplo n.º 2
0
 public string SaveInfo()
 {
     return(base.ExecuteActionJsonResult("系统业务参数信息保存", () =>
     {
         GI_SYSAPPParam entity = base.GetPageData <GI_SYSAPPParam>(0);
         if (!string.IsNullOrWhiteSpace(entity.ParamID) && entity.ParamID != "null")
         {
             entity.UpdateM("PARAMID");
         }
         else
         {
             entity.ParamID = DateTime.Now.ToFileTime().ToString();
             entity.SaveModelM();
         }
         return new WebApi_Result();
     }));
 }