コード例 #1
0
ファイル: Content.aspx.cs プロジェクト: alexan1/marketweb
        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;
                }
            }
        }
コード例 #2
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();
        }