public static string ImportProjectCost(Stream stream, string InputPerson) { string text; using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString())) { connection.Open(); try { ProjectCostImport import = new ProjectCostImport(); import.conn = connection; text = import.Import(stream, InputPerson); } catch (SqlException exception) { throw exception; } finally { connection.Close(); } } return(text); }
public static string GetImportProjectCostFieldDesc() { ProjectCostImport import = new ProjectCostImport(); return(import.GetDefineFieldDesc()); }