src/org/openbravo/erpCommon/info/Product.html
author Iván Perdomo <ivan.perdomo@openbravo.com>
Mon, 21 Apr 2008 19:06:47 +0000
changeset 712 aa0c40278c5a
child 799 fef2c5e2feb7
permissions -rw-r--r--
Merged changes from ajaxgrids branch.
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 selector</title>
ivan@712
    22
ivan@712
    23
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></link>
ivan@712
    24
ivan@712
    25
<script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
ivan@712
    26
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
ivan@712
    27
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
ivan@712
    28
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
ivan@712
    29
<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
ivan@712
    30
<script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
ivan@712
    31
<script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></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
<script language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></script>
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
ivan@712
    41
<link rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"></link> 
ivan@712
    42
<script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://yourSite/web/";</script>
ivan@712
    43
<script language="JavaScript" type="text/javascript" id="paramLanguage">  LNG_POR_DEFECTO = "en_US";</script>
ivan@712
    44
ivan@712
    45
<script language="JavaScript" type="text/javascript">
ivan@712
    46
  function depurar() {
ivan@712
    47
    var frm = document.frmSelector;
ivan@712
    48
    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) {
ivan@712
    49
      frm.inpKey.focus();
ivan@712
    50
      mensaje(7);
ivan@712
    51
      return false;
ivan@712
    52
    }
ivan@712
    53
    return true;
ivan@712
    54
  }
ivan@712
    55
</script>
ivan@712
    56
<script type="text/javascript">    
ivan@712
    57
  function depurarSelector(action) {
ivan@712
    58
    var pos; var keys;  var clave; var texto; var parameter;
ivan@712
    59
    if(action == "SAVE") {
ivan@712
    60
      pos = getSelectedPos();
ivan@712
    61
      keys = getSelectedValues().split("#")
ivan@712
    62
      clave = keys[0];
ivan@712
    63
      texto = keys[1];
ivan@712
    64
      parameter = new Array(
ivan@712
    65
        new SearchElements("_UOM", true, keys[2]),
ivan@712
    66
        new SearchElements("_PLIST", true, keys[3]),
ivan@712
    67
        new SearchElements("_PSTD", true, keys[4]),
ivan@712
    68
        new SearchElements("_PLIM", true, keys[5]),
ivan@712
    69
        new SearchElements("_CURR", true, keys[6])
ivan@712
    70
      );
ivan@712
    71
    }    
ivan@712
    72
  	parent.opener.closeSearch(action, clave, texto, parameter);
ivan@712
    73
  }
ivan@712
    74
</script>
ivan@712
    75
<script language="JavaScript" type="text/javascript" id="selectedColumn">
ivan@712
    76
  
ivan@712
    77
  dojo.require("openbravo.widget.DataGrid");
ivan@712
    78
  var selectedRow = 0;
ivan@712
    79
  var orderByPositions = new Array("1");
ivan@712
    80
  var orderByDirections = new Array("ASC");
ivan@712
    81
</script>
ivan@712
    82
<script language="JavaScript" type="text/javascript">
ivan@712
    83
ivan@712
    84
function onloadFunctions() {
ivan@712
    85
	new TypeAheadCombo("sectionWarehouse");
ivan@712
    86
	new TypeAheadCombo("sectionPriceList");
ivan@712
    87
}
ivan@712
    88
</script>
ivan@712
    89
	<script language="JavaScript" type="text/javascript">
ivan@712
    90
	function onLoadDo(){
ivan@712
    91
		this.windowTables = new Array(
ivan@712
    92
      new windowTableId('client_top', null, 'buttonSearch', null),
ivan@712
    93
      new windowTableId('client_middle', null, 'buttonOK', null),
ivan@712
    94
      new windowTableId('client_bottom', null, 'buttonOK', null)
ivan@712
    95
		);
ivan@712
    96
		setWindowTableParentElement();
ivan@712
    97
		enableShortcuts('popup');
ivan@712
    98
ivan@712
    99
		try {
ivan@712
   100
		  onloadFunctions();
ivan@712
   101
		} catch (e) {}
ivan@712
   102
ivan@712
   103
		setWindowElementFocus('firstElement');
ivan@712
   104
    resizeAreaInfo();
ivan@712
   105
	}
ivan@712
   106
ivan@712
   107
	function onResizeDo(){
ivan@712
   108
     resizeAreaInfo(true);
ivan@712
   109
	}
ivan@712
   110
	</script>
ivan@712
   111
</head>
ivan@712
   112
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
ivan@712
   113
<form name="frmProducto" method="POST" action="Product.html">
ivan@712
   114
  <input type="hidden" name="Command"></input>
ivan@712
   115
  <input type="hidden" name="IsPopUpCall" value="1"></input>
ivan@712
   116
	<div id="ReducedSearch">
ivan@712
   117
    <input type="hidden" name="inpWarehouse" id="paramWarehouse" value=""></input> 
ivan@712
   118
    <input type="hidden" name="inpPriceListVersion" id="paramPriceListVersion" value=""></input>
ivan@712
   119
   </div>
ivan@712
   120
  
ivan@712
   121
  <div class="Popup_ContentPane_CircleLogo">
ivan@712
   122
    <div class="Popup_WindowLogo">
ivan@712
   123
      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_product" src="../../../../../web/images/blank.gif" border=0/></img>
ivan@712
   124
    </div>
ivan@712
   125
  </div>
ivan@712
   126
ivan@712
   127
<table cellspacing="0" cellpadding="0" width="100%" id="table_header">
ivan@712
   128
ivan@712
   129
  <tr>
ivan@712
   130
    <td>
ivan@712
   131
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
ivan@712
   132
        <tr class="Popup_NavBar_bg"><td></td>
ivan@712
   133
          <td class="Popup_NavBar_separator_cell"></td>
ivan@712
   134
          <td class="Popup_NavBar_bg_logo_left"></td>
ivan@712
   135
          <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>
ivan@712
   136
          <td class="Popup_NavBar_bg_logo_right"></td>
ivan@712
   137
          <td class="Popup_NavBar_Popup_title_cell"><span>Product Selector</span></a></td>
ivan@712
   138
          <td class="Popup_NavBar_separator_cell"></td>
ivan@712
   139
        </tr>
ivan@712
   140
      </table>
ivan@712
   141
    </td>
ivan@712
   142
  </tr>
ivan@712
   143
ivan@712
   144
  <tr>
ivan@712
   145
    <td>
ivan@712
   146
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
ivan@712
   147
        <tr>
ivan@712
   148
          <td class="Popup_SeparatorBar_bg"></td>
ivan@712
   149
        </tr>
ivan@712
   150
      </table>
ivan@712
   151
    </td>
ivan@712
   152
  </tr>
ivan@712
   153
  
ivan@712
   154
  </table>
ivan@712
   155
ivan@712
   156
  <table cellspacing="0" cellpadding="0" width="100%">
ivan@712
   157
ivan@712
   158
   <tr>
ivan@712
   159
    <td>
ivan@712
   160
      <div class="Popup_ContentPane_Client" style="overflow: auto; auto; height:185px;" id="client_top">
ivan@712
   161
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
ivan@712
   162
ivan@712
   163
          <tr>
ivan@712
   164
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   165
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   166
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   167
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   168
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   169
            <td class="TableEdition_OneCell_width"></td>
ivan@712
   170
          </tr>
ivan@712
   171
ivan@712
   172
          <tr>
ivan@712
   173
          <td colspan="6">
ivan@712
   174
            <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
ivan@712
   175
              <tr class="FieldGroup_TopMargin"></tr>
ivan@712
   176
              <tr>
ivan@712
   177
                <td class="FieldGroupTitle_Left"><IMG class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></td>
ivan@712
   178
                <td class="FieldGroupTitle">Primary Filters</td>
ivan@712
   179
                <td class="FieldGroupTitle_Right"><IMG class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></td>
ivan@712
   180
                <td class="FieldGroupContent"></td>
ivan@712
   181
ivan@712
   182
              </tr>
ivan@712
   183
              <tr class="FieldGroup_BottomMargin"></tr>
ivan@712
   184
            </table>
ivan@712
   185
          </td>
ivan@712
   186
          </tr>
ivan@712
   187
         
ivan@712
   188
       </tr>
ivan@712
   189
  
ivan@712
   190
       <tr>
ivan@712
   191
         <td class="TitleCell"><span class="LabelText">Key</span></td>
ivan@712
   192
         <td class="TextBox_ContentCell"> <input class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpKey" value="" id="fieldKey"/></td>
ivan@712
   193
         
ivan@712
   194
         <td></td>
ivan@712
   195
ivan@712
   196
         
ivan@712
   197
         <td class="TitleCell"><span class="LabelText">Name</span></td>
ivan@712
   198
         <td class="TextBox_ContentCell"> <input class="dojoValidateValid TextBox_OneCell_width" name="inpName" value="" id="fieldName" type="text"/></td>
ivan@712
   199
ivan@712
   200
         <td></td>
ivan@712
   201
                  
ivan@712
   202
	       </tr>
ivan@712
   203
	       <tr>
ivan@712
   204
	         <td class="TitleCell"><span class="LabelText">Warehouse</span></td>
ivan@712
   205
	          <td colspan="2" class="Combo_ContentCell">
ivan@712
   206
	            <select class="Combo Combo_TwoCells_width" name="inpWarehouse" id="sectionWarehouse">
ivan@712
   207
	              <option value="" id="fieldWarehouse">xxStandard - Standard</option>
ivan@712
   208
	            </select>
ivan@712
   209
	          </td>
ivan@712
   210
	          <td class="TitleCell"><span class="LabelText">Price list version</span></td>
ivan@712
   211
	          <td colspan="2" class="Combo_ContentCell">
ivan@712
   212
	            <select class="Combo Combo_TwoCells_width" name="inpPriceListVersion" id="sectionPriceList">
ivan@712
   213
	              <option value="" id="fieldPriceList">xxStandard 2001-01-01-USO</option>
ivan@712
   214
	            </select>
ivan@712
   215
	          </td>
ivan@712
   216
		       </tr>
ivan@712
   217
		       <tr>
ivan@712
   218
            <td></td>
ivan@712
   219
            <td class="Button_LeftAlign_ContentCell">
ivan@712
   220
              <div>
ivan@712
   221
                  <a class="ButtonLink" href="#"
ivan@712
   222
                    onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
ivan@712
   223
                    onblur="window.status=''; return true;"
ivan@712
   224
                    onkeypress="this.className='ButtonLink_active'; return true;"
ivan@712
   225
                    onkeyup="this.className='ButtonLink_focus'; return true;"
ivan@712
   226
                    onclick="setFilters();return false;"
ivan@712
   227
                    id="buttonSearch">
ivan@712
   228
                    <table class="Button"
ivan@712
   229
                      onmousedown="this.className='Button_active'; return true;"
ivan@712
   230
                      onmouseup="this.className='Button'; return true;"
ivan@712
   231
                      onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
ivan@712
   232
                      onmouseout="this.className='Button'; window.status=''; return true;">
ivan@712
   233
                      <tr>
ivan@712
   234
                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border=0/></td>
ivan@712
   235
                        <td class="Button_text Button_width">Search</td>
ivan@712
   236
                        <td class="Button_right"></td>
ivan@712
   237
                      </tr>
ivan@712
   238
                    </table>
ivan@712
   239
                  </a>
ivan@712
   240
              </div>
ivan@712
   241
            </td>
ivan@712
   242
            <td></td>
ivan@712
   243
            <td></td>
ivan@712
   244
            <td></td>
ivan@712
   245
            <td></td>
ivan@712
   246
          </tr>
ivan@712
   247
        </table>
ivan@712
   248
        </div>
ivan@712
   249
      </td>
ivan@712
   250
    </tr>
ivan@712
   251
    <tr>
ivan@712
   252
      <td>
ivan@712
   253
        <div class="Popup_ContentPane_Client" style="overflow: hidden; height: 0px;" id="client_middle">
ivan@712
   254
          <table summary="" id="sectionDetail">
ivan@712
   255
            <tr>
ivan@712
   256
              <td>
ivan@712
   257
                <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
ivan@712
   258
                  <tr class="DataGrid_Body_Row" id="grid_sample_header">
ivan@712
   259
                    <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
ivan@712
   260
                  </tr>
ivan@712
   261
                  <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" id="grid_sample_row">
ivan@712
   262
                    <td class="DataGrid_Body_Cell">Loading...</td>
ivan@712
   263
                  </tr>
ivan@712
   264
                </table>
ivan@712
   265
                <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
ivan@712
   266
                  <tr>
ivan@712
   267
                    <td>
ivan@712
   268
                      <div id="grid" dojotype="openbravo:DataGrid"
ivan@712
   269
                        structureurl="../info/Product.html?Command=STRUCTURE"
ivan@712
   270
                        dataurl="../info/Product.html?Command=DATA"
ivan@712
   271
                        updatesurl="../info/Product.html?Command=DATA"
ivan@712
   272
                        calculatenumrows="true" editable="false" sortable="true"
ivan@712
   273
                        deleteable="true" oninvalidvalue="alert" onscroll="updateHeader"
ivan@712
   274
                        ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
ivan@712
   275
                        offset="0" sortcols="1" sortdirs="ASC" defaultrow="0"
ivan@712
   276
                        maxwidth="99%" percentagewidthrelativetoid="client_middle"
ivan@712
   277
                        multipleRowSelection="false"
ivan@712
   278
                        preventcache="true" usecache="true" cachecontent="false">
ivan@712
   279
                      </div>
ivan@712
   280
                      <script>djConfig.searchIds.push("grid");</script>
ivan@712
   281
                    </td>
ivan@712
   282
                  </tr>
ivan@712
   283
                </table>
ivan@712
   284
              </td>
ivan@712
   285
            </tr>
ivan@712
   286
          </table>
ivan@712
   287
        </div>
ivan@712
   288
      </td>
ivan@712
   289
    </tr>
ivan@712
   290
    <tr>
ivan@712
   291
      <td>
ivan@712
   292
        <div class="Popup_ContentPane_Client" style="overflow: auto; height:50px;" id="client_bottom">
ivan@712
   293
          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
ivan@712
   294
ivan@712
   295
            <tr>
ivan@712
   296
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   297
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   298
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   299
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   300
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   301
              <td class="TableEdition_OneCell_width"></td>
ivan@712
   302
            </tr>
ivan@712
   303
            <tr>
ivan@712
   304
              <td></td>
ivan@712
   305
              <td></td>
ivan@712
   306
              <td class="Button_RightAlign_ContentCell">
ivan@712
   307
                <div>
ivan@712
   308
                  <a class="ButtonLink" href="#"
ivan@712
   309
                    onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
ivan@712
   310
                    onblur="window.status=''; return true;"
ivan@712
   311
                    onkeypress="this.className='ButtonLink_active'; return true;"
ivan@712
   312
                    onkeyup="this.className='ButtonLink_focus'; return true;"
ivan@712
   313
                    onclick="depurarSelector('SAVE');return false;"
ivan@712
   314
                    id="buttonOK">
ivan@712
   315
                    <table class="Button"
ivan@712
   316
                      onmousedown="this.className='Button_active'; return true;"
ivan@712
   317
                      onmouseup="this.className='Button'; return true;"
ivan@712
   318
                      onmouseover="this.className='Button_hover'; window.status='OK'; return true;"
ivan@712
   319
                      onmouseout="this.className='Button'; window.status=''; return true;">
ivan@712
   320
                      <tr>
ivan@712
   321
                        <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
   322
                        <td class="Button_text Button_width">OK</td>
ivan@712
   323
                        <td class="Button_right"></td>
ivan@712
   324
                      </tr>
ivan@712
   325
                    </table>
ivan@712
   326
                  </a>
ivan@712
   327
                </div>
ivan@712
   328
              </td>
ivan@712
   329
              <td class="Button_LeftAlign_ContentCell">
ivan@712
   330
                <div>
ivan@712
   331
                  <a class="ButtonLink" href="#"
ivan@712
   332
                    onfocus="setWindowElementFocus(this); window.status='Cancel'; return true;"
ivan@712
   333
                    onblur="window.status=''; return true;"
ivan@712
   334
                    onkeypress="this.className='ButtonLink_active'; return true;"
ivan@712
   335
                    onkeyup="this.className='ButtonLink_focus'; return true;"
ivan@712
   336
                    onclick="depurarSelector('CLEAR');return false;">
ivan@712
   337
                    <table class="Button"
ivan@712
   338
                      onmousedown="this.className='Button_active'; return true;"
ivan@712
   339
                      onmouseup="this.className='Button'; return true;"
ivan@712
   340
                      onmouseover="this.className='Button_hover'; window.status='Cancel'; return true;"
ivan@712
   341
                      onmouseout="this.className='Button'; window.status=''; return true;">
ivan@712
   342
                      <tr>
ivan@712
   343
                        <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
   344
                        <td class="Button_text Button_width">Cancel</td>
ivan@712
   345
                        <td class="Button_right"></td>
ivan@712
   346
                      </tr>
ivan@712
   347
                    </table>
ivan@712
   348
                  </a>
ivan@712
   349
                </div>
ivan@712
   350
              </td>
ivan@712
   351
              <td></td>
ivan@712
   352
              <td></td>
ivan@712
   353
            </tr>
ivan@712
   354
          </table>
ivan@712
   355
        </div>
ivan@712
   356
      </td>
ivan@712
   357
    </tr>    
ivan@712
   358
  </table>
ivan@712
   359
</form>
ivan@712
   360
</body>
ivan@712
   361
</HTML>