Exemplo n.º 1
0
        private void BindAttachmentsInfo()
        {
            if (UseAttachments)
            {
                BPAttachments bp = new BPAttachments();
                BEAttachments ds = bp.SelectByPageTypeSpecificIDAndPageTypeIDWithROColumns(ContentID, PageTypeID);

                ds.tbl_Attachments.DefaultView.RowFilter = "DocumentName Is Not Null AND DocumentActive=1";

                if (ds.tbl_Attachments.DefaultView.Count > 0)
                {
                    rptAttachments.DataSource = ds.tbl_Attachments.DefaultView;
                    rptAttachments.DataBind();
                    plcAttachmentsList.Visible = true;
                }
            }
        }
Exemplo n.º 2
0
        private void DeleteAttachmentsToDocument(int documentID)
        {
            BPAttachments bp = new BPAttachments();
            BEAttachments ds = bp.SelectByDocumentID(documentID);

            foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in ds.tbl_Attachments)
                attachmentRow.Delete();

            bp.Update(ds);
        }
Exemplo n.º 3
0
        public void DeletePageAttachmentInfo()
        {
            BPAttachments bpAttachments = new BPAttachments();
            BEAttachments dsAttachmentsInDataBase = new BEAttachments();

            dsAttachmentsInDataBase = bpAttachments.SelectByPageTypeSpecificIDAndPageTypeID(PageTypeSpecificID, PageTypeID);

            foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in dsAttachmentsInDataBase.tbl_Attachments)
                attachmentRow.Delete();

            bpAttachments.Update(dsAttachmentsInDataBase);
        }
Exemplo n.º 4
0
        public void SavePageAttachmentInfo(int pageTypeSpecificID, int pageTypeID)
        {
            BPAttachments bpAttachments = new BPAttachments();
            BEAttachments dsAttachmentsInDataBase = new BEAttachments();

            foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in dsInternal.tbl_Attachments)
            {
                attachmentRow.PageTypeSpecificID = pageTypeSpecificID;
                attachmentRow.PageTypeID = pageTypeID;
            }

            dsAttachmentsInDataBase = dsInternal;
            bpAttachments.Update(dsAttachmentsInDataBase);
        }
Exemplo n.º 5
0
        public void SavePageAttachmentInfo()
        {
            BPAttachments bpAttachments = new BPAttachments();
            BEAttachments dsAttachmentsInDataBase = new BEAttachments();

            dsAttachmentsInDataBase = dsInternal;
            bpAttachments.Update(dsAttachmentsInDataBase);
        }
Exemplo n.º 6
0
        private void GetAttachmentInfo()
        {
            BPAttachments bp = new BPAttachments();
            dsInternal.Clear();

            if (LinkListID > 0)
                dsInternal = bp.SelectByPageTypeSpecificIDAndPageTypeIDAndLinkListIDWithROColumns(PageTypeSpecificID, PageTypeID, LinkListID);
            else
                dsInternal = bp.SelectByPageTypeSpecificIDAndPageTypeIDWithROColumns(PageTypeSpecificID, PageTypeID);

            SyncDocumentsActiveStatus();
        }