📄 integratedinfmenu.java
字号:
package PoliceSearch.IntegratedInformation;
import javax.microedition.lcdui.*;
import PoliceSearch.*;
import PoliceSearch.Com.*;
import PoliceSearch.IntegratedInformation.Event.*;
import PoliceSearch.IntegratedInformation.Items.*;
import PoliceSearch.IntegratedInformation.People.*;
import PoliceSearch.Login.*;
import PoliceSearch.TrafficIncident.CarDriver.*;
import PoliceSearch.CommunityPolicing.*;
import PoliceSearch.PoliceLog.*;
/**
* <p>Title: 公安查询系统</p>
* <p>Description: 章桂华</p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: otheno</p>
* @author 章桂华等
* @version 1.0
*/
public class IntegratedInfMenu
extends Form
implements CommandListener {
private String[] mainElements = {
"1-综合信息",
"2-交通事件",
"3-社区治安",
"4-警务日志",
"5-系统设置"
};
private String[][] subElements = {
{
"人要素", "物要素", "事件要素", "机构要素", "法律法规", "通讯录"}
, {
"现场事故处理","历史车辆事故信息", "违章查询","电子警察处罚录入","违章现场录入","驾驶员信息", "车辆信息"}
, {
"出租房屋", "暂住人口", "娱乐从业人员", "可疑人员行踪"}
, {
"通缉令","我的辖区", "出警通知", "交通通知", "整治通知", "光荣榜"}
, {
"系统升级", "修改密码", "网络测试", "环境参数"}
};
public List IntegratedInfMenuList, subMenuList;
private Ticker ticker1 = null, ticker2 = null;
private LoginForm parent;
private int IntegratedInfMenuNo = 0;
public IntegratedInfMenu(LoginForm login) {
super("公安查询功能选择");
parent = login;
try {
jbInit();
}
catch (Exception e) {
Log.except(e.toString());
}
}
private void jbInit() throws Exception {
ticker1 = new Ticker("");
IntegratedInfMenuList = new List("主菜单功能选择:", List.IMPLICIT, mainElements, null);
IntegratedInfMenuList.setTicker(ticker1);
IntegratedInfMenuList.addCommand(Resources.Cmd_Selected);
IntegratedInfMenuList.addCommand(Resources.Cmd_Back);
IntegratedInfMenuList.setCommandListener(this);
}
/**
* 功能:完成子菜单功能显示
* @throws java.lang.Exception
*/
public void displaySubMenu() {
try{
subMenuList = new List("具体菜单功能选择:", List.IMPLICIT,
subElements[this.IntegratedInfMenuNo - 1], null);
ticker2 = new Ticker("");
subMenuList.setTicker(ticker2);
subMenuList.addCommand(Resources.Cmd_Selected);
subMenuList.addCommand(Resources.Cmd_Back);
subMenuList.setCommandListener(this);
Display.getDisplay(PoliceMain.instance).setCurrent(subMenuList);
}catch(Exception e1){
Log.except(e1.toString());
}
}
/**
* 功能:显示当前页面
*/
public void display() {
setTickerTitle();
Display.getDisplay(PoliceMain.instance).setCurrent(IntegratedInfMenuList);
}
/**
* 功能:显示当前页面
*/
public void setTickerTitle() {
String strTikerTitle = "欢迎使用江西通用警务查询系统.....";
if (ticker1 != null) {
ticker1.setString(strTikerTitle);
}
if (ticker2 != null) {
ticker2.setString(strTikerTitle);
}
}
/**
* 事件监听函数
* @param command-按纽号ID
* @param displayable-显示设备ID
*/
public void commandAction(Command command, Displayable displayable) {
if (displayable.equals(IntegratedInfMenuList)) {
if (command.equals(Resources.Cmd_Back)) {
Display.getDisplay(PoliceMain.instance).setCurrent(parent);
}
if (command.equals(Resources.Cmd_Selected)) {
this.IntegratedInfMenuNo = IntegratedInfMenuList.getSelectedIndex() + 1;
try {
displaySubMenu();
setTickerTitle();
Display.getDisplay(PoliceMain.instance).setCurrent(subMenuList);
}
catch (Exception e) {
Log.except(e.toString());
}
}
} //....end if (displayable.equals(IntegratedInfMenuList))
if (displayable.equals(subMenuList)) {
//....begin if (displayable.equals(subMenuList))
if (command.equals(Resources.Cmd_Back)) {
this.display();
return;
}
int subPos = subMenuList.getSelectedIndex() + 1;
switch (this.IntegratedInfMenuNo) {
case 1: //主菜单1
switch (subPos) {
case 1:
PeopleConditions poepoleContion = new PeopleConditions(this);
Display.getDisplay(PoliceMain.instance).setCurrent(poepoleContion);
break;
case 2:
(new ItemsConditions(this)).display();
break;
case 3:
(new EventConditions(this)).display();
break;
case 4:// "机构要素", "法律法规", "通讯录"
Resources.cfgMsg.setTitle("机构要素");
Resources.cfgMsg.setDisplayRtn(this, "机构要素:\n略;");
Resources.cfgMsg.display();
break;
case 5:
Resources.cfgMsg.setTitle("法律法规");
Resources.cfgMsg.setDisplayRtn(this, "法律法规:\n略;");
Resources.cfgMsg.display();
break;
case 6:
Resources.cfgMsg.setTitle("通讯录");
Resources.cfgMsg.setDisplayRtn(this, "通讯录:\n略;");
Resources.cfgMsg.display();
break;
}
break;
case 2: //主菜单2
switch (subPos) {
case 1:
(new TrafficAccidentsInput(this)).display();
break;
case 2:
(new TrafficAccidentsConditions(this)).display();
break;
case 3:
(new TrafficViolationsConditions(this)).display();
break;
case 4:
(new TrafficViolationsElecInput(this)).display();
break;
case 5:
(new TrafficViolationsSceneInput(this)).display();
break;
case 6:
(new CarDriverInfoConditions(this)).display();
break;
case 7:
(new CarInfoConditions(this)).display();
break;
}
break;
case 3: //主菜单3
switch (subPos) {
case 1://出租房屋
(new RentalHousingConditions(this)).display();
break;
case 2://暂住人口
(new TransientPopulationConditions(this)).display();
break;
case 3://娱乐从业人员
(new EntertainManConditions(this)).display();
break;
case 4://可疑人员行踪
(new SuspiciousPersonConditions(this)).display();
break;
}
break;
case 4:
switch (subPos) {
case 1: //"通缉令"
(new ArrestWarrantResults(this)).display();
break;
case 2: //"我的辖区"
Resources.cfgMsg.setTitle("我的辖区信息公告");
Resources.cfgMsg.setDisplayRtn(this, "最近5个工作日工作安排:\n(1)2006年11月6日上午,去周大妈家慰问她全家,协助市第一小学同学上门替她大扫卫生;\n(2)--20061106下午去所里开例会;\n(3)--"
+
"2006年11月7日上午,去几个重点对象家了解生活情况;\n(4)--2006年11月7日下午,继续走访那几个从监狱出来的人员;"
+ ";\n(5)--2006年11月8日上午,去辖区街道班开会;\n(6)--2006年11月8日下午,去分局开会;\n(7)--2006年11月9日上午,所里安排体检,体检后回所里整理材料;"
+ "\n(8)--2006年11月9日下午,去几个优秀拥军家庭走访和座谈,了解他们全家生活中的困难;\n(9)--2006年11月10日上午,协助居委会参与调解王强家纠纷;2006年11月10日下午,所里周末政治学习"
);
Resources.cfgMsg.display();
break;
case 3: //"出警通知"
Resources.cfgMsg.setTitle("出警通知查询");
Resources.cfgMsg.setDisplayRtn(this, "最近统一出警安排:\n(1)--所里定于2006年11月10日,对所有网吧进行一次突击检查,出发时间到所里集合;"
+"\n(2)--分局定于2006年11月17日,对所有网吧进行专项检查;\n(3)全市定于2006年12月2日,对所有网吧进行专项检查;"
+"\n(3)--2006年11月8日下午3点到下午3点半,由于重要贵宾到达省政府,北京西路全路到机场端紧急封路;");
Resources.cfgMsg.display();
break;
case 4: //"交通通知"
Resources.cfgMsg.setTitle("交通信息");
Resources.cfgMsg.setDisplayRtn(this, "实时交通信息:\n(1)--2006年11月5日11点10分,南京路主干道车流量非常大;"
+"\n(2)--2006年11月5日13点10分,北京西路主干道车流量正常;");
Resources.cfgMsg.display();
break;
case 5: //"整治通知"
Resources.cfgMsg.setTitle("道路专项整顿通知");
Resources.cfgMsg.setDisplayRtn(this, "道路专项整顿通知:\n(1)--2006年11月8日下午3点到晚上6点半,全市所有交警全部到路面进行机动车辆的专项整治,对于不按规定乱停靠路边的车辆进行现场拍照和处罚;"
+"\n(2)--2006年11月10日11点到中午1点,对所有机动摩托车进行现场检查;");
Resources.cfgMsg.display();
break;
case 6: //"光荣榜"
Resources.cfgMsg.setTitle("全局光荣榜");
Resources.cfgMsg.setDisplayRtn(this, "全局光荣榜:\n(1)--2006年11月5日下午3点左右,南昌市青云谱交警大队王凯执行任务时协助路面人员成功阻挡住一起路面抢劫事件;"
+"\n(2)--2006年11月5日下午19点左右,南昌市城北派出所民警吴昊、许琴与广大群众一起成功抓获网上通缉犯邱兴华;");
Resources.cfgMsg.display();
break;
}
break;
case 5: //主菜单4
switch (subPos) {
case 1://"系统升级"
Resources.cfgMsg.setTitle("提示:系统已经检测完您机器上的版本和目前最新版本号.");
Resources.cfgMsg.setDisplayRtn(this, "您当前版本号V1.1.2.0;\n目前最新版本号V1.2.3.1;");
Resources.cfgMsg.display();
break;
case 2://"修改密码"
(new ChangePasswd(this)).display();
break;
case 3://"网络测试"
//(new SystemParameter(this)).display();
break;
case 4://"环境参数"
(new SystemParameter(this)).display();
break;
}
break;
}
} //....end if (displayable.equals(subMenuList))
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -