Пример #1
0
 private void loadCBDetailData()
 {
     CLAS.CashBlotterRow cbr = CurrentRow();
     if (cbr.CashBlotterID != cbId)
     {
         FM.GetCLASMng().DB.CBDetail.Clear();
         FM.GetCLASMng().GetCBDetail().LoadByCashBlotterId(cbr.CashBlotterID);
         cbId = cbr.CashBlotterID;
     }
 }
Пример #2
0
 public void ApplyCostSecurity(DataRow dr)
 {
     if (dr != null)
     {
         CLAS.CostRow jr = (CLAS.CostRow)dr;
         UIHelper.EnableControls(atriumDB_CostDataTableBindingSource, FM.GetCLASMng().GetCost().CanEdit(jr));
         bool canDelete = FM.GetCLASMng().GetCost().CanDelete(jr);
         costGridEX.RootTable.Columns["colDelete"].Visible = canDelete;
     }
 }
Пример #3
0
        public override void ApplySecurity(DataRow dr)
        {
            CLAS.DebtRow cbr      = (CLAS.DebtRow)dr;
            bool         okToEdit = FM.GetCLASMng().GetDebt().CanEdit(cbr);

            UIHelper.EnableControls(debtBindingSource, okToEdit);
            UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetDebt().CanDelete(cbr));

            accountHistoryGridEX.RootTable.Columns["colDelete"].Visible = okToEdit;
        }
Пример #4
0
        public void BindFileHistoryData(CLAS.FileHistoryDataTable a)
        {
            officeIducOfficeSelectBox.AtMng = FM.AtMng;
            UIHelper.ComboBoxInit("ReturnCode", ucMultiDropDown1, FM);

            setBindingSources();

            a.ColumnChanged += new DataColumnChangeEventHandler(a_ColumnChanged);
            FM.GetCLASMng().GetFileHistory().OnUpdate += new atLogic.UpdateEventHandler(ucFileHistory_OnUpdate);
        }
Пример #5
0
        public void bindBankruptcyData(CLAS.BankruptcyDataTable dt)
        {
            officeIDucOfficeSelectBox.AtMng = FM.AtMng;
            setBindingSources();
            UIHelper.ComboBoxInit("BankruptcyOrderType", bankruptcyOrderTypeucMultiDropDown, FM);
            UIHelper.ComboBoxInit(FM.Codes("InsolvencyPeriod"), mccInsolvencyPeriod, FM);

            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().GetBankruptcy().OnUpdate += new atLogic.UpdateEventHandler(ucBankruptcy_OnUpdate);
        }
Пример #6
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                FM.GetCLASMng().DB.OfficeAccount.ColumnChanged -= new System.Data.DataColumnChangeEventHandler(dt_ColumnChanged);
                FM.GetCLASMng().GetOfficeAccount().OnUpdate -= new atLogic.UpdateEventHandler(ucOfficeQR_OnUpdate);

                components.Dispose();
            }
            base.Dispose(disposing);
        }
Пример #7
0
        public override void ApplySecurity(DataRow dr)
        {
            if (FileForm() != null && FileForm().ReadOnly)
            {
                return;
            }

            CLAS.HardshipRow cbr = (CLAS.HardshipRow)dr;
            UIHelper.EnableControls(hardshipBindingSource, FM.GetCLASMng().GetHardship().CanEdit(cbr));
            UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetHardship().CanDelete(cbr));
        }
Пример #8
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                FM.GetCLASMng().DB.Hardship.ColumnChanged -= new DataColumnChangeEventHandler(a_ColumnChanged);
                FM.GetCLASMng().GetHardship().OnUpdate -= new atLogic.UpdateEventHandler(uc_OnUpdate);

                components.Dispose();
            }
            base.Dispose(disposing);
        }
Пример #9
0
        private void setBindingSources()
        {
            if (forOffice)
            {
                FM.GetCLASMng().GetTaxing().LoadByOfficeID(FM.CurrentFile.LeadOfficeId);
            }


            taxingBindingSource.DataMember = FM.GetCLASMng().DB.Taxing.TableName;
            taxingBindingSource.DataSource = FM.GetCLASMng().DB;
        }
Пример #10
0
 private bool HasNoCostRecords(CLAS.JudgmentRow dr)
 {
     foreach (CLAS.CostRow cr in FM.GetCLASMng().DB.Cost.Rows)
     {
         if (cr.JudgmentID == dr.JudgmentID)
         {
             return(false);
         }
     }
     return(true);
 }
