src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 961 e244d7005cd9
child 1179 05caeb560473
permissions -rw-r--r--
Removed old frame parameter of windowTableId
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/searchs.js" type="text/javascript"></SCRIPT>
juanpablo@378
    30
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    31
juanpablo@378
    32
juanpablo@378
    33
function displayLogic() {
juanpablo@378
    34
	if (inputValue(document.frmMain.inphasseconduom) == 1) {
juanpablo@378
    35
		displayLogicElement('paramUOMOrder', true);
juanpablo@378
    36
	} else {
juanpablo@378
    37
		displayLogicElement('paramUOMOrder', false);
juanpablo@378
    38
	}
juanpablo@378
    39
}
juanpablo@378
    40
juanpablo@378
    41
function marcarTodosDatos(chk, bolMarcar)
juanpablo@378
    42
{
juanpablo@378
    43
  if (bolMarcar==null) bolMarcar = false;
juanpablo@378
    44
  if (!chk) return false;
juanpablo@378
    45
  else if (!chk.length) {
juanpablo@378
    46
    chk.checked = bolMarcar;
juanpablo@378
    47
    cargarDatos(chk.value, bolMarcar);
juanpablo@378
    48
  } else {
juanpablo@378
    49
    var total = chk.length;
juanpablo@378
    50
    for (var i=0;i<total;i++) {
juanpablo@378
    51
      chk[i].checked = bolMarcar;
juanpablo@378
    52
      cargarDatos(chk[i].value, bolMarcar);
juanpablo@378
    53
    }
juanpablo@378
    54
  }
juanpablo@378
    55
  return true;
juanpablo@378
    56
}
juanpablo@378
    57
juanpablo@378
    58
function cargarDatos(value, enable) {
juanpablo@378
    59
  if (enable == null) enable = false;
juanpablo@378
    60
  document.frmMain.elements["inpmovementqty" + value].disabled = !enable;
juanpablo@378
    61
  document.frmMain.elements["inpquantityorder" + value].disabled = !enable;
juanpablo@378
    62
  return true;
juanpablo@378
    63
}
juanpablo@378
    64
juanpablo@378
    65
function depurar(action) {
juanpablo@378
    66
  var frm=document.frmMain;
juanpablo@378
    67
  
juanpablo@378
    68
  return true;
juanpablo@378
    69
}
juanpablo@378
    70
juanpablo@378
    71
function onloadFunctions() {
ivan@770
    72
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"); 
ivan@770
    73
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete.html', 'SELECTOR_PRODUCT', false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null");
asier@528
    74
  
juanpablo@378
    75
}
juanpablo@378
    76
</SCRIPT>
asier@528
    77
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    78
	function onLoadDo(){
asier@528
    79
		this.windowTables = new Array(
david@1044
    80
		  new windowTableId('client'),
david@1044
    81
		  new windowTableId('tdbottomButtons')
asier@528
    82
		);
asier@528
    83
		setWindowTableParentElement();
asier@528
    84
		enableShortcuts('popup');
asier@528
    85
		
asier@528
    86
		try {
asier@528
    87
		  onloadFunctions();
asier@528
    88
		} catch (e) {}
asier@528
    89
asier@528
    90
		setWindowElementFocus('firstElement');
asier@528
    91
	}
asier@528
    92
asier@528
    93
	function onResizeDo(){
asier@528
    94
	}
asier@528
    95
	</SCRIPT>
juanpablo@378
    96
</HEAD>
asier@528
    97
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();" id="client">
juanpablo@378
    98
<FORM id="form" method="POST" action="../ad_actionButton/CreateFromMultiple_F1.html" name="frmMain">
juanpablo@378
    99
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
   100
  <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
juanpablo@378
   101
  <INPUT type="hidden" name="inphasseconduom" value="0"></INPUT>
juanpablo@378
   102
  <INPUT type="hidden" name="inpmInoutId" value="" id="paramKey"></INPUT>
juanpablo@378
   103
  <INPUT type="hidden" name="inpWindowId" value="" id="paramWindowId"></INPUT> 
juanpablo@378
   104
  <INPUT type="hidden" name="inpTabId" value="" id="paramTabId"></INPUT>
juanpablo@378
   105
  <INPUT type="hidden" name="inpissotrx" value="" id="paramisSOTrx"></INPUT>
juanpablo@378
   106
  <BR></BR>
juanpablo@378
   107
  <TABLE border="0" cellspacing="0" cellpadding="0">
juanpablo@378
   108
    <TR> 
juanpablo@378
   109
      <TD > <SPAN >Business Partner</SPAN></TD>
juanpablo@378
   110
      <TD colspan="3" > <INPUT type="hidden" name="inpcBpartnerId" value="" id="fieldBPartnerID"></INPUT> 
juanpablo@378
   111
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   112
          <TR> 
juanpablo@378
   113
            <TD > <INPUT type="text" name="inpcBpartnerId_DES" size="40" value="" id="fieldBPartnerID_DES"></INPUT>
juanpablo@378
   114
            </TD>
ivan@770
   115
            <TD > <A href="#" onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   116
              <img width="16" height="16"  alt="Business Partner" title="Business Partner" border="0" src="../../../../../web/images/BPartner.jpg"></IMG></A></TD>
