Note that there are some explanatory texts on larger screens.

plurals
  1. POshow manager approve documents tHRough store procedure
    primarykey
    data
    text
    <p>i have a scenario that when any user first upload document then this go for approval first to supervisor then when supervisor approve/reject documents then only approve documents go to manager then again when manager approve/reject document then only approve document shows to director for final approval</p> <pre><code>ALTER PROCEDURE [dbo].[ALLDOCUMNETS] AS begin SELECT DocumentInfo.DocID as DocumentID, dbo.DocumentInfo.DocName as DocumentName, dbo.DocumentInfo.Uploadfile as FileUploaded, dbo.DocumentInfo.UploadedBy as UploadedBy, dbo.Userss.Email as UserEmail, dbo.DocType.DocType as Document, dbo.Department.DepType as Department , dbo.Approval.AppoveBy, dbo.ApproveType.ApproveType as Status FROM dbo.Department left JOIN dbo.DocumentInfo ON dbo.DocumentInfo.DepID=dbo.Department.DepID left JOIN dbo.DocType ON dbo.DocumentInfo.DocTypeID=dbo.DocType.DocTypeID inner JOIN dbo.Userss on Userss.UserName =dbo.DocumentInfo.UploadedBy inner join dbo.Approval ON dbo.DocumentInfo.DocID = dbo.Approval.DocID INNER JOIN dbo.ApproveType ON dbo.Approval.ApproveID = dbo.ApproveType.ApproveID AND dbo.ApproveType.ApproveType = 'Approve' left join Designation on dbo.Userss.DesigID=dbo.Designation.DesigID WHERE designation.DesigType = 'Manager' </code></pre> <p>end</p> <p>see this image <a href="http://i.stack.imgur.com/w2kS6.png" rel="nofollow">record in table</a></p> <p>here in above picture record kanez is manager and sundus is supervisor</p> <p>here i want to show only kanez approve documents show to director then he will be able to final approval but here both supervisor and manager documents go to director but i want to show only kanez document approve documents to director??</p> <p>TABLES <a href="http://i.stack.imgur.com/2yvGC.png" rel="nofollow">tables</a> table viewS</p> <p>how i done this?</p> <p>designation table this is my designation table</p> <pre><code> DesignID DesigType 1 SuperVisor 2 Manager 3 Director 4 BasicUsers </code></pre> <p>and this is my approval table</p> <pre><code>SeqNo DocID ApproveID AppoveBy ApproveDate 258 30 1 sundus 2013-12-25 18:33:36.373 259 30 1 kaneez 2013-12-25 18:34:47.347 </code></pre> <p>now please tell me what can i do</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload