Ejemplo n.º 1
0
        protected string ShowDeleteButton(int id)
        {
            SealFileEntity     sealFileEntity     = app.GetSealFiles(id);
            SealRequestsEntity sealRequestsEntity = app.GetSealRequests(sealFileEntity.SealRequestsID);

            if (sealFileEntity.UserID != UserInfo.UserID || sealRequestsEntity.Status >= RequestStatus.Approved)
            {
                return(" ");
            }
            else
            {
                SealsEntity sealsEntity = app.Get(sealFileEntity.SealRequestsID);
                return(string.Format("<a href=\"#\" onclick=\"deleteFile('{0}',true)\"><img border=\"0\" title=\"Delete\" src=\"/icons/17.gif\"></a>"
                                     , id));
            }
        }