2.3 SubmitInvoice提交发货单
2.3.1 Situation情景
Company employees must fill out a purchase request if they want new supplies of pencils, paper,
and toner. A purchase request total under $10 should be approved automatically, otherwise
someone from the accounting department must also approve. Pencils cost $0.50 each, paper costs
$0.07 each, and toner costs $5.99 each.
当公司雇员需要提供新的铅笔,纸张和夹子时,他们必须填写一个购买请求。低于10
美元的购买请求将自动批准,否则财务部门的某人必须批准。铅笔每支0.5美元,纸张每
张0.07美元,夹子每个5.99美元。
Accounting can change the quantities of purchase requests costing $10 or more.
财务部门可以更改花费10美元及以上购买请求的购买数量.
2.3.2 Preparation预备
2.3.2.1 Overview 概览
1) If the PowerFolder Server has not been started, start it now.
假如PowerFolder服务器还没有启动,那么启动它。
2) Log into the PowerFolder Console
登录进入PowerFolder控制台
3) Undeploy all scripts and web pages
卸载所有的脚本和页面
4) Deploy the following script and web pages.
发布下面的脚本和页面。
Script:
脚本
- SubmitInvoice
Web Pages:
页面
- AdjustInvoice
- ApproveInvoice
- EnterInvoice
- SubmitInvoice
- ViewInvoices
2.3.2.2 How-To 怎样做
- Starting the PowerFolder Server. If you configured environment variable 'Java_HOME'
during installation, just double-click 'run_with_tomcat.bat' in Windows EXPlorer. Otherwise,
open a command console and make sure the environment variable 'JAVA_HOME' is set to base
Directory of the Java installation. Start the PowerFolder server by going to the directory then go
to the 'jboss' subdirectory then again go to the 'bin' subdirectory. Run program
'run_with_tomcat.bat'.
启动PowerFolder服务器。假如你在安装时配置了环境变量JAVA_HOME,只要在资源
治理中双击run_with_tomcat.bat。否则的话,打开一个命令控制台,设计环境变量
JAVA_HOME到Java安装的根目录。要启动PowerFolder服务器,移动到安装目录,到
jboss子目录,到bin 子目录,运行程序run_with_tomcat.bat。
- Logging into the PowerFolder Console. Open a web browser and go to the address
'http://localhost:8080/powerfolder/login'. Enter 'admin' for the user name and passWord, then
press 'Login'.
登录进入PowerFolder控制台:打开一个浏览器,到地址
'http://localhost:8080/powerfolder/login',输入admin作为用户名和口令,按下
Login按钮。
- Undeploying scripts and web pages. To undeploy scripts, from the PowerFolder Console open
'Administer' then open 'Scripts'. Check the boxes next to the scripts you want to undeploy under
the section 'Deployed Scripts' then click 'Remove Checked Scripts'. To undeploy web pages,