7255cfa471871e665abbfde4ae8242c6059e873c.svn-base 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. var fd_id="";
  2. var PLAN_BIAOZHI="";
  3. var BM_YAXHLB="";
  4. if((window.location.href).indexOf('?')>-1){
  5. fd_id = (window.location.href).split('?')[1];
  6. PLAN_BIAOZHI = (window.location.href).split('?')[2];
  7. BM_YAXHLB = (window.location.href).split('?')[3];
  8. }else{
  9. }
  10. //取值,取列表页面传过来的预案主键的ID
  11. function addTransferDaily(){
  12. if((window.location.href).indexOf('?')>-1){
  13. var fd_id = (window.location.href).split('?')[1];
  14. var PLAN_BIAOZHI = (window.location.href).split('?')[2];
  15. }
  16. $form = $('#fillForm');
  17. var url = $.pathname() + '/ws/crud/CRUDService/create';
  18. $.ajax({
  19. url : url,
  20. type : 'post',
  21. data : $form.serialize(),
  22. dataType : 'text',
  23. timeout : 60000,
  24. success : function(data){
  25. //goBack();
  26. $.messager.alert("保存成功",null,null,null,-1);
  27. },
  28. error : function(){
  29. $.messager.alert('操作失败');
  30. }
  31. });
  32. }
  33. function goBack() {
  34. var url = "/nwyj/page/business/am/contingencyPlan/"+"PlanGrade.jsp";
  35. window.parent.document.getElementById("frmright").setAttribute("src", ""+encodeURI(url));
  36. }