| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //选择项目名称,列表================
- function openProjectSelect() {
- //$.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#projectid").val();
- /* var orgCode = $("#orgCode").val();*/
- $.dialog({
- content: 'url:publicpageController.do?projectSelect&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
- {name: '确定', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strId"){
- $("#projectid").val(strData[0][key]);
- }else if(key=="strAbbr"){
- $("#projectname").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '取消', callback: function (){}}
-
- ]}).zindex();
- }
- function callbackCleanProject(){
- $('#projectname').val('');
- $('#projectid').val('');
- }
- //选择客户
- function openCustomerSelect() {
- //$.dialog.setting.zIndex = getzIndex();
- var partnerIds = $("#customerid").val();
- /* var orgCode = $("#orgCode").val();*/
- $.dialog({
- content: 'url:publicpageController.do?customerSelect&ids='+partnerIds, zIndex: getzIndex(), title: '客户列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
- {name: '确定', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strId"){
- $("#customerid").val(strData[0][key]);
- }else if(key=="strPartnerName"){
- $("#customername").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '取消', callback: function (){}}
-
- ]}).zindex();
- }
- function callbackCleanCustomer(){
- $('#customername').val('');
- $('#customerid').val('');
- }
|