Ejemplo n.º 1
0
  public static void main(String[] args) {
    String org_ID = "2";
    String dataFile = "./data/wujing.xls";
    String configFile = "./config/wjzyylist.txt";
    String[] specialInfo = {
      "体检编号", // PE_ID
      "病人基本信息:登记:ID", // Cus_ID
      "姓名", // Name
      "病人基本信息:登记:年龄", // Age
      "病人基本信息:登记:性别", // Sex
      "一-身高", // Height
      "体检日期", // PE_date
    };
    long begin = System.currentTimeMillis();

    DBInfo.init();
    DataProcess dp = new DataProcess();
    dp.init();

    MyPrint.print(dataFile);
    dp.processControl(dataFile, configFile, org_ID, specialInfo);
    long between = (System.currentTimeMillis() - begin) / 1000;
    long hour = between / 3600;
    long minute = (between - 3600 * hour) / 60;
    long second = between % 60;
    MyPrint.print("Total Time: " + hour + "h " + minute + "m " + second + "s");
    dp.clearThread();

    MyPrint.print("Finished!");
  }