/// <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;
 }
 /// <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());
 }