public static CommExpectReader CreateInstance(string strtype) { CommExpectReader ret = null; switch (strtype) { case "PK10": { ret = new PK10ExpectReader(); break; } case "TXFFC": { ret = new TXFFCExpectReader(); break; } case "": { break; } } return(ret); }
public static DataReader CreateReader(string strType, string docName, string[] codes) { DataTypePoint dtp = GlobalClass.TypeDataPoints[strType]; DataReader ret = null; switch (strType) { case "CAN28": { ret = new CAN28ExpectReader(); break; } case "TXFFC": { ret = new TXFFCExpectReader(); break; } case "CN_Stock_A": { ret = new SecurityReader(strType, docName, codes); break; } case "SCKL12": { ret = new SCKL12_ExpectReader(); break; } case "NLKL12": { ret = new NLKL12_ExpectReader(); break; } case "GDKL11": { ret = new GDKL11_ExpectReader(); break; } case "XYFT": { ret = new XYFT_ExpectReader(); break; } case "PK10": default: { ret = new ExpectReader(); break; } } return(ret); }