?? lastdayproduction.java
字號:
package com.power.pipeengine.DispatchReportMap;import java.util.*;import java.io.*;import java.text.*;import java.net.*;import com.power.util.Message.*;import com.power.pipeengine.Entity.*;import com.power.pipe.*;import com.power.util.Message.*;import com.power.pipeengine.*;import com.power.pipeengine.InputData.*;public class LastDayProduction extends InputReader { static ResourceBundle res = ResourceBundle.getBundle( "com.power.pipeengine.Res", EngineConfig.getInstance().getLocale()); private String _fileName = "lastdayproduction"; private Hashtable qtyByEmployee = new Hashtable(); private static final LastDayProduction INSTANCE = new LastDayProduction(); // Private constructor supresses // default public constructor private LastDayProduction() { } public static LastDayProduction getInstance() { return INSTANCE; } protected String getFileName() { return _fileName; } public Vector getProduction( String orderID, String styleID, Integer procID ) { String key = orderID + "&" + styleID + "&" + procID.toString(); return (Vector) qtyByEmployee.get( key ); } public void readData() throws Exception { BufferedReader d = super.getReader(); if (null == d) { return; } String token = GlobalConfig.getInstance().getSeparator(); String aLine = d.readLine(); while (aLine != null) { if (aLine.length() <= 1) { aLine = d.readLine(); continue; } StringTokenizer st = new StringTokenizer(aLine, token); Integer employeeID = new Integer(st.nextToken()); Integer procID = new Integer(st.nextToken()); String orderID = new String(st.nextToken()); String styleID = new String(st.nextToken()); Integer qty = new Integer(st.nextToken()); Object[] data = new Object[2]; data[0] = employeeID; data[1] = qty; String key = orderID + "&" + styleID + "&" + procID.toString(); Vector qbe = (Vector) qtyByEmployee.get( key ); if( qbe == null ) { qbe = new Vector(); qtyByEmployee.put( key, qbe ); } qbe.add( data ); aLine = d.readLine(); } d.close(); super.closeURLConnection(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -