private static string GetAPConst2162FromLocal(string WaferNum) { var sql = "select ApConst from WAT.dbo.WaferAPConst where Wafer= @Wafer"; var dict = new Dictionary <string, string>(); dict.Add("@Wafer", WaferNum); var dbret = DBUtility.ExeWATSqlWithRes(sql, dict); foreach (var line in dbret) { return(UT.O2S(line[0])); } return(string.Empty); }