Last post Jul 29, 2010 12:54 AM by sharmanilu
Jul 28, 2010 04:13 PM|Shaynej|LINK
I want to begin by saying I am using .Net Framework 4.0 and the Entity Framework.
I am looking for adivce on developing a framework for an application that I am writing.
This is a "port" of an existing application so I am trying to minimize user training and mimic that application as much as possible.
I am using the Entity Framework. I am not opposed to creating a Business Logic Layer for accessing the data (I have done this before with LINQ to SQL and a "per request" context model), but I am attempting to just use the new "EntityDataSource" and let the
framework manage the model and context as much as possible to increase development time.
So far, it is working well. I have several SIMPLE CRUD pages that use a ListView and are bound to the EntityDataSource. These pages simply manage individual tables.
Now, I am geting into a part of the application that is a little more complex. The general structure of the existing application is as follows:
There are several Modules such as "Jobs", "Quotes", "Invoices", etc.
For each module there are the following pages: "Query", "Statement", "Add", "Edit" and "Read Only".
(The application was designed this way in order to allow secutiry to be administered on a PER PAGE basis.)
For my .Net port I am going to mimic the same structure with the exception of probably not having an indivudual "Read Only" page since I can template this out using the ListView control.
The Query page is easily designed and I have designed one of them already. I simply use the ListView control and bind it to an EDS, but leave off the templates and EDS hooks for Create, Update and Delete.
I am trying to decide how to "link" this to the "Statement" page. The Statement page is a Read Only summary of the "module". It contains the "important" fields and at the bottom provides tabs to the other modules. For instance, the Job statement page wold
have the Job Number, the date created, the customer, etc then below that would be a set of tabs such as "Customer" (Customer details such as address) "Quote" (All the quotes that are "assigned" to the Job) "Invoice" (All the Invoices related to the Job) etc.
To "link" to this (Statement) page (from the Query page) should I use the ListView "select" command" or should I wire up each column with a hyperlink. (And, how would I accomplish either of these options??) Also, how would you "code" the statement page?
I am leaning toward a DetailView control bound to an EDS and then on the EDS use one of the "query string where parameters".
Advice? (I think once I figure out the best way to hook up this "Query to Statement" scenario, the rest of the framework should fall into place.)
Jul 29, 2010 12:54 AM|sharmanilu|LINK