contractSaleList.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //选择项目名称,列表================
  2. function openProjectSelect() {
  3. //$.dialog.setting.zIndex = getzIndex();
  4. var orgIds = $("#projectid").val();
  5. /* var orgCode = $("#orgCode").val();*/
  6. $.dialog({
  7. content: 'url:publicpageController.do?projectSelect&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
  8. {name: '确定', callback: function (){
  9. var iframe = this.iframe.contentWindow;
  10. if(iframe.getReason().length>0){
  11. var strData=eval(iframe.getReason());
  12. for(var key in strData[0]){
  13. if(key=="strId"){
  14. $("#projectid").val(strData[0][key]);
  15. }else if(key=="strAbbr"){
  16. $("#projectname").val(strData[0][key]);
  17. }
  18. }
  19. }
  20. }, focus: true},
  21. {name: '取消', callback: function (){}}
  22. ]}).zindex();
  23. }
  24. function callbackCleanProject(){
  25. $('#projectname').val('');
  26. $('#projectid').val('');
  27. }
  28. //选择客户
  29. function openCustomerSelect() {
  30. //$.dialog.setting.zIndex = getzIndex();
  31. var partnerIds = $("#customerid").val();
  32. /* var orgCode = $("#orgCode").val();*/
  33. $.dialog({
  34. content: 'url:publicpageController.do?customerSelect&ids='+partnerIds, zIndex: getzIndex(), title: '客户列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
  35. {name: '确定', callback: function (){
  36. var iframe = this.iframe.contentWindow;
  37. if(iframe.getReason().length>0){
  38. var strData=eval(iframe.getReason());
  39. for(var key in strData[0]){
  40. if(key=="strId"){
  41. $("#customerid").val(strData[0][key]);
  42. }else if(key=="strPartnerName"){
  43. $("#customername").val(strData[0][key]);
  44. }
  45. }
  46. }
  47. }, focus: true},
  48. {name: '取消', callback: function (){}}
  49. ]}).zindex();
  50. }
  51. function callbackCleanCustomer(){
  52. $('#customername').val('');
  53. $('#customerid').val('');
  54. }