src/org/openbravo/erpCommon/info/ProductMultiple.html
changeset 712 aa0c40278c5a
child 799 fef2c5e2feb7
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>Product multiple 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" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO = "en_US";</script>
       
    31 <script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</script>
       
    32 <script language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></script>
       
    33 <script language="JavaScript" src="../../../../../web/js/openbravo/core.js" type="text/javascript"></script>
       
    34 <script language="JavaScript" src="../../../../../web/js/openbravo/widget/DataGrid.js" type="text/javascript"></script>
       
    35 <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
       
    36 <script language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></script>
       
    37 
       
    38 <script type="text/javascript">
       
    39         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       
    40 </script>
       
    41 
       
    42 <script language="JavaScript" type="text/javascript">
       
    43 function depurar() {
       
    44 	var frm = document.frmSelector;
       
    45 	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpProductCategory.value==null || frm.inpProductCategory.value=="")) {
       
    46 		frm.inpKey.focus();
       
    47 		mensaje(7);
       
    48 		return false;
       
    49 	}
       
    50 	return true;
       
    51 }
       
    52 
       
    53 function onloadFunctions() {
       
    54 	new TypeAheadCombo("inpProductCategory");
       
    55 }
       
    56 </script>
       
    57 <script language="JavaScript" type="text/javascript">
       
    58   
       
    59   function onLoadDo(){
       
    60     this.windowTables = new Array(
       
    61       new windowTableId('client_top', null, 'buttonSearch', null),
       
    62       new windowTableId('client_middle', null, 'buttonOK', null),
       
    63       new windowTableId('client_bottom', null, 'buttonOK', null)
       
    64     );
       
    65     setWindowTableParentElement();
       
    66     enableShortcuts('popup');
       
    67 
       
    68     try {
       
    69       onloadFunctions();
       
    70     } catch (e) {}
       
    71 
       
    72     setWindowElementFocus('firstElement');
       
    73     resizeAreaInfo();
       
    74   }
       
    75 
       
    76   function onResizeDo(){
       
    77     resizeAreaInfo(true);
       
    78   }
       
    79   
       
    80   function depurarSelector(action) {
       
    81   	var pos; var keys;  var clave; var texto; var parameter; var data;
       
    82   	if(action == "SAVE") {
       
    83   		data = new Array();
       
    84   		rows = dojo.widget.byId('grid').getSelectedRows();
       
    85   		for(var i=0; i < rows.length; i++) {
       
    86   			var rowkey = rows[i].split("#");
       
    87   			var rval = new Array(rowkey[0], rowkey[1]);
       
    88   			data.push(rval);
       
    89   		}
       
    90     }
       
    91   	parent.opener.closeMultiSearch(action, data);
       
    92   }
       
    93 </script>
       
    94 </head>
       
    95 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
       
    96 <form name="frmSelector" method="POST" action="ProductMultiple.html" target="medio">
       
    97 	<input type="hidden" name="Command" />
       
    98 	<input type="hidden" name="IsPopUpCall" value="1" />
       
    99 	<div class="Popup_ContentPane_CircleLogo">
       
   100 		<div class="Popup_WindowLogo">
       
   101 			<img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_product" src="../../../../../web/images/blank.gif" border="0" />
       
   102 		</div>
       
   103 	</div>
       
   104 	<table cellspacing="0" cellpadding="0" width="100%" id="table_header">	
       
   105 		<tr>
       
   106 			<td>
       
   107 			<table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
       
   108 				<tr class="Popup_NavBar_bg">
       
   109 					<td></td>
       
   110 					<td class="Popup_NavBar_separator_cell"></td>
       
   111 					<td class="Popup_NavBar_bg_logo_left"></td>
       
   112 					<td class="Popup_NavBar_bg_logo" width="1"
       
   113 						onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img
       
   114 						src="../../../../../web/images/blank.gif" alt="Openbravo"
       
   115 						title="Openbravo" border="0" id="openbravoLogo"
       
   116 						class="Popup_NavBar_logo" /></td>
       
   117 					<td class="Popup_NavBar_bg_logo_right"></td>
       
   118 					<td class="Popup_NavBar_Popup_title_cell"><span>Product Selector</span><a></a></td>
       
   119 					<td class="Popup_NavBar_separator_cell"></td>
       
   120 				</tr>
       
   121 			</table>
       
   122 			</td>
       
   123 		</tr>	
       
   124 		<tr>
       
   125 			<td>
       
   126 			<table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
       
   127 				<tr>
       
   128 					<td class="Popup_SeparatorBar_bg"></td>
       
   129 				</tr>
       
   130 			</table>
       
   131 			</td>
       
   132 		</tr>
       
   133 	</table>
       
   134 	<table cellspacing="0" cellpadding="0" width="100%">
       
   135 		<tr>
       
   136 			<td>
       
   137 			<div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
       
   138 			<table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">	
       
   139 				<tr>
       
   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 					<td class="TableEdition_OneCell_width"></td>
       
   146 				</tr>	
       
   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">
       
   153 								<img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif" />
       
   154 							</td>
       
   155 							<td class="FieldGroupTitle">Primary Filters</td>
       
   156 							<td class="FieldGroupTitle_Right">
       
   157 								<img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif" />
       
   158 							</td>
       
   159 							<td class="FieldGroupContent"></td>	
       
   160 						</tr>
       
   161 						<tr class="FieldGroup_BottomMargin"></tr>
       
   162 					</table>
       
   163 					</td>
       
   164 				</tr>	
       
   165 				<tr></tr>	
       
   166 				<tr>
       
   167 					<td class="TitleCell"><span class="LabelText">Key</span></td>
       
   168 					<td class="TextBox_ContentCell">
       
   169 						<input class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpKey" value="" id="fieldKey" />
       
   170 					</td>	
       
   171 					<td></td>	
       
   172 					<td class="TitleCell"><span class="LabelText">Name</span></td>
       
   173 					<td class="TextBox_ContentCell">
       
   174 						<input class="dojoValidateValid TextBox_OneCell_width" name="inpName" value="" id="fieldName" type="text" />
       
   175 					</td>
       
   176 					<td></td>	
       
   177 				</tr>
       
   178 				<tr>
       
   179 					<td class="TitleCell"><span class="LabelText">Product Category</span></td>
       
   180 					<td class="Combo_ContentCell">
       
   181 						<select class="Combo Combo_OneCell_width" name="inpProductCategory" id="inpProductCategory">
       
   182 							<option value=""></option>
       
   183 							<div id="reportM_Product_Category_ID"></div>
       
   184 						</select>
       
   185 					</td>
       
   186 					<td />
       
   187 					<td />
       
   188 					<td />
       
   189 					<td />
       
   190 				</tr>	
       
   191 				<tr>
       
   192 					<td></td>
       
   193 					<td class="Button_LeftAlign_ContentCell">
       
   194 					<div>
       
   195 						<a class="ButtonLink" href="#"
       
   196 							onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
       
   197 							onblur="window.status=''; return true;"
       
   198 							onkeypress="this.className='ButtonLink_active'; return true;"
       
   199 							onkeyup="this.className='ButtonLink_focus'; return true;"
       
   200 							onclick="setFilters();return false;"
       
   201 							id="buttonSearch">
       
   202 								<table class="Button"
       
   203 									onmousedown="this.className='Button_active'; return true;"
       
   204 									onmouseup="this.className='Button'; return true;"
       
   205 									onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
       
   206 									onmouseout="this.className='Button'; window.status=''; return true;">
       
   207 									<tr>
       
   208 										<td class="Button_left">
       
   209 											<img class="Button_Icon Button_Icon_search" alt="Search"
       
   210 												title="Search" src="../../../../../web/images/blank.gif"
       
   211 												border="0" />
       
   212 										</td>
       
   213 										<td class="Button_text Button_width">Search</td>
       
   214 										<td class="Button_right"></td>
       
   215 									</tr>
       
   216 								</table>
       
   217 						</a>
       
   218 					</div>
       
   219 					</td>
       
   220 					<td></td>
       
   221 					<td></td>
       
   222 					<td></td>
       
   223 					<td></td>
       
   224 				</tr>	
       
   225 			</table>
       
   226 			</div>
       
   227 			</td>	
       
   228 		</tr>
       
   229 		<tr>
       
   230 	      <td>
       
   231 	        <div class="Popup_ContentPane_Client" style="overflow: hidden; height: 0px;" id="client_middle">
       
   232 	          <table summary="" id="sectionDetail">
       
   233 	            <tr>
       
   234 	              <td>
       
   235 	                <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
       
   236 	                  <tr class="DataGrid_Body_Row" id="grid_sample_header">
       
   237 	                    <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
       
   238 	                  </tr>
       
   239 	                  <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" onclick="selectActual(this); loadData('BBAccountingUser', '1000012', '', '1'); return true;" id="grid_sample_row">
       
   240 	                    <td class="DataGrid_Body_Cell">Loading...</td>
       
   241 	                  </tr>
       
   242 	                </table>
       
   243 	                <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
       
   244 	                  <tr>
       
   245 	                    <td>
       
   246 	                      <div id="grid" dojotype="openbravo:DataGrid"
       
   247 	                        structureurl="../info/ProductMultiple.html?Command=STRUCTURE"
       
   248 	                        dataurl="../info/ProductMultiple.html?Command=DATA"
       
   249 	                        updatesurl="../info/ProductMultiple.html?Command=DATA"
       
   250 	                        calculatenumrows="true" editable="false" sortable="true"
       
   251 	                        deleteable="true" oninvalidvalue="alert" onscroll="updateHeader"
       
   252 	                        ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
       
   253 	                        offset="0" sortcols="1" sortdirs="ASC" defaultrow="0"
       
   254 	                        maxwidth="99%" percentagewidthrelativetoid="client_middle"
       
   255 	                        multipleRowSelection="true"
       
   256 	                        preventcache="true" usecache="true" cachecontent="false">
       
   257 	                      </div>
       
   258 	                      <script>djConfig.searchIds.push("grid");</script>
       
   259 	                    </td>
       
   260 	                  </tr>
       
   261 	                </table>
       
   262 	              </td>
       
   263 	            </tr>
       
   264 	          </table>
       
   265 	        </div>
       
   266 	      </td>
       
   267 	    </tr>
       
   268 	    <tr>
       
   269 	      <td>
       
   270 	        <div class="Popup_ContentPane_Client" style="overflow: auto; height:50px;" id="client_bottom">
       
   271 	          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
       
   272 	            <tr>
       
   273 	              <td class="TableEdition_OneCell_width"></td>
       
   274 	              <td class="TableEdition_OneCell_width"></td>
       
   275 	              <td class="TableEdition_OneCell_width"></td>
       
   276 	              <td class="TableEdition_OneCell_width"></td>
       
   277 	              <td class="TableEdition_OneCell_width"></td>
       
   278 	              <td class="TableEdition_OneCell_width"></td>
       
   279 	            </tr>
       
   280 	            <tr>
       
   281 	              <td></td>
       
   282 	              <td></td>
       
   283 	              <td class="Button_RightAlign_ContentCell">
       
   284 	                <div>
       
   285 	                  <a class="ButtonLink" href="#"
       
   286 	                    onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
       
   287 	                    onblur="window.status=''; return true;"
       
   288 	                    onkeypress="this.className='ButtonLink_active'; return true;"
       
   289 	                    onkeyup="this.className='ButtonLink_focus'; return true;"
       
   290 	                    onclick="depurarSelector('SAVE');return false;"
       
   291 	                    id="buttonOK">
       
   292 	                    <table class="Button"
       
   293 	                      onmousedown="this.className='Button_active'; return true;"
       
   294 	                      onmouseup="this.className='Button'; return true;"
       
   295 	                      onmouseover="this.className='Button_hover'; window.status='OK'; return true;"
       
   296 	                      onmouseout="this.className='Button'; window.status=''; return true;">
       
   297 	                      <tr>
       
   298 	                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="OK" title="OK" src="../../../../../web/images/blank.gif" border=0/></td>
       
   299 	                        <td class="Button_text Button_width">OK</td>
       
   300 	                        <td class="Button_right"></td>
       
   301 	                      </tr>
       
   302 	                    </table>
       
   303 	                  </a>
       
   304 	                </div>
       
   305 	              </td>
       
   306 	              <td class="Button_LeftAlign_ContentCell">
       
   307 	                <div>
       
   308 	                  <a class="ButtonLink" href="#"
       
   309 	                    onfocus="setWindowElementFocus(this); window.status='Cancel'; return true;"
       
   310 	                    onblur="window.status=''; return true;"
       
   311 	                    onkeypress="this.className='ButtonLink_active'; return true;"
       
   312 	                    onkeyup="this.className='ButtonLink_focus'; return true;"
       
   313 	                    onclick="depurarSelector('CLEAR');return false;">
       
   314 	                    <table class="Button"
       
   315 	                      onmousedown="this.className='Button_active'; return true;"
       
   316 	                      onmouseup="this.className='Button'; return true;"
       
   317 	                      onmouseover="this.className='Button_hover'; window.status='Cancel'; return true;"
       
   318 	                      onmouseout="this.className='Button'; window.status=''; return true;">
       
   319 	                      <tr>
       
   320 	                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border=0/></td>
       
   321 	                        <td class="Button_text Button_width">Cancel</td>
       
   322 	                        <td class="Button_right"></td>
       
   323 	                      </tr>
       
   324 	                    </table>
       
   325 	                  </a>
       
   326 	                </div>
       
   327 	              </td>
       
   328 	              <td></td>
       
   329 	              <td></td>
       
   330 	            </tr>
       
   331 	          </table>
       
   332 	        </div>
       
   333 	      </td>
       
   334 	    </tr>
       
   335 	</table>
       
   336 </form>
       
   337 </body>
       
   338 </html>