src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
permissions -rw-r--r--
Manual windows of bug 0000436 Blank required fields don't take the focus
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<HTML>
<HEAD>
<TITLE></TITLE>
    <link rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS" />

    <SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
    <script language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></script>
    <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
    <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
    <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
    <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
    <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
    <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
    <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
    <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
    <script type="text/javascript">
      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
    </script>

    <script type="text/javascript">
    function depurar(action) {
        var frm=document.frmMain;
      if (action=="FIND") {
        if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
          setWindowElementFocus(frm.inpDateFrom);
          frm.inpDateFrom.select();
          mensaje(5);
          return false;
        } else if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
          setWindowElementFocus(frm.inpDateTo);
          frm.inpDateTo.select();
          mensaje(5);
          return false;
        }
      }
      return true;
    }

    </script>
    <script language="JavaScript" type="text/javascript">
      var selectedRow = "";
      function selectActual(obj) {
        if (selectedRow != "") {
          selectedRow.className = selectedRow.className.replace(' DataGrid_Body_Row_selected', '');
        }
        selectedRow = obj;
        selectedRow.className += " DataGrid_Body_Row_selected";
        selectedCheck = selectedRow.id.toString().replace('funcEvenOddRow', 'CheckNum');
        document.getElementById(selectedCheck).checked = true;
      }

      function HoverCell(cell) {
        cell.className = cell.className + ' DataGrid_Body_Cell_hover';
      }

      function unHoverCell(cell) {
        cell.className = cell.className.replace(' DataGrid_Body_Cell_hover', '');
      }
    </script>

	<SCRIPT language="JavaScript" type="text/javascript">
	function onLoadDo(){
		this.windowTables = new Array(
		  new windowTableId('client1', 'superior', 'buttonSearch', 'superior'),
		  new windowTableId('client2', 'inferior', 'buttonOK', 'inferior')
		);
		setWindowTableParentElement();

		enableShortcuts('popup');
		

		setWindowElementFocus('firstElement');
	}

	function onResizeDo(){
	}
	</SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
<FORM name="frmMain" method="POST" action="CopyFromSettlement_F1.html" target="superior">
  <INPUT type="hidden" name="Command">
<INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
  <INPUT type="hidden" name="inpwindowId" value="" id="window"></INPUT>
  <INPUT type="hidden" name="inpTabId" value="" id="tab"></INPUT>
<div class="Popup_ContentPane_CircleLogo">
  <div class="Popup_WindowLogo">
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
  </div>
