Example #1
0
 internal AttachmentBE(DocManager pBEMng)
     : base(pBEMng, pBEMng.DB.Attachment)
 {
     myA            = pBEMng;
     myAttachmentDT = (docDB.AttachmentDataTable)myDT;
     //if (myODAL == null)
     //    myODAL = myA.AtMng.DALMngr.GetAttachment();
 }
Example #2
0
 public DocManager GetDocMng()
 {
     if (myDM == null)
     {
         myDM = new DocManager(this);
         myMngrs.Add(myDM.DB.DataSetName, myDM);
     }
     return(myDM);
 }
Example #3
0
 internal DocXRefBE(DocManager pBEMng) : base(pBEMng, pBEMng.DB.DocXRef)
 {
     myA         = pBEMng;
     myDocXRefDT = (docDB.DocXRefDataTable)myDT;
     if (!myA.AtMng.AppMan.UseService && myODAL == null)
     {
         myODAL = myA.AtMng.DALMngr.GetDocXRef();
     }
 }
Example #4
0
 internal RecipientBE(DocManager pBEMng)
     : base(pBEMng, pBEMng.DB.Recipient)
 {
     myA           = pBEMng;
     myRecipientDT = (docDB.RecipientDataTable)myDT;
     if (!myA.AtMng.AppMan.UseService && myODAL == null)
     {
         myODAL = myA.AtMng.DALMngr.GetRecipient();
     }
 }
Example #5
0
        public void BindDocumentData(lmDatasets.docDB.DocumentDataTable a, bool DocSearchResults, atriumBE.DocManager dm)
        {
            myDM = dm;

            //ucDocPreview1.Init(dm);
            ucDocView1.Init(dm);

            //if(!FM.IsVirtualFM)
            //    dm.GetRecipient().LoadByFileId(FM.CurrentFile.FileId);
            ucRecordList1.Init(myDM);

            DataView dv = new DataView(a, "", "", DataViewRowState.ModifiedCurrent | DataViewRowState.Unchanged);

            this.documentBindingSource.DataSource = dv;
            this.documentBindingSource.DataMember = "";


            if (firstTime)
            {
                dcceh            = new DataColumnChangeEventHandler(a_ColumnChanged);
                a.ColumnChanged += dcceh;
                dm.DB.DocContent.ColumnChanged += dcceh;
                dm.DB.Recipient.ColumnChanged  += dcceh;
                ueh = new atLogic.UpdateEventHandler(ucRecords_OnUpdate);
                dm.GetDocument().OnUpdate   += ueh;
                dm.GetDocContent().OnUpdate += ueh;
                dm.GetRecipient().OnUpdate  += ueh;
            }
            firstTime = false;

            if (DocSearchResults)
            {
                pnlGrid.CaptionVisible = Janus.Windows.UI.InheritableBoolean.False;
            }

            ucRecordList1.SearchResult(DocSearchResults);

            if (documentBindingSource.Current != null)
            {
                ApplySecurity(CurrentRow());
            }

            NoData(documentBindingSource.Count == 0);
            if (documentBindingSource.Count > 0)
            {
                timer1.Start();
            }
        }
Example #6
0
        public void Init(atriumBE.DocManager dm)
        {
            myDM = dm;
            if (!backgroundWorker1.IsBusy)
            {
                backgroundWorker1.RunWorkerAsync();
            }

            // string filter = "fileid = " + myDM.FM.CurrentFileId.ToString();
            // documentBindingSource.Filter = filter;

            //jll: header icon keeps disappearing when changing language in design.  just set it at run time ... arg.
            documentGridEX.RootTable.Columns["CheckedOut"].HeaderImage           = Properties.Resources.lock_icon;
            documentGridEX.RootTable.Columns["CheckedOut"].ValueList[true].Image = Properties.Resources.lock_icon;
            documentGridEX.RootTable.Columns["isPaper"].HeaderImage = Properties.Resources.cbProcess;
            if (myDM.FM.GetSSTMng() != null)
            {
                documentGridEX.RootTable.Columns["SentToShareFolder"].Visible = true;
            }
            else
            {
                documentGridEX.RootTable.Columns["SentToShareFolder"].Visible = false;
            }
        }