📄 cardriverinforesults.java
字号:
package PoliceSearch.TrafficIncident.CarDriver;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: 个人</p> * @author 章桂华等 * @version 1.0 */public class CarDriverInfoResults extends Form implements CommandListener, ItemCommandListener { private final static String[] strCarDriverInfoTitle = { "驾驶员姓名", "驾驶员证件号", "驾驶员出生日期", "驾驶员违章历史记录", "驾驶证年检日期", "驾驶证有效期", "驾驶员自然年度扣分情况","驾驶证发证单位", "驾驶员正面相片","其它"}; private final static String[] strCarDriverInfoRst = { "王强", "321026371973010463531", "1973年1月4日", "", "10月1日", "2008年10月1日", "3分", "江西省南昌市公安局交警大队", "查看","无"}; public final int[] intSpaPos = { 3, 8}; Image bmpCar = null; public String strCarPic = "/img/items/car.png"; Image bmpPolice = null; public String strPath = "/img/police.png"; Form dispTishiForm = null; StringItem[] itemLinkPic = { null, null}; public String[] strItemLinkInf = { "关联信息", "详情"}; IntegratedInfMenu parent; TextField textField1; public CarDriverInfoResults(IntegratedInfMenu CarDriverInfoCond) { super("车辆信息查询结果"); parent = CarDriverInfoCond; try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } private void jbInit() { textField1 = new TextField("", "", 15, TextField.ANY); try { bmpPolice = Image.createImage(strPath); this.append(bmpPolice); } catch (Exception e1) { e1.printStackTrace(); } String strTemp = ""; int k = 0; for (int i = 0; i < strCarDriverInfoTitle.length; i++) { strTemp = strCarDriverInfoTitle[i] + ":" + strCarDriverInfoRst[i]; int j = 0; for (j = 0; j < intSpaPos.length; j++) { if (i == intSpaPos[j]) { break; } } if (j >= intSpaPos.length) { this.append(new StringItem(strCarDriverInfoTitle[i] + ":", strCarDriverInfoRst[i])); } else { strTemp = strCarDriverInfoTitle[i] + strCarDriverInfoRst[i]; itemLinkPic[k] = new StringItem(strTemp, strItemLinkInf[k], Item.HYPERLINK); itemLinkPic[k].setDefaultCommand(Resources.Cmd_Help); itemLinkPic[k].setItemCommandListener(this); this.append(itemLinkPic[k]); k++; } } this.addCommand(Resources.Cmd_Back); setCommandListener(this); } public void commandAction(Command c, Item item) { if (c == Resources.Cmd_Help) { if (itemLinkPic[0] == item) { //"关联信息" dispTishiForm = new Form(strItemLinkInf[1]); dispTishiForm.append(new StringItem("车主介绍", "王志强,男,1972年9月23日出生,在沙轮厂工作,2001年取的驾驶执照")); dispTishiForm.addCommand(Resources.Cmd_Queren); dispTishiForm.setCommandListener(this); Display.getDisplay(PoliceMain.instance).setCurrent(dispTishiForm); } //0 if (itemLinkPic[1] == item) { //"详情" dispTishiForm = new Form(strItemLinkInf[0]); try { dispTishiForm.append(Image.createImage(strCarPic)); } catch (Exception e) { e.printStackTrace(); } dispTishiForm.addCommand(Resources.Cmd_Queren); dispTishiForm.setCommandListener(this); Display.getDisplay(PoliceMain.instance).setCurrent(dispTishiForm); } //1 } //end c == } public void commandAction(Command c, Displayable d) { if ( (d == this) && (c == Resources.Cmd_Back)) { parent.displaySubMenu(); } if ( (d == dispTishiForm) && (c == Resources.Cmd_Queren)) { display(); } } /** * 功能:显示当前页面 */ public void display() { Display.getDisplay(PoliceMain.instance).setCurrent(this); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -