Example #1
0
        public void FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)
        {
            try{
                BubbleEvent = true;

                foreach (Controller.FormMode fm in oController.getModeMonitors())
                {
                    try
                    {
                        Form oForm = (Form)oApp.Forms.GetForm(fm.formID, 0);
                        if (oForm != null)
                        {
                            oController.setMode(fm.formID, Convert.ToInt32(oForm.Mode));
                            break;
                        }
                    }
                    catch (Exception e)
                    {
                        SB1ControlException.SB1ControlException.Save(e);
                    }
                }

                BubbleEvent = oController.EventReceiver(BusinessObjectInfo.FormTypeEx, ""
                                                        , BusinessObjectInfo.BeforeAction, null, BusinessObjectInfo);
            }catch (Exception e)
            {
                BubbleEvent = false;
                SB1ControlException.SB1ControlException.Save(e);
            }
        }
Example #2
0
        private void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;

            try {
                if (BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
                {
                    invoicedFlag = true;
                    FillMatrix0("ClientDataTable", dt0, "N");
                    ClearMtx(mtx1);
                    invoicedFlag = false;
                }
            }
            catch { }
        }
Example #3
0
 protected virtual void OnFormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
 }