src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html
author David Baz Fayos <david.baz@openbravo.com>
Mon, 28 Jan 2008 13:56:07 +0000
changeset 374 cdcc534ff18a
parent 347 adf8b19cf2a8
child 378 5c93458e2916
permissions -rw-r--r--
mostrarMenu() function translated to menuShowHide() in utils.js
carlos@0
     1
<!--
carlos@0
     2
 *************************************************************************
carlos@0
     3
 * The contents of this file are subject to the Openbravo  Public  License
carlos@0
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     6
 * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     7
 * the License at http://www.openbravo.com/legal/license.html 
carlos@0
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    10
 * License for the specific  language  governing  rights  and  limitations
carlos@0
    11
 * under the License. 
carlos@0
    12
 * The Original Code is Openbravo ERP. 
carlos@0
    13
 * The Initial Developer of the Original Code is Openbravo SL 
carlos@0
    14
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
carlos@0
    15
 * All Rights Reserved. 
carlos@0
    16
 * Contributor(s):  ______________________________________.
carlos@0
    17
 ************************************************************************
carlos@0
    18
-->
carlos@0
    19
<HTML>
carlos@0
    20
<HEAD>
carlos@0
    21
<TITLE>Locator selector</TITLE>
carlos@0
    22
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
carlos@0
    23
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
carlos@0
    24
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
carlos@0
    25
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
carlos@0
    26
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
carlos@0
    27
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
carlos@0
    28
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
carlos@0
    29
<SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
carlos@0
    30
<SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
carlos@0
    31
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
carlos@0
    32
<SCRIPT language="JavaScript" type="text/javascript">
david@347
    33
keyArray = new Array(
david@374
    34
new keyArrayItem("M", "menuShowHide();", null, "ctrlKey"),
david@347
    35
new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', 'MatchingPO');", "inpmProductId_DES", "null"),
david@347
    36
new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null")
carlos@0
    37
);
david@347
    38
enableShortcuts();
carlos@0
    39
carlos@0
    40
var arrFinalDocs = new Array(
carlos@0
    41
new Array("1", "2", "Albaran"),
carlos@0
    42
new Array("2", "1", "Factura"),
carlos@0
    43
new Array("2", "3", "Pedido de compra"),
carlos@0
    44
new Array("3", "2", "Albaran")
carlos@0
    45
);
carlos@0
    46
carlos@0
    47
function onloadFunctions() {
carlos@0
    48
	new TypeAheadCombo("reportDocument_M");
carlos@0
    49
  new TypeAheadCombo("reportFinalDoc_M");
carlos@0
    50
  new TypeAheadCombo("reportState_M");
carlos@0
    51
}
carlos@0
    52
</SCRIPT>
carlos@0
    53
</HEAD>
david@347
    54
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();selectCombo(document.frmMain.inpsourcedoc, 'yy');rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);selectCombo(document.frmMain.inpfinaldoc, 'xx');selectCombo(document.frmMain.inpsearchmode, 'zz');setFocusFirstControl();" id="paramBody">
carlos@0
    55
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
carlos@0
    56
<TR>
david@374
    57
          <TD  width="2%"> <A href="#" onclick="menuShowHide();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
carlos@0
    58
            <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
carlos@0
    59
          <TD > <HR></HR>
carlos@0
    60
          </TD>
carlos@0
    61
          <TD  width="100"> <A HREF="#" onClick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/TB_Openbravo.gif"  alt="Openbravo" title="Openbravo" border="0"></IMG></A></TD>
carlos@0
    62
          <TD > <HR></HR>
carlos@0
    63
          </TD>
carlos@0
    64
          <TD  width="2%"> <A href="../secureApp/GoBack.html" onmouseover="window.status='Back';return true;" onmouseout="window.status='';return true;" target="_parent" class="TBButton"> 
carlos@0
    65
            <img src="../../../../../web/images/Back.jpg"  alt="Back" title="Back" border="0" id="buttonBack"></IMG></A></TD>
carlos@0
    66
  </TR>
carlos@0
    67
</TABLE>
carlos@0
    68
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F2.html" target="dos">
carlos@0
    69
  <INPUT type="hidden" name="Command"></INPUT>
carlos@0
    70
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
carlos@0
    71
    <TR> 
