📄 trafficviolationsresults.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 TrafficViolationsResults extends Form implements CommandListener, ItemCommandListener { private final static String[] strTrafTitle = { "交通违章编号", "车牌号","交通违章发生时间","交通违章发生地点","车型", "颜色","发动机号","违章驾驶员","驾驶员姓名","驾驶员联系电话", "违章现场图片", "处理结果","本车历史违章记录","驾驶员历史违章记录","其他"}; private final static String[] strTrafRst = { "A2653", "赣B21353","2005年04月01日19点23分","火车站门口红灯","伊兰特", "黑色","HGKSDGSDL786535","301028761965030846321","王维","13807687262", "有","带罚款单到交通银行缴款","详情","详情", "无"}; public final int[] intSpaPos = { 10,12,13}; Image bmpDriverKill = null; public String strDriverKillPic = "/img/traffic/traffic.png"; Image bmpPolice = null; public String strPath = "/img/police.png"; Form dispTishiForm = null; StringItem[] itemLinkPic = { null,null,null}; public String[] strItemLinkInf = { "违章图片详情","详情","详情"}; IntegratedInfMenu parent; public TrafficViolationsResults(IntegratedInfMenu ItemsCon) { super("交通违章查询结果"); parent = ItemsCon; try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } private void jbInit() { try { bmpPolice = Image.createImage(strPath); this.append(bmpPolice); } catch (Exception e1) { e1.printStackTrace(); } String strTemp = ""; int k = 0; for (int i = 0; i < strTrafTitle.length; i++) { strTemp = strTrafTitle[i] + ":" + strTrafRst[i]; int j = 0; for (j = 0; j < intSpaPos.length; j++) { if (i == intSpaPos[j]) { break; } } if (j >= intSpaPos.length) { this.append(new StringItem(strTrafTitle[i] + ":", strTrafRst[i])); } else { strTemp = strTrafTitle[i] + strTrafRst[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[0]); try { dispTishiForm.append(bmpDriverKill = Image.createImage(strDriverKillPic)); } catch (Exception e) { e.printStackTrace(); } dispTishiForm.addCommand(Resources.Cmd_Queren); dispTishiForm.setCommandListener(this); Display.getDisplay(PoliceMain.instance).setCurrent(dispTishiForm); } //1 if (itemLinkPic[1] == item) { //"车辆违章记录" dispTishiForm = new Form(strItemLinkInf[0]); try { dispTishiForm.append(bmpDriverKill = Image.createImage(strPath)); } catch (Exception e) { e.printStackTrace(); } dispTishiForm.append(new StringItem("车辆违章记录", "")); dispTishiForm.append(new StringItem("", "1---2005年2月21日,赣A47353乱停在路边,罚款50元;")); dispTishiForm.append(new StringItem("", "2---2006年3月1日,赣A47353闯红灯,罚款500元;")); dispTishiForm.addCommand(Resources.Cmd_Queren); dispTishiForm.setCommandListener(this); Display.getDisplay(PoliceMain.instance).setCurrent(dispTishiForm); } //2 if (itemLinkPic[2] == item) { //"驾驶员违章记录" dispTishiForm = new Form(strItemLinkInf[0]); try { dispTishiForm.append(bmpDriverKill = Image.createImage(strPath)); } catch (Exception e) { e.printStackTrace(); } dispTishiForm.append(new StringItem("车辆违章记录", "")); dispTishiForm.append(new StringItem("", "1---2003年9月18日,驾驶员驾驶赣B34214行使到人行道,罚款10元,扣2分;")); dispTishiForm.addCommand(Resources.Cmd_Queren); dispTishiForm.setCommandListener(this); Display.getDisplay(PoliceMain.instance).setCurrent(dispTishiForm); } //2 } //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 + -