src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 987 29550073f826
child 1044 8691bbc94032
permissions -rw-r--r--
Manual windows of bug 0000436 Blank required fields don't take the focus
juanpablo@378
     1
<!--
juanpablo@378
     2
 *************************************************************************
juanpablo@378
     3
 * The contents of this file are subject to the Openbravo  Public  License
juanpablo@378
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@378
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@378
     6
 * file except in compliance with the License. You  may  obtain  a copy of
juanpablo@378
     7
 * the License at http://www.openbravo.com/legal/license.html 
juanpablo@378
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@378
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@378
    10
 * License for the specific  language  governing  rights  and  limitations
juanpablo@378
    11
 * under the License. 
juanpablo@378
    12
 * The Original Code is Openbravo ERP. 
juanpablo@378
    13
 * The Initial Developer of the Original Code is Openbravo SL 
juanpablo@378
    14
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
juanpablo@378
    15
 * All Rights Reserved. 
juanpablo@378
    16
 * Contributor(s):  ______________________________________.
juanpablo@378
    17
 ************************************************************************
juanpablo@378
    18
-->
juanpablo@378
    19
<HTML>
juanpablo@378
    20
<HEAD>
juanpablo@378
    21
<TITLE>Create from.. (massive)</TITLE>
juanpablo@378
    22
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"></META> 
juanpablo@378
    23
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
juanpablo@378
    24
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">  LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    25
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://openbravo/web/";</SCRIPT>
asier@528
    26
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    27
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    28
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    29
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
juanpablo@378
    30
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
juanpablo@378
    31
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    32
juanpablo@378
    33
juanpablo@378
    34
function debugSearch(key, text, keyField) {
juanpablo@378
    35
  if (keyField=="inpmProductId") {
juanpablo@378
    36
    calloutSL_CreateFromMultiple_Product(keyField);
juanpablo@378
    37
  }
juanpablo@378
    38
return true;
juanpablo@378
    39
}
juanpablo@378
    40
juanpablo@378
    41
function actualizarDatos(combo) {
juanpablo@378
    42
  cambiarListaCombo(document.frmMain.inpmLocatorX, arrLocator, combo.options[combo.selectedIndex].value, false);
juanpablo@378
    43
}
juanpablo@378
    44
juanpablo@378
    45
function calloutSL_CreateFromMultiple_Warehouse(changedField) {
juanpablo@378
    46
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Warehouse.html', 'frameOcultoButton');
juanpablo@378
    47
return true;
juanpablo@378
    48
}
juanpablo@378
    49
juanpablo@378
    50
function calloutSL_CreateFromMultiple_Product(changedField) {
juanpablo@378
    51
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Product.html', 'frameOcultoButton');
juanpablo@378
    52
return true;
juanpablo@378
    53
}
juanpablo@378
    54
juanpablo@378
    55
function calloutSL_CreateFromMultiple_Conversion(changedField) {
juanpablo@378
    56
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Conversion.html', 'frameOcultoButton');
juanpablo@378
    57
return true;
juanpablo@378
    58
}
juanpablo@378
    59
juanpablo@378
    60
function displayLogic() {
juanpablo@378
    61
  if (inputValue(document.frmMain.inphasseconduom) == 1) {
juanpablo@378
    62
    displayLogicElement('paramUOMOrder', true);
juanpablo@378
    63
  } else {
juanpablo@378
    64
    displayLogicElement('paramUOMOrder', false);
juanpablo@378
    65
  }
juanpablo@378
    66
}
juanpablo@378
    67
juanpablo@378
    68
