根据分析网上预约实验室需求,配置实验室预约管理系统菜单如下(因为还没配置权限,所以所有的菜单都显示出来了,之后配好权限后,教师,学生,管理员三种角色的菜单应该是不一样的):
配置步骤如下:
1. 打开framework\common\config\CommonUiLabels.xml,添加下面配置:
<property key="Booking">
<value xml:lang="en">booking management</value>
<value xml:lang="zh">预约管理应用</value>
</property>
2.打开hot-deploy\booking\widget\booking\BookingMenus.xml,配置如下:
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
<menu name="BookingAppBar" title="${uiLabelMap.BookingApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<!--管理员模块-->
<menu-item name="StuInfoManange" title="${uiLabelMap.StuInfoManange}">
<link target="ListStuInfo"/>
</menu-item>
<menu-item name="TchInfoManange" title="${uiLabelMap.TchInfoManange}">
<link target="ListTchInfo"/>
</menu-item>
<menu-item name="LabInfoManange" title="${uiLabelMap.LabInfoManange}">
<link target="ListLabInfo"/>
</menu-item>
<menu-item name="TermManange" title="${uiLabelMap.TermManange}">
<link target="ListTerm"/>
</menu-item>
<menu-item name="LabProjectManange" title="${uiLabelMap.LabProjectManange}">
<link target="ListLabProject"/>
</menu-item>
<menu-item name="LabProjectBatchManange" title="${uiLabelMap.LabProjectBatchManange}">
<link target="ListLabProjectBatch"/>
</menu-item>
<menu-item name="CourseManange" title="${uiLabelMap.CourseManange}">
<link target="ListCourse"/>
</menu-item>
<menu-item name="StuBookingManange" title="${uiLabelMap.StuBookingManange}">
<link target="ListStuBooking"/>
</menu-item>
<!--学生模块-->
<menu-item name="BookingLab" title="${uiLabelMap.BookingLab}">
<link target="ListLabProjectBatch"/>
</menu-item>
<menu-item name="InReview" title="${uiLabelMap.InReview}">
<link target="ListBookingInReview"/>
</menu-item>
<menu-item name="MyBooking" title="${uiLabelMap.MyBooking}">
<link target="ListMyBooking"/>
</menu-item>
<!--教师模块-->
<menu-item name="LabProjectBatchConfirm" title="${uiLabelMap.LabProjectBatchConfirm}">
<link target="ListBookedLabProjectBatch"/>
</menu-item>
<menu-item name="LabProjectBatchCancel" title="${uiLabelMap.LabProjectBatchCancel}">
<link target="ListConfirmedLabProjectBatch"/>
</menu-item>
<menu-item name="FindBookingStuInfo" title="${uiLabelMap.FindBookingStuInfo}">
<link target="ListBookingStuInfo"/>
</menu-item>
<menu-item name="FindCourseTable" title="${uiLabelMap.FindCourseTable}">
<link target="ListCourseTable"/>
</menu-item>
</menu>
</menus>
3.打开hot-deploy\booking\config\BookingUiLabels.xml文件,配置如下:
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-properties.xsd">
<property key="BookingApplication">
<value xml:lang="en">Booking Application</value>
<value xml:lang="zh">预约管理应用</value>
</property>
<property key="StuInfoManange">
<value xml:lang="en">StuInfoManange</value>
<value xml:lang="zh">学生信息管理</value>
</property>
<property key="TchInfoManange">
<value xml:lang="en">TchInfoManange</value>
<value xml:lang="zh">教师信息管理</value>
</property>
<property key="LabInfoManange">
<value xml:lang="en">LabInfoManange</value>
<value xml:lang="zh">实验室管理</value>
</property>
<property key="TermManange">
<value xml:lang="en">TermManange</value>
<value xml:lang="zh">学期管理</value>
</property>
<property key="LabProjectManange">
<value xml:lang="en">LabProjectManange</value>
<value xml:lang="zh">实验项目管理</value>
</property>
<property key="LabProjectBatchManange">
<value xml:lang="en">LabProjectBatchManange</value>
<value xml:lang="zh">实验项目批次管理</value>
</property>
<property key="CourseManange">
<value xml:lang="en">CourseManange</value>
<value xml:lang="zh">课程管理</value>
</property>
<property key="StuBookingManange">
<value xml:lang="en">StuBookingManange</value>
<value xml:lang="zh">学生预约管理</value>
</property>
<property key="BookingLab">
<value xml:lang="en">BookingLab</value>
<value xml:lang="zh">预约实验室</value>
</property>
<property key="InReview">
<value xml:lang="en">InReview</value>
<value xml:lang="zh">审核中预约</value>
</property>
<property key="MyBooking">
<value xml:lang="en">MyBooking</value>
<value xml:lang="zh">我的预约</value>
</property>
<property key="LabProjectBatchConfirm">
<value xml:lang="en">LabProjectBatchConfirm</value>
<value xml:lang="zh">实验项目批次确认</value>
</property>
<property key="LabProjectBatchCancel">
<value xml:lang="en">LabProjectBatchCancel</value>
<value xml:lang="zh">实验项目批次取消</value>
</property>
<property key="FindBookingStuInfo">
<value xml:lang="en">FindBookingStuInfo</value>
<value xml:lang="zh">浏览预约学生信息</value>
</property>
<property key="FindCourseTable">
<value xml:lang="en">FindCourseTable</value>
<value xml:lang="zh">浏览实验课课表</value>
</property>
</resource>
配置好后启动ofbiz系统,使用booking/ofbiz登录后就显示前面的demo界面。