当前位置: 首页>>代码示例>>C#>>正文


C# Form.Close方法代码示例

本文整理汇总了C#中SAPbouiCOM.Form.Close方法的典型用法代码示例。如果您正苦于以下问题:C# Form.Close方法的具体用法?C# Form.Close怎么用?C# Form.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SAPbouiCOM.Form的用法示例。


在下文中一共展示了Form.Close方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ET_1_AFItemPressed

 public virtual void ET_1_AFItemPressed(ItemEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
     // ADD YOUR ACTION CODE HERE ...
     if (oForm.Mode == BoFormMode.fm_OK_MODE || oForm.Mode == BoFormMode.fm_ADD_MODE)
     {
         SetApplyDataToParent2(oForm);
     }
     oForm.Close();
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:11,代码来源:KIS_SO0311A_HRD.cs

示例2: ET_grd_AFDoubleClick

        public virtual void ET_grd_AFDoubleClick(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
            // ADD YOUR ACTION CODE HERE ...
            string pformuid = oForm.DataSources.UserDataSources.Item("pformuid").ValueEx;
            SAPbouiCOM.Form pform = (SAPbouiCOM.Form)B1Connections.theAppl.Forms.Item(pformuid);

            if (PRow != -1)
            {
                pBtn = pVal.ItemUID;
                //pform.DataSources.UserDataSources.Item("edtFRDELCD").Value = oGrid.DataTable.GetValue("Code", PRow);
                pform.DataSources.UserDataSources.Item(pColNM).Value = oGrid.DataTable.GetValue("Code", PRow);
                oForm.Close();
            }

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

示例3: ET_grd_AFDoubleClick

 public virtual void ET_grd_AFDoubleClick(ItemEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
     // ADD YOUR ACTION CODE HERE ...
     SetApplyDataToParentForm_2(oForm);
     oForm.Close();
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:8,代码来源:KIS_SO0032F_HRD.cs

示例4: ET_btnApply_AFItemPressed

        public virtual void ET_btnApply_AFItemPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnApply").Specific));
            // ADD YOUR ACTION CODE HERE ...

            if (oForm.DataSources.UserDataSources.Item("sTYPE").ValueEx == "TRUE")
            {
                SetApplyDataToParentForm(oForm);
                CallBackEvent();
            }

            oForm.Close();
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:14,代码来源:KIS_SO0082F_HRD.cs

示例5: ET_btnAPPLY_AFItemPressed

 public virtual void ET_btnAPPLY_AFItemPressed(ItemEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnAPPLY").Specific));
     // ADD YOUR ACTION CODE HERE ...
     SetApplyDataToParentForm_2(oForm);
     oForm.Close();
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:8,代码来源:KIS_SO0032F_HRD.cs

示例6: ET_1_AFItemPressed

 public virtual void ET_1_AFItemPressed(ItemEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
     // ADD YOUR ACTION CODE HERE ...
     oForm.Close();
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:7,代码来源:KIS_SO0031A_HRD.cs

示例7: ET_btn1_AFItemPressed

        public virtual void ET_btn1_AFItemPressed(ItemEvent pVal) {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btn1").Specific));
            // ADD YOUR ACTION CODE HERE ...
            try
            {
                oGrid = oForm.Items.Item("grd1").Specific;

                string DocEntry = string.Empty;

                if (oGrid.Rows.SelectedRows.Count > 0)
                {
                    int iRowindex = oGrid.Rows.SelectedRows.Item(0, BoOrderType.ot_RowOrder);
                    DocEntry = ((int)oGrid.DataTable.GetValue("DOCENTRY", iRowindex)).ToString();

                    LoadSubForm(oForm, "KIS_TR0031_HRD", DocEntry);
                }



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

示例8: SubFormCopy

        /// <summary>
        /// 광고수주오더에서 광고매출확정으로 관련 항목 데이터 복제시 사용합니다.
        /// </summary>
        /// <param name="KIS_SD0030_HRD_FormUid">광고수주오더 폼UID</param>
        public void SubFormCopy(string KIS_SD0030_HRD_FormUid)
        {
            this.LoadForm();
            //광고매출확정 폼
            oForm = B1Connections.theAppl.Forms.Item(formuid);
            //광고수주오더 폼
            SAPbouiCOM.Form oForm_KIS_SD0030_HRD = B1Connections.theAppl.Forms.Item(KIS_SD0030_HRD_FormUid);

            this.Act1_FormInit();

            try
            {
                SAPbouiCOM.DBDataSource oKIS_SD0030T_HRD = oForm_KIS_SD0030_HRD.DataSources.DBDataSources.Item("@KIS_SD0030T_HRD");
                SAPbouiCOM.DBDataSource oKIS_SD00301_HRD = oForm_KIS_SD0030_HRD.DataSources.DBDataSources.Item("@KIS_SD00301_HRD");

                SAPbouiCOM.DBDataSource oKIS_SD0050T_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD0050T_HRD");
                SAPbouiCOM.DBDataSource oKIS_SD00501_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD00501_HRD");


                SetDBDataSourceCopy_Header(oKIS_SD0030T_HRD, oKIS_SD0050T_HRD);

                SetDBDataSourceCopy_Line(oKIS_SD00301_HRD, oKIS_SD00501_HRD);

                oForm.Visible = true;
            }
            catch (Exception ex)
            {

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


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

示例9: ET_btnSAVE_AFItemPressed

        public virtual void ET_btnSAVE_AFItemPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnSAVE").Specific));
            oGrid = (SAPbouiCOM.Grid)oForm.Items.Item("grd").Specific;
            // ADD YOUR ACTION CODE HERE ...

            if (oGrid.DataTable.Rows.Count != 0)
            {
                SetApplyDataToMatrix(oForm);
                oForm.Close();
            }
            else
            {
                B1Connections.theAppl.StatusBar.SetText("추가할 데이터가 없습니다", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:17,代码来源:KIS_SO0281F_HRD.cs


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