</div>
<TABLE cellspacing="0" cellpadding="0" width="100%">
  <TR>
    <TD id="tdNavigation">
      <TABLE cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
        <TR class="Popup_NavBar_bg"><TD></TD>
          <TD class="Popup_NavBar_separator_cell"></TD>
          <TD class="Popup_NavBar_bg_logo_left"></TD>
          <TD class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><IMG src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></TD>
          <TD class="Popup_NavBar_bg_logo_right"></TD>
          <TD class="Popup_NavBar_Popup_title_cell"><SPAN>Copy From Settlement</SPAN></TD>
          <TD class="Popup_NavBar_separator_cell"></TD>
        </TR>
      </TABLE>
    </TD>
  </TR>
  <TR>
    <TD id="tdSeparator">
      <TABLE cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
        <TR>
          <TD class="Popup_SeparatorBar_bg"></TD>
        </TR>
      </TABLE>
    </TD>
  </TR>
  <TR>
    <TD>
      <DIV class="Popup_ContentPane_Client" style="overflow: auto;" id="client1">
                            <!-- MessageBox -->
                            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
                              <TBODY>
                              <tr class="MessageBox_TopMargin">
                                <td class="MessageBox_LeftMargin"></td>
                                <td></td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              <tr>
                                <td class="MessageBox_LeftMargin"></td>
                                <td>

                                  <table cellpadding="0" cellspacing="0" style="width: 100%;">
                                    <TBODY>
                                    <tr>
                                      <td>
                                        <div class="MessageBox_TopLeft"></div>
                                        <div class="MessageBox_Left"></div>
                                      </td>
                                      <td class="MessageBox_bg">

                                        <table class="MessageBox_Top">
                                        <TBODY>
                                          <tr>
                                            <td>
                                              <span>
                                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                                                <TBODY>
                                                <tr>
                                                  <td class="MessageBox_Icon_ContentCell">
                                                    <div class="MessageBox_Icon"></div>
                                                  </td>
                                                  <td style="vertical-align: top;" id="messageBoxIDContent">
                                                    <span>
                                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
                                                        xxInfo: AccessTableWithNoView
                                                      </div>
                                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
                                                        xxThe current information is empty.
                                                      </div>
                                                      <div class="MessageBox_TextSeparator"></div>
                                                    </span>
                                                  </td>
                                                </tr>
                                                </TBODY>
                                              </table>
                                              </span>
                                            </td>
                                          </tr>
                                          </TBODY>
                                        </table>

                                      </td>
                                      <td class="MessageBox_RightTrans">
                                        <div class="MessageBox_TopRight"></div>
                                        <div class="MessageBox_Right"></div>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td rowspan="2" class="MessageBox_BottomLeft">
                                      </td>
                                      <td class="MessageBox_BottomTrans MessageBox_bg">
                                      </td>
                                      <td rowspan="2" class="MessageBox_BottomRight">
                                      </td>
                                    </tr>
                                    <tr>
                                      <td class="MessageBox_Bottom">
                                      </td>
                                    </tr>
                                    </TBODY>
                                  </table>

                                </td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              <tr class="MessageBox_BottomMargin">
                                <td class="MessageBox_LeftMargin"></td>
                                <td></td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              </TBODY>
                            </table>
                            <!-- MessageBox END -->
        <TABLE cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
          <TR>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
          </TR>
          <TR>
            <TD class="TitleCell"><SPAN class="LabelText">From Date</SPAN></TD>
            <TD class="TextBox_btn_ContentCell">
              <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                <TR>
                  <TD class="TextBox_ContentCell">
                    <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width required" required="true" type="text" name="inpDateFrom" id="paramDateFrom" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("paramDateFrom");</script>                    
                  </TD>
                  <TD class="FieldButton_bg">
                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='xx'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDateFrom', document.frmMain.inpDateFrom.value, false);return false;" >
                    <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                      <TR>
                        <TD class="FieldButton_bg">
                          <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></IMG>
                        </TD>
                      </TR>
                    </TABLE>
                    </A>
                  </TD>
                </TR>
              </TABLE>
            </TD>
            <TD class="TitleCell"><SPAN class="LabelText">To Date</SPAN></TD>
            <TD class="TextBox_btn_ContentCell">
              <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                <TR>
                  <TD class="TextBox_ContentCell">
                    <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width required" required="true" type="text" name="inpDateTo" id="paramDateTo" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("paramDateTo");</script>
                  </TD>
                  <TD class="FieldButton_bg">
                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='xx'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDateTo', document.frmMain.inpDateTo.value, false);return false;" >
                     <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                     <TR>
                        <TD class="FieldButton_bg">
                          <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></IMG>
                        </TD>
                      </TR>
                    </TABLE>
                    </a>
                  </TD>
                </TR>
              </TABLE>
            </TD>
            <TD class="TitleCell"><SPAN class="LabelText">Document No.</SPAN></TD>
            <TD class="TextBox_ContentCell"><INPUT type="text" name="inpDocumentNo" id="paramDocumentNo" size="10" maxlength="10" value="" class="dojoValidateValid TextBox_OneCell_width"></INPUT>
</TD>
          </TR>
          <TR> 
            <TD class="TitleCell"><SPAN class="LabelText">Description:</SPAN></TD>
            <TD class="ContentCell" colspan="5"> <TEXTAREA class="TextArea_FiveCells_width" cols="70" rows="2" name="inpDescription" id="paramDescription" onclick="logChanges(this);return true;"></TEXTAREA></TD>
          </TR>
          <tr>
            <TD></TD>
            <TD class="Button_CenterAlign_ContentCell">
              <div>
                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Results'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('FIND', true, null, null, 'superior');return false;" id="buttonSearch">
            <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Results';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
                  <tr>
                    <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="View Results in a New Window" title="View Results in a New Window" src="../../../../../web/images/blank.gif" border=0/></td>
                    <td class="Button_text">Search</td>
                    <td class="Button_right"></td>
                  </tr>
                </table>
                  </a>
              </div>
            </TD>
            <TD colspan="4"></TD>
          </TR>
        </TABLE>
      </DIV>
    </TD>
  </TR>
</TABLE>

  <INPUT type="hidden" name="inpcSettlementId" id="paramSettlement" value=""></INPUT> 
  <INPUT type="hidden" name="inpcSettlementFromFrame4" id="paramSettlement" value=""></INPUT> 
<table cellspacing="0" cellpadding="0" width="100%" style="text-align:-moz-center;_text-align:center;">
  <tr><td style="text-align: -moz-center; _text-align: center;">
  <div class="Popup_ContentPane_Client" style="overflow: auto; height: 150px; width: 781px">
    <TABLE cellspacing="0" cellpadding="0" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
      <TR class="Popup_Client_Selector_DataGrid_HeaderRow"> 
        <TH width="25px" class="DataGrid_Header_LineNoCell"> </TH>
        <TH width="122px" class="DataGrid_Header_Cell">Document No.</TH>
        <TH width="444px" class="DataGrid_Header_Cell">Description</TH>
        <TH width="153px" class="DataGrid_Header_Cell">Movement Date</TH>
      </TR>
      <DIV id="sectionDetail"> 
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="funcEvenOddRowxx" onclick="selectActual(this); submitCommandFormParameter('FRAME4',document.frmMain.inpcSettlementFromFrame4, 'xx', false, null, null, 'superior');">
          <TD width="25px" class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_RadioButton"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpcSettlementFromId" value="xx" class="CheckBox" id="CheckNumxx"></INPUT></SPAN>
          </TD>
          <TD width="122px" class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldDocumentNo">&nbsp;</TD>
          <TD width="419px" class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldDescription">&nbsp;</TD>
          <TD width="153px" class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldDate">&nbsp;</TD>
        </TR>
      </DIV>
    </TABLE>
  </div>
  </td></tr>
