<script> function onSubmitPlus(issave) { var projectid=$("#field_40282aa18708cb1301871197556b011b").val(); var projectmgrdep=$("#field_40282aa18708cb1301871196a1a70118").val();//项目负责人的所属部门 // var oldprojectmgrdep=SQL("select extrefobjfield5 from project where id='"+projectid+"'"); $.ajax({ type:"post", url:"/project/newProject/getProDocqx.do", data:{ projectid: projectid, projectmgrdep: projectmgrdep }, dataType:"json", async:false, success:function(res){ } }); return true; } </script>
@Controller public class WfprojectAction { private IDataService dataService= BaseContext.getBean("mobileDataService"); private WfprojectService wfprojectService=SingletonUtils.getSingleton("com.velcro.project.newProject.service.impl.WfprojectServiceImpl"); /** * 根据变更的项目负责人的部门进行流程和文档的添加项目负责人的部门负责人 * @param request * @param response * @throws Exception */ @RequestMapping("/project/newProject/getProDocqx") public void getProDocqx(HttpServletRequest request, HttpServletResponse response)throws Exception{ String projectid = request.getParameter("projectid"); String projectmgrdep = request.getParameter("projectmgrdep"); // String sql="select exttextfield6 from project where id=?"; // String valueStr = dataService.getValueStr(sql, projectid); System.out.println("-----------------"+projectid); System.out.println("-----------------"+projectmgrdep); // wfprojectService.getAllProjectid(projectid,projectmgrdep); } }
标签:String,projectmgrdep,projectid,request,jq,newProject,project,ajax,传值 From: https://www.cnblogs.com/jk200/p/17339881.html