juanpablo@378
   117
          </TR>
juanpablo@378
   118
        </TABLE></TD>
juanpablo@378
   119
      <TD > <SPAN >Product:</SPAN></TD>
juanpablo@378
   120
      <TD colspan="3" > <INPUT type="hidden" name="inpmProductId" value="" id="fieldProductID"></INPUT> 
juanpablo@378
   121
        <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   122
          <TR> 
juanpablo@378
   123
            <TD > <INPUT type="text" name="inpmProductId_DES" size="40" value="" id="fieldProductID_DES"></INPUT>
juanpablo@378
   124
            </TD>
ivan@770
   125
            <TD > <A href="#" onclick="openSearch(null, null, '../info/ProductComplete.html', 'SELECTOR_PRODUCT', false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   126
              <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   127
          </TR>
juanpablo@378
   128
        </TABLE></TD>
juanpablo@378
   129
      <TD rowspan="2" > <A href="#" onclick="submitCommandForm('FIND', true);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   130
        <img width="16" height="16"  alt="Search" title="Search" border="0" src="../../../../../web/images/Find.jpg" id="buttonResults"></IMG></A></TD>
juanpablo@378
   131
    </TR>
juanpablo@378
   132
  </TABLE>
juanpablo@378
   133
  <BR></BR>
juanpablo@378
   134
  <TABLE width="55%" border="0" cellpadding="0" cellspacing="0">
juanpablo@378
   135
    <TR> 
asier@799
   136
      <TD width="106" > <SPAN >Warehouse:</SPAN></TD>
asier@799
   137
      <TD width="84" > <SELECT name="inpmWarehouseId" id="inpmWarehouseId">
juanpablo@378
   138
          <OPTION value=""></OPTION><DIV id="reportM_WAREHOUSE_ID"></DIV>
juanpablo@378
   139
        </SELECT></TD>
asier@799
   140
      <TD width="100" > <SPAN >Corridor</SPAN></TD>
asier@799
   141
      <TD width="86" > <INPUT name="inpx" type="text" id="fieldx" size="5" maxlength="10" value=""></INPUT>
juanpablo@378
   142
      </TD>
asier@799
   143
      <TD width="108" > <SPAN >Height:</SPAN></TD>
asier@799
   144
      <TD width="96" > <INPUT name="inpy" type="text" id="fieldy" size="5" maxlength="10" value=""></INPUT>
juanpablo@378
   145
      </TD>
asier@799
   146
      <TD width="105" > <SPAN >Location:</SPAN></TD>
asier@799
   147
      <TD width="82" > <INPUT name="inpz" type="text" id="fieldz" size="5" maxlength="10" value=""></INPUT>
juanpablo@378
   148
      </TD>
juanpablo@378
   149
    </TR>
juanpablo@378
   150
  </TABLE>
juanpablo@378
   151
  <HR></HR>
juanpablo@378
   152
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" >
juanpablo@378
   153
    <TR> 
asier@528
   154
      <TH width="2%" > <SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpTodos" onclick="marcarTodosDatos(document.frmMain.inpmStorageDetailId, this.checked);return true;"></INPUT></SPAN>
juanpablo@378
   155
      </TH>
juanpablo@378
   156
      <TH width="35%">Product</TH>
juanpablo@378
   157
      <TH width="5%">Locator</th>
juanpablo@378
   158
      <TH width="19%">Attribute</TH>
juanpablo@378
   159
      <TH width="12%">Quantity</TH>
juanpablo@378
   160
      <TH width="8%">Unit</TH>
juanpablo@378
   161
      <TH width="11%">Quant. of order</TH>
juanpablo@378
   162
      <TH width="8%">Order No.</TH>
juanpablo@378
   163
    </TR>
juanpablo@378
   164
    <DIV id="sectionDetail"> 
juanpablo@378
   165
      <TR> 
asier@528
   166
        <TD > <SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpmStorageDetailId" value="" id="fieldmStorageDetailId" onclick="cargarDatos(this.value, this.checked);return true;"></INPUT></SPAN>
juanpablo@378
   167
        </TD>
asier@528
   168
        <TD id="fieldProduct">xx</TD>
juanpablo@378
   169
    <td  id="fieldLocator">xx</td>
asier@528
   170
        <TD id="fieldAttribute">xx</TD>
david@699
   171
        <TD > <INPUT name="inpmovementqtyxx" type="text" id="fieldMovementQty" size="8" value="0" onkeyup="auto_complete_number(this, true, true);return true;" disabled="" ></INPUT>
juanpablo@378
   172
        </TD>
asier@528
   173
        <TD id="fieldUOM">xx</TD>
david@699
   174
        <TD > <INPUT name="inpquantityorderxx" type="text" id="fieldQuantityOrder" size="8" value="0" onkeyup="auto_complete_number(this, true, true);return true;" disabled="" ></INPUT>
juanpablo@378
   175
        </TD>
asier@528
   176
        <TD id="fieldProductUOM">xx</TD>
juanpablo@378
   177
      </TR>
juanpablo@378
   178
    </DIV>
juanpablo@378
   179
  </TABLE>
juanpablo@378
   180
</FORM>
juanpablo@378
   181
</BODY>
juanpablo@378
   182
</HTML>