src/org/openbravo/erpCommon/info/ProductMultiple.html
changeset 712 aa0c40278c5a
child 799 fef2c5e2feb7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductMultiple.html	Mon Apr 21 19:06:47 2008 +0000
@@ -0,0 +1,338 @@
+<!--
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SL 
+ * All portions are Copyright (C) 2001-2008 Openbravo SL 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+-->
+<html>
+<head>
+<title>Product multiple selector</title>
+<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></link>
+<script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
+<script language="JavaScript" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO = "en_US";</script>
+<script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</script>
+<script language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/openbravo/core.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/openbravo/widget/DataGrid.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+        dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
+</script>
+
+<script language="JavaScript" type="text/javascript">
+function depurar() {
+	var frm = document.frmSelector;
+	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpProductCategory.value==null || frm.inpProductCategory.value=="")) {
+		frm.inpKey.focus();
+		mensaje(7);
+		return false;
+	}
+	return true;
+}
+
+function onloadFunctions() {
+	new TypeAheadCombo("inpProductCategory");
+}
+</script>
+<script language="JavaScript" type="text/javascript">
+  
+  function onLoadDo(){
+    this.windowTables = new Array(
+      new windowTableId('client_top', null, 'buttonSearch', null),
+      new windowTableId('client_middle', null, 'buttonOK', null),
+      new windowTableId('client_bottom', null, 'buttonOK', null)
+    );
+    setWindowTableParentElement();
+    enableShortcuts('popup');
+
+    try {
+      onloadFunctions();
+    } catch (e) {}
+
+    setWindowElementFocus('firstElement');
+    resizeAreaInfo();
+  }
+
+  function onResizeDo(){
+    resizeAreaInfo(true);
+  }
+  
+  function depurarSelector(action) {
+  	var pos; var keys;  var clave; var texto; var parameter; var data;
+  	if(action == "SAVE") {
+  		data = new Array();
+  		rows = dojo.widget.byId('grid').getSelectedRows();
+  		for(var i=0; i < rows.length; i++) {
+  			var rowkey = rows[i].split("#");
+  			var rval = new Array(rowkey[0], rowkey[1]);
+  			data.push(rval);
+  		}
+    }
+  	parent.opener.closeMultiSearch(action, data);
+  }
+</script>
+</head>
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
+<form name="frmSelector" method="POST" action="ProductMultiple.html" target="medio">
+	<input type="hidden" name="Command" />
+	<input type="hidden" name="IsPopUpCall" value="1" />
+	<div class="Popup_ContentPane_CircleLogo">
+		<div class="Popup_WindowLogo">
+			<img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_product" src="../../../../../web/images/blank.gif" border="0" />
+		</div>
+	</div>
+	<table cellspacing="0" cellpadding="0" width="100%" id="table_header">	
+		<tr>
+			<td>
+			<table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
+				<tr class="Popup_NavBar_bg">
+					<td></td>
+					<td class="Popup_NavBar_separator_cell"></td>
+					<td class="Popup_NavBar_bg_logo_left"></td>
+					<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>
+					<td class="Popup_NavBar_bg_logo_right"></td>
+					<td class="Popup_NavBar_Popup_title_cell"><span>Product Selector</span><a></a></td>
+					<td class="Popup_NavBar_separator_cell"></td>
+				</tr>
+			</table>
+			</td>
+		</tr>	
+		<tr>
+			<td>
+			<table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
+				<tr>
+					<td class="Popup_SeparatorBar_bg"></td>
+				</tr>
+			</table>
+			</td>
+		</tr>
+	</table>
+	<table cellspacing="0" cellpadding="0" width="100%">
+		<tr>
+			<td>
+			<div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
+			<table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">	
+				<tr>
+					<td class="TableEdition_OneCell_width"></td>
+					<td class="TableEdition_OneCell_width"></td>
+					<td class="TableEdition_OneCell_width"></td>
+					<td class="TableEdition_OneCell_width"></td>
+					<td class="TableEdition_OneCell_width"></td>
+					<td class="TableEdition_OneCell_width"></td>
+				</tr>	
+				<tr>
+					<td colspan="6">
+					<table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
+						<tr class="FieldGroup_TopMargin"></tr>
+						<tr>
+							<td class="FieldGroupTitle_Left">
+								<img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif" />
+							</td>
+							<td class="FieldGroupTitle">Primary Filters</td>
+							<td class="FieldGroupTitle_Right">
+								<img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif" />
+							</td>
+							<td class="FieldGroupContent"></td>	
+						</tr>
+						<tr class="FieldGroup_BottomMargin"></tr>
+					</table>
+					</td>
+				</tr>	
+				<tr></tr>	
+				<tr>
+					<td class="TitleCell"><span class="LabelText">Key</span></td>
+					<td class="TextBox_ContentCell">
+						<input class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpKey" value="" id="fieldKey" />
+					</td>	
+					<td></td>	
+					<td class="TitleCell"><span class="LabelText">Name</span></td>
+					<td class="TextBox_ContentCell">
+						<input class="dojoValidateValid TextBox_OneCell_width" name="inpName" value="" id="fieldName" type="text" />
+					</td>
+					<td></td>	
+				</tr>
+				<tr>
+					<td class="TitleCell"><span class="LabelText">Product Category</span></td>
+					<td class="Combo_ContentCell">
+						<select class="Combo Combo_OneCell_width" name="inpProductCategory" id="inpProductCategory">
+							<option value=""></option>
+							<div id="reportM_Product_Category_ID"></div>
+						</select>
+					</td>
+					<td />
+					<td />
+					<td />
+					<td />
+				</tr>	
+				<tr>
+					<td></td>
+					<td class="Button_LeftAlign_ContentCell">
+					<div>
+						<a class="ButtonLink" href="#"
+							onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
+							onblur="window.status=''; return true;"
+							onkeypress="this.className='ButtonLink_active'; return true;"
+							onkeyup="this.className='ButtonLink_focus'; return true;"
+							onclick="setFilters();return false;"
+							id="buttonSearch">
+								<table class="Button"
+									onmousedown="this.className='Button_active'; return true;"
+									onmouseup="this.className='Button'; return true;"
+									onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
+									onmouseout="this.className='Button'; window.status=''; return true;">
+									<tr>
+										<td class="Button_left">
+											<img class="Button_Icon Button_Icon_search" alt="Search"
+												title="Search" src="../../../../../web/images/blank.gif"
+												border="0" />
+										</td>
+										<td class="Button_text Button_width">Search</td>
+										<td class="Button_right"></td>
+									</tr>
+								</table>
+						</a>
+					</div>
+					</td>
+					<td></td>
+					<td></td>
+					<td></td>
+					<td></td>
+				</tr>	
+			</table>
+			</div>
+			</td>	
+		</tr>
+		<tr>
+	      <td>
+	        <div class="Popup_ContentPane_Client" style="overflow: hidden; height: 0px;" id="client_middle">
+	          <table summary="" id="sectionDetail">
+	            <tr>
+	              <td>
+	                <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
+	                  <tr class="DataGrid_Body_Row" id="grid_sample_header">
+	                    <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
+	                  </tr>
+	                  <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" onclick="selectActual(this); loadData('BBAccountingUser', '1000012', '', '1'); return true;" id="grid_sample_row">
+	                    <td class="DataGrid_Body_Cell">Loading...</td>
+	                  </tr>
+	                </table>
+	                <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
+	                  <tr>
+	                    <td>
+	                      <div id="grid" dojotype="openbravo:DataGrid"
+	                        structureurl="../info/ProductMultiple.html?Command=STRUCTURE"
+	                        dataurl="../info/ProductMultiple.html?Command=DATA"
+	                        updatesurl="../info/ProductMultiple.html?Command=DATA"
+	                        calculatenumrows="true" editable="false" sortable="true"
+	                        deleteable="true" oninvalidvalue="alert" onscroll="updateHeader"
+	                        ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
+	                        offset="0" sortcols="1" sortdirs="ASC" defaultrow="0"
+	                        maxwidth="99%" percentagewidthrelativetoid="client_middle"
+	                        multipleRowSelection="true"
+	                        preventcache="true" usecache="true" cachecontent="false">
+	                      </div>
+	                      <script>djConfig.searchIds.push("grid");</script>
+	                    </td>
+	                  </tr>
+	                </table>
+	              </td>
+	            </tr>
+	          </table>
+	        </div>
+	      </td>
+	    </tr>
+	    <tr>
+	      <td>
+	        <div class="Popup_ContentPane_Client" style="overflow: auto; height:50px;" id="client_bottom">
+	          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
+	            <tr>
+	              <td class="TableEdition_OneCell_width"></td>
+	              <td class="TableEdition_OneCell_width"></td>
+	              <td class="TableEdition_OneCell_width"></td>
+	              <td class="TableEdition_OneCell_width"></td>
+	              <td class="TableEdition_OneCell_width"></td>
+	              <td class="TableEdition_OneCell_width"></td>
+	            </tr>
+	            <tr>
+	              <td></td>
+	              <td></td>
+	              <td class="Button_RightAlign_ContentCell">
+	                <div>
+	                  <a class="ButtonLink" href="#"
+	                    onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
+	                    onblur="window.status=''; return true;"
+	                    onkeypress="this.className='ButtonLink_active'; return true;"
+	                    onkeyup="this.className='ButtonLink_focus'; return true;"
+	                    onclick="depurarSelector('SAVE');return false;"
+	                    id="buttonOK">
+	                    <table class="Button"
+	                      onmousedown="this.className='Button_active'; return true;"
+	                      onmouseup="this.className='Button'; return true;"
+	                      onmouseover="this.className='Button_hover'; window.status='OK'; return true;"
+	                      onmouseout="this.className='Button'; window.status=''; return true;">
+	                      <tr>
+	                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="OK" title="OK" src="../../../../../web/images/blank.gif" border=0/></td>
+	                        <td class="Button_text Button_width">OK</td>
+	                        <td class="Button_right"></td>
+	                      </tr>
+	                    </table>
+	                  </a>
+	                </div>
+	              </td>
+	              <td class="Button_LeftAlign_ContentCell">
+	                <div>
+	                  <a class="ButtonLink" href="#"
+	                    onfocus="setWindowElementFocus(this); window.status='Cancel'; return true;"
+	                    onblur="window.status=''; return true;"
+	                    onkeypress="this.className='ButtonLink_active'; return true;"
+	                    onkeyup="this.className='ButtonLink_focus'; return true;"
+	                    onclick="depurarSelector('CLEAR');return false;">
+	                    <table class="Button"
+	                      onmousedown="this.className='Button_active'; return true;"
+	                      onmouseup="this.className='Button'; return true;"
+	                      onmouseover="this.className='Button_hover'; window.status='Cancel'; return true;"
+	                      onmouseout="this.className='Button'; window.status=''; return true;">
+	                      <tr>
+	                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border=0/></td>
+	                        <td class="Button_text Button_width">Cancel</td>
+	                        <td class="Button_right"></td>
+	                      </tr>
+	                    </table>
+	                  </a>
+	                </div>
+	              </td>
+	              <td></td>
+	              <td></td>
+	            </tr>
+	          </table>
+	        </div>
+	      </td>
+	    </tr>
+	</table>
+</form>
+</body>
+</html>