Click here to Skip to main content
15,881,559 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Bank System [?] Pin
sebasuraa8-May-14 6:49
sebasuraa8-May-14 6:49 
GeneralRe: Bank System [?] Pin
José Amílcar Casimiro8-May-14 7:03
José Amílcar Casimiro8-May-14 7:03 
AnswerRe: Bank System [?] Pin
jschell9-May-14 10:53
jschell9-May-14 10:53 
QuestionArchitecture for SharePoint 2013 Portal Pin
Maher Elsayed29-Apr-14 4:03
Maher Elsayed29-Apr-14 4:03 
QuestionIs 386 still supported? Pin
pixcraft18-Apr-14 1:10
pixcraft18-Apr-14 1:10 
GeneralRe: Is 386 still supported? Pin
harold aptroot18-Apr-14 2:39
harold aptroot18-Apr-14 2:39 
AnswerRe: Is 386 still supported? Pin
jschell2-May-14 10:08
jschell2-May-14 10:08 
QuestionA better way to do it? Pin
Cee Ann15-Apr-14 17:38
Cee Ann15-Apr-14 17:38 
Guys,
I have a scenario which need your advice on it.
I try to keep it short here.. So not putting whole thing in.

I need to develop a system which require approval to maintain any record.
Below is my DB design

Student Table
- StuId
- StuName
- StuAddress
- RecStatus (Deleted, Active, Pending Add, Pending Edit or Pending Delete)

Approval Table
- AprId
- AprCat (Add Request, Edit Request or Delete Request)
- AprModule (Which table to refer to)
- AprModuleId (Target Record)
- AprStatus (Pending Approval, Approve, Reject)
- AprBy
- AprDT

Approval Detail Table (Handle Edit Request Record)
- AprDId
- AprId
- UpdField (Which Field to update)
- NewValue (New Record)

For Adding record, system will insert the record into the student table and have it update as Pending Add in RecStatus. The Id will then added to Approval table for Approval Request.
For Delete Record, system will update the record as Pending Delete in RecStatus. The StuId will added to approval table for approval request.
For Edit record, system will not change the record in student table. But it added into the Approval Detail table and sit there for approval. If request approved, system will loop thru the approval detail record and update the fields one by one.

This is how I do it,
Was thinking is there any better way to work with this kind of scenario?
If yes, please point me to the right direction.

Thank
CA

AnswerRe: A better way to do it? Pin
Peter Leow15-Apr-14 18:03
professionalPeter Leow15-Apr-14 18:03 
GeneralRe: A better way to do it? Pin
Cee Ann15-Apr-14 20:32
Cee Ann15-Apr-14 20:32 
AnswerRe: A better way to do it? Pin
Mycroft Holmes15-Apr-14 20:16
professionalMycroft Holmes15-Apr-14 20:16 
GeneralRe: A better way to do it? Pin
Cee Ann15-Apr-14 20:47
Cee Ann15-Apr-14 20:47 
GeneralRe: A better way to do it? Pin
Mycroft Holmes15-Apr-14 22:35
professionalMycroft Holmes15-Apr-14 22:35 
GeneralRe: A better way to do it? Pin
Cee Ann15-Apr-14 23:10
Cee Ann15-Apr-14 23:10 
AnswerRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 0:25
professionalEddy Vluggen16-Apr-14 0:25 
GeneralRe: A better way to do it? Pin
Cee Ann16-Apr-14 2:37
Cee Ann16-Apr-14 2:37 
GeneralRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 8:31
professionalEddy Vluggen16-Apr-14 8:31 
GeneralRe: A better way to do it? Pin
Cee Ann16-Apr-14 16:09
Cee Ann16-Apr-14 16:09 
AnswerRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 22:29
professionalEddy Vluggen16-Apr-14 22:29 
JokeRe: A better way to do it? Pin
Wayne Gaylard16-Apr-14 23:09
professionalWayne Gaylard16-Apr-14 23:09 
GeneralRe: A better way to do it? Pin
Cee Ann17-Apr-14 22:03
Cee Ann17-Apr-14 22:03 
GeneralRe: A better way to do it? Pin
Eddy Vluggen18-Apr-14 0:32
professionalEddy Vluggen18-Apr-14 0:32 
GeneralRe: A better way to do it? Pin
Cee Ann20-Apr-14 19:28
Cee Ann20-Apr-14 19:28 
GeneralRe: A better way to do it? Pin
Eddy Vluggen21-Apr-14 2:15
professionalEddy Vluggen21-Apr-14 2:15 
QuestionC# threading with a child Pin
tomnmillie@yahoo.com14-Apr-14 8:15
tomnmillie@yahoo.com14-Apr-14 8:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.