src/org/openbravo/erpCommon/ad_process/PriceListCreateAll.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
child 1044 8691bbc94032
permissions -rw-r--r--
Manual windows of bug 0000436 Blank required fields don't take the focus
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-2007 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>Create price list</TITLE>
juanpablo@378
    22
juanpablo@378
    23
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"/>
juanpablo@378
    24
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"/>
juanpablo@378
    25
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Manual.css" id="paramCSS"/>
juanpablo@378
    26
juanpablo@378
    27
<script language="JavaScript" type="text/javascript" id="paramDirection">
juanpablo@378
    28
var baseDirection = "../../../../../web/";
juanpablo@378
    29
</script>
juanpablo@378
    30
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
juanpablo@378
    31
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
juanpablo@378
    32
<script language="JavaScript" type="text/javascript" id="paramLanguage">
juanpablo@378
    33
  var LNG_POR_DEFECTO = "en_US";
juanpablo@378
    34
</script>
juanpablo@378
    35
<SCRIPT language="JavaScript" type="text/javascript" id="paramAlertMsg">ALERT_MSG = "Are you sure?";</SCRIPT>
asier@528
    36
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    37
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    38
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    39
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
juanpablo@378
    40
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
juanpablo@378
    41
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
juanpablo@378
    42
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
juanpablo@378
    43
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
juanpablo@378
    44
<script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
juanpablo@378
    45
<script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
juanpablo@378
    46
<script type="text/javascript"> 
juanpablo@378
    47
      //all dojo.require above this line
juanpablo@378
    48
      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
juanpablo@378
    49
</script> 
juanpablo@378
    50
juanpablo@378
    51
juanpablo@378
    52
juanpablo@378
    53
<SCRIPT language="JavaScript" type="text/javascript">
juanpablo@378
    54
function depurar(strCommand) {
juanpablo@378
    55
	if (document.forms[0].inpmPricelistVersionId.selectedIndex<1) {
gorka@1028
    56
		setWindowElementFocus(document.forms[0].inpmPricelistVersionId);
juanpablo@378
    57
		mensaje(1);
juanpablo@378
    58
		return false;
juanpablo@378
    59
	}
juanpablo@378
    60
	return true;
juanpablo@378
    61
}
juanpablo@378
    62
juanpablo@378
    63
function onloadFunctions() {
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(
david@628
    69
		  new windowTableId('client', null, 'buttonOK')
asier@528
    70
		);
asier@528
    71
		setWindowTableParentElement();
asier@528
    72
		this.tabsTables = new Array(
asier@528
    73
		  new tabTableId('tdtopTabs')
asier@528
    74
		);
asier@528
    75
		setTabTableParentElement();
asier@528
    76
		enableShortcuts('edition');
asier@528
    77
		
asier@528
    78
		resizeArea();
asier@528
    79
		try {
asier@528
    80
		  onloadFunctions();
asier@528
    81
		} catch (e) {}
asier@528
    82
		xx();
asier@528
    83
asier@528
    84
		setWindowElementFocus('firstElement');
asier@528
    85
	}
asier@528
    86
asier@528
    87
	function onResizeDo(){
asier@528
    88
		resizeArea();
asier@528
    89
	}
asier@528
    90
	</SCRIPT>
juanpablo@378
    91
</HEAD>
asier@528
    92
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();" id="paramMessage">
juanpablo@378
    93
<FORM id="form" method="POST" action="PriceListCreateAll.html" name="frmMain">
juanpablo@378
    94
  <INPUT type="hidden" name="Command">
juanpablo@378
    95
<INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
juanpablo@378
    96
  <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
juanpablo@378
    97
  
juanpablo@378
    98
  
juanpablo@378
    99
    <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
juanpablo@378
   100
    <tr>
juanpablo@378
   101
      <td valign="top" id="tdleftTabs"></td>
juanpablo@378
   102
      <td valign="top">
juanpablo@378
   103
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
juanpablo@378
   104
          <TR><TD class="Main_NavBar_bg_left" id="tdleftSeparator"></TD></TR>
