• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MenuEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MenuEvent的典型用法代码示例。如果您正苦于以下问题:C# MenuEvent类的具体用法?C# MenuEvent怎么用?C# MenuEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MenuEvent类属于命名空间,在下文中一共展示了MenuEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ET_OnAfterMenuClick

 public virtual void ET_OnAfterMenuClick(MenuEvent pVal)
 {
     oForm.Freeze(true);
     this.Act1_FormInit();
     oForm.Freeze(false);
     // ADD YOUR ACTION CODE HERE ...
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:7,代码来源:KIS_SO0260F_HRD.cs


示例2: ET_OnAfterMenuClick

 public virtual void ET_OnAfterMenuClick(MenuEvent pVal) 
 {
     oForm = B1Connections.theAppl.Forms.Item(formuid);
     oForm.Freeze(true);
     this.Act1_FormInit(oForm);
     oForm.Freeze(false);
     // ADD YOUR ACTION CODE HERE ...
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:8,代码来源:KIS_SO0390B_HRD.cs


示例3: ET_AFDataMenu_Add

        public virtual void ET_AFDataMenu_Add(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            try
            {
                SetAddedDefualtFormat();
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:14,代码来源:KIS_SD0070A_HRD.cs


示例4: sapApp_MenuEvent

        internal void sapApp_MenuEvent(ref MenuEvent pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;

            List<MenuEventAttribute> events;
            menuEvents.TryGetValue(pVal.MenuUID, out events);

            if (events != null)
            {
                foreach (var e in events)
                {
                    DispatchForm(e, ref pVal, out BubbleEvent);
                }
            }
        }
开发者ID:THJLI,项目名称:dover,代码行数:15,代码来源:MenuEventHandler.cs


示例5: ET_AFDataMenu_Add

 public virtual void ET_AFDataMenu_Add(MenuEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     // ADD YOUR ACTION CODE HERE ...
     SetDefultMasterData(oForm);
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:6,代码来源:KIS_SO0030A_HRD.cs


示例6: ET_AFRowDataMenu_Delete

        public virtual void ET_AFRowDataMenu_Delete(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            try
            {

                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item(gSelMtx).Specific;
                oForm.Freeze(true);


                oMatrix.AddRow(1, -1);
                int i = oMatrix.VisualRowCount;
                oMatrix.DeleteRow(i);
                oMatrix.FlushToDataSource();




                if (gSelMtx == "mtx1_DUMY")
                {
                    gDeliverySelect = -1;
                    // 1. 삭제된뒤 DataTable의 Index값을 다시 설정한다.
                    SetDataTableReIndexing_Deliver();

                    // 2. 다시 DataTable 기준으로 화면에 조회한다.
                    FindData(oForm);
                }
                else
                {
                    // 1. 삭제된뒤 DataTable의 Index값을 다시 설정한다.
                    SetDataTableReIndexing_Call();

                    // 2. 다시 DataTable 기준으로 화면에 조회한다.
                    FindSubData(oForm, GetSelectedMatrixRowIndex(oForm));
                }

                oForm.Freeze(false);
            }
            catch (Exception)
            {
                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:45,代码来源:KIS_SO0030A_HRD.cs


示例7: ET_AFRowDataMenu_Add

        public virtual void ET_AFRowDataMenu_Add(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...


            string strCode = string.Empty;
            string strDELIVCD = string.Empty;

            if (gSelMtx == "mtx1_DUMY")
            {
                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item(gSelMtx).Specific;
                oDB1_Z = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_SO00301Z_HRD");

                // 배달코드 생성
                strDELIVCD = GetMaxDelivCode(oForm);

                // SystemDataTable에 행 추가하고 추가된 Index값을 리턴받는다.
                int index = AddRowDataTable_DELIVER(oForm, strDELIVCD);

                SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB1_Z, index.ToString(), strDELIVCD, "U_DELVCD");
            }
            else
            {
                // 배달리스트에서 선택된 라인의 배달코드
                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx1_DUMY").Specific;


                int iSelectIndex = oMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder);
                strDELIVCD = FN.GetMatirxCellValue(ref oMatrix, "U_DELVCD", iSelectIndex);

                oDB2_Z = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_SO00302Z_HRD");

                // SystemDataTable에 행 추가하고 추가된 Index값을 리턴받는다.
                int index = AddRowDataTable_CALL(oForm, strDELIVCD);

                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx2_DUMY").Specific;
                SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB2_Z, index.ToString(), strDELIVCD, "U_DELVCD");

                // 상담리스트에 행추가하고 선택된 행의 Index 값을 가져와서 선택된 행의 수정여부를 수정한다.
                iSelectIndex = oMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder);

                oMatrix.CommonSetting.SetCellEditable(iSelectIndex, gCallTp_IDX, true);// 콜유형
                oMatrix.CommonSetting.SetCellEditable(iSelectIndex, gComment_IDX, true);// 접수내용

            }
            B1Connections.theAppl.StatusBar.SetText(pVal.MenuUID.ToString(), SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_None);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:48,代码来源:KIS_SO0030A_HRD.cs


示例8: ET_AF_SUB_BASEDOC

        public virtual void ET_AF_SUB_BASEDOC(MenuEvent pVal)
        {
            // ADD YOUR ACTION CODE HERE ...
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            //try
            //{
            //    string ObjectType = oForm.DataSources.UserDataSources.Item("ObjectType").ValueEx;
            //    string BaseEntry = oForm.DataSources.UserDataSources.Item("BaseEntry").ValueEx;

            //    if (ObjectType == "KIS_BT0040")
            //    {
            //        LoadSubForm(oForm, "KIS_BT0030", BaseEntry);
            //    }

            //}
            //catch (Exception ex)
            //{

            //    B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            //}
            

        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:23,代码来源:KIS_SD0030A_HRD.cs


示例9: ET_AFDataMenu_Remove

 public virtual void ET_AFDataMenu_Remove(MenuEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     // ADD YOUR ACTION CODE HERE ...
     if (oForm.Mode != BoFormMode.fm_OK_MODE)
         oForm.Mode = BoFormMode.fm_OK_MODE;
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:7,代码来源:KIS_SO0311A_HRD.cs


示例10: ET_AFRowDataMenu_Delete

        public virtual void ET_AFRowDataMenu_Delete(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            try
            {
                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;
                oForm.Freeze(true);
                oMatrix.AddRow(1, -1);
                int i = oMatrix.VisualRowCount;
                oMatrix.DeleteRow(i);
                oMatrix.FlushToDataSource();
                oForm.Freeze(false);
            }
            catch (Exception)
            {
                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:20,代码来源:KIS_SO0311A_HRD.cs


示例11: ET_AFDataMenu_Find

 public virtual void ET_AFDataMenu_Find(MenuEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     // ADD YOUR ACTION CODE HERE ...
     SetStatic_ClearCaption();
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:6,代码来源:KIS_SD0090A_HRD.cs


示例12: ET_BFDataMenu_Remove

 public virtual bool ET_BFDataMenu_Remove(MenuEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     // ADD YOUR ACTION CODE HERE ...
     if (GetBefore_Remove_Validation() == false)
     {
         return false;
     }
     return true;
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:10,代码来源:KIS_SD0090A_HRD.cs


示例13: ET_AFDataMenu_Add

        public virtual void ET_AFDataMenu_Add(MenuEvent pVal) {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_FI0010M_HRD");
            oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");

            string strNowDate = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
            strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.p_YYYYMMDD);
            oDB_M.SetValue("U_DOCDATE", 0, strNowDate.Replace(".", ""));
            oDB_M.SetValue("U_USERID", 0, B1Connections.theAppl.Company.UserName);

            oComboBox = oForm.Items.Item("cboYYYY").Specific;
            oComboBox.Select(FN.Left(strNowDate, 4), BoSearchKey.psk_ByValue);

            oComboBox = oForm.Items.Item("cboTYPE").Specific;
            oComboBox.Select(0, BoSearchKey.psk_Index);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:18,代码来源:KIS_FI0010A_HRD.cs


示例14: ET_AFRowDataMenu_Add

        public virtual void ET_AFRowDataMenu_Add(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;
            oDB_1 = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");
            FN.SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB_1, FN.RowSelectMode.SelectedLine, "U_PRCCD");
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:9,代码来源:KIS_FI0010A_HRD.cs


示例15: ET_BFDataMenu_Remove

        public virtual bool ET_BFDataMenu_Remove(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            
            // ADD YOUR ACTION CODE HERE ...
            // 입금내역 있으면 지로청구 자료 삭제 불가
            return DeleteDoc(oForm);

            //return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:10,代码来源:KIS_SO0160A_HRD.cs


示例16: ET_BFDataMenu_Find

        public virtual bool ET_BFDataMenu_Find(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            FN.SetUserDateSource_Clear(ref oForm);

            return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:9,代码来源:KIS_SD0030A_HRD.cs


示例17: ET_AFRowDataMenu_Delete

        public virtual void ET_AFRowDataMenu_Delete(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...
            oForm.Freeze(true);

            try
            {
                /*빈 라인 삭제*/
                FN.SetMatrixDeleteRow(ref oForm, ref oMatrix);
                /*행추가*/
                SetMatrixAddRow(FN.RowSelectMode.None);
                /*삭제후 다시 문서 총계*/
                SetMatrixCalc_Sum();

                if (oForm.Mode == BoFormMode.fm_OK_MODE)
                    oForm.Mode = BoFormMode.fm_UPDATE_MODE;

            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error); ;
            }
            finally
            {
                oForm.Freeze(false);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:28,代码来源:KIS_SD0030A_HRD.cs


示例18: ET_BFRowDataMenu_Delete

        public virtual bool ET_BFRowDataMenu_Delete(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...

            //oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0420T_HRD");
            string strSTATUS = oForm.DataSources.UserDataSources.Item("U_STATUS").Value;
            if (strSTATUS == "R")
                return false;
            else
            {
                oForm.EnableMenu(SO.MenuProperty.DeleteRow, false);
                return true;
            }            
        }       
开发者ID:wldyd0210,项目名称:TEST,代码行数:15,代码来源:KIS_SO0311A_HRD.cs


示例19: ET_AF_SUB_TARGETDOC

        public virtual void ET_AF_SUB_TARGETDOC(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            // ADD YOUR ACTION CODE HERE ...
            try
            {

                int oMatrixRow = oMatrix.GetNextSelectedRow();

                string U_TTYPE = ((SAPbouiCOM.EditText)oMatrix.GetCellSpecific("U_TTYPE", oMatrixRow)).Value.Trim();//대상문서
                string U_TENTRY =  ((SAPbouiCOM.EditText)oMatrix.GetCellSpecific("U_TENTRY", oMatrixRow)).Value.Trim();//대상문서

                switch (U_TTYPE)
                {
                    case "KIS_SD0050_HRD":
                        LoadSubForm(oForm, U_TTYPE, U_TENTRY);
                        break;
                    default:
                        break;
                }


            }
            catch (Exception ex)
            {

                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:29,代码来源:KIS_SD0030A_HRD.cs


示例20: ET_AFDataMenu_Add

        public virtual void ET_AFDataMenu_Add(MenuEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.ActiveForm;

            // ADD YOUR ACTION CODE HERE ...
            // 입금계좌번호
            oForm.Items.Item("edtBNKACCT").Specific.value = FN.GetRecordsetValue("SELECT AcctCode FROM OACT WHERE AcctCode = '11101285'");
            oForm.Items.Item("edtBNKATNM").Specific.value = FN.GetRecordsetValue("SELECT AcctName FROM OACT WHERE AcctCode = '11101285'");
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:9,代码来源:KIS_SO0280A_HRD.cs



注:本文中的MenuEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# QuickFix.ExecID类代码示例发布时间:2022-05-26
下一篇:
C# MegaShape类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap