/// <summary> /// 开始工作2 /// </summary> /// <param name="param"></param> public static void StartWork2(object param) { object[] arr = (object[])param; int type = (int)arr[0]; double min = (double)arr[1]; double max = (double)arr[2]; LoadHistoryDatas(); List <String> fallCodes = GetLastDayCodes(type); GetMinuteDatas(); Dictionary <String, double> pMap = Step5(fallCodes); List <String> inCode = Step6(pMap, min, max); String dateStr = DateTime.Now.ToString("yyyyMMdd"); StringBuilder result = new StringBuilder(); foreach (String code in inCode) { result.Append(code + "," + pMap[code] + "\r\n"); } String pathTemplate = DataCenter.GetAppPath() + "\\result\\result_{0}.txt"; String outputPath = String.Format(pathTemplate, dateStr); CFileA.Append(outputPath, result.ToString()); }