src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html
author Asier Lostalé <asier.lostale@openbravo.com>
Thu, 13 Mar 2008 14:33:37 +0000
changeset 528 7aa737db257f
parent 378 5c93458e2916
child 699 39d08e914302
permissions -rw-r--r--
Merge with keyboard shortcuts r2897
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" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
juanpablo@378
    32
<SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
juanpablo@378
    33
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    34
juanpablo@378
    35
juanpablo@378
    36
function debugSearch(key, text, keyField) {
juanpablo@378
    37
  if (keyField=="inpmProductId") {
juanpablo@378
    38
    calloutSL_CreateFromMultiple_Product(keyField);
juanpablo@378
    39
  }
juanpablo@378
    40
return true;
juanpablo@378
    41
}
juanpablo@378
    42
juanpablo@378
    43
function actualizarDatos(combo) {
juanpablo@378
    44
  cambiarListaCombo(document.frmMain.inpmLocatorX, arrLocator, combo.options[combo.selectedIndex].value, false);
juanpablo@378
    45
}
juanpablo@378
    46
juanpablo@378
    47
function calloutSL_CreateFromMultiple_Warehouse(changedField) {
juanpablo@378
    48
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Warehouse.html', 'frameOcultoButton');
juanpablo@378
    49
return true;
juanpablo@378
    50
}
juanpablo@378
    51
juanpablo@378
    52
function calloutSL_CreateFromMultiple_Product(changedField) {
juanpablo@378
    53
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Product.html', 'frameOcultoButton');
juanpablo@378
    54
return true;
juanpablo@378
    55
}
juanpablo@378
    56
juanpablo@378
    57
function calloutSL_CreateFromMultiple_Conversion(changedField) {
juanpablo@378
    58
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SL_CreateFromMultiple_Conversion.html', 'frameOcultoButton');
juanpablo@378
    59
return true;
juanpablo@378
    60
}
juanpablo@378
    61
juanpablo@378
    62
function displayLogic() {
juanpablo@378
    63
  if (inputValue(document.frmMain.inphasseconduom) == 1) {
juanpablo@378
    64
    displayLogicElement('paramUOMOrder', true);
juanpablo@378
    65
  } else {
juanpablo@378
    66
    displayLogicElement('paramUOMOrder', false);
juanpablo@378
    67
  }
juanpablo@378
    68
}
juanpablo@378
    69
juanpablo@378
    70
function depurar(action) {
juanpablo@378
    71
  var frm=document.frmMain;
juanpablo@378
    72
  if (frm.inpmProductId.value==null || frm.inpmProductId.value=="") {
juanpablo@378
    73
    frm.inpmProductId_DES.focus();
juanpablo@378
    74
  mensaje(7);
juanpablo@378
    75
  return false;
juanpablo@378
    76
  } else if (frm.inpmovementqty.value==null || frm.inpmovementqty.value=="") {
juanpablo@378
    77
    frm.inpmovementqty.focus();
juanpablo@378
    78
  mensaje(7);
juanpablo@378
    79
  return false;
juanpablo@378
    80
  } else if (frm.inpnumerolineas.value==null || frm.inpnumerolineas.value=="") {
juanpablo@378
    81
    frm.inpnumerolineas.focus();
juanpablo@378
    82
  mensaje(7);
juanpablo@378
    83
  return false;
juanpablo@378
    84
  }
juanpablo@378
    85
  return true;
juanpablo@378
    86
}
juanpablo@378
    87
juanpablo@378
    88
function onloadFunctions() {
juanpablo@378
    89
  new TypeAheadCombo("reportC_UOM_ID");
juanpablo@378
    90
  new TypeAheadCombo("inpmProductUomId");
juanpablo@378
    91
  new TypeAheadCombo("inpmInoutlineTypeId");
juanpablo@378
    92
  new TypeAheadCombo("reportM_WAREHOUSE_ID");
juanpablo@378
    93
  new TypeAheadCombo("inpmLocatorX");
asier@528
    94
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', 'SELECTOR_PRODUCT', true, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null");
juanpablo@378
    95
}
juanpablo@378
    96
</SCRIPT>
asier@528
    97
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    98
	function onLoadDo(){
asier@528
    99
		this.windowTables = new Array(
asier@528
   100
		  new windowTableId('client', 'frameButton'),
asier@528
   101
		  new windowTableId('tdbottomButtons', 'frameButton2')
asier@528
   102
		);
asier@528
   103
		setWindowTableParentElement();
asier@528
   104
		enableShortcuts('popup');
asier@528
   105
		
asier@528
   106
		try {
asier@528
   107
		  onloadFunctions();
asier@528
   108
		} catch (e) {}
asier@528
   109
asier@528
   110
		setWindowElementFocus('firstElement');
asier@528
   111
	}
asier@528
   112
asier@528
   113
	function onResizeDo(){
asier@528
   114
	}
asier@528
   115
	</SCRIPT>
juanpablo@378
   116
</HEAD>
asier@528
   117
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
   118
