4620992301828a5ffc7c334e8c0d43505749c73c.svn-base 767 B

123456789101112131415161718192021222324252627282930313233
  1. //增加
  2. function addTransferDaily(){
  3. //取父页面的变量
  4. var sub_fd_id = parent.fd_id;
  5. $("#FILLER1_215").val(sub_fd_id);
  6. $form = $('#fillForm');
  7. var url = $.pathname() + '/ws/crud/CRUDService/create';
  8. $.ajax({
  9. url : url,
  10. type : 'post',
  11. data : $form.serialize(),
  12. dataType : 'text',
  13. timeout : 60000,
  14. success : function(data){
  15. //goBack();
  16. $.messager.alert("保存成功",null,null,null,-1);
  17. },
  18. error : function(){
  19. $.messager.alert('操作失败');
  20. }
  21. });
  22. }
  23. //
  24. function goBack() {
  25. var url = "/nwyj/page/business/am/contingencyPlan/"+"PlanGrade.jsp";
  26. window.parent.document.getElementById("frmright").setAttribute("src", ""+encodeURI(url));
  27. }
  28. $.messager=top.Dialog;