コード例 #1
0
        public void CreateRedLinesAndAditionalDocuments(RemoteFileInfo fileinfo)
        {
            Log.WriteLog("CreateRedLinesAndAditionalDocuments::" + (fileinfo == null));

            Log.WriteLog(string.Format("Project: {0} , Overlay: {1}, Owner: {2}, FileName ={3}, User = {4}", fileinfo.Project,
                                       fileinfo.Workinglayer, fileinfo.Owner, fileinfo.FileName, fileinfo.User));

            m_ComosSession.SetCurrentUser(fileinfo.User);
            m_ComosSession.SetCurrentProjectAndWorkingOverlay(fileinfo.Project, fileinfo.Workinglayer, "");

            Log.WriteLog("FromStream::" + (fileinfo.FileByteStream == null));
            Log.WriteLog("owner::" + (fileinfo.Owner));
            Log.WriteLog("filename::" + (fileinfo.FileName));

            m_ComosSession.LoadDocumentAndCreateRedLines(fileinfo.Owner, fileinfo.FileName, fileinfo);

            Log.WriteLog("FILE:SAVED:");
        }