Exemple #1
0
 // QxJzxt/OrgCRUD/DeleteOrgType 删除
 public ActionResult DeleteOrgType(string orgnization_type_id)
 {
     if (orgnization_type_id.HasValue())
     {
         if (!_IOrgService.FindOrgTypeIsRelation(orgnization_type_id))
         {
             return(Alert(_orgnization_type.Delete(orgnization_type_id) ? "删除成功" : "删除失败"));
         }
         else
         {
             return(Alert("该组织机构类型已经跟相关组织机构有关联,不能删除"));
         }
     }
     else
     {
         return(Alert("参数请求错误"));
     }
 }