<FORM id="form" method="POST" action="../ad_actionButton/CreateFromMultiple_F1.html" name="frmMain">
juanpablo@378
   119
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
   120
  <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
juanpablo@378
   121
  <INPUT type="hidden" name="inphasseconduom" value="0"></INPUT>
juanpablo@378
   122
  <INPUT type="hidden" name="inpmInoutId" value="" id="paramKey"></INPUT>
juanpablo@378
   123
  <INPUT type="hidden" name="inpWindowId" value="" id="paramWindowId"></INPUT> 
juanpablo@378
   124
  <INPUT type="hidden" name="inpTabId" value="" id="paramTabId"></INPUT>
juanpablo@378
   125
  <INPUT type="hidden" name="inpissotrx" value="" id="paramisSOTrx"></INPUT>
juanpablo@378
   126
  <INPUT type="hidden" name="inpBPartner" value="" id="parambpartner"></INPUT> 
juanpablo@378
   127
  <TABLE width="45%" cellspacing="0" cellpadding="0" border="1" >
juanpablo@378
   128
    <TR> 
asier@528
   129
      <TD id="processDescription">&nbsp;</TD>
juanpablo@378
   130
    </TR>
juanpablo@378
   131
    <TR></TR>
juanpablo@378
   132
    <TR> 
juanpablo@378
   133
      <TD id="helpDiscard" > <div  id="processHelp">&nbsp;</div></TD>
juanpablo@378
   134
    </TR>
juanpablo@378
   135
  </TABLE>
juanpablo@378
   136
  <BR></BR>
asier@528
   137
  <TABLE border="0" cellspacing="0" cellpadding="0" id="client">
juanpablo@378
   138
    <TR> 
juanpablo@378
   139
      <TD width="127" > <SPAN >Product:</SPAN></TD>
juanpablo@378
   140
      <TD colspan="3" > <INPUT type="hidden" name="inpmProductId"></INPUT> 
juanpablo@378
   141
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   142
          <TR> 
juanpablo@378
   143
            <TD > <INPUT type="text" name="inpmProductId_DES" size="40"></INPUT>
juanpablo@378
   144
            </TD>
juanpablo@378
   145
            <TD > <A href="#" onclick="openSearch(null, null, '../info/ProductComplete_FS.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
   146
              <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   147
          </TR>
juanpablo@378
   148
        </TABLE>
juanpablo@378
   149
        <INPUT type="hidden" name="inpmProductId_LOC"></INPUT>
juanpablo@378
   150
        <INPUT type="hidden" name="inpmProductId_ATR"></INPUT>
juanpablo@378
   151
        <INPUT type="hidden" name="inpmProductId_PQTY"></INPUT>
juanpablo@378
   152
        <INPUT type="hidden" name="inpmProductId_PUOM"></INPUT>
juanpablo@378
   153
        <INPUT type="hidden" name="inpmProductId_QTY"></INPUT>
juanpablo@378
   154
        <INPUT type="hidden" name="inpmProductId_UOM"></INPUT>
juanpablo@378
   155
        <INPUT type="hidden" name="inpmProductId_PLIST"></INPUT>
juanpablo@378
   156
        <INPUT type="hidden" name="inpmProductId_PSTD"></INPUT>
juanpablo@378
   157
        <INPUT type="hidden" name="inpmProductId_PLIM"></INPUT>
juanpablo@378
   158
        <INPUT type="hidden" name="inpmProductId_CURR"></INPUT>
juanpablo@378
   159
      </TD>
juanpablo@378
   160
    </TR>
juanpablo@378
   161
    <TR> 
juanpablo@378
   162
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   163
    </TR>
juanpablo@378
   164
    <TR> 
juanpablo@378
   165
      <TD > <SPAN >Product values</SPAN></TD>
juanpablo@378
   166
      <TD colspan="3" > <HR></HR>
juanpablo@378
   167
      </TD>
juanpablo@378
   168
    </TR>
juanpablo@378
   169
    <TR> 
juanpablo@378
   170
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   171
    </TR>
juanpablo@378
   172
    <TR> 
juanpablo@378
   173
      <TD > <SPAN >Attribute value:</SPAN></TD>
juanpablo@378
   174
      <TD colspan="3" > <INPUT type="hidden" name="inpmAttributesetinstanceId"></INPUT> 
juanpablo@378
   175
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   176
          <TR> 
juanpablo@378
   177
            <TD > <INPUT type="text" size="20"  name="inpmAttributesetinstanceId_D" readonly="true"></INPUT>
juanpablo@378
   178
            </TD>
juanpablo@378
   179
            <TD > <A href="#" onclick="openPAttribute(null, null, '../info/AttributeSetInstance_FS.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
   180
            <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
   181
          </TR>
juanpablo@378
   182
        </TABLE></TD>
juanpablo@378
   183
    </TR>
juanpablo@378
   184
    <TR> 
juanpablo@378
   185
      <TD > <SPAN >Quantity:</SPAN></TD>
juanpablo@378
   186
      <TD > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   187
          <TR> 
juanpablo@378
   188
            <TD > <INPUT type="text" onkeydown="auto_completar_numero(this, true, true);return true;" size="10"  maxlength="10" name="inpmovementqty"></INPUT>
juanpablo@378
   189
            </TD>
juanpablo@378
   190
            <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
   191
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   192
          </TR>
juanpablo@378
   193
        </TABLE></TD>
juanpablo@378
   194
      <TD > <SPAN >Unit:</SPAN></TD>
juanpablo@378
   195
      <TD > <SELECT name="inpcUomId" readonly="true" onchange="selectCombo(this, '');return true;"  id="reportC_UOM_ID">
juanpablo@378
   196
        </SELECT></TD>
juanpablo@378
   197
    </TR>
juanpablo@378
   198
    <TR id="paramUOMOrder" style="display:none;"> 
juanpablo@378
   199
      <TD > <SPAN >Order Qty</SPAN></TD>
juanpablo@378
   200
      <TD > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   201
          <TR> 
juanpablo@378
   202
            <TD > <INPUT type="text" onkeydown="auto_completar_numero(this, true, true);return true;" size="10"  maxlength="10" name="inpquantityorder"></INPUT>
juanpablo@378
   203
            </TD>
juanpablo@378
   204
            <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
   205
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   206
          </TR>
juanpablo@378
   207
        </TABLE></TD>
juanpablo@378
   208
      <TD > <SPAN >Order unit:</SPAN></TD>
juanpablo@378
   209
      <TD > <SELECT name="inpmProductUomId" onchange="calloutSL_CreateFromMultiple_Conversion(this.name);" id="inpmProductUomId">
juanpablo@378
   210
        </SELECT></TD>
juanpablo@378
   211
    </TR>
juanpablo@378
   212
    <TR> 
juanpablo@378
   213
      <TD > <SPAN >Incomming type:</SPAN></TD>
juanpablo@378
   214
      <TD > <SELECT name="inpmInoutlineTypeId" id="inpmInoutlineTypeId">
juanpablo@378
   215
          <OPTION value=""></OPTION><DIV id="reportM_INOUTLINETYPE_ID"></DIV>
juanpablo@378
   216
        </SELECT></TD>
juanpablo@378
   217
      <TD > <SPAN >Warehouse:</SPAN></TD>
juanpablo@378
   218
          <td >
juanpablo@378
   219
        <SELECT name="inpmWarehouseId" id="reportM_WAREHOUSE_ID" onChange="calloutSL_CreateFromMultiple_Warehouse(this.name);return true;">
juanpablo@378
   220
        </SELECT></TD>
juanpablo@378
   221
    </TR>
juanpablo@378
   222
    <TR> 
juanpablo@378
   223
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   224
    </TR>
juanpablo@378
   225
    <TR> 
juanpablo@378
   226
      <TD > <SPAN >Location values</SPAN></TD>
juanpablo@378
   227
      <TD colspan="3" > <HR></HR>
juanpablo@378
   228
      </TD>
juanpablo@378
   229
    </TR>
juanpablo@378
   230
    <TR> 
juanpablo@378
   231
      <TD colspan="4">&nbsp;</TD>
juanpablo@378
   232
    </TR>
juanpablo@378
   233
    <TR> 
juanpablo@378
   234
    <TD > <SPAN >Corridor</SPAN></TD>
juanpablo@378
   235
          <td ><SELECT name="inpmLocatorX" class="CampoUpdateable" id="reportM_LOCATOR_X">
juanpablo@378
   236
        <option value=""></option>
juanpablo@378
   237
        </SELECT></TD>
juanpablo@378
   238
                <td ><span >Locator type:&nbsp;</span></td>
juanpablo@378
   239
          <td ><SELECT name="inpmLocatorType" class="CampoUpdateable">
juanpablo@378
   240
        <option value=""></option>
juanpablo@378
   241
        <DIV id="reportM_LOCATOR_TYPE">
juanpablo@378
   242
                </select></td>
juanpablo@378
   243
        <td ><span >No. lines:&nbsp;</span></td>
juanpablo@378
   244
      <TD colspan="3" > <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   245
          <TR> 
juanpablo@378
   246
            <TD > <INPUT type="text" onkeydown="auto_completar_numero(this, false, false);return true;" size="10"  maxlength="10" name="inpnumerolineas"></INPUT>
juanpablo@378
   247
            </TD>
juanpablo@378
   248
            <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
   249
              <img  alt="Calculator" title="Calculator" width="16" height="16" border="0" src="../../../../../web/images/Calc.jpg"></IMG></A></TD>
juanpablo@378
   250
          </TR>
juanpablo@378
   251
        </TABLE></TD>
juanpablo@378
   252
    </TR>
juanpablo@378
   253
  </TABLE>
juanpablo@378
   254
</FORM>
juanpablo@378
   255
</BODY>
juanpablo@378
   256
</HTML>