Example #1
0
        private void VerifySecurityForSubFiles()
        {
            int perm = (int)myAtmng.SecurityManager.CanUpdate(myAtmng.GetFile(0).CurrentFileId, atSecurity.SecurityManager.Features.EfileScreen);

            if (perm > 0 & perm < 10)
            {
                AllowMoveSubFiles         = true;
                cmdToggleSubFiles.Visible = Janus.Windows.UI.InheritableBoolean.True;

                cmdToggleSubFiles.IsChecked = AtMng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.LawMateExplorerShowSubFiles, false);
                pnlChildren.Closed          = !cmdToggleSubFiles.IsChecked;
                LoadSubFiles = cmdToggleSubFiles.IsChecked;

                //if (UIHelper.GetSetting("ShowSubFilesInLawMateExplorer") == "")
                //{
                //    cmdToggleSubFiles.IsChecked = false;
                //    UIHelper.SaveSetting("ShowSubFilesInLawMateExplorer", "false");
                //}
                //else
                //{
                //    cmdToggleSubFiles.IsChecked = Convert.ToBoolean(UIHelper.GetSetting("ShowSubFilesInLawMateExplorer"));
                //    pnlChildren.Closed = !cmdToggleSubFiles.IsChecked;
                //    LoadSubFiles = cmdToggleSubFiles.IsChecked;
                //}
            }
            else
            {
                AllowMoveSubFiles         = false;
                cmdToggleSubFiles.Visible = Janus.Windows.UI.InheritableBoolean.False;
                pnlChildren.Closed        = true;
            }
        }
Example #2
0
        public fMemberManagement(Form f, atriumBE.atriumManager atMng)
            : base(f)
        {
            InitializeComponent();

            try
            {
                myAtMng  = atMng;
                myMemMng = myAtMng.GetMemberMng();
                myMemMng.LoadTribunalMemberAssignment();
                myMemMng.LoadFileFlagVC();

                tribunalMemberWorkloadBindingSource.DataSource   = myMemMng.LoadTribunalMemberWorkload();
                tribunalMemberAssignmentBindingSource.DataSource = myMemMng.DB.TribunalMemberAssignment;
                updateTribunalMemberAssignmentCounter();
                mListAssignmentFilter = myMemMng.LoadMemberListAssignmentFilter();

                maxDistance = Convert.ToInt32(maxDistanceEditBox.Text);

                FM = myAtMng.GetFile();
                atLogic.WhereClause wc = new atLogic.WhereClause();
                wc.Add("FlagCode", "<>", "ABEY");
                UIHelper.ComboBoxInit(FM.Codes("vFlagCode", wc, true), FlagCodeMultiDropDown, FM);

                InitCombos();
            }
            catch (Exception x)
            {
                UIHelper.HandleUIException(x);
            }
        }
Example #3
0
        //
        // GET: /File/
        public ActionResult Index(int fileId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm = fm;
            return(View());
        }
Example #4
0
        public string A5JSON(int fileId, int acSeriesId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            lmDatasets.ActivityConfig.ACSeriesRow acsr = fm.AtMng.acMng.DB.ACSeries.FindByACSeriesId(acSeriesId);

            atriumBE.ACEngine MyACE = new ACEngine(fm);
            MyACE.myAcSeries     = acsr;
            MyACE.myActivityCode = acsr.ActivityCodeRow;
            MyACE.DoRelFields();
            MyACE.DoStep(ACEngine.Step.RelatedFields0, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields1, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields2, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields3, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields4, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields5, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields6, true);

            string curobj = "";
            string json   = "{";

            foreach (ActivityConfig.ActivityFieldRow arf in fm.AtMng.acMng.DB.ActivityField.Select("ACSeriesId=" + acSeriesId.ToString() + " and TaskType in ('F','T')", "objectalias,fieldname"))
            {
                if (curobj != arf.ObjectAlias)
                {
                    //start new row
                    curobj = arf.ObjectAlias;
                    json  += "'" + arf.ObjectAlias + "':[";

                    foreach (DataRowView dvr in MyACE.relTables[curobj])
                    {
                        json += "{";
                        json += "'atrid':" + Newtonsoft.Json.JsonConvert.ToString(dvr.Row[dvr.Row.Table.PrimaryKey[0]]) + ",";
                        foreach (ActivityConfig.ActivityFieldRow arfRow in fm.AtMng.acMng.DB.ActivityField.Select("ObjectAlias='" + curobj + "' and ACSeriesId=" + acSeriesId.ToString() + " and TaskType in ('F','T')", "objectalias,fieldname"))
                        {
                            json += "'" + arfRow.FieldName + "':" + Newtonsoft.Json.JsonConvert.ToString(dvr.Row[arfRow.DBFieldName]) + ",";
                        }
                        json  = json.TrimEnd(',');
                        json += "},";
                    }
                    json  = json.TrimEnd(',');
                    json += "]";
                }
                else
                {
                }
            }
            return(json + "}");
            // DataSet ds = new DataSet();
            // foreach(DataView dv in MyACE.relTables.Values)
            // {
            //     ds.Tables.Add(dv.ToTable());
            // }

            // return Newtonsoft.Json.JsonConvert.SerializeObject(ds, Newtonsoft.Json.Formatting.Indented);
            //// return Json(ds,JsonRequestBehavior.AllowGet);
        }
