Debasis Mohapatra

Debasis Mohapatra

  • 1.5k
  • 376
  • 15.3k

Leave Management for approved SP how to do the Logic

Sep 18 2019 10:55 AM
I am doing Leave Management project in c#.
Through Free template i have created Master page ,Employee Details,Role,Department,Leave Type in Admin.
Now when the user will login with valid user id and password then the user can select the leave type dropdown,department dropdown,description,Approver dropdown and from date and todate. After click the submit the data is saved in the database. and through Joining the user can see the details in the gridview in panel view.
Now the mail has to go to approver to approved the leave and the status will show as in pending status in gridview. So what will be my SP to write if it's 0 then status will pending when 1 then approved when 2 then it will reject i the status.
Could you please guide me how to write the SP for this logic.

Brought to you by:

Answers (3)