forked from SparkDevNetwork/Rock
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Documents.ascx.cs
641 lines (543 loc) · 25.8 KB
/
Documents.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
// <copyright>
// Copyright by the Spark Development Network
//
// Licensed under the Rock Community License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.rockrms.com/license
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using Rock;
using Rock.Attribute;
using Rock.Data;
using Rock.Model;
using Rock.Security;
using Rock.Web.Cache;
using Rock.Web.UI;
using Rock.Web.UI.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace RockWeb.Blocks.Crm
{
[DisplayName( "Documents" )]
[Category( "CRM" )]
[Description( "Add documents to the current context object." )]
[ContextAware]
#region Block Attributes
[TextField( "Heading Title",
Description = "The title of the heading.",
IsRequired = false,
Order = 0,
Key = AttributeKeys.HeadingTitle )]
[TextField( "Heading Icon CSS Class",
Description = "The Icon CSS Class for use in the heading.",
IsRequired = false,
Order = 1,
Key = AttributeKeys.HeadingIconCssClass )]
[DocumentTypeField( "Document Types",
Description = "The document types that should be displayed.",
IsRequired = false,
Order = 2,
Key = AttributeKeys.DocumentTypes )]
[BooleanField( "Show Security Button",
Description = "Show or hide the security button to add or edit security for the document.",
IsRequired = true,
DefaultBooleanValue = true,
Order = 3,
Key = AttributeKeys.ShowSecurityButton )]
#endregion Block Attributes
[Rock.SystemGuid.BlockTypeGuid( "A8456E2D-1930-4FF7-8A46-FB0800AC31E0" )]
public partial class Documents : RockBlock, ISecondaryBlock
{
private static class AttributeKeys
{
public const string HeadingTitle = "HeadingTitle";
public const string HeadingIconCssClass = "HeadingIconCssClass";
public const string DocumentTypes = "DocumentTypes";
public const string ShowSecurityButton = "ShowSecurityButton";
}
protected string icon;
protected string title;
#region ISecondaryBlock Implementation
/// <summary>
/// Hook so that other blocks can set the visibility of all ISecondaryBlocks on its page
/// </summary>
/// <param name="visible">if set to <c>true</c> [visible].</param>
public void SetVisible( bool visible )
{
pnlContent.Visible = visible;
}
#endregion ISecondaryBlock Implementation
#region Control Overrides
protected override void OnInit( EventArgs e )
{
base.OnInit( e );
icon = GetAttributeValue( AttributeKeys.HeadingIconCssClass ) ?? string.Empty;
title = GetAttributeValue( AttributeKeys.HeadingTitle ) ?? string.Empty;
this.BlockUpdated += Block_BlockUpdated;
gFileList.DataKeyNames = new string[] { "Id" };
gFileList.GridRebind += gFileList_GridRebind;
gFileList.Actions.AddClick += gFileList_Add;
gFileList.Actions.ShowAdd = true;
gFileList.RowSelected += gFileList_RowSelected;
gFileList.IsDeleteEnabled = true;
// Configure security button
var securityColumn = gFileList.ColumnsOfType<SecurityField>().FirstOrDefault();
// Set the security on the document and not the entity the document is for.
securityColumn.EntityTypeId = EntityTypeCache.GetId( Rock.SystemGuid.EntityType.DOCUMENT ).Value;
}
protected override void OnLoad( EventArgs e )
{
if ( !IsValidBlockSettings() )
{
return;
}
if ( !IsPostBack )
{
PopulateFilterDocumentTypeDropDownList();
BindGrid();
}
else
{
// Register download buttons as PostBackControls since they are returning a File download
// Do this here because the postback control registration is lost after a partial postback and needs to be redone after a edit save/cancel.
RegisterDownloadButtonsAsPostBackControls();
if ( ddlAddEditDocumentType.SelectedIndex == 0 )
{
ShowNotificationAndHideUploader();
}
}
base.OnLoad( e );
}
#endregion Control Overrides
#region Control Events
protected void Block_BlockUpdated( object sender, EventArgs e )
{
if ( !IsValidBlockSettings() )
{
return;
}
PopulateFilterDocumentTypeDropDownList();
BindGrid();
}
#endregion Control Events
#region Private Methods
/// <summary>
/// Validates if the block settings are OK and sets the warning message and/or panel visibility.
/// </summary>
/// <returns>true if valid, false otherwise.</returns>
private bool IsValidBlockSettings()
{
var pageContextEntityTypes = this.RockPage.GetContextEntityTypes();
var blockContextEntityTypes = ContextTypesRequired;
bool hasError = false;
nbMessage.Text = string.Empty;
nbMessage.Visible = false;
// Ensure the block ContextEntity is configured
if ( !blockContextEntityTypes.Any() )
{
nbMessage.Text = "The block context entity has not been configured. Go to block settings and select the Entity Type in the 'Context' drop-down list.<br/>";
hasError = true;
}
// Ensure the page ContextEntity page parameter is configured.
var pageContextTypes = pageContextEntityTypes.Select( x => x.Name );
var requiredTypes = ContextTypesRequired.Select( x => x.Name );
if ( !pageContextEntityTypes.Any()
|| !requiredTypes.All( item => pageContextTypes.Contains( item ) ) )
{
nbMessage.Text += "The page context entity has not been configured for this block. Go to Page Properties and click Advanced and enter a valid parameter name under 'Context Parameters'.<br/>";
hasError = true;
}
// Show the error if there is one
if ( hasError )
{
nbMessage.Text = nbMessage.Text.TrimEnd( "<br/>".ToCharArray() );
nbMessage.Visible = true;
pnlList.Visible = false;
return false;
}
// If there isn't an entity at this point a new item is being created and there isn't an ID for it yet. So don't show the block.
if ( this.ContextEntity() == null )
{
pnlContent.Visible = false;
return false;
}
// Show the list if the Add/Edit panel is not visible
pnlList.Visible = !pnlAddEdit.Visible;
return true;
}
/// <summary>
/// Registers the download buttons as post back controls.
/// This is because the page has to do a full postback to download the file.
/// </summary>
private void RegisterDownloadButtonsAsPostBackControls()
{
foreach ( GridViewRow row in gFileList.Rows )
{
LinkButton downloadLinkButton = ( LinkButton ) row.FindControl( "lbDownload" );
ScriptManager.GetCurrent( this.Page ).RegisterPostBackControl( downloadLinkButton );
}
}
/// <summary>
/// Clears the Add/Edit form.
/// </summary>
private void ClearForm()
{
pdAuditDetails.Visible = true;
ddlAddEditDocumentType.Enabled = true;
ddlAddEditDocumentType.SelectedIndex = 0;
tbDocumentName.Text = string.Empty;
tbDescription.Text = string.Empty;
pnlAddEdit.Visible = false;
pnlList.Visible = true;
hfDocumentId.Value = string.Empty;
fuUploader.BinaryFileId = null;
fuUploader.ParentEntityTypeId = null;
fuUploader.ParentEntityId = null;
}
/// <summary>
/// Populates the filter document type drop down list.
/// </summary>
private void PopulateFilterDocumentTypeDropDownList()
{
var filteredDocumentTypes = GetFilteredDocumentTypes();
ddlDocumentType.Items.Clear();
if ( filteredDocumentTypes.Any() )
{
ddlDocumentType.Items.Add( new ListItem( "All Document Types", string.Empty ) );
foreach ( var documentType in filteredDocumentTypes )
{
ddlDocumentType.Items.Add( new ListItem( documentType.Name, documentType.Id.ToString() ) );
}
}
}
/// <summary>
/// Populates the edit document type drop down list.
/// </summary>
private void PopulateEditDocumentTypeDropDownList( bool isNew = false )
{
var filteredDocumentTypes = GetFilteredDocumentTypes( false );
/*
SK 20120-10-10
Only check for Audit authorization for new documents as document type field is readonly on edit
*/
if ( isNew )
{
var editAccessDeniedForDocumentTypeList = new List<int>();
foreach ( var documentType in filteredDocumentTypes )
{
if ( !documentType.IsAuthorized( Authorization.EDIT, this.CurrentPerson ) )
{
editAccessDeniedForDocumentTypeList.Add( documentType.Id );
}
}
filteredDocumentTypes = filteredDocumentTypes
.Where( d => !editAccessDeniedForDocumentTypeList.Contains( d.Id ) );
}
filteredDocumentTypes = filteredDocumentTypes.Where( a => !isNew || a.UserSelectable );
ddlAddEditDocumentType.Items.Clear();
ddlAddEditDocumentType.Items.Add( new ListItem( string.Empty, string.Empty ) );
if ( filteredDocumentTypes.Any() )
{
foreach ( var documentType in filteredDocumentTypes )
{
ddlAddEditDocumentType.Items.Add( new ListItem( documentType.Name, documentType.Id.ToString() ) );
}
}
}
/// <summary>
/// Get filtered document Types
/// </summary>
private IEnumerable<DocumentTypeCache> GetFilteredDocumentTypes( bool considerMaxDocumentsPerEntity = false )
{
var contextEntity = this.ContextEntity();
if ( contextEntity == null )
{
return new List<DocumentTypeCache>();
}
var entityTypeId = contextEntity.TypeId;
List<DocumentTypeCache> documentypesForContextEntityType = DocumentTypeCache.GetByEntity( entityTypeId, true );
if ( considerMaxDocumentsPerEntity )
{
var rockContext = new RockContext();
var documentQry = new DocumentService( rockContext ).Queryable().Where( a => a.EntityId == contextEntity.Id );
documentypesForContextEntityType = documentypesForContextEntityType
.Where( a => !a.MaxDocumentsPerEntity.HasValue
|| documentQry.Where( b => b.DocumentTypeId == a.Id ).Count() < a.MaxDocumentsPerEntity.Value )
.ToList();
}
// Get the document types allowed from the block settings and only have those in the list of document types for the entity
if ( GetAttributeValue( AttributeKeys.DocumentTypes ).IsNotNullOrWhiteSpace() )
{
var blockAttributeFilteredDocumentTypes = GetAttributeValue( AttributeKeys.DocumentTypes ).Split( ',' ).Select( int.Parse ).ToList();
documentypesForContextEntityType = documentypesForContextEntityType.Where( d => blockAttributeFilteredDocumentTypes.Contains( d.Id ) ).ToList();
}
// Remove document types from the list that do not match the EntityTypeQualifiers
var accessDeniedForDocumentTypeList = new List<int>();
foreach ( var documentType in documentypesForContextEntityType )
{
// Check System Security on the type
if ( !documentType.IsAuthorized( Authorization.VIEW, this.CurrentPerson ) )
{
accessDeniedForDocumentTypeList.Add( documentType.Id );
continue;
}
// If the document does not have a qualifier column specified then allow it by default
if ( documentType.EntityTypeQualifierColumn.IsNotNullOrWhiteSpace() )
{
// Check that the EntityTypeQualifierColumn is a property for this entity, if not then remove it by default
if ( contextEntity.GetType().GetProperty( documentType.EntityTypeQualifierColumn ) == null )
{
accessDeniedForDocumentTypeList.Add( documentType.Id );
continue;
}
// Get the value of the property specified in DocumentType.EntityTypeQualifierColumn from the current ContextEntity
string entityPropVal = this.ContextEntity().GetPropertyValue( documentType.EntityTypeQualifierColumn ).ToString();
// If the entity property values does not match DocumentType.EntityTypeQualifierValue then it should be removed.
if ( entityPropVal != documentType.EntityTypeQualifierValue )
{
accessDeniedForDocumentTypeList.Add( documentType.Id );
}
}
}
// Create the list of document types that are valid for this entity, satisfy EntityTypeQualifiers, and that the current user has rights to view
return documentypesForContextEntityType.Where( d => !accessDeniedForDocumentTypeList.Contains( d.Id ) );
}
#endregion Private Methods
#region Grid Events
protected void gFileList_RowDataBound( object sender, GridViewRowEventArgs e )
{
var document = ( Document ) e.Row.DataItem;
if ( document == null )
{
return;
}
// Check access for the document type and the document.
bool canView = document.DocumentType.IsAuthorized( Authorization.VIEW, this.CurrentPerson ) && document.IsAuthorized( Authorization.VIEW, this.CurrentPerson );
bool canEdit = document.DocumentType.IsAuthorized( Authorization.EDIT, this.CurrentPerson ) && document.IsAuthorized( Authorization.EDIT, this.CurrentPerson );
if ( !canView )
{
e.Row.Visible = false;
}
// disable delete button
var deleteField = gFileList.ColumnsOfType<DeleteField>().FirstOrDefault();
var deleteFieldIndex = gFileList.Columns.IndexOf( deleteField );
var deleteButtonCell = ( ( DataControlFieldCell ) e.Row.Cells[deleteFieldIndex] ).Controls[0];
deleteButtonCell.Visible = canEdit;
// disable security button
var showSecurityButton = GetAttributeValue( AttributeKeys.ShowSecurityButton ).AsBoolean();
var viewDocumentField = gFileList.ColumnsOfType<HyperLinkField>().FirstOrDefault();
var viewDocumentFieldIndex = gFileList.Columns.IndexOf( viewDocumentField );
var viewDocumentHyperLink = ( HyperLink ) e.Row.Cells[viewDocumentFieldIndex].Controls[0];
viewDocumentHyperLink.NavigateUrl = $"~/GetFile.ashx?id={document.BinaryFile.Id}";
var viewableExtensions = new string[] { ".PDF", ".GIF", ".JPG", ".PNG" };
var fileExtension = System.IO.Path.GetExtension( document.BinaryFile.FileName ).ToUpper();
viewDocumentHyperLink.Visible = viewableExtensions.Contains( fileExtension );
var securityField = gFileList.ColumnsOfType<SecurityField>().FirstOrDefault();
var securityFieldIndex = gFileList.Columns.IndexOf( securityField );
var securityButtonCell = ( ( DataControlFieldCell ) e.Row.Cells[securityFieldIndex] ).Controls[0];
securityButtonCell.Visible = canEdit && showSecurityButton;
}
protected void gFileList_GridRebind( object sender, EventArgs e )
{
BindGrid();
}
private void BindGrid()
{
using ( var rockContext = new RockContext() )
{
var contextEntity = this.ContextEntity();
var entityTypeId = contextEntity.TypeId;
var documentService = new DocumentService( rockContext );
var documents = documentService
.Queryable()
.AsNoTracking()
.Where( d => d.DocumentType.EntityTypeId == entityTypeId )
.Where( d => d.EntityId == contextEntity.Id );
var filteredDocumentTypeIds = new List<int>();
var filteredDocumentTypes = GetFilteredDocumentTypes();
if ( filteredDocumentTypes.Any() )
{
filteredDocumentTypeIds = filteredDocumentTypes.Select( a => a.Id ).ToList();
}
documents = documents.Where( d => filteredDocumentTypeIds.Contains( d.DocumentTypeId ) );
if ( ddlDocumentType.SelectedIndex > 0 )
{
var filterDocumentTypeId = ddlDocumentType.SelectedValueAsInt().Value;
documents = documents.Where( d => d.DocumentTypeId == filterDocumentTypeId );
}
gFileList.DataSource = documents.ToList();
gFileList.DataBind();
}
// Register download buttons as PostBackControls since they are returning a File download
// Leave this here because filter changes and grid events will rebind the grid after OnLoad
RegisterDownloadButtonsAsPostBackControls();
}
protected void gFileList_RowSelected( object sender, RowEventArgs e )
{
PopulateEditDocumentTypeDropDownList();
ClearForm();
using ( var rockContext = new RockContext() )
{
var documentService = new DocumentService( rockContext );
var document = documentService.Get( e.RowKeyId );
bool canEdit = document.DocumentType.IsAuthorized( Authorization.EDIT, this.CurrentPerson ) && document.IsAuthorized( Authorization.EDIT, this.CurrentPerson );
if ( !canEdit )
{
return;
}
pdAuditDetails.SetEntity( document, ResolveRockUrl( "~" ) );
hfDocumentId.Value = e.RowKeyId.ToString();
ddlAddEditDocumentType.SelectedValue = document.DocumentTypeId.ToString();
ddlAddEditDocumentType.Enabled = false;
tbDocumentName.Text = document.Name;
tbDescription.Text = document.Description;
fuUploader.BinaryFileId = document.BinaryFile.Id;
fuUploader.ParentEntityTypeId = EntityTypeCache.GetId( Rock.SystemGuid.EntityType.DOCUMENT.AsGuid() );
fuUploader.ParentEntityId = document.Id;
fuUploader.Visible = ddlAddEditDocumentType.SelectedValue.IsNotNullOrWhiteSpace();
nbSelectDocumentType.Visible = ddlAddEditDocumentType.SelectedValue.IsNullOrWhiteSpace();
}
pnlAddEdit.Visible = true;
pnlList.Visible = false;
}
protected void gFileList_DeleteClick( object sender, RowEventArgs e )
{
using ( var rockContext = new RockContext() )
{
var documentService = new DocumentService( rockContext );
var document = documentService.Get( e.RowKeyId );
documentService.Delete( document );
rockContext.SaveChanges();
}
BindGrid();
}
protected void gFileList_Add( object sender, EventArgs e )
{
PopulateEditDocumentTypeDropDownList( true );
ClearForm();
pdAuditDetails.Visible = false;
pnlAddEdit.Visible = true;
pnlList.Visible = false;
}
protected void ddlDocumentType_SelectedIndexChanged( object sender, EventArgs e )
{
BindGrid();
}
protected void gFileListDownload_Click( object sender, EventArgs e )
{
var gridRow = ( ( sender as LinkButton ).NamingContainer as GridViewRow );
int documentId = ( ( HiddenField ) gridRow.FindControl( "hfDocumentId" ) ).ValueAsInt();
var rockContext = new RockContext();
var documentService = new DocumentService( rockContext );
var document = documentService.Get( documentId );
byte[] bytes = document.BinaryFile.ContentStream.ReadBytesToEnd();
Response.ContentType = "application/octet-stream";
Response.AddHeader( "content-disposition", "attachment; filename=" + document.BinaryFile.FileName.ReplaceSpecialCharacters( "_" ) );
Response.BufferOutput = true;
Response.BinaryWrite( bytes );
Response.Flush();
Response.SuppressContent = true;
System.Web.HttpContext.Current.ApplicationInstance.CompleteRequest();
}
#endregion Grid Events
#region Add/Edit Methods
protected void btnSave_Click( object sender, EventArgs e )
{
if ( !fuUploader.BinaryFileId.HasValue )
{
return;
}
using ( var rockContext = new RockContext() )
{
var documentService = new DocumentService( rockContext );
var document = new Document();
if ( hfDocumentId.Value.IsNotNullOrWhiteSpace() )
{
document = documentService.Get( hfDocumentId.ValueAsInt() );
}
else
{
documentService.Add( document );
}
document.DocumentTypeId = ddlAddEditDocumentType.SelectedValueAsInt().Value;
document.EntityId = this.ContextEntity().Id;
document.Name = tbDocumentName.Text;
document.Description = tbDescription.Text;
document.SetBinaryFile( fuUploader.BinaryFileId.Value, rockContext );
rockContext.SaveChanges();
// Make sure the associated BinaryFile is using the Document Entity for security.
var binaryFile = new BinaryFileService( rockContext ).Get( fuUploader.BinaryFileId.Value );
binaryFile.ParentEntityTypeId = EntityTypeCache.GetId( Rock.SystemGuid.EntityType.DOCUMENT );
binaryFile.ParentEntityId = document.Id;
rockContext.SaveChanges();
}
pnlAddEdit.Visible = false;
BindGrid();
pnlList.Visible = true;
ClearForm();
}
protected void btnCancel_Click( object sender, EventArgs e )
{
pnlAddEdit.Visible = false;
pnlList.Visible = true;
ClearForm();
}
protected void ddlAddEditDocumentType_SelectedIndexChanged( object sender, EventArgs e )
{
if ( tbDocumentName.Text.IsNotNullOrWhiteSpace() )
{
// If there is already a name or nothing is selected then do do anything.
if ( ddlAddEditDocumentType.SelectedIndex == 0 )
{
ShowNotificationAndHideUploader();
}
else
{
ShowUploaderAndHideNotification();
}
return;
}
// If there is already a name or nothing is selected check if is document type is selected before returning.
var documentTypeCache = DocumentTypeCache.Get( ddlAddEditDocumentType.SelectedValueAsInt() ?? 0 );
fuUploader.BinaryFileTypeGuid = new BinaryFileTypeService( new RockContext() ).GetGuid( documentTypeCache.BinaryFileTypeId ).Value;
ShowUploaderAndHideNotification();
string template = documentTypeCache.DefaultDocumentNameTemplate;
if ( template.IsNotNullOrWhiteSpace() )
{
// If there is a template then apply it
var mergeFields = Rock.Lava.LavaHelper.GetCommonMergeFields( this.RockPage, this.CurrentPerson );
tbDocumentName.Text = template.ResolveMergeFields( mergeFields );
}
}
/// <summary>
/// Shows the select document type notification and hides the image uploader control
/// </summary>
private void ShowNotificationAndHideUploader()
{
fuUploader.Visible = false;
nbSelectDocumentType.Visible = true;
}
/// <summary>
/// Shows the image uploader control and hides the select document type notification
/// </summary>
private void ShowUploaderAndHideNotification()
{
fuUploader.Visible = true;
nbSelectDocumentType.Visible = false;
}
#endregion Add/Edit Methods
}
}