private void LoadTamperAttachmentDG() { string sortby = "Date_Added desc"; DataSet ds = DatabaseUtilities.DsGetByTableColumnValue(Constants.DB_VIEW_ASSET_TAB_ATTACHMENTS, "Asset_Tamper_ID", GetSetTamperID, sortby); dgTamperAttachment.Visible = false; lblResultsAttachment.Text = "No attachments(s) found"; if (ds.Tables[0].Rows.Count > 0) { lblResultsAttachment.Text = ""; dgTamperAttachment.Visible = true; dgTamperAttachment.DataSource = ds; dgTamperAttachment.DataBind(); AppSecurity.Apply_CAIRS_Security_To_UserControls(dgTamperAttachment.Controls); } }
private void LoadTamperDG() { string sortby = "v.ID desc"; DataSet ds = DatabaseUtilities.DsGetTabByView(Constants.DB_VIEW_ASSET_TAB_TAMPER, QS_ASSET_ID, "", sortby); dgTamper.Visible = false; lblResults.Text = "No Tamper(s) found for this asset"; if (ds.Tables[0].Rows.Count > 0) { lblResults.Text = ""; dgTamper.Visible = true; dgTamper.DataSource = ds; dgTamper.DataBind(); //Initial load will be take care of the first security AppSecurity.Apply_CAIRS_Security_To_UserControls(dgTamper.Controls); } //updateTamper.Update(); }
public void LoadCommentsDG() { string sortby = "v.Recent_Date desc"; DataSet ds = DatabaseUtilities.DsGetTabByView(Constants.DB_VIEW_ASSET_TAB_COMMENTS, QS_ASSET_ID, "", sortby); dgComments.Visible = false; lblResults.Text = "No comment(s) found for this asset"; if (ds.Tables[0].Rows.Count > 0) { lblResults.Text = ""; dgComments.Visible = true; dgComments.DataSource = ds; dgComments.DataBind(); //Initial load will be take care of the first security if (IsPostBack) { AppSecurity.Apply_CAIRS_Security_To_UserControls(dgComments.Controls); } } }