<!-- [if !supportLists]-->1、
<!-- [endif]-->配置
JAR
包,加入
lily-2.0.jar
Hibernate
要用的包全加上:
加入开发架构平台支持包
lily-2.0.jar
<!-- [if !supportLists]-->2、
<!-- [endif]-->加入模块配置文件,
action.cfg.xml
//
例:供应商管理属于采购模块
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
action-navigator-configuration
>
<
realm
name
=
"demo"
>
<
class
name
=
"com.demo.DemoAction"
/>
<
class
name
=
"com.demo.PersistenceAction"
/>
</
realm
>
<
realm
name
=
"purchase"
>
<
class
name
=
"com.demo.virtual.PurchaseQuery"
/>
<
class
name
=
"com.demo.domain.Supplier"
/>
</
realm
>
<!-- [if !supportLists]-->3、
<!-- [endif]-->网页总配置文件,
lily.cfg.xml
//
加入网页配置文件。
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
lily-configuration
>
<!-- mapping resource path -->
<
mappings
dyna-load
=
"true"
>
<!-- default import
package and classes -->
<
import
>
java.util.*
</
import
>
<
import
>
net.sf.lily.webObject.*
</
import
>
<
import
>
net.sf.lily.webObject.event.*
</
import
>
<
import
>
net.sf.lily.webObject.filter.*
</
import
>
<
import
>
net.sf.lily.webObject.validate.*
</
import
>
<
import
>
net.sf.lily.webObject.suite.*
</
import
>
<
import
>
net.sf.lily.iwebObject.*
</
import
>
<
import
>
net.sf.lily.webObject.ListViewBuilder$.*
</
import
>
<
import
>
net.sf.lily.webObject.ViewBuilder$.*
</
import
>
<
hibernate-sources
>
<
property
name
=
"configuration-class"
>
org.hibernate.cfg.AnnotationConfiguration
</
property
>
<
property
name
=
"filepath"
>
hibernate.cfg.xml
</
property
>
</
hibernate-sources
>
<
view-sources
>
<!—-
加入网页配置文件
-->
<
resource
path
=
"com/demo/purchase.view.xml"
/>
</
view-sources
>
</
mappings
>
<!-- ui installer properties -->
<
ui
>
<
properties
name
=
"net.sf.lily.cfg.UIInstaller"
/>
<
properties
name
=
"net.sf.lily.cfg.ExUIInstaller"
/>
</
ui
>
<!-- other settings -->
<
options
>
<!-- Echo all ajax
response to stdout
-->
<
property
name
=
"show-response"
>
true
</
property
>
</
options
>
</
lily-configuration
>
<!-- [if !supportLists]-->4、
<!-- [endif]-->写一个
ActionClass
,如供应商
Supplier.java
//
建议常规写法
domain : BaseDomain
,数据对象
bo : BaseDomainBO
,业务处理对象
dao : BaseDomainDAO
,数据处理对象
<!-- [if !supportLists]-->5、
<!-- [endif]-->配置一个网页,
*.view.xml
以供应商管理为例,里面有供应商录入、编辑列表、编辑内容页面。
<
class
name
=
"Supplier"
label
=
"
供应商管理
"
>
<
property
name
=
"entity"
class
=
"Supplier"
>
<
property
name
=
"p1"
label
=
"
供应商名称
"
/>
<
property
name
=
"p2"
label
=
"
供应商开票名称
"
/>
<
property
name
=
"p3"
label
=
"
取代供应商
"
/>
<
property
name
=
"p4"
label
=
"
供应商编码
"
/>
<
property
name
=
"p5"
label
=
"
公司性质
"
/>
<
property
name
=
"p6"
label
=
"
法人
"
/>
<
property
name
=
"p8"
label
=
"
联系电话
"
/>
<
property
name
=
"p9"
label
=
"
销售经理
"
/>
<
property
name
=
"p8"
label
=
"
联系电话
"
/>
<
property
name
=
"p10"
label
=
"
注册资金
"
/>
<
property
name
=
"p11"
label
=
"
经营范围
"
/>
<
property
name
=
"p12"
label
=
"
注册时间
"
/>
<
property
name
=
"p13"
label
=
"
平均年营业额
"
/>
<
property
name
=
"p14"
label
=
"
员工人数
"
/>
<
property
name
=
"p15"
label
=
"
研发人数
"
/>
<
property
name
=
"p16"
label
=
"
付款方式
"
/>
<
property
name
=
"p17"
label
=
"
帐号
"
/>
<
property
name
=
"p18"
label
=
"
交货方式
"
/>
<
property
name
=
"p19"
label
=
"
地址
"
/>
<
property
name
=
"p20"
label
=
"
网页
"
/>
<
property
name
=
"p21"
label
=
"
订单接受人
"
/>
<
property
name
=
"p22"
label
=
"
订单接受人联系电话
"
/>
<
property
name
=
"p23"
label
=
"
传真
"
/>
<
property
name
=
"p24"
label
=
"
评估表号
"
/>
<
property
name
=
"p25"
label
=
"
供应商级别
"
/>
<
property
name
=
"taxRate"
label
=
"</span
- 大小: 12.9 KB
- 大小: 13 KB
- 大小: 11.4 KB
分享到:
相关推荐
hello world
输出HELLOWORLD然后输出Helloworld最后的最后的输出Helloworld
一个简单的qt版helloworld程序
OpenWrt之helloworld程序开发入门,里面包含helloworld和Makefile
c++编写hello world 简单的c++程序
打印HelloWorld ,在Visual Studio的开发环境当中,实现简单的操作。
一个简单的HelloWorld的mfc的程序
helloworld vbs 脚本hellohelloworld vbs 脚本world vbs 脚本helloworld vbs 脚本helloworld vbs 脚本helloworld vbs 脚本
Hello World C源码 Hello World C源码 Hello World C源码 Hello World C源码 Hello World C源码
SpringMVC ---- HelloWorld ---- 代码 SpringMVC ---- HelloWorld ---- 代码 SpringMVC ---- HelloWorld ---- 代码 SpringMVC ---- HelloWorld ---- 代码 SpringMVC ---- HelloWorld ---- 代码 SpringMVC ---- Hello...
本人写的第一个android______helloworld
hello world prog for begginer
一个简单的hibernate helloworld 下载下来就能用
abc 联系代码hello world hello worldabc 联系代码hello world hello world
MFC 编写的最简单的程序 Helloworld MFC 编写的最简单的程序 Helloworld MFC 编写的最简单的程序 Helloworld
简单的helloworld程序,适合初学者做实验用,我就是做试验用的
• 在命令行打印 hello world! 字符 //mkdir nodejs-demo //cd nodejs-demo // https://sample.wangding.in/nodejs/tern-project //mv tern-project .tern-project //mkdir 01-introduction //touch 01-hello-world....
一个helloWorld的简单插件代码
从一个简单的hello,world程序开始,经过预处理、编译、汇编、链接、加载各个步骤详细介绍程序从编辑到执行的过程。深入的讲解了linux下程序的编译过程,并且讲解了linux kernel系统调用的相关知识。
4、打开IE在地址栏输入“http://localhost:8088/FirstExt/HelloWorld.html”之后敲回车,如果一切正常,那么你会看到Ext 3.2版本的Hello world程序--它会一秒钟之后变背景色 阅读对象:希望使用新版本的Ext框架开发...