Пример #11
0
        public void bindInsolvencyData(lmDatasets.CLAS.InsolvencyDataTable dt)
        {
            UIHelper.ComboBoxInit("InsolvencyType", ucInsolvencyTypeMcc, FM);

            setBindingSources();

            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().GetInsolvency().OnUpdate += new atLogic.UpdateEventHandler(ucInsolvency_OnUpdate);

            ApplySecurity(CurrentRow());
        }
Пример #12
0
        public void BindQRData(CLAS.OfficeAccountDataTable dt)
        {
            UIHelper.ComboBoxInit("officeaccounttype", ucAccountTypeMcc, FM);
            UIHelper.ComboBoxInit("officeaccounttype", officeAccountGridEX.DropDowns["ddAccountType"], FM);

            officeAccountBindingSource.DataMember = dt.TableName;
            officeAccountBindingSource.DataSource = dt.DataSet;


            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().GetOfficeAccount().OnUpdate += new atLogic.UpdateEventHandler(ucOfficeQR_OnUpdate);
        }
Пример #13
0
        public override void ApplySecurity(DataRow dr)
        {
            if (FileForm() != null && FileForm().ReadOnly)
            {
                return;
            }

            CLAS.OfficeAccountRow qrr = (CLAS.OfficeAccountRow)dr;
            UIHelper.EnableControls(officeAccountBindingSource, FM.GetCLASMng().GetOfficeAccount().CanEdit(qrr));
            UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetOfficeAccount().CanDelete(qrr));
            UIHelper.EnableCommandBarCommand(tsNew, FM.GetCLASMng().GetOfficeAccount().CanAdd(FM.CurrentFile));
        }
Пример #14
0
 private bool HasNoWritRecords(CLAS.JudgmentRow dr)
 {
     foreach (CLAS.WritRow wr in FM.GetCLASMng().DB.Writ.Rows)
     {
         if (wr.JudgmentID == dr.JudgmentID)
         {
             writGridEX.ExpandRecords();
             return(false);
         }
     }
     return(true);
 }
Пример #15
0
        public override void ApplySecurity(DataRow dr)
        {
            CLAS.CashBlotterRow cbr = (CLAS.CashBlotterRow)dr;
            bool okToEdit           = FM.GetCLASMng().GetCashBlotter().CanEdit(cbr);

            UIHelper.EnableControls(cashBlotterBindingSource, okToEdit);
            UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetCashBlotter().CanDelete(cbr));

            //if (okToEdit)
            //    cmdProcessCB.Enabled = Janus.Windows.UI.InheritableBoolean.True;
            //else
            //    cmdProcessCB.Enabled = Janus.Windows.UI.InheritableBoolean.False;
        }
Пример #16
0
        private void setBindingSources()
        {
            //cashBlotterBindingSource.DataMember = FM.GetCLASMng().DB.CashBlotter.TableName;
            //cashBlotterBindingSource.DataSource = FM.GetCLASMng().DB;
            //cashBlotterBindingSource.Sort = "cashblotterid desc";

            DataView dv = new DataView(FM.GetCLASMng().DB.CashBlotter, "", "cashblotterid desc", DataViewRowState.ModifiedCurrent | DataViewRowState.Unchanged);

            cashBlotterBindingSource.DataSource = dv;
            cashBlotterBindingSource.DataMember = "";

            cashBlotterBindingSource.Position = 0;
        }
Пример #17
0
        private void iRPBindingSource_CurrentChanged(object sender, EventArgs e)
        {
            atriumDB.IRPRow dr = CurrentRow();

            if (dr == null)
            {
                return;
            }

            CLAS.TaxingRow[] taxRecs = (CLAS.TaxingRow[])FM.GetCLASMng().DB.Taxing.Select("IRPId=" + CurrentRow().IRPId, "TaxingDate");
            TaxRecDropDown(taxRecs);
            ApplySecurity(dr);
        }