</TABLE>
<BR>
  <INPUT type="hidden" name="inpcSettlementId" id="paramSettlementId" value=""></INPUT> 
  <INPUT type="hidden" name="inpcSettlementFromId" id="paramSettlementFromId" value=""></INPUT>
<table cellspacing="0" cellpadding="0" width="100%"  style="text-align:-moz-center;_text-align:center;">
  <tr><td style="text-align: -moz-center; _text-align: center;">
  <div class="Popup_ContentPane_Client" style="overflow: auto; height: 150px; width: 781px">
    <TABLE cellspacing="0" cellpadding="0" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
      <TR class="Popup_Client_Selector_DataGrid_HeaderRow">
        <TH width="150px" class="DataGrid_Header_Cell">Business Partner</TH>
        <TH width="75px"  class="DataGrid_Header_Cell">Amount</TH>
        <TH width="150px" class="DataGrid_Header_Cell">Date</TH>
        <TH width="213px" class="DataGrid_Header_Cell">Concept</TH>
        <TH width="75px"  class="DataGrid_Header_Cell">Debit</TH>
        <TH width="75px"  class="DataGrid_Header_Cell">Credit</TH>
      </TR>
      <DIV id="sectionDetail2"> 
      <TR class="DataGrid_Body_Row_yy" id="funcEvenOddRow2"> 
        <TD class="DataGrid_Body_Cell">
          <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
            <TR>
              <TD>
                <INPUT type="hidden" name="inpcBpartnerIdxx" id="fieldBpartnerId" value=""></INPUT> 
                <INPUT class="dojoValidateValid TextBox_btn_OneCell_width" type="text"  name="inpcBpartnerId_Dxx" size="13" maxlength="100" value="" id="fieldBpartnerdescription"></INPUT>
              </TD>
              <TD class="FieldButton_ContentCell">
                <TABLE class="FieldButton" onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBPartnerIdxx', 'inpcBpartnerId_Dyy', document.frmMain.inpcBpartnerId_Dzz.value);return false;" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Search';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="fieldRefButtonBPartner">
                  <TR>
                    <TD class="FieldButton_bg">
                      <IMG alt="Business Partner" class="FieldButton_Icon FieldButton_Icon_BusinessPartner" title="Business Partner" src="../../../../../web/images/blank.gif" border="0"></IMG>
                    </TD>
                  </TR>
                </TABLE>
              </TD>
            </TR>
          </TABLE>
        </TD>
        <TD class="DataGrid_Body_Cell"><INPUT type="text" name="inpAmountxx" size="9" maxlength="15" value="" id="fieldAmount" class="dojoValidateValid"></INPUT></TD>
        <TD class="DataGrid_Body_Cell">
          <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
            <TR>
              <TD class="TextBox_ContentCell">
              <INPUT dojotype="openbravo:DateTextbox" displayformat="DD-MM-YYYY" saveformat="DD-MM-YYYY" class="dojoValidateValid TextBox_btn_OneCell_width" type="text" name="inpDatexx"  id="paramfieldDate" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><SCRIPT>djConfig.searchIds.push("paramfieldDate");</SCRIPT>                       
              </TD>
              <TD class="FieldButton_bg">
                <a id="dynamicDate" class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar';return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDatexx', document.frmMain.inpDateyy.value, false);return false;">
			    <TABLE class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                  <TR>
                    <TD class="FieldButton_bg">
                      <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></IMG>
                    </TD>
                  </TR>
                </TABLE>
                </a>
              </TD>
            </TR>
          </TABLE>
        </TD>
        <td colspan="3" class="DataGrid_Body_Cell" >
          <table width="100%">
            <div  id="sectionConcepto">
            <tr>
              <TD width="213px"><SPAN class="LabelText" id="fieldConcepto">xxConcepto1</SPAN></TD>
              <TD width="75px" style="text-align: -moz-center; _text-align: center;"> <INPUT type="text" name="inpDebexx" value="" size="9" maxlength="15" id="fieldDebe" class="dojoValidateValid"></INPUT></TD>
              <TD width="75px" style="text-align: -moz-center; _text-align: center;"> <INPUT type="text" name="inpHaberxx" value="" size="9" maxlength="15" id="fieldHaber" class="dojoValidateValid"></INPUT></TD>
            </tr>
            </div>
          </table>
        </td>
      </TR>
    </DIV>
  </TABLE>
  </div>
  </td></tr>
</TABLE>
</FORM>
</BODY>
</HTML>