Example #5
0
        public ActionResult EFile(int fileId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104038;
            return(View("A5"));
        }
Example #6
0
        public ActionResult A5(int fileId, int acSeriesId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = acSeriesId;
            return(View());
        }
Example #7
0
        public ActionResult Bankruptcy(int fileId, int linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104042;
            ViewBag.ContextRow = fm.GetCLASMng().DB.Bankruptcy.FindByBankruptcyID(linkId);
            return(View("A5"));
        }
Example #8
0
        public ActionResult Contact(int fileId, int linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104044;
            ViewBag.ContextRow = fm.DB.FileContact.FindByFileContactid(linkId);
            return(View("A5"));
        }
Example #9
0
        public ActionResult JudgmentAccount(int fileId, int linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104093;
            ViewBag.ContextRow = fm.GetCLASMng().DB.JudgmentAccount.FindByJudgmentAccountID(linkId);
            return(PartialView("P5"));
        }
Example #10
0
 public fBrowseIssues(atriumManager atmng, bool allowContainerSelection, int programid)
 {
     InitializeComponent();
     ucBrowseIssues1.LoadRoot(atmng, programid);
     Atmng = atmng;
     AllowContainerSelection       = allowContainerSelection;
     issueBindingSource.DataMember = Atmng.DB.Issue.TableName;
     issueBindingSource.DataSource = Atmng.DB;
     ucIssueSelectBox1.AtMng       = Atmng;
     myFM = Atmng.GetFile();
 }
Example #11
0
        public ActionResult Account(int fileId, int linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104041;
            ViewBag.ContextRow = fm.GetCLASMng().DB.Debt.FindByDebtId(linkId);

            return(View("A5"));
        }
Example #12
0
 public string OfficeDistributionProjectionQuery()
 {
     lmDatasets.docDB.DocContentRow doccontentrow = myA.GetFile().GetDocMng().GetDocContent().Load(myA.GetSetting(atriumBE.AppIntSetting.PLOfficeForecastDocID));
     if (doccontentrow != null && doccontentrow.ContentsAsText != null)
     {
         return(doccontentrow.ContentsAsText);
     }
     else
     {
         return("[Office Distribution Forecast Document could not be found]");
     }
 }
Example #13
0
        private void Init(atriumManager atMng)
        {
            base.DAL = atMng.DALMngr;
            myatMng  = atMng;

            MyDS = new MemberManagement();
            MyDS.EnforceConstraints = false;

            FixTZDSIssue(MyDS);

            myFM = myatMng.GetFile();
        }
Example #14
0
        public ActionResult Document(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104061;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetDocMng().DB.Document.FindByDocId((int)linkId);
            }
            return(View("A5"));
        }
Example #15
0
        public ActionResult CashBlotter(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104055;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.CashBlotter.FindByCashBlotterID((int)linkId);
            }
            return(View("A5"));
        }
Example #16
0
        public ActionResult Hardship(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104066;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.Hardship.FindByHardshipId((int)linkId);
            }
            return(View("A5"));
        }
