コード例 #1
0
ファイル: ShowPage.cs プロジェクト: blanks88/AcumaticaT100
    private void editor_FileUploaded(object sender, PXFileUploadEventArgs e)
    {
        WikiPage current = this.CurrentRec;

        if (current != null)
        {
            FileInfo file = e.UploadedFile;
            if (file != null)
            {
                UploadFileMaintenance uploadGraph = PXGraph.CreateInstance <UploadFileMaintenance>();
                uploadGraph.AttachToPage((Guid)file.UID, (Guid)current.PageID);
            }
        }
    }
コード例 #2
0
    protected void editor_FileUploaded(object sender, PXFileUploadEventArgs e)
    {
        WikiPage current = (WikiPage)ds.DataGraph.Caches[typeof(WikiPage)].Current;

        if (current != null)
        {
            FileInfo file = e.UploadedFile;
            if (file != null && file.UID != null)
            {
                UploadFileMaintenance uploadGraph = PXGraph.CreateInstance <UploadFileMaintenance>();
                uploadGraph.AttachToPage((Guid)file.UID, (Guid)current.PageID);
            }
        }
    }