Example #1
0
        private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e)
        {
            try
            {
                Janus.Windows.UI.CommandBars.UICommandBar bar = uiCommandManager1.CommandBars["cbMergeToolbar"];
                if (bar.Commands.Contains(e.Command.Key) && bar.Commands[e.Command.Key].Commands.Count > 0)
                {
                    bar.Commands[e.Command.Key].Expand();
                }

                switch (e.Command.Key)
                {
                case "tsSaveIRP":
                    SaveIRP();
                    break;

                case "tsDeleteIRP":
                    DeleteIRP();
                    break;

                case "tsNewIRP":
                    NewIRP();
                    break;

                case "tsGoToBillingReview":
                    if (myOfficeMan.CurrentOffice.UsesBilling)
                    {
                        ucBase             ctl   = FileForm().MoreInfo("billingreview");
                        ucSRPBillingReview brCtl = (ucSRPBillingReview)ctl;
                        brCtl.MoreInfo("billingreview", CurrentRowIRP().SRPID, CurrentRowIRP().IRPId);
                    }
                    break;

                case "tsGoToSRP":
                    FileForm().MoreInfo("srp", CurrentRowIRP().SRPID);
                    break;

                case "cmdJumpToActivity":
                    fFile nFile = FileForm().MainForm.OpenFile(CurrentRowIRP().FileID);
                    nFile.MoreInfo("activity");
                    break;

                case "cmdJumpToTaxation":
                    fFile nFile1 = FileForm().MainForm.OpenFile(CurrentRowIRP().FileID);
                    nFile1.MoreInfo("irp", CurrentRowIRP().IRPId);
                    break;
                }
                if (e.Command.Key.StartsWith("cmdTaxRec"))
                {
                    CLAS.TaxingRow tr    = (CLAS.TaxingRow)e.Command.Tag;
                    fFile          nFile = FileForm().MainForm.OpenFile(tr.FileID);
                    nFile.MoreInfo("taxing", tr.TaxingID);
                }
            }
            catch (Exception x)
            {
                UIHelper.HandleUIException(x);
            }
        }
Example #2
0
 private void iRPGridEX_RowDoubleClick(object sender, Janus.Windows.GridEX.RowActionEventArgs e)
 {
     try
     {
         if (e.Row.RowType == Janus.Windows.GridEX.RowType.Record)
         {
             if (myOfficeMan.CurrentOffice.UsesBilling)
             {
                 ucBase             ctl   = FileForm().MoreInfo("billingreview");
                 ucSRPBillingReview brCtl = (ucSRPBillingReview)ctl;
                 brCtl.MoreInfo("billingreview", CurrentRowIRP().SRPID, CurrentRowIRP().IRPId);
             }
         }
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }