예제 #1
0
        public void Init(atriumBE.FileManager fm, fFile parentFile)
        {
            fmCurrent = fm;
            Atmng     = fm.AtMng;

            ParentFile = parentFile;
            fileId     = fm.CurrentFile.FileId;


            if (UIHelper.getScalingFactor() > 1)
            {
                tvContents.ItemHeight = tvContents.ItemHeight + 2;
            }

            //JLL 2015-08-30 higher dpi setting handling
            //defaultTopHeight = UIHelper.AdjustHeightInt(this, defaultTopHeight);
            //defaultRowHeight = UIHelper.AdjustHeightInt(this, defaultRowHeight);
            //END JLL 2015-08-30


            // WI 75873
            if (fm.GetSSTMng() != null && !fm.CurrentFile.IsDim2IdNull())
            {
                programId = fm.CurrentFile.Dim2Id;
            }
            // -- end // WI 75873

            fm.EFile.OnUpdate += new atLogic.UpdateEventHandler(EFile_OnUpdate);
            fm.GetFileXRef().OnUpdate += new atLogic.UpdateEventHandler(ucToC_OnUpdate);

            LoadTOC();
        }
예제 #2
0
        private bool ApptIsHearing()
        {
            if (CurrentRow() == null)
            {
                return(false);
            }

            atriumBE.FileManager contextFM = FM.AtMng.GetFile(CurrentRow().FileId);

            DataRow[] drs = contextFM.GetSSTMng().DB.Hearing.Select("ApptId=" + CurrentRow().ApptId.ToString());
            if (drs.Length > 0)
            {
                return(true);
            }

            return(false);
        }
예제 #3
0
        private void CreateAppeal(int fileAppealedId)
        {
            FileManager fmOrig  = myA.AtMng.GetFile(fileAppealedId);
            SSTManager  sstOrig = fmOrig.GetSSTMng();

            SST.SSTCaseRow scr = mySSTCaseDT[0];
            //copy sstcasematter

            if (!sstOrig.DB.SSTCase[0].IsDecisionSentDateNull())
            {
                scr.OrigDecisionDate = sstOrig.DB.SSTCase[0].DecisionSentDate;
            }


            //is leave to app0eal required!!
            if (sstOrig.DB.SSTCase[0].OutcomeId == 5 || sstOrig.DB.SSTCase[0].OutcomeId == 18)
            {
                scr.LeaveToAppealNotRequired = true;
            }
            else
            {
                scr.LeaveToAppealNotRequired = false;
            }

            scr.ProgramId = sstOrig.DB.SSTCase[0].ProgramId;
            if (!sstOrig.DB.SSTCase[0].IsAccountIdNull())
            {
                scr.AccountId = sstOrig.DB.SSTCase[0].AccountId;
            }

            foreach (SST.SSTCaseMatterRow scmr in sstOrig.DB.SSTCaseMatter)
            {
                SST.SSTCaseMatterRow newScmr = (SST.SSTCaseMatterRow)myA.GetSSTCaseMatter().Add(scr);
                if (!scmr.IsIssueIdNull())
                {
                    newScmr.IssueId = scmr.IssueId;
                }
                if (!scmr.IsAccountIdNull())
                {
                    newScmr.AccountId = scmr.AccountId;
                }

                newScmr.ProgramId = scmr.ProgramId;
            }

            //copy contacts/parties
            foreach (atriumDB.FileContactRow fcr in fmOrig.DB.FileContact)
            {
                if (fcr.ContactClass == "P")
                {
                    atriumDB.FileContactRow newFcr = (atriumDB.FileContactRow)myA.FM.GetFileContact().Add(myA.FM.CurrentFile);
                    newFcr.ContactId   = fcr.ContactId;
                    newFcr.ContactType = fcr.ContactType;

                    SST.FilePartyRow fpr    = (SST.FilePartyRow)sstOrig.DB.FileParty.Select("Filecontactid=" + fcr.FileContactid.ToString())[0];
                    SST.FilePartyRow newFpr = (SST.FilePartyRow)myA.GetFileParty().Add(scr);
                    newFpr.IsAppellant   = fpr.IsAppellant;
                    newFpr.IsRespondent  = fpr.IsRespondent;
                    newFpr.IsPending     = true;
                    newFpr.FileContactId = newFcr.FileContactid;
                }
            }
        }