function depurar(action) {
juanpablo@378
    69
  var frm=document.frmMain;
juanpablo@378
    70
  if (frm.inpmProductId.value==null || frm.inpmProductId.value=="") {
gorka@1028
    71
    setWindowElementFocus(frm.inpmProductId_DES);
juanpablo@378
    72
  mensaje(7);
juanpablo@378
    73
  return false;
juanpablo@378
    74
  } else if (frm.inpmovementqty.value==null || frm.inpmovementqty.value=="") {
gorka@1028
    75
    setWindowElementFocus(frm.inpmovementqty);
juanpablo@378
    76
  mensaje(7);
juanpablo@378
    77
  return false;
juanpablo@378
    78
  } else if (frm.inpnumerolineas.value==null || frm.inpnumerolineas.value=="") {
gorka@1028
    79
    setWindowElementFocus(frm.inpnumerolineas);
juanpablo@378
    80
  mensaje(7);
juanpablo@378
    81
  return false;
juanpablo@378
    82
  }
juanpablo@378
    83
  return true;
juanpablo@378
    84
}
juanpablo@378
    85
juanpablo@378
    86
function onloadFunctions() {
ivan@770
    87
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete.html', 'SELECTOR_PRODUCT', true, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null");
juanpablo@378
    88
}
juanpablo@378
    89
</SCRIPT>
asier@528
    90
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    91
	function onLoadDo(){
asier@528
    92
		this.windowTables = new Array(
asier@528
    93
		  new windowTableId('client', 'frameButton'),
asier@528
    94
		  new windowTableId('tdbottomButtons', 'frameButton2')
asier@528
    95
		);
asier@528
    96
		setWindowTableParentElement();
asier@528
    97
		enableShortcuts('popup');
asier@528
    98
		
asier@528
    99
		try {
asier@528
   100
		  onloadFunctions();
asier@528
   101
		} catch (e) {}
asier@528
   102
asier@528
   103
		setWindowElementFocus('firstElement');
asier@528
   104
	}
asier@528
   105
asier@528
   106
	function onResizeDo(){
asier@528
   107
	}
asier@528
   108
	</SCRIPT>
juanpablo@378
   109
</HEAD>
asier@528
   110
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
   111
<FORM id="form" method="POST" action="../ad_actionButton/CreateFromMultiple_F1.html" name="frmMain">
juanpablo@378
   112
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
   113
  <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
juanpablo@378
   114
  <INPUT type="hidden" name="inphasseconduom" value="0"></INPUT>
juanpablo@378
   115
  <INPUT type="hidden" name="inpmInoutId" value="" id="paramKey"></INPUT>
juanpablo@378
   116
  <INPUT type="hidden" name="inpWindowId" value="" id="paramWindowId"></INPUT> 
juanpablo@378
   117
  <INPUT type="hidden" name="inpTabId" value="" id="paramTabId"></INPUT>
juanpablo@378
   118
  <INPUT type="hidden" name="inpissotrx" value="" id="paramisSOTrx"></INPUT>
juanpablo@378
   119
  <INPUT type="hidden" name="inpBPartner" value="" id="parambpartner"></INPUT> 
juanpablo@378
   120
  <TABLE width="45%" cellspacing="0" cellpadding="0" border="1" >
juanpablo@378
   121
    <TR> 
asier@528
   122
      <TD id="processDescription">&nbsp;</TD>
juanpablo@378
   123
    </TR>
juanpablo@378
   124
    <TR></TR>
juanpablo@378
   125
    <TR> 
juanpablo@378
   126
      <TD id="helpDiscard" > <div  id="processHelp">&nbsp;</div></TD>
juanpablo@378
   127
    </TR>
juanpablo@378
   128
  </TABLE>
juanpablo@378
   129
  <BR></BR>
asier@528
   130
  <TABLE border="0" cellspacing="0" cellpadding="0" id="client">
juanpablo@378
   131
    <TR> 
juanpablo@378
   132
      <TD width="127" > <SPAN >Product:</SPAN></TD>
juanpablo@378
   133
      <TD colspan="3" > <INPUT type="hidden" name="inpmProductId"></INPUT> 
juanpablo@378
   134
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   135
          <TR> 
juanpablo@378
   136
            <TD > <INPUT type="text" name="inpmProductId_DES" size="40"></INPUT>
juanpablo@378
   137
            </TD>
ivan@770
   138
            <TD > <A href="#" onclick="openSearch(null, null, '../info/ProductComplete.html', 'SELECTOR_PRODUCT', true, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value,'inpBPartner', document.frmMain.inpBPartner.value);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   139
              <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   140
          </TR>
juanpablo@378
   141
        </TABLE>
juanpablo@378
   142
        <INPUT type="hidden" name="inpmProductId_LOC"></INPUT>
juanpablo@378
   143
        <INPUT type="hidden" name="inpmProductId_ATR"></INPUT>
juanpablo@378
   144
        <INPUT type="hidden" name="inpmProductId_PQTY"></INPUT>
juanpablo@378
   145
        <INPUT type="hidden" name="inpmProductId_PUOM"></INPUT>
juanpablo@378
   146
        <INPUT type="hidden" name="inpmProductId_QTY"></INPUT>
juanpablo@378
   147
        <INPUT type="hidden" name="inpmProductId_UOM"></INPUT>
juanpablo@378
   148
        <INPUT type="hidden" name="inpmProductId_PLIST"></INPUT>
juanpablo@378
   149
        <INPUT type="hidden" name="inpmProductId_PSTD"></INPUT>
juanpablo@378
   150
        <INPUT type="hidden" name="inpmProductId_PLIM"></INPUT>
juanpablo@378
   151
        <INPUT type="hidden" name="inpmProductId_CURR"></INPUT>
juanpablo@378
   152
      </TD>
juanpablo@378
   153
    </TR>
juanpablo@378
   154
    <TR> 
juanpablo@378
   155
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   156
    </TR>
juanpablo@378
   157
    <TR> 
juanpablo@378
   158
      <TD > <SPAN >Product values</SPAN></TD>
juanpablo@378
   159
      <TD colspan="3" > <HR></HR>
juanpablo@378
   160
      </TD>
juanpablo@378
   161
    </TR>
juanpablo@378
   162
    <TR> 
juanpablo@378
   163
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   164
    </TR>
juanpablo@378
   165
    <TR> 
juanpablo@378
   166
      <TD > <SPAN >Attribute value:</SPAN></TD>
juanpablo@378
   167
      <TD colspan="3" > <INPUT type="hidden" name="inpmAttributesetinstanceId"></INPUT> 
juanpablo@378
   168
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   169
          <TR> 
juanpablo@378
   170
            <TD > <INPUT type="text" size="20"  name="inpmAttributesetinstanceId_D" readonly="true"></INPUT>
juanpablo@378
   171
            </TD>
david@987
   172
            <TD > <A href="#" onclick="openPAttribute(null, null, '../info/AttributeSetInstance.html', null, false, 'frmMain', 'inpmAttributesetinstanceId', 'inpmAttributesetinstanceId_D', document.frmMain.inpmAttributesetinstanceId_D.value, 'WindowID', document.frmMain.inpWindowId.value, 'inpKeyValue', document.frmMain.inpmAttributesetinstanceId.value, 'inpwindowId', document.frmMain.inpWindowId.value, 'inpProduct', document.frmMain.inpmProductId.value);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   173
            <img  alt="Attribute Set Instance" title="Attribute set instance" width="16" height="16" border="0" src="../../../../../web/images/AttributeSetInstance.jpg"></IMG></A></TD>
juanpablo@378
   174
          </TR>
juanpablo@378
   175
        </TABLE></TD>
juanpablo@378
   176
    </TR>
juanpablo@378
   177
    <TR> 
juanpablo@378
   178
      <TD > <SPAN >Quantity:</SPAN></TD>
juanpablo@378
   179
      <TD > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   180
          <TR> 
david@699
   181
            <TD > <INPUT type="text" onkeydown="auto_complete_number(this, true, true);return true;" size="10"  maxlength="10" name="inpmovementqty"></INPUT>
juanpablo@378
   182
            </TD>
juanpablo@378
   183
            <TD > <A href="#" onclick="calculator('frmMain.inpmovementqty', document.frmMain.inpmovementqty.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calculator';return true;" > 
juanpablo@378
   184
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   185
          </TR>
juanpablo@378
   186
        </TABLE></TD>
juanpablo@378
   187
      <TD > <SPAN >Unit:</SPAN></TD>
