Ejemplo n.º 1
0
        public virtual void ET_btnDEPO_AFItemPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnDEPO").Specific));
            
            // ADD YOUR ACTION CODE HERE ...
            oGrid = oForm.Items.Item("grd").Specific;
            int idx = oGrid.GetDataTableRowIndex(oGrid.Rows.SelectedRows.Item(0, BoOrderType.ot_SelectionOrder));
                
            KIS_SO0182A_HRD KIS_SO0182A_HRD = new KIS_SO0182A_HRD();
            KIS_SO0182A_HRD.Act0_SubFormInit(oForm.UniqueID, "", FN.GetGridCellValue(ref oGrid, "DocEntry", idx));

        }
Ejemplo n.º 2
0
        public virtual void ET_lnk_AFItemPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oLinkedButton = ((SAPbouiCOM.LinkedButton)(oForm.Items.Item("lnk").Specific));
            
            // ADD YOUR ACTION CODE HERE ...
            try
            {
                string edtBENTRY = FN.GetItemValue(ref oForm, "edtBENTRY");

                if (string.IsNullOrEmpty(edtBENTRY) == false)
                {
                    using (KIS_SO0182A_HRD oKIS_SO0182A_HRD = new KIS_SO0182A_HRD())
                    {
                        oKIS_SO0182A_HRD.Act0_SubFormInit(oForm.UniqueID, edtBENTRY);
                    }
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
Ejemplo n.º 3
0
        public virtual bool ET_grd_BFMatrixLinkPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
            // ADD YOUR ACTION CODE HERE ...

            if (pVal.ColUID == "DocEntry")
            {
                KIS_SO0181A_HRD KIS_SO0181A_HRD = new KIS_SO0181A_HRD();
                KIS_SO0181A_HRD.Act0_SubFormInit(oForm.UniqueID, FN.GetGridCellValue(ref oGrid, "DocEntry", pVal.Row));

                return false;
            }
            else if (pVal.ColUID == "U_BENTRY")
            {
                KIS_SO0182A_HRD KIS_SO0182A_HRD = new KIS_SO0182A_HRD();
                KIS_SO0182A_HRD.Act0_SubFormInit(oForm.UniqueID, FN.GetGridCellValue(ref oGrid, "U_BENTRY", pVal.Row));

                return false;
            }
            return true;
        }