src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html
author Asier Lostalé <asier.lostale@openbravo.com>
Thu, 13 Mar 2008 14:33:37 +0000
changeset 528 7aa737db257f
parent 378 5c93458e2916
child 770 8850d5956eba
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>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>
asier@528
    24
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    25
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    26
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    27
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
juanpablo@378
    28
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
juanpablo@378
    29
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.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" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    34
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    35
keyArray[keyArray.length] = 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");
asier@528
    36
keyArray[keyArray.length] = 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");
asier@528
    37
juanpablo@378
    38
juanpablo@378
    39
var arrFinalDocs = new Array(
juanpablo@378
    40
new Array("1", "2", "Albaran"),
juanpablo@378
    41
new Array("2", "1", "Factura"),
juanpablo@378
    42
new Array("2", "3", "Pedido de compra"),
juanpablo@378
    43
new Array("3", "2", "Albaran")
juanpablo@378
    44
);
juanpablo@378
    45
juanpablo@378
    46
function onloadFunctions() {
juanpablo@378
    47
	new TypeAheadCombo("reportDocument_M");
juanpablo@378
    48
  new TypeAheadCombo("reportFinalDoc_M");
juanpablo@378
    49
  new TypeAheadCombo("reportState_M");
juanpablo@378
    50
}
juanpablo@378
    51
</SCRIPT>
asier@528
    52
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    53
	function onLoadDo(){
asier@528
    54
		this.windowTables = new Array(
asier@528
    55
		  new windowTableId('client')
asier@528
    56
		);
asier@528
    57
		setWindowTableParentElement();
asier@528
    58
		this.tabsTables = new Array(
asier@528
    59
		  new tabTableId('tdtopTabs')
asier@528
    60
		);
asier@528
    61
		setTabTableParentElement();
asier@528
    62
		enableShortcuts('edition');
asier@528
    63
		
asier@528
    64
		try {
asier@528
    65
		  onloadFunctions();
asier@528
    66
		} catch (e) {}
asier@528
    67
		selectCombo(document.frmMain.inpsourcedoc, 'yy');
asier@528
    68
		rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);
asier@528
    69
		selectCombo(document.frmMain.inpfinaldoc, 'xx');
asier@528
    70
		selectCombo(document.frmMain.inpsearchmode, 'zz');
asier@528
    71
asier@528
    72
		setWindowElementFocus('firstElement');
asier@528
    73
	}
asier@528
    74
asier@528
    75
	function onResizeDo(){
asier@528
    76
	}
asier@528
    77
	</SCRIPT>
juanpablo@378
    78
</HEAD>
asier@528
    79
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();"id="paramBody">
juanpablo@378
    80
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
juanpablo@378
    81
<TR>
asier@528
    82
          <TD width="2%"> <A href="#" onclick="menuShowHide();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
juanpablo@378
    83
            <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
juanpablo@378
    84
          <TD > <HR></HR>
juanpablo@378
    85
          </TD>
asier@528
    86
          <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
    87
          <TD > <HR></HR>
juanpablo@378
    88
          </TD>
asier@528
    89
          <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
    90
            <img src="../../../../../web/images/Back.jpg"  alt="Back" title="Back" border="0" id="buttonBack"></IMG></A></TD>
juanpablo@378
    91
  </TR>
juanpablo@378
    92
</TABLE>
juanpablo@378
    93
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F2.html" target="dos">
juanpablo@378
    94
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
    95
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
juanpablo@378
    96
    <TR> 
juanpablo@378
    97
      <TD width="9%" > <SPAN >Doc. Origen</SPAN>&nbsp;</TD>
juanpablo@378
    98
      <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
    99
          <OPTION value="1">Invoice</OPTION>
juanpablo@378
   100
          <OPTION value="2">Shipment</OPTION>
juanpablo@378
   101
          <OPTION value="3">Purchase order</OPTION>
juanpablo@378
   102
        </SELECT></TD>
juanpablo@378
   103
      <TD width="9%" > <SPAN >Doc. Final</SPAN>&nbsp;</TD>
juanpablo@378
   104
      <TD width="13%" > <SELECT name="inpfinaldoc" id="reportFinalDoc_M">
juanpablo@378
   105
          <OPTION value="0" id="discard">Shipment</OPTION>
juanpablo@378
   106
        </SELECT></TD>
juanpablo@378
   107
      <TD width="9%" > <SPAN >Search for</SPAN>&nbsp;</TD>
juanpablo@378
   108
      <TD width="13%" > <SELECT name="inpsearchmode" id="reportState_M">
juanpablo@378
   109
          <OPTION value="0">Not balanced</OPTION>
juanpablo@378
   110
          <OPTION value="1">Balanced</OPTION>
juanpablo@378
   111
        </SELECT></TD>
asier@528
   112
      <TD width="9%"> <SPAN >Business Partner</SPAN></TD>
juanpablo@378
   113
      <TD width="21%" > <INPUT type="hidden" name="inpcBpartnerId" value="" id="paramBpartner"></INPUT> 
juanpablo@378
   114
        <INPUT type="text" name="inpcBpartnerId_DES" size="20" maxlength="20" value="" id="paramBpartnerDes"></INPUT> 
juanpablo@378
   115
        <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
   116
        <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
   117
      <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
   118
        <img width="16" height="16" src="../../../../../web/images/Find.jpg"  alt="Results" title="Results" border="0" id="buttonResults"></IMG></A></TD>
juanpablo@378
   119
    </TR>
juanpablo@378
   120
    <TR> 
juanpablo@378
   121
      <TD width="9%" > <SPAN >From</SPAN></TD>
juanpablo@378
   122
      <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
   123
        <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
   124
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   125
      <TD width="9%" > <SPAN >To</SPAN></TD>
juanpablo@378
   126
      <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
   127
        <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
   128
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   129
      <TD > <SPAN >Product</SPAN></TD>
juanpablo@378
   130
      <TD colspan="2" > <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
juanpablo@378
   131
        <INPUT type="text" size="26" maxlength="22" name="inpmProductId_DES" value="" id="paramProductDes"></INPUT> 
juanpablo@378
   132
        <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
   133
        <img width="16" height="16"  alt="Product" title="Product" border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   134
    </TR>
juanpablo@378
   135
  </TABLE>
juanpablo@378
   136
  <HR></HR>
juanpablo@378
   137
</FORM>
juanpablo@378
   138
</BODY>
juanpablo@378
   139
</HTML>