如何在网格视图中添加挂起列

时间:2013-10-15 18:49:15

标签: mysql asp.net sql-server stored-procedures

我正在尝试添加“待定”列

有两个表格“文件”和“批准”

我在网格视图中显示文档表,但在这里我想再添加一个“待定”列

就像这样

docid docname file documnettype deptype status
1    abc      abc.pdf  pdf        finance  pending

我想在用户上传文档时添加“待处理”列,然后其状态会自动显示为待处理。

在“批准”表格中有批准,拒绝和待处理

create procedure sppendingfilesss
as
    select  DocumentInfo.DepID,DocumentInfo.DocName,DocumentInfo.Uploadfile,DocType.DocType,Department.         DepType,ApproveType.ApproveType
    from DocumentInfo inner join DocType on   
         DocumentInfo.DocTypeID=DocType.DocTypeID       
    inner join Department on DocumentInfo.DepID=Department.DepID
    inner join ApproveType  on DocumentInfo.ApproveID=ApproveType.ApproveID  and    
         (ApproveType.ApproveType=2)

任何解决方案

1 个答案:

答案 0 :(得分:0)

???你在说:

alter table ApproveType
    add [Status] varchar(10) null 
    constraint default_Pending default 'pending';