src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html
author Iván Perdomo <ivan.perdomo@openbravo.com>
Thu, 24 Apr 2008 17:12:02 +0000
changeset 770 8850d5956eba
parent 528 7aa737db257f
child 799 fef2c5e2feb7
permissions -rw-r--r--
Bug fix [0000111]. Modified mapping name used on manual code.
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" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
asier@528
    23
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    24
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    25
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    26
<SCRIPT language="JavaScript" src="../../../../../web/js/calculator.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="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
juanpablo@378
    34
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    35
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    36
juanpablo@378
    37
juanpablo@378
    38
function depurarSelector(action) {
juanpablo@378
    39
	var clave = radioValue(parent.medio.document.frmSelector.inpMTransactionId);
juanpablo@378
    40
	
juanpablo@378
    41
	parent.medio.submitCommandForm(action);
juanpablo@378
    42
}
juanpablo@378
    43
juanpablo@378
    44
function depurar() {
juanpablo@378
    45
	var frm = document.frmMain;
juanpablo@378
    46
	if (frm.inpDesde.value==null || frm.inpDesde.value=="") {
juanpablo@378
    47
		frm.inpDesde.focus();
juanpablo@378
    48
		mensaje(7);
juanpablo@378
    49
		return false;
juanpablo@378
    50
	} else if (frm.inpHasta.value==null || frm.inpHasta.value=="") {
juanpablo@378
    51
		frm.inpHasta.focus();
juanpablo@378
    52
		mensaje(7);
juanpablo@378
    53
		return false;
juanpablo@378
    54
	}
juanpablo@378
    55
	return true;
juanpablo@378
    56
}
juanpablo@378
    57
juanpablo@378
    58
function onloadFunctions() {
asier@528
    59
  new TypeAheadCombo("inpadOrgId");
juanpablo@378
    60
  new TypeAheadCombo("inpmovementType");
ivan@770
    61
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Locator.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmLocatorId_DES", "null"); 
ivan@770
    62
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmProductId_DES", "null");
asier@528
    63
  
juanpablo@378
    64
}
juanpablo@378
    65
</SCRIPT>
asier@528
    66
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    67
	function onLoadDo(){
asier@528
    68
		this.windowTables = new Array(
asier@528
    69
		  new windowTableId('client', 'superior'),
asier@528
    70
		  new windowTableId('client', 'medio')
asier@528
    71
		);
asier@528
    72
		setWindowTableParentElement();
asier@528
    73
		enableShortcuts('edition');
asier@528
    74
		
asier@528
    75
		try {
asier@528
    76
		  onloadFunctions();
asier@528
    77
		} catch (e) {}
asier@528
    78
		byDefaultAction('submitCommandForm(\'FIND\', true, null, null, \'medio\')');
asier@528
    79
asier@528
    80
		setWindowElementFocus('firstElement');
asier@528
    81
	}
asier@528
    82
asier@528
    83
	function onResizeDo(){
asier@528
    84
	}
asier@528
    85
	</SCRIPT>
juanpablo@378
    86
</HEAD>
asier@528
    87
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();"  onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
    88
<span id="paramToolBar">toolbar</span> <BR></BR>
juanpablo@378
    89
<FORM name="frmMain" method="POST" action="MaterialTransactions_F2.html" target="medio">
juanpablo@378
    90
  <INPUT type="hidden" name="Command"></INPUT>
asier@528
    91
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" id="client">
juanpablo@378
    92
    <TR> 
juanpablo@378
    93
      <TD width="14%" > <SPAN >Organization</SPAN>&nbsp;</TD>
juanpablo@378
    94
      <TD width="15%"> <SELECT name="inpadOrgId" id="inpadOrgId">
juanpablo@378
    95
          <OPTION value=""></OPTION><DIV id="reportOrganization_M"></DIV>
juanpablo@378
    96
        </SELECT></TD>
juanpablo@378
    97
      <TD width="14%" > <SPAN >Movement type</SPAN>&nbsp;</TD>
juanpablo@378
    98
      <TD width="20%"> <SELECT  name="inpmovementType" id="inpmovementType">
juanpablo@378
    99
          <OPTION value=""></OPTION><DIV id="reportMovementType_M"></DIV>
juanpablo@378
   100
        </SELECT></TD>
juanpablo@378
   101
      <TD width="10%" > <SPAN >From</SPAN></TD>
asier@528
   102
      <TD width="13%"> <INPUT type="text" name="inpDesde" id="paramDesde" size="10" maxlength="10" value=""  onkeup="auto_complete_date(this);return true;"></INPUT> 
juanpablo@378
   103
        <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
   104
        <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   105
      <TD width="14%"> <A href="#" onclick="submitCommandForm('FIND', true, null, null, 'medio');return false;" onmouseover="window.status='Results';return true;" onmouseout="window.status='';return true;" > 
juanpablo@378
   106
        <img width="16" height="16" src="../../../../../web/images/Find.jpg"  alt="Results" title="Results" border="0" id="buttonResults"></IMG></A></TD>
juanpablo@378
   107
    </TR><TR>
juanpablo@378
   108
    <TD width="14%" > <SPAN >Warehouse position</SPAN>&nbsp;</TD><td>
juanpablo@378
   109
    <table border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   110
      <tr> 
juanpablo@378
   111
        <td > 
juanpablo@378
   112
          <!-- <TD width="15%" > -->
juanpablo@378
   113
          <INPUT type="hidden" name="inpmLocatorId" id="paramM_Locator_ID" value=""></INPUT> 
juanpablo@378
   114
          <INPUT type="text"  size="20" maxlength="22" name="inpmLocatorId_DES" id="paramM_Locator_ID_DES" value=""></INPUT> 
ivan@770
   115
          <A href="#" onclick="openSearch(null, null, '../info/Locator.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'WindowID', 'CreateFrom_Shipment');return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Locator';return true;" > 
juanpablo@378
   116
          <img width="16" height="16"  alt="Locator" title="Locator"  border="0" src="../../../../../web/images/Locator.jpg" id="LocationSelection"></IMG></A></TD></td></tr>
juanpablo@378
   117
    </table></TD>
asier@528
   118
    <TD width="14%"> <SPAN >Product</SPAN></TD>
juanpablo@378
   119
    <TD> <TABLE border="0" cellspacing="0" cellpadding="0" summary="">
juanpablo@378
   120
        <TR> 
juanpablo@378
   121
          <TD > <INPUT type="hidden"  name="inpmProductId" id="M_Product_ID" value=""></INPUT> 
juanpablo@378
   122
            <INPUT type="text"  size="26" maxlength="22" name="inpmProductId_DES" id="M_Product_ID_DES" value=""></INPUT>
juanpablo@378
   123
          </TD>
ivan@770
   124
          <TD > <A href="#" onclick="openSearch(null, null, '../info/Product.html', null, false, 'frmMain', 'inpmProductId',         'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'WindowID', '235');return false;" onmouseout="window.status='';return true;" onmouseover="window.status='Search';return true;" > 
juanpablo@378
   125
            <img width="16" height="16"  alt="Product" title="Product"  border="0" src="../../../../../web/images/Product.jpg" id="buttonProduct"></IMG></A></TD>
juanpablo@378
   126
        </TR>
juanpablo@378
   127
      </TABLE></TD>
juanpablo@378
   128
    <TD width="10%" > <SPAN >To</SPAN></TD>
juanpablo@378
   129
    <TD width="13%" > <INPUT type="text" name="inpHasta" id="paramHasta" value="" size="10" maxlength="10"  onkeup="auto_complete_date(this);return true;"></INPUT> 
juanpablo@378
   130
      <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
   131
      <img width="16" height="16"  alt="Calendar" title="Calendar" border="0" src="../../../../../web/images/BtnCal.gif" id="buttonCalendar"></IMG></A></TD>
juanpablo@378
   132
    <TD width="14%"> <A href="#" onclick="depurarSelector('GO');return false;" onmouseover="window.status='Go to results';return true;" onmouseout="window.status='';return true;" > 
juanpablo@378
   133
      <img width="16" height="16" src="../../../../../web/images/detalle.jpg"  alt="Go to results" title="Go to results" border="0" id="buttonDetail"></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>