示例#1
0
        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);
        }
示例#2
0
        public static string GetImportProjectCostFieldDesc()
        {
            ProjectCostImport import = new ProjectCostImport();

            return(import.GetDefineFieldDesc());
        }