Example #17
0
        public ActionResult Officer(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104054;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.LeadOfficeMng.DB.Officer.FindByOfficerId((int)linkId);
            }
            return(View("A5"));
        }
Example #18
0
        public ActionResult SRP(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104056;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.DB.SRP.FindBySRPID((int)linkId);
            }
            return(View("A5"));
        }
Example #19
0
        public ActionResult OfficeAccount(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104059;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.OfficeAccount.FindByOfficeAccountID((int)linkId);
            }
            return(View("A5"));
        }
Example #20
0
        private void LoadActiveFiles()
        {
            int valX = 6;
            int valY = 6;

            try
            {
                foreach (string FileIdAsString in Atmng.LoadedFMs)
                {
                    FileManager loadedFM = Atmng.GetFile(System.Convert.ToInt32(FileIdAsString));
                    if (loadedFM.CurrentFile != null && !loadedFM.CurrentFile.IsNameENull() && !loadedFM.CurrentFile.IsNameFNull())
                    {
                        LinkLabel lnk = new LinkLabel();
                        lnk.Name         = "lnk" + loadedFM.CurrentFileId;
                        lnk.Text         = "       " + loadedFM.CurrentFile.Name;
                        lnk.AutoSize     = true;
                        lnk.BackColor    = Color.Transparent;
                        lnk.ImageList    = ImageListMain;
                        lnk.ImageKey     = "folder.gif";
                        lnk.ImageAlign   = ContentAlignment.MiddleLeft;
                        lnk.TextAlign    = ContentAlignment.MiddleLeft;
                        lnk.Left         = valX;
                        lnk.Top          = valY;
                        lnk.Padding      = new Padding(0, 0, 0, 0);
                        lnk.Margin       = new Padding(0, 0, 0, 0);
                        lnk.Tag          = loadedFM.CurrentFileId;
                        lnk.LinkClicked += new LinkLabelLinkClickedEventHandler(lnk_LinkClicked);
                        valY            += 18;

                        pnlActiveFilesContainer.Controls.Add(lnk);
                    }
                }
            }
            catch (Exception x)
            {
                //suppress the error and move on
            }
        }
Example #21
0
        private FileManager GetFMFromBE(BEManager be)
        {
            FileManager fm;

            if (be.GetType() == typeof(FileManager))
            {
                fm = (FileManager)be;
            }
            else
            {
                fm = myA.GetFile(be.CurrentFileId);
            }
            return(fm);
        }
Example #22
0
        public fBrowseOffices(atriumManager atmng)
        {
            InitializeComponent();
            Atmng = atmng;
            Atmng.OfficeMng.GetOffice().Load();
            officeBindingSource.DataSource = atmng.OfficeMng.DB;
            officeBindingSource.DataMember = atmng.OfficeMng.DB.Office.TableName;
            atriumBE.FileManager FMCodes = atmng.GetFile();

            UIHelper.ComboBoxInit("OfficeType", officeGridEX.DropDowns["ddOfficeType"], FMCodes);
            UIHelper.ComboBoxInit("Department", officeGridEX.DropDowns["ddDepartment"], FMCodes);

            lblCurrentFile.Text = "";
        }
Example #23
0
        public ActionResult Opponent(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            if (linkId != null)
            {
                ViewBag.ContextRow = fm.DB.Address.FindByAddressId((int)linkId);
            }


            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104039;
            return(View("A5"));
        }
Example #24
0
        public fBrowseDocs(atriumManager atmng)
        {
            InitializeComponent();

            myAtmng = atmng;
            myDM    = myAtmng.GetFile().GetDocMng();

            ucBrowse1.LoadRoot(atmng, 0, false, false, true);

            ucRecordList1.SelectionMode = Janus.Windows.GridEX.SelectionMode.MultipleSelection;
            LoadDocs();
            //tvMyFiles.ExpandAll();
            lblCurrentFile.Text = "";
            panelDisplayHandler(Properties.Resources.Browse, Properties.Resources.folder);
        }
Example #25
0
        public ActionResult BillingReview(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            //need to load data by srpid

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104058;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.DB.IRP.FindByIRPId((int)linkId);
            }
            return(View("A5"));
        }
