src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html
author Juan Pablo Aroztegi <juanpablo.aroztegi@openbravo.com>
Tue, 29 Jan 2008 11:08:22 +0000
changeset 378 5c93458e2916
parent 374 cdcc534ff18a
child 528 7aa737db257f
permissions -rw-r--r--
[1881705] Force file eol to LF (UNIX)
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>Locator selector</TITLE>
juanpablo@378
    22
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
juanpablo@378
    23
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
juanpablo@378
    24
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
juanpablo@378
    25
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
juanpablo@378
    26
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
juanpablo@378
    27
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
juanpablo@378
    28
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
juanpablo@378
    29
<SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
juanpablo@378
    30
<SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
juanpablo@378
    31
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    32
<SCRIPT language="JavaScript" type="text/javascript">
juanpablo@378
    33
keyArray = new Array(
juanpablo@378
    34
new keyArrayItem("M", "menuShowHide();", null, "ctrlKey"),
juanpablo@378
    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"),
juanpablo@378
    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")
juanpablo@378
    37
);
juanpablo@378
    38
enableShortcuts();
juanpablo@378
    39
juanpablo@378
    40
var arrFinalDocs = new Array(
juanpablo@378
    41
new Array("1", "2", "Albaran"),
juanpablo@378
    42
new Array("2", "1", "Factura"),
juanpablo@378
    43
new Array("2", "3", "Pedido de compra"),
juanpablo@378
    44
new Array("3", "2", "Albaran")
juanpablo@378
    45
);
juanpablo@378
    46
juanpablo@378
    47
function onloadFunctions() {
juanpablo@378
    48
	new TypeAheadCombo("reportDocument_M");
juanpablo@378
    49
  new TypeAheadCombo("reportFinalDoc_M");
juanpablo@378
    50
  new TypeAheadCombo("reportState_M");
juanpablo@378
    51
}
juanpablo@378
    52
</SCRIPT>
juanpablo@378
    53
</HEAD>
juanpablo@378
    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">
juanpablo@378
    55
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
juanpablo@378
    56
<TR>
juanpablo@378
    57
          <TD  width="2%"> <A href="#" onclick="menuShowHide();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
juanpablo@378
    58
            <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
juanpablo@378
    59
          <TD > <HR></HR>
juanpablo@378
    60
          </TD>
juanpablo@378
    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>
juanpablo@378
    62
          <TD > <HR></HR>
juanpablo@378
    63
          </TD>
juanpablo@378
    64
          <TD  width="2%"> <A href="../secureApp/GoBack.html" onmouseover="window.status='Back';return true;" onmouseout="window.status='';return true;" target="_parent" class="TBButton"> 
juanpablo@378
    65
            <img src="../../../../../web/images/Back.jpg"  alt="Back" title="Back" border="0" id="buttonBack"></IMG></A></TD>
juanpablo@378
    66
  </TR>
juanpablo@378
    67
</TABLE>
juanpablo@378
    68
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F2.html" target="dos">
juanpablo@378
    69
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
    70
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
juanpablo@378
    71
    <TR> 
juanpablo@378
    72
      <TD width="9%" > <SPAN >Doc. Origen</SPAN>&nbsp;</TD>
juanpablo@378
    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">
juanpablo@378
    74
          <OPTION value="1">Invoice</OPTION>
juanpablo@378
    75
          <OPTION value="2">Shipment</OPTION>
juanpablo@378
    76
          <OPTION value="3">Purchase order</OPTION>
juanpablo@378
    77
        </SELECT></TD>
juanpablo@378
    78
      <TD width="9%" > <SPAN >Doc. Final</SPAN>&nbsp;</TD>
juanpablo@378
    79
      <TD width="13%" > <SELECT name="inpfinaldoc" id="reportFinalDoc_M">
juanpablo@378
    80
          <OPTION value="0" id="discard">Shipment</OPTION>
juanpablo@378
    81
        </SELECT></TD>
juanpablo@378
    82
      <TD width="9%" > <SPAN >Search for</SPAN>&nbsp;</TD>
juanpablo@378
    83
      <TD width="13%" > <SELECT name="inpsearchmode" id="reportState_M">
juanpablo@378
    84
          <OPTION value="0">Not balanced</OPTION>
juanpablo@378
    85
          <OPTION value="1">Balanced</OPTION>
juanpablo@378
    86
        </SELECT></TD>
juanpablo@378
    87
      <TD  width="9%"> <SPAN >Business Partner</SPAN></TD>
juanpablo@378
    88
      <TD width="21%" > <INPUT type="hidden" name="inpcBpartnerId" value="" id="paramBpartner"></INPUT> 
juanpablo@378
    89
        <INPUT type="text" name="inpcBpartnerId_DES" size="20" maxlength="20" value="" id="paramBpartnerDes"></INPUT> 
juanpablo@378
    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;" > 
juanpablo@378
    91
        <img width="16" height="16"  alt="Business Partner" title="Business Partner" border="0" src="../../../../../web/images/BusinessPartner.jpg" id="buttonBPartner"></IMG></A></TD>
juanpablo@378
    92
      <TD rowspan="3" width="4%"> <A href="#" onclick="submitCommandForm('FIND');return false;" onmouseover="window.status='Results';return true;" onmouseout="window.status='';return true;" > 
juanpablo@378
    93
        <img width="16" height="16" src="../../../../../web/images/Find.jpg"  alt="Results" title="Results" border="0" id="buttonResults"></IMG></A></TD>
juanpablo@378
    94
    </TR>
juanpablo@378
    95
    <TR> 
juanpablo@378
    96
      <TD width="9%" > <SPAN >From</SPAN></TD>
juanpablo@378
    97
      <TD width="13%"> <INPUT type="text" name="inpDesde" value="" size="10" maxlength="10" onkeyup="auto_complete_date(this);return true;" id="paramDesde"></INPUT> 
juanpablo@378
    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;" > 
juanpablo@378
    99
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   100
      <TD width="9%" > <SPAN >To</SPAN></TD>
juanpablo@378
   101
      <TD width="13%"> <INPUT type="text" name="inpHasta" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this);return true;" id="paramHasta"></INPUT> 
juanpablo@378
   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;" > 
juanpablo@378
   103
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   104
      <TD > <SPAN >Product</SPAN></TD>
juanpablo@378
   105
      <TD colspan="2" > <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
juanpablo@378
   106
        <INPUT type="text" size="26" maxlength="22" name="inpmProductId_DES" value="" id="paramProductDes"></INPUT> 
juanpablo@378
   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;" > 
juanpablo@378
   108
        <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   109
    </TR>
juanpablo@378
   110
  </TABLE>
juanpablo@378
   111
  <HR></HR>
juanpablo@378
   112
</FORM>
juanpablo@378
   113
</BODY>
juanpablo@378
   114
</HTML>