juanpablo@378
   188
      <TD > <SELECT name="inpcUomId" readonly="true" onchange="selectCombo(this, '');return true;"  id="reportC_UOM_ID">
juanpablo@378
   189
        </SELECT></TD>
juanpablo@378
   190
    </TR>
juanpablo@378
   191
    <TR id="paramUOMOrder" style="display:none;"> 
juanpablo@378
   192
      <TD > <SPAN >Order Qty</SPAN></TD>
juanpablo@378
   193
      <TD > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   194
          <TR> 
david@699
   195
            <TD > <INPUT type="text" onkeydown="auto_complete_number(this, true, true);return true;" size="10"  maxlength="10" name="inpquantityorder"></INPUT>
juanpablo@378
   196
            </TD>
juanpablo@378
   197
            <TD > <A href="#" onclick="calculator('frmMain.inpmovementqty', document.frmMain.inpmovementqty.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calculator';return true;" > 
juanpablo@378
   198
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   199
          </TR>
juanpablo@378
   200
        </TABLE></TD>
juanpablo@378
   201
      <TD > <SPAN >Order unit:</SPAN></TD>
juanpablo@378
   202
      <TD > <SELECT name="inpmProductUomId" onchange="calloutSL_CreateFromMultiple_Conversion(this.name);" id="inpmProductUomId">
juanpablo@378
   203
        </SELECT></TD>
juanpablo@378
   204
    </TR>
juanpablo@378
   205
    <TR> 
juanpablo@378
   206
      <TD > <SPAN >Warehouse:</SPAN></TD>
juanpablo@378
   207
          <td >
juanpablo@378
   208
        <SELECT name="inpmWarehouseId" id="reportM_WAREHOUSE_ID" onChange="calloutSL_CreateFromMultiple_Warehouse(this.name);return true;">
juanpablo@378
   209
        </SELECT></TD>
asier@799
   210
      <TD colspan="2">&nbsp;</TD>
juanpablo@378
   211
    </TR>
juanpablo@378
   212
    <TR> 
juanpablo@378
   213
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   214
    </TR>
juanpablo@378
   215
    <TR> 
juanpablo@378
   216
      <TD > <SPAN >Location values</SPAN></TD>
juanpablo@378
   217
      <TD colspan="3" > <HR></HR>
juanpablo@378
   218
      </TD>
juanpablo@378
   219
    </TR>
juanpablo@378
   220
    <TR> 
juanpablo@378
   221
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   222
    </TR>
juanpablo@378
   223
    <TR> 
juanpablo@378
   224
    <TD > <SPAN >Corridor</SPAN></TD>
juanpablo@378
   225
          <td ><SELECT name="inpmLocatorX" class="CampoUpdateable" id="reportM_LOCATOR_X">
juanpablo@378
   226
        <option value=""></option>
juanpablo@378
   227
        </SELECT></TD>
juanpablo@378
   228
                <td ><span >Locator type:&nbsp;</span></td>
juanpablo@378
   229
          <td ><SELECT name="inpmLocatorType" class="CampoUpdateable">
juanpablo@378
   230
        <option value=""></option>
juanpablo@378
   231
        <DIV id="reportM_LOCATOR_TYPE">
juanpablo@378
   232
                </select></td>
juanpablo@378
   233
        <td ><span >No. lines:&nbsp;</span></td>
juanpablo@378
   234
      <TD colspan="3" > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   235
          <TR> 
david@699
   236
            <TD > <INPUT type="text" onkeydown="auto_complete_number(this, false, false);return true;" size="10"  maxlength="10" name="inpnumerolineas"></INPUT>
juanpablo@378
   237
            </TD>
juanpablo@378
   238
            <TD > <A href="#" onclick="calculator('frmMain.inpnumerolineas', document.frmMain.inpnumerolineas.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calculator';return true;" > 
juanpablo@378
   239
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   240
          </TR>
juanpablo@378
   241
        </TABLE></TD>
juanpablo@378
   242
    </TR>
juanpablo@378
   243
  </TABLE>
juanpablo@378
   244
</FORM>
juanpablo@378
   245
</BODY>
juanpablo@378
   246
</HTML>