コード例 #1
0
ファイル: KIS_SO0182A_HRD.cs プロジェクト: wldyd0210/TEST
        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_SO0181A_HRD oKIS_SO0181A_HRD = new KIS_SO0181A_HRD())
                    {
                        oKIS_SO0181A_HRD.Act0_SubFormInit(oForm.UniqueID, edtBENTRY);
                    }
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
コード例 #2
0
ファイル: KIS_SO0180B_HRD.cs プロジェクト: wldyd0210/TEST
        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;
        }