carlos@0
    72
      <TD width="9%" > <SPAN >Doc. Origen</SPAN>&nbsp;</TD>
carlos@0
    73
      <TD width="13%" > <SELECT name="inpsourcedoc" onchange="rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, this.options[this.selectedIndex].value, false, true);return true;" id="reportDocument_M">
carlos@0
    74
          <OPTION value="1">Invoice</OPTION>
carlos@0
    75
          <OPTION value="2">Shipment</OPTION>
carlos@0
    76
          <OPTION value="3">Purchase order</OPTION>
carlos@0
    77
        </SELECT></TD>
carlos@0
    78
      <TD width="9%" > <SPAN >Doc. Final</SPAN>&nbsp;</TD>
carlos@0
    79
      <TD width="13%" > <SELECT name="inpfinaldoc" id="reportFinalDoc_M">
carlos@0
    80
          <OPTION value="0" id="discard">Shipment</OPTION>
carlos@0
    81
        </SELECT></TD>
carlos@0
    82
      <TD width="9%" > <SPAN >Search for</SPAN>&nbsp;</TD>
carlos@0
    83
      <TD width="13%" > <SELECT name="inpsearchmode" id="reportState_M">
carlos@0
    84
          <OPTION value="0">Not balanced</OPTION>
carlos@0
    85
          <OPTION value="1">Balanced</OPTION>
carlos@0
    86
        </SELECT></TD>
carlos@0
    87
      <TD  width="9%"> <SPAN >Business Partner</SPAN></TD>
carlos@0
    88
      <TD width="21%" > <INPUT type="hidden" name="inpcBpartnerId" value="" id="paramBpartner"></INPUT> 
carlos@0
    89
        <INPUT type="text" name="inpcBpartnerId_DES" size="20" maxlength="20" value="" id="paramBpartnerDes"></INPUT> 
carlos@0
    90
        <A href="#" onclick="openSearch(null, null, '../info/BusinessPartner_FS.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;" > 
carlos@0
    91
        <img width="16" height="16"  alt="Business Partner" title="Business Partner" border="0" src="../../../../../web/images/BusinessPartner.jpg" id="buttonBPartner"></IMG></A></TD>
carlos@0
    92
      <TD rowspan="3" width="4%"> <A href="#" onclick="submitCommandForm('FIND');return false;" onmouseover="window.status='Results';return true;" onmouseout="window.status='';return true;" > 
carlos@0
    93
        <img width="16" height="16" src="../../../../../web/images/Find.jpg"  alt="Results" title="Results" border="0" id="buttonResults"></IMG></A></TD>
carlos@0
    94
    </TR>
carlos@0
    95
    <TR> 
carlos@0
    96
      <TD width="9%" > <SPAN >From</SPAN></TD>
carlos@0
    97
      <TD width="13%"> <INPUT type="text" name="inpDesde" value="" size="10" maxlength="10" onkeyup="auto_complete_date(this);return true;" id="paramDesde"></INPUT> 
carlos@0
    98
        <A href="#" onclick="showCalendar('frmMain.inpDesde', document.frmMain.inpDesde.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calendar';return true;" > 
carlos@0
    99
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
carlos@0
   100
      <TD width="9%" > <SPAN >To</SPAN></TD>
carlos@0
   101
      <TD width="13%"> <INPUT type="text" name="inpHasta" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this);return true;" id="paramHasta"></INPUT> 
carlos@0
   102
        <A href="#" onclick="showCalendar('frmMain.inpHasta', document.frmMain.inpHasta.value, false);return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Show calendar';return true;" > 
carlos@0
   103
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
carlos@0
   104
      <TD > <SPAN >Product</SPAN></TD>
carlos@0
   105
      <TD colspan="2" > <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
carlos@0
   106
        <INPUT type="text" size="26" maxlength="22" name="inpmProductId_DES" value="" id="paramProductDes"></INPUT> 
carlos@0
   107
        <A href="#" onclick="openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'WindowID', 'MatchingPO');return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
carlos@0
   108
        <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
carlos@0
   109
    </TR>
carlos@0
   110
  </TABLE>
carlos@0
   111
  <HR></HR>
carlos@0
   112
</FORM>
carlos@0
   113
</BODY>
carlos@0
   114
</HTML>