📄 eventconditions.java
字号:
package PoliceSearch.IntegratedInformation.Event;
import javax.microedition.lcdui.*;
import PoliceSearch.*;
import PoliceSearch.Com.*;
import PoliceSearch.IntegratedInformation.*;
/**
* <p>Title: 公安查询系统</p>
* <p>Description: 章桂华</p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: otheno</p>
* @author 章桂华等
* @version 1.0
*/
public class EventConditions
extends Form
implements CommandListener {
private final static String[] typePotolStr = {
"1-盗窃", "2-杀人", "3-骚乱", "4-抢劫", "5-民事", "6-纠纷", "7-其它"};
private IntegratedInfMenu parent;
private ChoiceGroup cgEventType; //事件类型下拉
// 1-盗窃,2-杀人,3-骚乱,4-抢劫,5-民事,6-纠纷,7-其它
private TextField tfEventNo; //事件编号 *ga-09837*
private TextField tfEvenDate; //事件发生日期 *20060702*
public int itemTmp1[] = {
-1, -1, -1, -1, -1, -1};
public int intEnventCode = 0;
public EventConditions(IntegratedInfMenu iiMenu) {
super("重要事件关联条件");
parent = iiMenu;
try {
jbInit();
}
catch (Exception e) {
Log.except(e.toString());
}
}
private void jbInit() throws Exception {
cgEventType = new ChoiceGroup("事件类型", ChoiceGroup.POPUP,
typePotolStr, null);
this.append(cgEventType);
this.append(tfEventNo = new TextField("事件编号", "*ga-09837*", 30,
TextField.ANY)); //事件编号
this.append(tfEvenDate = new TextField("事件发生日期", "*20060702*", 30,
TextField.ANY)); //事件发生日期
addCommand(Resources.Cmd_Queren);
addCommand(Resources.Cmd_Back);
setCommandListener(this);
display();
}
/**
* 功能:显示当前页面
*/
public void display() {
Display.getDisplay(PoliceMain.instance).setCurrent(this);
}
/**
* 事件监听函数
* @param command-按纽号ID
* @param displayable-显示设备ID
*/
public void commandAction(Command command, Displayable displayable) {
if (displayable.equals(this)) {
if (command.equals(Resources.Cmd_Back)) {
parent.displaySubMenu();
}
if (command.equals(Resources.Cmd_Queren)) {
intEnventCode = cgEventType.getSelectedIndex();
Display.getDisplay(PoliceMain.instance).setCurrent(new EventResults(parent));
}
}
} //
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -