473,383 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Review my architecture please

I have to write a rather small project quickly, and I am trying to keep
every clean and OO. I am fairly new to .NET. I'd like your comments on my
proposed solution.

Request:
Display a list of summary information (hospitals) with some columns of
information next to each one. The columns represent how many database
records are present, and some other math is done is show statistics of parts
based on whole. No record detail is needed, just summary information about
the records.

Example:
Hospital | totals records | type A records | type B records | % of records
that are type A | % of records that are type B
Walter Reed Hospital | 100 | 10 | 90 | 10% | 90%

I then need to click on the hospital and get the department detail with the
same columns, but (obviously) just for that department.

The data that is being given to me (from an outside product - I have no
choice in the design) has 20 tables. 1 table each for the hospital and
record type (A or B). 10 hospitals, 2 record types = 20 tables. I am
creating my own tables with the hospital and department names.

I have the detailed numbers but I need to calculate the percentages.

Proposed Solution:
Write 2 methods to return the summary information and detail information.
The Summary method will return all of the records from the hospital table
joined with its data and the calculated percentages. The detail method will
take in the hospital number and return all of the records - again with all
of the appropriate columns.

As I typed this out I realized that I am not sure if I should return a
dataset from each method or an array/array list. Even though my database has
4 columns of data, my presentation layer has to display more than 4 columns.
It also has to display my calculated percentages.

Thanks,
Patrick
Nov 19 '05 #1
1 864
Sounds like you're on the right track. I'd definately recommend
DataSets over ArrayLists for handling the returned data. If you need
to, you can even modify the data locally before binding.

I'm curious why you don't simply add two tables of your own and dump
that mess of legacy data into them, along with a SourceID column to get
it back out. It would certainly simplify your code, since you'd be
looking at a grand total of 2 stored procedures rather than 20 (or a
mess of dynamic sql).

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arvie | last post by:
I need some advice guys.. I am proposing that we get someone to do a complete audit/review of our Java application codebase, about 1000 JSPs/Servlets and 100 EJBs. If I get firms to submit...
3
by: Michael Crawford | last post by:
Hi, Where would one start for this type of application: I want to create an vb.net container application that has the gives the end user the ability to install and uninstall plugins or add-in...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
0
by: Vin | last post by:
Hi, I've got a VB.Net + ASP.Net message board application which has already been customized. There are two solutions in this application. 1. The front end aspx, aspx.vb files, User controls...
4
by: apngss | last post by:
what's the differences between collocated architecture and distributed architecture?? My understanding is that collocated architecture has everything in a single machine? i.e. There is only 1...
4
by: Nick Goloborodko | last post by:
Hi, I'm in the process of conceptualizing a new ASP.NET application. I'm a relative newbie in ASP.NET / .NET in general, so any comments will be greatly appreciated. Basically i need to make...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
0
by: srikar | last post by:
Hi all, I am having a problem, when I am compiling the code in 32 bit option on a 64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from the linker . ...
10
by: aralsky | last post by:
I am looking for a fake consumer review generator that could generate realistic looking reviews for any products, kind of like on amazon.com but generated by Artificial Intelligence. Is there a...
4
gagandeepgupta16
by: gagandeepgupta16 | last post by:
Hi I have recently started working on VS2008, and very much new to WF. I have looked for some samples and articles on how WF, WCF and sequential WF are implemented. I have them in bits and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.