Exemple #1
0
 // QxJzxt/OrgCRUD/Delete_Org_Position
 public ActionResult Delete_Org_Position(string orgnization_position_id)
 {
     if (orgnization_position_id.HasValue())
     {
         if (!_IOrgService.FindOrgPositionIsRelationUser(orgnization_position_id))
         {
             return(Alert(_orgnization_position.Delete(orgnization_position_id) ? "删除成功" : "删除失败"));
         }
         else
         {
             return(Alert("该职位下面已经有人员了,不能删除,若想删除,请先将职位下面得所有人员删除,在删除该职位"));
         }
     }
     else
     {
         return(Alert("参数请求错误"));
     }
 }