private static void ExtractPL35(StreamWriter writer, string name, string sdate, string speroid, string code, string dbName) { char[] numbers = code.ToArray(); string no = string.Join(",", numbers); DateTime datetime = DateTime.Parse(sdate); int dateint = int.Parse(datetime.ToString("yyyyMMdd")); long p = int.Parse(speroid); int n = int.Parse(speroid.Substring(speroid.Length - 3)); if (pset.Contains(p)) { return; } pset.Add(p); Data.SQLServer.PL35.DwNumberBiz biz = new Data.SQLServer.PL35.DwNumberBiz(dbName); biz.Add(biz.Create(p, n, no, dateint, sdate)); }
private static void ExtractPL35(StreamWriter writer, string name, string sdate, string speroid, string code, string dbName) { char[] numbers = code.ToArray(); string no = string.Join(",", numbers); DateTime datetime = DateTime.Parse(sdate); int dateint = int.Parse(datetime.ToString("yyyyMMdd")); long p = int.Parse(speroid); int n = int.Parse(speroid.Substring(speroid.Length - 3)); if (pset.Contains(p)) return; pset.Add(p); Data.SQLServer.PL35.DwNumberBiz biz = new Data.SQLServer.PL35.DwNumberBiz(dbName); biz.Add(biz.Create(p, n, no, dateint, sdate)); }