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