internal MemberManager(atriumManager atMng) : base(atMng.AppMan) { Init(atMng); LoadOfficeSCList(); }
internal ddGenericBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.ddGeneric) { myA = pBEMng; myddGenericDT = (appDB.ddGenericDataTable)myDT; //if (myODAL == null) // myODAL = myA.DALMngr.GetddGeneric(); }
public void LoadRoot(atriumManager atmng, int rootFileId, bool hideShortcuts, bool hideXRefs, bool hideDocShorcuts) { //should only be called once //subsequent calls should use reloadroot //this.ShowFileNumber = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowFileNumber, true); //this.ShowOnlyOpenFiles = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowOpenFiles, false); //this.HideXrefs = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowXrefs, false); myFTV = new FileTreeView(atmng, tvFiles, ucFileContextMenu1); ucFileContextMenu1.LoadLabels(); myFTV.ShowContextMenu = showContextMenu; ucFileContextMenu1.Ftv = myFTV; myFTV.FileSelected += new LawMate.BrowseEventHandler(myFTV_FileSelected); myFTV.NodeDoubleClicked += new TreeDoubleClickEventHandler(myFTV_NodeDoubleClicked); myFTV.HideShortcutsAndXRefs(hideShortcuts, hideXRefs, hideDocShorcuts); myFTV.LoadRoot(rootFileId, false); RootFileId = rootFileId; this.ShowFileNumber = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowFileNumber, true); this.ShowOnlyOpenFiles = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowOpenFiles, false); this.HideXrefs = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowXrefs, false); if (tvFiles.Nodes.Count == 1) { rootHasChildren = false; } }
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); } }
public ActionResult RecentFiles(string method, int page) { atriumManager myAtmng = Helper.Atmng(); appDB.EFileSearchDataTable dt; switch (method) { case "today": dt = myAtmng.FileSearchByRecentFiles(myAtmng.AppMan.myUser, atDates.StandardDate.Today.BeginDate, atDates.StandardDate.Today.EndDate); break; case "thisweek": dt = myAtmng.FileSearchByRecentFiles(myAtmng.AppMan.myUser, atDates.StandardDate.ThisWeek.BeginDate, atDates.StandardDate.ThisWeek.EndDate); break; case "lastweek": dt = myAtmng.FileSearchByRecentFiles(myAtmng.AppMan.myUser, atDates.StandardDate.LastWeek.BeginDate, atDates.StandardDate.LastWeek.EndDate); break; case "yesterday": dt = myAtmng.FileSearchByRecentFiles(myAtmng.AppMan.myUser, atDates.StandardDate.Yesterday.BeginDate, atDates.StandardDate.Yesterday.EndDate); break; default: throw new Exception("Not a valid search method"); } ViewBag.Atmng = myAtmng; ViewBag.keyword = ""; ViewBag.method = method; ViewBag.Action = "RecentFiles"; return(View("Search", dt.AsEnumerable().ToPagedList(page, 12))); }
//public FileManager(atriumManager atMng, string SIN) // : base(atMng.AppMan) //{ // Init(atMng); // myCurrentFileId = EFile.LoadBySIN(SIN).FileId; // LeadOfficeMng = myatMng.GetOffice(CurrentFile.LeadOfficeId); //} public FileManager(atriumManager atMng, string mode, string term) : base(atMng.AppMan) { Init(atMng); atriumDB.EFileRow er = null; switch (mode.ToLower()) { //case "path": // er = EFile.LoadByPath(term); // break; case "fullfilenumber": er = EFile.LoadByFullFileNumber(term); break; //case "sin": // er = EFile.LoadBySIN(term); // break; default: break; } if (er != null) { myCurrentFileId = er.FileId; LoadAll(false); } }
// // GET: /File/ public ActionResult Index(int fileId) { atriumManager myAtmng = Helper.Atmng(); FileManager fm = myAtmng.GetFile(fileId); ViewBag.fm = fm; return(View()); }
internal ListBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.List) { if (!myA.AppMan.UseService & myODAL == null) { myODAL = myA.DALMngr.GetList(); } }
internal ddFieldBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.ddField) { myA = pBEMng; myddFieldDT = (appDB.ddFieldDataTable)myDT; //if (myODAL == null) // myODAL = myA.DALMngr.GetddField(); }
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); }
public ucOfficerToolkit(officeDB.OfficerRow or, atriumManager atmng, fMain mainform) { InitializeComponent(); SetAtmng(atmng, mainform); CreateNodes(); setOfficer(or); ucFileContextMenu1.LoadLabels(); LoadContextMenuLabels(); }
public ActionResult EFile(int fileId) { atriumManager myAtmng = Helper.Atmng(); FileManager fm = myAtmng.GetFile(fileId); ViewBag.fm = fm; ViewBag.acSeriesId = 104038; return(View("A5")); }
public fPreferences(atriumManager Atmng) { InitializeComponent(); myAtmng = Atmng; LoadLabels(); prefBE = myAtmng.OfficeMng.GetOfficerPrefs(); officerRow = myAtmng.OfficeMng.GetOfficer().Load(myAtmng.OfficerLoggedOn.OfficerId); CheckPrefs(); }
public FileManager(atriumManager atMng, string officeFileNo, int officeID) : base(atMng.AppMan) { Init(atMng); myCurrentFileId = EFile.LoadByOfficeFileNum(officeFileNo, officeID); LoadAll(false); LeadOfficeMng = myatMng.GetOffice(CurrentFile.LeadOfficeId); }
public ActionResult A5(int fileId, int acSeriesId) { atriumManager myAtmng = Helper.Atmng(); FileManager fm = myAtmng.GetFile(fileId); ViewBag.fm = fm; ViewBag.acSeriesId = acSeriesId; return(View()); }
internal PostalCodeLocationBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.PostalCodeLocation) { myA = pBEMng; myPostalCodeLocationDT = (appDB.PostalCodeLocationDataTable)myDT; if (!myA.AppMan.UseService & myODAL == null) { myODAL = myA.DALMngr.GetPostalCodeLocation(); } }
internal ddRuleBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.ddRule) { myA = pBEMng; myddRuleDT = (appDB.ddRuleDataTable)myDT; dtEvents = new DataTable("dtEvents"); dtEvents.Columns.Add("Id", typeof(int)); dtEvents.Columns.Add("Text", typeof(string)); dtEvents.Rows.Add(1, "Before Change"); dtEvents.Rows.Add(2, "Before Update"); dtEvents.Rows.Add(3, "Before Delete"); dtEvents.Rows.Add(4, "After Add"); dtEvents.Rows.Add(5, "Before Save New record"); dtEvents.Rows.Add(6, "Before Add*"); dtEvents.Rows.Add(7, "After Change"); dtEvents.Rows.Add(8, "After Update*"); dtEvents.Rows.Add(9, "After Delete*"); dtEvents.Rows.Add(10, "Before Change and Update"); dtRuleTypes = new DataTable("dtRuleTypes"); dtRuleTypes.Columns.Add("Id", typeof(int)); dtRuleTypes.Columns.Add("Text", typeof(string)); dtRuleTypes.Rows.Add(0, "Program Rule"); dtRuleTypes.Rows.Add(1, "Required"); dtRuleTypes.Rows.Add(2, "W/F Rule"); dtRuleTypes.Rows.Add(3, "Domain"); dtRuleTypes.Rows.Add(4, "Pre-req field"); dtRuleTypes.Rows.Add(5, "Domain(old)"); dtRuleTypes.Rows.Add(6, "Valid Date"); dtRuleTypes.Rows.Add(7, "Numeric Range"); dtRuleTypes.Rows.Add(8, "String length range"); dtRuleTypes.Rows.Add(99, "W/F Action"); dtRuleTypes.Rows.Add(100, "Action Program"); //load all rule singletons var instances = from t in System.Reflection.Assembly.GetExecutingAssembly().GetTypes() where t.GetInterfaces().Contains(typeof(ICodeRule)) && t.GetConstructor(Type.EmptyTypes) != null select Activator.CreateInstance(t) as ICodeRule; foreach (var instance in instances) { myCodeRules.Add(instance.GetType().ToString(), instance); } var actions = from t in System.Reflection.Assembly.GetExecutingAssembly().GetTypes() where t.GetInterfaces().Contains(typeof(ICodeAction)) && t.GetConstructor(Type.EmptyTypes) != null select Activator.CreateInstance(t) as ICodeAction; foreach (var instance in actions) { myCodeActions.Add(instance.GetType().ToString(), instance); } }
public ucOfficerToolkit(atriumManager atmng, fMain mainform) { InitializeComponent(); SetAtmng(atmng, mainform); CreateNodes(); if (UIHelper.getScalingFactor() > 1) { tvOfficerToolkit.ItemHeight = tvOfficerToolkit.ItemHeight + 2; } }
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")); }
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")); }
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")); }
internal MsgBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.Msg) { myA = pBEMng; myMsgDT = (appDB.MsgDataTable)myDT; if (!myA.AppMan.UseService && myODAL == null) { myODAL = myA.DALMngr.GetMsg(); } }
public fExplorer(Form f, int RootFileId) : base(f) { InitializeComponent(); myAtmng = MainForm.AtMng; LoadLabel(); VerifySecurityForSubFiles(); LoadRootFile(RootFileId); ucBrowse1.Focus(); }
internal BatchBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.Batch) { myA = pBEMng; myBatchDT = (appDB.BatchDataTable)myDT; if (!myA.AppMan.UseService && myODAL == null) { myODAL = myA.DALMngr.GetBatch(); } }
internal SearchTermBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.SearchTerm) { myA = pBEMng; mySearchTermDT = (appDB.SearchTermDataTable)myDT; if (!myA.AppMan.UseService && myODAL == null) { myODAL = myA.DALMngr.GetSearchTerm(); } }
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")); }
public FileManager(atriumManager atMng, FileManager parentFile) : base(atMng.AppMan) { Init(atMng); myCurrentFileId = CreateFile(parentFile).FileId; LeadOfficeMng = myatMng.GetOffice(CurrentFile.LeadOfficeId); //create dd entities LoadDDEntities(null); }
private void Init(FileManager fm) { base.DAL = fm.DALMngr; myFM = fm; myAtMng = fm.AtMng; RuleHandler = fm.RuleHandler; MyDS = new SST(); MyDS.EnforceConstraints = false; FixTZDSIssue(MyDS); }
public fBrowse(atriumManager atmng) { InitializeComponent(); PanelDisplayHandler(false); ucBrowse1.LoadRoot(atmng, 0, false, false, false); ucBrowse1.ShowContextMenu = false; Atmng = atmng; cbSearchType.SelectedIndex = 0; lblCurrentFile.Text = ""; }
internal PLOfficeBE(atriumManager pBEMng) : base(pBEMng, pBEMng.DB.PLOffice) { myA = pBEMng; myPLOfficeDT = (appDB.PLOfficeDataTable)myDT; if (!myA.AppMan.UseService && myODAL == null) { myODAL = myA.DALMngr.GetPLOffice(); } }