src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html
changeset 712 aa0c40278c5a
child 1028 8b85368639cc
equal deleted inserted replaced
711:4e8209a9d749 712:aa0c40278c5a
       
     1 <!--
       
     2  *************************************************************************
       
     3  * The contents of this file are subject to the Openbravo  Public  License
       
     4  * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
       
     5  * Version 1.1  with a permitted attribution clause; you may not  use this
       
     6  * file except in compliance with the License. You  may  obtain  a copy of
       
     7  * the License at http://www.openbravo.com/legal/license.html 
       
     8  * Software distributed under the License  is  distributed  on  an "AS IS"
       
     9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    10  * License for the specific  language  governing  rights  and  limitations
       
    11  * under the License. 
       
    12  * The Original Code is Openbravo ERP. 
       
    13  * The Initial Developer of the Original Code is Openbravo SL 
       
    14  * All portions are Copyright (C) 2001-2008 Openbravo SL 
       
    15  * All Rights Reserved. 
       
    16  * Contributor(s):  ______________________________________.
       
    17  ************************************************************************
       
    18 -->
       
    19 <html>
       
    20 <head>
       
    21 <title>Business Partner selector</title>
       
    22 <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></link>
       
    23 <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
       
    24 <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
       
    25 <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
       
    26 <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
       
    27 <script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
       
    28 <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
       
    29 <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
       
    30 <script language="JavaScript" src="../../../../../web/js/openbravo/core.js" type="text/javascript"></script>
       
    31 <script language="JavaScript" src="../../../../../web/js/openbravo/widget/DataGrid.js" type="text/javascript"></script>
       
    32 <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
       
    33 <script type="text/javascript">
       
    34         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       
    35 </script>
       
    36 <link rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"></link>
       
    37 <script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://yourSite/web/";</script>
       
    38 <script language="JavaScript" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO = "en_US";</script>
       
    39 <script language="JavaScript" type="text/javascript">
       
    40 function depurar() {	
       
    41 	var frm = document.forms[0];
       
    42 	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
       
    43 		frm.inpKey.focus();
       
    44 		mensaje(7);
       
    45 		return false;
       
    46 	}	
       
    47 	return true;
       
    48 }
       
    49 </script>
       
    50 <script language="JavaScript" type="text/javascript">
       
    51 	function onLoadDo(){
       
    52     this.windowTables = new Array(
       
    53       new windowTableId('client_top', null, 'buttonSearch', null),
       
    54       new windowTableId('client_middle', null, 'buttonOK', null),
       
    55       new windowTableId('client_bottom', null, 'buttonOK', null)
       
    56     );
       
    57     setWindowTableParentElement();
       
    58     enableShortcuts('popup');
       
    59 
       
    60     try {
       
    61       onloadFunctions();
       
    62     } catch (e) {}
       
    63 
       
    64     setWindowElementFocus('firstElement');
       
    65     resizeAreaInfo();
       
    66   }
       
    67 
       
    68   function onResizeDo(){
       
    69     resizeAreaInfo(true);
       
    70   }
       
    71   
       
    72   function depurarSelector(action) {
       
    73   	var pos; var keys;  var clave; var texto; var parameter; var data;
       
    74   	if(action == "SAVE") {
       
    75   		data = new Array();
       
    76   		rows = dojo.widget.byId('grid').getSelectedRows();
       
    77   		for(var i=0; i < rows.length; i++) {
       
    78   			var rowkey = rows[i].split("#");
       
    79   			var rval = new Array(rowkey[0], rowkey[1]);
       
    80   			data.push(rval);
       
    81   		}
       
    82     }
       
    83   	parent.opener.closeMultiSearch(action, data);
       
    84   }
       
    85 </script>
       
    86 <script language="JavaScript" type="text/javascript" id="selectedColumn">  
       
    87   dojo.require("openbravo.widget.DataGrid");
       
    88   var selectedRow = 0;
       
    89   var orderByPositions = new Array("1");
       
    90   var orderByDirections = new Array("ASC");
       
    91 </script>
       
    92 </head>
       
    93 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
       
    94 <form name="frmSelector" method="POST" action="BusinessPartnerMultiple.html">
       
    95   <input type="hidden" name="Command" />
       
    96   <input type="hidden" name="IsPopUpCall" value="1" />
       
    97   <input type="hidden" name="inpAD_Org_ID" value="xx" id="fieldOrgs" />
       
    98   <div class="Popup_ContentPane_CircleLogo">
       
    99     <div class="Popup_WindowLogo">
       
   100       <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_businessPartner" src="../../../../../web/images/blank.gif" border=0/></img>
       
   101     </div>
       
   102   </div>
       
   103   <table cellspacing="0" cellpadding="0" width="100%" id="table_header">
       
   104     <tr>
       
   105       <td>
       
   106         <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
       
   107           <tr class="Popup_NavBar_bg"><td></td>
       
   108             <td class="Popup_NavBar_separator_cell"></td>
       
   109             <td class="Popup_NavBar_bg_logo_left"></td>
       
   110             <td class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
       
   111             <td class="Popup_NavBar_bg_logo_right"></td>
       
   112             <td class="Popup_NavBar_Popup_title_cell"><span>Business Partner selector</span></td>
       
   113             <td class="Popup_NavBar_separator_cell"></td>
       
   114           </tr>
       
   115         </table>
       
   116       </td>
       
   117     </tr>
       
   118 
       
   119     <tr>
       
   120       <td>
       
   121         <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
       
   122           <tr>
       
   123             <td class="Popup_SeparatorBar_bg"></td>
       
   124           </tr>
       
   125         </table>
       
   126       </td>
       
   127     </tr>
       
   128 
       
   129   </table>
       
   130 
       
   131   <table cellspacing="0" cellpadding="0" width="100%">
       
   132 
       
   133     <tr>
       
   134       <td>
       
   135         <div class="Popup_ContentPane_Client" style="overflow: auto; height:185px;" id="client_top">
       
   136           <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
       
   137 
       
   138             <tr>
       
   139               <td class="TableEdition_OneCell_width"></td>
       
   140               <td class="TableEdition_OneCell_width"></td>
       
   141               <td class="TableEdition_OneCell_width"></td>
       
   142               <td class="TableEdition_OneCell_width"></td>
       
   143               <td class="TableEdition_OneCell_width"></td>
       
   144               <td class="TableEdition_OneCell_width"></td>
       
   145             </tr>
       
   146 
       
   147             <tr>
       
   148               <td colspan="6">
       
   149                 <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
       
   150                   <tr class="FieldGroup_TopMargin"></tr>
       
   151                   <tr>
       
   152                     <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"></img></td>
       
   153                     <td class="FieldGroupTitle">Primary Filters</td>
       
   154                     <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"></img></td>
       
   155                     <td class="FieldGroupContent"></td>
       
   156 
       
   157                   </tr>
       
   158                   <tr class="FieldGroup_BottomMargin"></tr>
       
   159                 </table>
       
   160               </td>
       
   161             </tr>
       
   162 
       
   163             <tr>
       
   164               <td class="TitleCell"><span class="LabelText">Key</span></td>
       
   165               <td class="TextBox_ContentCell"><input class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpKey" value="" id="fieldKey"></input></td>
       
   166               <td></td>
       
   167               <td class="TitleCell"><span class="LabelText">Name</span></td>
       
   168               <td class="TextBox_ContentCell" colspan="2"><input type="text" name="inpName" value="" id="fieldName" class="dojoValidateValid TextBox_TwoCells_width"></input></td>
       
   169               <td></td>
       
   170             </tr>
       
   171 
       
   172             <tr>
       
   173               <td class="TitleCell"><span class="LabelText">Contact</span></td>
       
   174               <td class="TextBox_ContentCell" colspan="2"><input type="text" name="inpContact" class="dojoValidateValid TextBox_TwoCells_width"></input></td>
       
   175 
       
   176               <td class="TitleCell"><span class="LabelText">City</span></td>
       
   177               <td class="TextBox_ContentCell" colspan="2"> <input type="text" name="inpCity" class="dojoValidateValid TextBox_TwoCells_width"></input></td>
       
   178             </tr>
       
   179       
       
   180             <tr>
       
   181               <td class="TitleCell"><span class="LabelText">Postal Code</span></td>
       
   182               <td class="TextBox_ContentCell"><input class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpZIP"></input></td>
       
   183 
       
   184               <td></td>
       
   185 
       
   186               <td class="TitleCell"><span class="LabelText">Region</span></td>
       
   187               <td class="TextBox_ContentCell" colspan="2"><input type="text" name="inpProvincia" class="dojoValidateValid TextBox_TwoCells_width"></input> </td>
       
   188             </tr>
       
   189         
       
   190             <tr> 
       
   191              <td class="TitleCell"><span class="LabelText">Customer</span></td>
       
   192              <td class="Radio_Check_ContentCell"><span class="Radio_container_NOT_Focused"><input type="radio" name="inpBpartner" value="costumer" id="fieldClientsSelect"></input></span></td>
       
   193 
       
   194              <td class="TitleCell"><span class="LabelText">Providers</span></td>
       
   195              <td class="Radio_Check_ContentCell"><span class="Radio_container_NOT_Focused"><input type="radio" name="inpBpartner" value="vendor" id="fieldVendorsSelect"></input></span></td>
       
   196 
       
   197              <td class="TitleCell"><span class="LabelText">All</span></td>
       
   198              <td class="Radio_Check_ContentCell"><span class="Radio_container_NOT_Focused"><input type="radio" name="inpBpartner" value="all" id="fieldAllSelect"></input></span></td>
       
   199             </tr>
       
   200 
       
   201             <tr>
       
   202               <td></td>
       
   203               <td class="Button_LeftAlign_ContentCell">
       
   204                 <div>
       
   205                   <a class="ButtonLink" href="#"
       
   206                     onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
       
   207                     onblur="window.status=''; return true;"
       
   208                     onkeypress="this.className='ButtonLink_active'; return true;"
       
   209                     onkeyup="this.className='ButtonLink_focus'; return true;"
       
   210                     onclick="setFilters();return false;"
       
   211                     id="buttonSearch">
       
   212                     <table class="Button"
       
   213                       onmousedown="this.className='Button_active'; return true;"
       
   214                       onmouseup="this.className='Button'; return true;"
       
   215                       onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
       
   216                       onmouseout="this.className='Button'; window.status=''; return true;">
       
   217                       <tr>
       
   218                         <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border=0/></td>
       
   219                         <td class="Button_text Button_width">Search</td>
       
   220                         <td class="Button_right"></td>
       
   221                       </tr>
       
   222                     </table>
       
   223                   </a>
       
   224                 </div>
       
   225               </td>
       
   226               <td></td>
       
   227               <td></td>
       
   228               <td></td>
       
   229               <td></td>
       
   230             </tr>
       
   231           </table>
       
   232         </div>
       
   233       </td>
       
   234     </tr>
       
   235 
       
   236     <tr>
       
   237       <td>
       
   238         <div class="Popup_ContentPane_Client" style="overflow: hidden; height: 0px;" id="client_middle">
       
   239           <table summary="" id="sectionDetail">
       
   240             <tr>
       
   241               <td>
       
   242                 <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
       
   243                   <tr class="DataGrid_Body_Row" id="grid_sample_header">
       
   244                     <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
       
   245                   </tr>
       
   246                   <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" onclick="selectActual(this); loadData('BBAccountingUser', '1000012', '', '1'); return true;" id="grid_sample_row">
       
   247                     <td class="DataGrid_Body_Cell">Loading...</td>
       
   248                   </tr>
       
   249                 </table>
       
   250                 <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
       
   251                   <tr>
       
   252                     <td>
       
   253                       <div id="grid" dojotype="openbravo:DataGrid"
       
   254                         structureurl="../info/BusinessPartnerMultiple.html?Command=STRUCTURE"
       
   255                         dataurl="../info/BusinessPartnerMultiple.html?Command=DATA"
       
   256                         updatesurl="../info/BusinessPartnerMultiple.html?Command=DATA"
       
   257                         calculatenumrows="true" editable="false" sortable="true"
       
   258                         deleteable="true" oninvalidvalue="alert" onscroll="updateHeader"
       
   259                         ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
       
   260                         offset="0" sortcols="1" sortdirs="ASC" defaultrow="0"
       
   261                         maxwidth="99%" percentagewidthrelativetoid="client_middle"
       
   262                         multipleRowSelection="true"
       
   263                         preventcache="true" usecache="true" cachecontent="false">
       
   264                       </div>
       
   265                       <script>djConfig.searchIds.push("grid");</script>
       
   266                     </td>
       
   267                   </tr>
       
   268                 </table>
       
   269               </td>
       
   270             </tr>
       
   271           </table>
       
   272         </div>
       
   273       </td>
       
   274     </tr>
       
   275     <tr>
       
   276       <td>
       
   277         <div class="Popup_ContentPane_Client" style="overflow: auto; height:50px;" id="client_bottom">
       
   278           <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
       
   279 
       
   280             <tr>
       
   281               <td class="TableEdition_OneCell_width"></td>
       
   282               <td class="TableEdition_OneCell_width"></td>
       
   283               <td class="TableEdition_OneCell_width"></td>
       
   284               <td class="TableEdition_OneCell_width"></td>
       
   285               <td class="TableEdition_OneCell_width"></td>
       
   286               <td class="TableEdition_OneCell_width"></td>
       
   287             </tr>
       
   288             <tr>
       
   289               <td></td>
       
   290               <td></td>
       
   291               <td class="Button_RightAlign_ContentCell">
       
   292                 <div>
       
   293                   <a class="ButtonLink" href="#"
       
   294                     onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
       
   295                     onblur="window.status=''; return true;"
       
   296                     onkeypress="this.className='ButtonLink_active'; return true;"
       
   297                     onkeyup="this.className='ButtonLink_focus'; return true;"
       
   298                     onclick="depurarSelector('SAVE');return false;"
       
   299                     id="buttonOK">
       
   300                     <table class="Button"
       
   301                       onmousedown="this.className='Button_active'; return true;"
       
   302                       onmouseup="this.className='Button'; return true;"
       
   303                       onmouseover="this.className='Button_hover'; window.status='OK'; return true;"
       
   304                       onmouseout="this.className='Button'; window.status=''; return true;">
       
   305                       <tr>
       
   306                         <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="OK" title="OK" src="../../../../../web/images/blank.gif" border=0/></td>
       
   307                         <td class="Button_text Button_width">OK</td>
       
   308                         <td class="Button_right"></td>
       
   309                       </tr>
       
   310                     </table>
       
   311                   </a>
       
   312                 </div>
       
   313               </td>
       
   314               <td class="Button_LeftAlign_ContentCell">
       
   315                 <div>
       
   316                   <a class="ButtonLink" href="#"
       
   317                     onfocus="setWindowElementFocus(this); window.status='Cancel'; return true;"
       
   318                     onblur="window.status=''; return true;"
       
   319                     onkeypress="this.className='ButtonLink_active'; return true;"
       
   320                     onkeyup="this.className='ButtonLink_focus'; return true;"
       
   321                     onclick="depurarSelector('CLEAR');return false;">
       
   322                     <table class="Button"
       
   323                       onmousedown="this.className='Button_active'; return true;"
       
   324                       onmouseup="this.className='Button'; return true;"
       
   325                       onmouseover="this.className='Button_hover'; window.status='Cancel'; return true;"
       
   326                       onmouseout="this.className='Button'; window.status=''; return true;">
       
   327                       <tr>
       
   328                         <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border=0/></td>
       
   329                         <td class="Button_text Button_width">Cancel</td>
       
   330                         <td class="Button_right"></td>
       
   331                       </tr>
       
   332                     </table>
       
   333                   </a>
       
   334                 </div>
       
   335               </td>
       
   336               <td></td>
       
   337               <td></td>
       
   338             </tr>
       
   339           </table>
       
   340         </div>
       
   341       </td>
       
   342     </tr>
       
   343   </table>
       
   344 </form>
       
   345 </body>
       
   346 </html>