/// <summary>
 /// 模块设置表提交表单信息
 /// </summary>
 /// <param name="base_module">模块设置表实体</param>
 /// <returns></returns>
 public ActionResult SubmitBase_ModuleForm(Base_Module base_module)
 {
     string key = Request["key"];                                                //主键
     bool IsOk = false;
     if (!string.IsNullOrEmpty(key))//判断是否编辑
     {
         base_module.ModuleId = key;
         base_module.ModifyDate = DateTime.Now;
         base_module.ModifyUserId = SessionHelper.GetSessionUser().UserId;
         base_module.ModifyUserName = SessionHelper.GetSessionUser().UserName;
         IsOk = base_modulebll.UpdateEntity(base_module);
     }
     else
     {
         base_module.ModuleId = CommonHelper.GetGuid;
         base_module.CreateUserId = SessionHelper.GetSessionUser().UserId;
         base_module.CreateUserName = SessionHelper.GetSessionUser().UserName;
         base_module.SortCode = CommonHelper.GetInt(base_modulebll.GetMaxCode());
         IsOk = base_modulebll.AddEntity(base_module);
     }
     return Content(IsOk.ToString());
 }
 /// <summary>
 /// 模块设置表获取对象返回JSON
 /// </summary>
 /// <param name="key">主键</param>
 /// <returns></returns>
 public ActionResult GetBase_ModuleForm(string key)
 {
     if (!string.IsNullOrEmpty(key))
     {
         base_module = base_modulebll.GetEntity(key);
         string strJson = JsonHelper.ObjectToJson(base_module);
         return Content(strJson);
     }
     return null;
 }