Пример #18
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                FM.GetCLASMng().DB.CompOffer.ColumnChanged -= new DataColumnChangeEventHandler(compOfferTable_ColumnChanged);
                FM.GetCLASMng().DB.CompOfferDetail.ColumnChanged -= new DataColumnChangeEventHandler(compOfferTable_ColumnChanged);

                FM.GetCLASMng().GetCompOffer().OnUpdate       -= new atLogic.UpdateEventHandler(ucCompOffer_OnUpdate);
                FM.GetCLASMng().GetCompOfferDetail().OnUpdate -= new atLogic.UpdateEventHandler(ucCompOffer_OnUpdate);

                components.Dispose();
            }
            base.Dispose(disposing);
        }
Пример #19
0
        private void CalculateAllAndCompletedPayments()
        {
            tbAllPayments.Text       = FM.GetCLASMng().GetCBDetail().AllPayments().ToString();
            tbCompletedPayments.Text = FM.GetCLASMng().GetCBDetail().CompletedPayments().ToString();

            if (FM.GetCLASMng().GetCBDetail().MoreThanTwoNSFs())
            {
                lblMoreThan2NSFs.Visible = true;
            }
            else
            {
                lblMoreThan2NSFs.Visible = false;
            }
        }
Пример #20
0
 private void btnGoToOfficeCB_Click(object sender, EventArgs e)
 {
     try
     {
         CLAS.CashBlotterRow cbr = FM.GetCLASMng().GetCashBlotter().Load(CurrentRow().CashBlotterID);
         fFile  cbFile           = FileForm().MainForm.OpenFile(cbr.FileID);
         ucBase ctl = cbFile.MoreInfo("cashblotter");
         ucCashBlotterOffice cbCtl = (ucCashBlotterOffice)ctl;
         cbCtl.MoreInfo("cashblotter", cbr.CashBlotterID, CurrentRow().CashBlotterDetailID);
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Пример #21
0
        private void TaxRecDropDown(int irpId)
        {
            uiContextMenu2.Commands.Clear();

            if (!CurrentRowIRP().IsFileIDNull())
            {
                //CLAS.TaxingRow[] trs = (CLAS.TaxingRow[])FM.GetCLASMng().DB.Taxing.Select("IRPId=" + irpId, "TaxingDate");
                CLAS.TaxingRow[] trs = (CLAS.TaxingRow[])FM.GetCLASMng().DB.Taxing.Select("fileid=" + CurrentRowIRP().FileID.ToString(), "TaxingDate");
                foreach (CLAS.TaxingRow tr in trs)
                {
                    uiButton2.Enabled = true;
                    Janus.Windows.UI.CommandBars.UICommand newCmd;
                    string key = "cmdTaxRec" + tr.TaxingID;
                    if (uiContextMenu2.CommandManager.Commands.Contains(key))
                    {
                        newCmd = uiContextMenu2.CommandManager.Commands[key];
                    }
                    else
                    {
                        newCmd     = new Janus.Windows.UI.CommandBars.UICommand();
                        newCmd.Key = key;
                    }

                    string cmdText = "Date: " + tr.TaxingDate.ToString("yyyy/MM/dd");

                    if (!tr.IsTaxDownDisbNull() && tr.TaxDownDisb > 0)
                    {
                        cmdText += "; Amount: " + tr.TaxDownDisb.ToString("C");
                    }

                    if (!tr.IsTaxDownHoursNull() && tr.TaxDownHours > 0)
                    {
                        cmdText += "; Fees (Time): " + tr.TaxDownHours.ToString();
                    }

                    newCmd.Text = cmdText;
                    newCmd.Tag  = tr;
                    newCmd.ShowInCustomizeDialog = false;
                    uiContextMenu2.Commands.Add(newCmd);
                }
            }

            if (uiContextMenu2.Commands.Count == 0)
            {
                uiButton2.Enabled = false;
            }
        }
Пример #22
0
 public override void ApplySecurity(DataRow dr)
 {
     if (dr == null)
     {
         UIHelper.EnableControls(taxingBindingSource, false);
         UIHelper.EnableCommandBarCommand(tsDelete, false);
         btnJumpToIRP.Visible = false;
     }
     else
     {
         CLAS.TaxingRow cbr = (CLAS.TaxingRow)dr;
         UIHelper.EnableControls(taxingBindingSource, FM.GetCLASMng().GetTaxing().CanEdit(cbr));
         UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetTaxing().CanDelete(cbr));
         btnJumpToIRP.Visible = !cbr.IsIRPIdNull(); //allow jumping to billing file if tax rec linked to IRP
     }
     closedUICheckBox.Enabled = false;
 }
Пример #23
0
        public void BindCompOfferData(CLAS.CompOfferDataTable compOfferTable)
        {
            officeIducOfficeSelectBox.AtMng = FM.AtMng;

            atriumDB_CompOfferDetailDataTableBindingSource.DataMember = "CompOfferDetail";
            atriumDB_CompOfferDataTableBindingSource.DataMember       = "CompOffer";

            atriumDB_CompOfferDetailDataTableBindingSource.DataSource = compOfferTable.DataSet;
            atriumDB_CompOfferDataTableBindingSource.DataSource       = compOfferTable.DataSet;


            compOfferTable.ColumnChanged += new DataColumnChangeEventHandler(compOfferTable_ColumnChanged);
            FM.GetCLASMng().DB.CompOfferDetail.ColumnChanged += new DataColumnChangeEventHandler(compOfferTable_ColumnChanged);

            FM.GetCLASMng().GetCompOffer().OnUpdate       += new atLogic.UpdateEventHandler(ucCompOffer_OnUpdate);
            FM.GetCLASMng().GetCompOfferDetail().OnUpdate += new atLogic.UpdateEventHandler(ucCompOffer_OnUpdate);
        }
Пример #24
0
 private void AccountIncludedGridEx_LoadingRow(object sender, Janus.Windows.GridEX.RowLoadEventArgs e)
 {
     try
     {
         int            faId = (int)e.Row.Cells["FileAccountId"].Value;
         CLAS.DebtRow[] dr   = (CLAS.DebtRow[])FM.GetCLASMng().DB.Debt.Select("FileAccountId=" + faId, "");
         if (dr.Length == 1)
         {
             //JLL: can't translate AccountTypeDescEng to Fre as AccountTypeDescFre not in dataset
             //it will be for another day
             e.Row.Cells["DARSAccountType"].Value = dr[0].AccountTypeCode + " - " + dr[0].DARSAccountType + " - " + dr[0].AccountTypeDescEng;
         }
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Пример #25
0
        public void bindTaxRecData(lmDatasets.CLAS.TaxingDataTable dt, bool _forOffice)
        {
            forOffice = _forOffice;

            UIHelper.ComboBoxInit("ReasonCode", reasonCodeucMultiDropDown, FM);
            UIHelper.ComboBoxInit("ReasonCode", taxingGridEX.DropDowns["ddReason"], FM);
            UIHelper.ComboBoxInit("vofficerlist", taxingGridEX.DropDowns["ddOfficer"], FM);
            officeIDucOfficeSelectBox.AtMng = FM.AtMng;
            officerIDucContactSelectBox.FM  = FM;
            fileIDucFileSelectBox.AtMng     = FM.AtMng;

            setBindingSources();

            //setBSFilter();

            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().GetTaxing().OnUpdate += new atLogic.UpdateEventHandler(ucTaxingRecommendation_OnUpdate);

            ApplySecurity(CurrentRow());
        }
Пример #26
0
        public void bindFileAccountData(lmDatasets.CLAS.DebtDataTable dt)
        {
            uiTabPage2.Enabled = false;
            officeIducOfficeSelectBox.AtMng = FM.AtMng;
            UIHelper.ComboBoxInit("ReturnCode", ucClosureCodeMcc, FM);
            UIHelper.ComboBoxInit("vaccounttypelist", ucAccountTypeMcc, FM);
            UIHelper.ComboBoxInit("LP", ucLPCodeMcc, FM);
            UIHelper.ComboBoxInit("ReturnCode", ucReturnCodeMcc, FM);
            UIHelper.ComboBoxInit("InterestRateType", rateTypeucMultiDropDown, FM);

            setBindingSources();

            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().DB.AccountHistory.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);

            FM.GetCLASMng().GetDebt().OnUpdate           += new atLogic.UpdateEventHandler(ucFileAccount_OnUpdate);
            FM.GetCLASMng().GetAccountHistory().OnUpdate += new atLogic.UpdateEventHandler(ucFileAccount_OnUpdate);

            debtGridEX.MoveFirst();
            accountHistoryGridEX.MoveLast();
        }
Пример #27
0
        public override void MoreInfo(string linkTable, int linkId)
        {
            if (linkTable.ToUpper() == "COMPOFFER")
            {
                atriumDB_CompOfferDataTableBindingSource.Position = atriumDB_CompOfferDataTableBindingSource.Find("CompOfferId", linkId);
                NavId = linkId;
            }
            else if (linkTable.ToUpper() == "COMPOFFERDETAIL")
            {
                CLAS.CompOfferDetailRow[] codr = (CLAS.CompOfferDetailRow[])FM.GetCLASMng().DB.CompOfferDetail.Select("CompOfferDetailId=" + linkId);
                if (codr.Length == 0)
                {
                    throw new Exception("Record could not be found");
                }

                CLAS.CompOfferRow[] cor = (CLAS.CompOfferRow[])FM.GetCLASMng().DB.CompOffer.Select("CompOfferId=" + codr[0].CompOfferId);

                atriumDB_CompOfferDataTableBindingSource.Position       = atriumDB_CompOfferDataTableBindingSource.Find("CompOfferId", cor[0].CompOfferId);
                atriumDB_CompOfferDetailDataTableBindingSource.Position = atriumDB_CompOfferDetailDataTableBindingSource.Find("CompOfferDetailId", linkId);
            }
        }
Пример #28
0
        public override void ApplySecurity(DataRow brow)
        {
            CLAS.FileHistoryRow br = (CLAS.FileHistoryRow)brow;
            UIHelper.EnableControls(fileHistoryBindingSource, FM.GetCLASMng().GetFileHistory().CanEdit(br));
            UIHelper.EnableCommandBarCommand(tsDelete, FM.GetCLASMng().GetFileHistory().CanDelete(br));


            if (FM.GetCLASMng().GetFileHistory().CanEdit(br))
            {   //toggle appropriate fields
                //OWNER
                if (FM.CurrentFile.OwnerOfficeId == FM.AtMng.WorkingAsOfficer.OfficeId)
                {
                    officeDB.OfficeRow or = FM.AtMng.OfficeMng.DB.Office.FindByOfficeId(FM.CurrentFile.LeadOfficeId);
                    if (or == null)
                    {
                        or = FM.AtMng.GetOffice(FM.CurrentFile.LeadOfficeId).CurrentOffice;
                    }
                    if (or.IsOnLine && FM.CurrentFile.LeadOfficeId != FM.CurrentFile.OwnerOfficeId) //lead is online
                    {
                        receivedByOfficeDateCalendarCombo.ReadOnly = true;
                        returnedByOfficeDateCalendarCombo.ReadOnly = true;
                        ucMultiDropDown1.ReadOnly = true;
                    }
                }
                else //AGENT
                {
                    sentToOfficeDateCalendarCombo.ReadOnly       = true;
                    officeIducOfficeSelectBox.ReadOnly           = true;
                    receivedFromOfficeDateCalendarCombo.ReadOnly = true;
                    if (br.OfficeId != FM.AtMng.WorkingAsOfficer.OfficeId)
                    {
                        receivedByOfficeDateCalendarCombo.ReadOnly = true;
                        returnedByOfficeDateCalendarCombo.ReadOnly = true;
                        ucMultiDropDown1.ReadOnly = true;
                    }
                }
            }
        }
Пример #29
0
        public override void Save()
        {
            if (FM.GetCLASMng().DB.FileHistory.HasErrors)
            {
                UIHelper.TableHasErrorsOnSaveMessBox(FM.DB);
            }
            else
            {
                try
                {
                    this.fileHistoryBindingSource.EndEdit();

                    atLogic.BusinessProcess bp = FM.GetBP();
                    bp.AddForUpdate(FM.GetCLASMng().GetFileHistory());
                    bp.Update();
                    ApplyBR(true);
                }
                catch (Exception x)
                {
                    throw x;
                }
            }
        }
Пример #30
0
        public override void Delete()
        {
            try
            {
                if (UIHelper.ConfirmDelete())
                {
                    CurrentRow().Delete();
                    this.officeAccountBindingSource.EndEdit();
                    atLogic.BusinessProcess bp = FM.GetBP();
                    bp.AddForUpdate(FM.GetCLASMng().GetOfficeAccount());
                    bp.AddForUpdate(FM.EFile);
                    bp.Update();
                    ApplyBR(true);

                    fFile f = (fFile)this.ParentForm;
                    f.fileToc.LoadTOC();
                }
            }
            catch (Exception x)
            {
                throw x;
            }
        }