juanpablo@378
   105
          <TR><TD class="Main_ToolBar_bg_left" valign="top"></TD></TR>
juanpablo@378
   106
          <TR><TD class="Main_Client_bg_left"></TD></TR>
juanpablo@378
   107
          <TR><TD class="Main_Bottom_bg_left"></TD></TR>
juanpablo@378
   108
        </TABLE>
juanpablo@378
   109
      </td>
juanpablo@378
   110
      <td valign="top">
juanpablo@378
   111
        <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
juanpablo@378
   112
        <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
juanpablo@378
   113
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
juanpablo@378
   114
          <TR id="paramParentTabContainer"></TR>
juanpablo@378
   115
          <TR id="paramMainTabContainer"></TR>
juanpablo@378
   116
          <TR id="paramChildTabContainer"></TR>
juanpablo@378
   117
        </TABLE>
juanpablo@378
   118
        <DIV class="Main_ContentPane_Client" style="overflow: auto;" id="client">
juanpablo@378
   119
                <table class="dojoTabContainer" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
juanpablo@378
   120
                  <tr>
juanpablo@378
   121
                    <td>
juanpablo@378
   122
                      <table class="dojoTabPaneWrapper" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
juanpablo@378
   123
                        <tr>
juanpablo@378
   124
                          <td>
juanpablo@378
   125
                            <!-- MessageBox -->
juanpablo@378
   126
juanpablo@378
   127
                            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
juanpablo@378
   128
                              <TBODY>
juanpablo@378
   129
                              <tr class="MessageBox_TopMargin">
juanpablo@378
   130
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   131
                                <td></td>
juanpablo@378
   132
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   133
                              </tr>
juanpablo@378
   134
                              <tr>
juanpablo@378
   135
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   136
                                <td>
juanpablo@378
   137
juanpablo@378
   138
                                  <table cellpadding="0" cellspacing="0" style="width: 100%;">
juanpablo@378
   139
                                    <TBODY>
juanpablo@378
   140
                                    <tr>
juanpablo@378
   141
                                      <td>
juanpablo@378
   142
                                        <div class="MessageBox_TopLeft"></div>
juanpablo@378
   143
                                        <div class="MessageBox_Left"></div>
juanpablo@378
   144
                                      </td>
juanpablo@378
   145
                                      <td class="MessageBox_bg">
juanpablo@378
   146
juanpablo@378
   147
                                        <table class="MessageBox_Top">
juanpablo@378
   148
                                        <TBODY>
juanpablo@378
   149
                                          <tr>
juanpablo@378
   150
                                            <td>
juanpablo@378
   151
                                              <span>
juanpablo@378
   152
                                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
juanpablo@378
   153
                                                <TBODY>
juanpablo@378
   154
                                                <tr>
juanpablo@378
   155
                                                  <td class="MessageBox_Icon_ContentCell">
juanpablo@378
   156
                                                    <div class="MessageBox_Icon"></div>
juanpablo@378
   157
                                                  </td>
juanpablo@378
   158
                                                  <td style="vertical-align: top;" id="messageBoxIDContent">
juanpablo@378
   159
                                                    <span>
juanpablo@378
   160
                                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
juanpablo@378
   161
                                                        xxInfo: AccessTableWithNoView
juanpablo@378
   162
                                                      </div>
juanpablo@378
   163
                                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
juanpablo@378
   164
                                                        xxThe current information is empty.
juanpablo@378
   165
                                                      </div>
juanpablo@378
   166
                                                      <div class="MessageBox_TextSeparator"></div>
juanpablo@378
   167
                                                    </span>
juanpablo@378
   168
                                                  </td>
juanpablo@378
   169
                                                </tr>
juanpablo@378
   170
                                                </TBODY>
juanpablo@378
   171
                                              </table>
juanpablo@378
   172
                                              </span>
juanpablo@378
   173
                                            </td>
juanpablo@378
   174
                                          </tr>
juanpablo@378
   175
                                          </TBODY>
juanpablo@378
   176
                                        </table>
juanpablo@378
   177
juanpablo@378
   178
                                      </td>
juanpablo@378
   179
                                      <td class="MessageBox_RightTrans">
juanpablo@378
   180
                                        <div class="MessageBox_TopRight"></div>
juanpablo@378
   181
                                        <div class="MessageBox_Right"></div>
juanpablo@378
   182
                                      </td>
juanpablo@378
   183
                                    </tr>
juanpablo@378
   184
                                    <tr>
juanpablo@378
   185
                                      <td rowspan="2" class="MessageBox_BottomLeft">
juanpablo@378
   186
                                      </td>
juanpablo@378
   187
                                      <td class="MessageBox_BottomTrans MessageBox_bg">
juanpablo@378
   188
                                      </td>
juanpablo@378
   189
                                      <td rowspan="2" class="MessageBox_BottomRight">
juanpablo@378
   190
                                      </td>
juanpablo@378
   191
                                    </tr>
juanpablo@378
   192
                                    <tr>
juanpablo@378
   193
                                      <td class="MessageBox_Bottom">
juanpablo@378
   194
                                      </td>
juanpablo@378
   195
                                    </tr>
juanpablo@378
   196
                                    </TBODY>
juanpablo@378
   197
                                  </table>
juanpablo@378
   198
juanpablo@378
   199
                                </td>
juanpablo@378
   200
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   201
                              </tr>
juanpablo@378
   202
                              <tr class="MessageBox_BottomMargin">
juanpablo@378
   203
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   204
                                <td></td>
juanpablo@378
   205
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   206
                              </tr>
juanpablo@378
   207
                              </TBODY>
juanpablo@378
   208
                            </table>
juanpablo@378
   209
        <!-- USER CONTROLS -->
juanpablo@378
   210
              <TABLE class="Main_Client_TableEdition">
juanpablo@378
   211
                <tr>
juanpablo@378
   212
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   213
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   214
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   215
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   216
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   217
                  <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   218
                </tr>
juanpablo@378
   219
  <tr>
juanpablo@378
   220
    <td colspan="6">
juanpablo@378
   221
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_InfoBar">
juanpablo@378
   222
        <tr>
juanpablo@378
   223
          <td class="Popup_InfoBar_Icon_cell"><IMG src="../../../../../web/images/blank.gif" border="0" class="Popup_InfoBar_Icon_info" /></td>
juanpablo@378
   224
          <td class="Popup_InfoBar_text_table">
juanpablo@378
   225
            <table>
juanpablo@378
   226
              <tr>
juanpablo@378
   227
                <td class="Popup_InfoBar_text" id="helpDiscard"><SPAN id="processHelp">&nbsp;</SPAN></td>
juanpablo@378
   228
              </tr>
juanpablo@378
   229
            </table>
juanpablo@378
   230
          </td>
juanpablo@378
   231
        </tr>
juanpablo@378
   232
      </table>
juanpablo@378
   233
    </td>
juanpablo@378
   234
  </tr>
juanpablo@378
   235
    <tr>
juanpablo@378
   236
      <td colspan="6" height="15px"></td>
juanpablo@378
   237
    </tr>
juanpablo@378
   238
   <tr>
juanpablo@378
   239
    <td/>
juanpablo@378
   240
		<td class="TitleCell"><span class="LabelText">Price List&nbsp;</span></td>
juanpablo@378
   241
juanpablo@378
   242
		<td class="Combo_ContentCell" colspan="2">
juanpablo@378
   243
    
juanpablo@378
   244
      <SELECT class="ComboKey Combo_TwoCells_width required" name="inpmPricelistVersionId" id="inpmPricelistVersionId" onchange="logChanges(this);return true;">
juanpablo@378
   245
          <OPTION value=""></OPTION><DIV id="reportM_PriceList_Version_ID"></DIV>
juanpablo@378
   246
        </SELECT>
juanpablo@378
   247
        
juanpablo@378
   248
		</td>
juanpablo@378
   249
    <td colspan="2"/>
juanpablo@378
   250
	</tr>
juanpablo@378
   251
juanpablo@378
   252
          
juanpablo@378
   253
          <tr>
juanpablo@378
   254
            <td colspan="6" height="5px"></td>
juanpablo@378
   255
          </tr>
juanpablo@378
   256
          <tr>
juanpablo@378
   257
            <td class="TitleCell"></td>
juanpablo@378
   258
            <td class="ContentCell" colspan="2"><SPAN class="LabelText" id="question">&nbsp;</SPAN></td>
juanpablo@378
   259
            <td class="ContentCell"></td>
juanpablo@378
   260
            <td class="TitleCell"></td>
juanpablo@378
   261
            <td class="ContentCell"></td>
juanpablo@378
   262
          </tr>
juanpablo@378
   263
          <tr>
juanpablo@378
   264
            <td colspan="6" height="5px"></td>
juanpablo@378
   265
          </tr>
juanpablo@378
   266
          <tr>
juanpablo@378
   267
            <td class="TitleCell"></td>
juanpablo@378
   268
            <td class="Button_RightAlign_ContentCell">
juanpablo@378
   269
              <div>
david@628
   270
                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Accept'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('SAVE', true);return false;" id="buttonOK">
juanpablo@378
   271
                <table class="Button" onmouseover="window.status='Accept';return true;" onmouseout="window.status='';return true;" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Accept';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
juanpablo@378
   272
                  <tr>
juanpablo@378
   273
                    <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border=0/></td>
juanpablo@378
   274
                    <td class="Button_text Button_width">OK</td>
juanpablo@378
   275
                    <td class="Button_right"></td>
juanpablo@378
   276
                  </tr>
juanpablo@378
   277
                </table>
juanpablo@378
   278
                </a>
juanpablo@378
   279
              </div>
juanpablo@378
   280
            </td>
juanpablo@378
   281
            <td class="Button_LeftAlign_ContentCell">
juanpablo@378
   282
              
juanpablo@378
   283
            </td>
juanpablo@378
   284
            <td class="ContentCell"></td>
juanpablo@378
   285
            <td class="TitleCell"></td>
juanpablo@378
   286
            <td class="ContentCell"></td>
juanpablo@378
   287
          </tr>
juanpablo@378
   288
              </TABLE>
juanpablo@378
   289
 
juanpablo@378
   290
juanpablo@378
   291
                      <!-- USER CONTROLS -->
juanpablo@378
   292
                </TD>
juanpablo@378
   293
              </TR>
juanpablo@378
   294
              </TABLE>
juanpablo@378
   295
              </TD>
juanpablo@378
   296
            </TR>
juanpablo@378
   297
          </TABLE>
juanpablo@378
   298
        </div>
juanpablo@378
   299
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
juanpablo@378
   300
          <TR>
juanpablo@378
   301
            <TD class="Main_Bottom_bg"><IMG src="../../../../../web/images/blank.gif" border="0"></TD>
juanpablo@378
   302
          </TR>
juanpablo@378
   303
        </TABLE></td>
juanpablo@378
   304
      <td valign="top">
juanpablo@378
   305
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
juanpablo@378
   306
          <TR><TD class="Main_NavBar_bg_right"></TD></TR>
juanpablo@378
   307
          <TR><TD class="Main_ToolBar_bg_right" valign="top"></TD></TR>
juanpablo@378
   308
          <TR><TD class="Main_Client_bg_right"></TD></TR>
juanpablo@378
   309
          <TR><TD class="Main_Bottom_bg_right"></TD></TR>
juanpablo@378
   310
        </TABLE>
juanpablo@378
   311
      </td>
juanpablo@378
   312
    </tr>
juanpablo@378
   313
  </table>
juanpablo@378
   314
    
juanpablo@378
   315
juanpablo@378
   316
</FORM>
juanpablo@378
   317
</BODY>
juanpablo@378
   318
</HTML>