Example #26
0
        public ActionResult OfficeTaxing(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            //may need to load data here
            //as we are not loading by fileid

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104060;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.Taxing.FindByTaxingID((int)linkId);
            }
            return(View("A5"));
        }
Example #27
0
        public ActionResult FileHistory(int fileId, int?linkId)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            ViewBag.fm         = fm;
            ViewBag.acSeriesId = 104046;
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.FileHistory.FindByHistoryId((int)linkId);
            }
            else
            {
                ViewBag.ContextRow = fm.GetCLASMng().DB.FileHistory[0];
            }

            return(View("A5"));
        }
Example #28
0
        public string A5JSONUpdate(int fileId, int acSeriesId, string json)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            lmDatasets.ActivityConfig.ACSeriesRow acsr = fm.AtMng.acMng.DB.ACSeries.FindByACSeriesId(acSeriesId);

            atriumBE.ACEngine MyACE = new ACEngine(fm);
            MyACE.myAcSeries     = acsr;
            MyACE.myActivityCode = acsr.ActivityCodeRow;
            MyACE.DoRelFields();
            MyACE.DoStep(ACEngine.Step.RelatedFields0, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields1, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields2, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields3, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields4, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields5, true);
            MyACE.DoStep(ACEngine.Step.RelatedFields6, true);



            Newtonsoft.Json.Linq.JObject data = Newtonsoft.Json.Linq.JObject.Parse(json);



            //foreach (ActivityConfig.ActivityFieldRow arf in fm.AtMng.acMng.DB.ActivityField.Select("ACSeriesId=" + acSeriesId.ToString() + " and TaskType in ('F','T')", "objectalias,fieldname"))
            foreach (string curobj in MyACE.relTables.Keys)
            {
                var table = data[curobj].Children().ToList();
                MyACE.relTables[curobj].Sort = MyACE.relTables[curobj].Table.PrimaryKey[0].ColumnName;
                foreach (var row in table)
                {
                    int         rid = (int)row["atrid"];
                    int         pos = MyACE.relTables[curobj].Find(row["atrid"]);
                    DataRowView dvr = MyACE.relTables[curobj][pos];
                    //need to match up rows
                    foreach (ActivityConfig.ActivityFieldRow arfRow in fm.AtMng.acMng.DB.ActivityField.Select("ObjectAlias='" + curobj + "' and ACSeriesId=" + acSeriesId.ToString() + " and TaskType in ('F','T')", "objectalias,fieldname"))
                    {
                        System.Diagnostics.Debug.WriteLine("{0}, {1}", dvr.Row[arfRow.DBFieldName], data[curobj][0][arfRow.FieldName]);
                    }
                }
            }
            return(null);
        }
Example #29
0
        public ActionResult Activity(int fileId, int?linkId, int?page)
        {
            atriumManager myAtmng = Helper.Atmng();
            FileManager   fm      = myAtmng.GetFile(fileId);

            fm.InitActivityProcess();
            ViewBag.fm = fm;
            int p = 1;

            if (page != null)
            {
                p = (int)page;
            }
            if (linkId != null)
            {
                ViewBag.ContextRow = fm.DB.Activity.FindByActivityId((int)linkId);
            }

            return(View(fm.DB.Activity.OrderByDescending(u => u.ActivityDate).ToPagedList(p, 12)));
        }
Example #30
0
        private void ImportPrepass(atriumManager atmng, string folderpath)
        {
            if (ffDt == null)
            {
                ffDt = atmng.GetFile().GetDocMng().DB.FileFormat;
            }

            foreach (string doc in System.IO.Directory.GetFiles(folderpath))
            {
                string ext = Path.GetExtension(doc);
                docDB.FileFormatRow fmt = ffDt.FindByFileFormat(ext);

                if (fmt == null)
                {
                    AddListItem("Extension not permitted: " + System.IO.Path.GetFileName(doc));
                    ExtTW.WriteLine(ext + ", " + doc);
                }
            }
            foreach (string subfile in System.IO.Directory.GetDirectories(folderpath))
            {
                ImportPrepass(atmng, subfile);
            }
        }