⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arrestwarrantresults.java

📁 j2me实现的移动警务的大概框架
💻 JAVA
字号:
package PoliceSearch.PoliceLog;

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 ArrestWarrantResults
    extends Form
    implements CommandListener {

//显示的第几个通缉犯
  public static int intDispPos = -1;
  public static int intPicHandle = -1;
  private final static String[] strArrestWarrantTitle = {//"照片",
      "姓名","性别","出生日期","身高","脸型","体型","方言口音","现在身份","身份证号","其它证件",
      "通缉日期","通缉编号","曾用姓名","户籍住址","现在住址","身体标记","简要案情"
  };


  private final static String[][] strArrestWarrantRst = {
      {
        "于浩",
        "男",
        "1971-11-04",
        "180",
        "无",
        "无",
        "无",
        "无",
        "370202197111044911",
        "无",
        "2006-09-18",
        "公缉[2006]120号",
        "化名王涛、刘强",
        "山东青岛市沛县路15号1单元502户",
        "山东省青岛市佳木斯路60号4栋4单元601户",
        "体格健壮、皮肤较白、高鼻梁、小眼睛、单眼皮",
        "2006年6月2日,广东省公安边防总队海警三支队侦破\"601B\"特大制贩毒品案,"
        +"抓获梁恒等12名犯罪嫌疑人,捣毁氯胺酮制毒工厂1个,缴获氯胺酮125千克、冰毒片剂12千克。现已查明,犯罪嫌疑人于浩明知梁恒等人制造氯胺酮,"
        +"于2006年3-5月出售给梁恒制毒原料盐酸羟亚胺225公斤。2006年7月15日,广东省湛江市人民检察院依法批准逮捕于浩。对发现线索的举报人、缉捕有功的单位或个人,"
        +"将给予人民币50000元奖励。"
      },{
        "董二光",
        "男",
        "1974-04-20",
        "167",
        "无",
        "中等",
        "辽宁口音",
        "无",
        "211225197404202830",
        "无",
        "2006-07-10",
        "公缉[2006]80号",
        "董大光",
        "辽宁康平县北四家子乡村北四家子村",
        "辽宁康平县北四家子乡村北四家子村",
        "无",
        "2006年3月14日,辽宁省沈阳市法库县发生一起入室杀人抢劫案,致死4人。现已查明,董二光有重大嫌疑。经工作查明,董二光还涉嫌另外4起杀人、抢劫案,现该人潜逃。对发现线索的举报人、缉捕有功的单位或个人,将给予人民币50000元奖励。"
      },{
        "董文语",
        "男",
        "1978-10-26",
        "160",
        "无",
        "中等偏瘦",
        "无",
        "无",
        "330326197810266416",
        "无",
        "2006-07-06",
        "公缉[2006]78号",
        "涂典波、王民",
        "浙江平阳县龙尾乡百尖村",
        "浙江平阳县龙尾乡百尖村",
        "无",
        "2006年3月11日至5月25日,浙江、福建、江西连续发生5起系列入室抢劫、杀人、奸尸案件,共杀死6人,重伤2人。经工作,董文语具有重大作案嫌疑,现该人潜逃。对发现线索的举报人、缉捕有功的单位或个人,将给予人民币100000元奖励。"
      },{
        "韩永应",
        "男",
        "1969-10-10",
        "170",
        "无",
        "偏瘦",
        "无",
        "无",
        "533124196910102437",
        "无",
        "2006-06-16",
        "公缉[2006]67号",
        "无",
        "云南陇川县德宏州陇川县景罕村",
        "云南陇川县德宏州陇川县景罕村",
        "无",
        "2004年11月2日,韩永万集团跨国走私贩毒.该团伙成员韩永应在缅甸购买了206千克海洛因后,与韩永万策划派员运入中国境内贩卖。对发现线索的举报人、缉捕有功的单位或个人,将给予人民币80000元奖励。"
      }
    };

  StringItem itmDisplay[] = new StringItem[20];
  public Image bmpPic = null;
  public static String strArrestPic = "/img/arrest/";
  Image bmpPolice = null;
  public String strPath = "/img/police.png";
  private Command preArrest = null;
  private Command nextArrest = null;
//  Form dispTishiForm = null;

  IntegratedInfMenu parent;
  TextField textField1;

  public ArrestWarrantResults(IntegratedInfMenu iiMenu) {
    super("通缉犯信息");
    parent = iiMenu;
    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

  private void jbInit() {
    this.addCommand(preArrest = new Command("上一个",Command.SCREEN, 1));
    this.addCommand(nextArrest = new Command("下一个",Command.SCREEN, 1));
    this.addCommand(Resources.Cmd_Back);
    intPicHandle = -1;
    intDispPos = 1 ;
    try {
      this.append(Image.createImage(strPath));
    }
    catch (Exception e) {
      e.printStackTrace();
    }
    for (int i = 0; i < strArrestWarrantTitle.length; i++){
      itmDisplay[i] = new StringItem("","");
      this.append(itmDisplay[i]);
    }
    setCommandListener(this);
  }

  public void showArrest(){
    for (int i = 0; i < strArrestWarrantTitle.length; i++) {
      itmDisplay[i].setLabel(strArrestWarrantTitle[i]+":");
      itmDisplay[i].setText(strArrestWarrantRst[intDispPos-1][i]);
    }
    String strMenPic = strArrestPic + intDispPos + ".png";
    try {
      if (intPicHandle > 0){//删除前面的图片
        this.delete(intPicHandle);
      }
      bmpPic = Image.createImage(strMenPic);
      intPicHandle = this.append(bmpPic);
    }
    catch (Exception e1) {
      e1.printStackTrace();
    }
  }

  public void commandAction(Command c, Displayable d) {
    if (c == Resources.Cmd_Back) {
      parent.display();
    }
    if (c == nextArrest) {
      intDispPos = intDispPos + 1;
      if (intDispPos > strArrestWarrantRst.length)
        intDispPos = 1;
      display();
    }
    if (c == preArrest) {
     intDispPos = intDispPos - 1;
     if (intDispPos < 1)
       intDispPos = strArrestWarrantRst.length;
     display();
   }
 }

  /**
   * 功能:显示当前页面
   */
  public void display() {
    showArrest();
    Display.getDisplay(PoliceMain.instance).setCurrent(this);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -