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


C# Form.Freeze方法代码示例

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


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

示例1: A00_SubFormInit

        public void A00_SubFormInit(string pStrPFormUID, int pRows = -1, string extCOM = "", string popupID = "", string callBack = "CallBack")
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            oForm.Freeze(true);

            Act02_DataSourcesBinding(oForm, pRows, extCOM, popupID, callBack);
            Act03_DefualtSetting(oForm, pStrPFormUID);

            #region 콜백버튼생성
            if (!FN.GetItemExistsChk(pForm, callBack))
            {
                pForm.Freeze(true);
                SAPbouiCOM.Item oItm;
                oItm = pForm.Items.Add(callBack, BoFormItemTypes.it_BUTTON);
                oItm.Top = -100;
                oItm.Left = -100;
                oItm.Width = 1;
                oItm.Height = 1;
                oItm.LinkTo = "";

                SAPbouiCOM.Button oButton = (SAPbouiCOM.Button)oItm.Specific;
                oButton.Caption = popupID;
                pForm.Freeze(false);
            }
            #endregion

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

示例2: SubFormInit

        //[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
        //public virtual bool ET_BFMenuClick(MenuEvent pVal) {
        //    // ADD YOUR ACTION CODE HERE ...
        //    return this.LoadForm();
        //}
        
        //[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
        //public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
        //    oForm.Freeze(true);
        //    this.Act1_FormInit();
        //    oForm.Freeze(false);
        //    // ADD YOUR ACTION CODE HERE ...
        //}

        public void SubFormInit(string Pformuid, string pCol, string ColName, string Col, string FRCol = "", string TOCol = "")
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.Item(formuid);
            oForm.Freeze(true);
            this.Act1_FormInit(Pformuid, pCol, ColName, Col, FRCol, TOCol);
            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:22,代码来源:KIS_SO0081F_HRD.cs

示例3: 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

示例4: SubFormInit

        //[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
        //public virtual bool ET_BFMenuClick(MenuEvent pVal) {
        //    // ADD YOUR ACTION CODE HERE ...
        //    return this.LoadForm();
        //}
        
        //[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
        //public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
        //    oForm.Freeze(true);
        //    this.Act1_FormInit();
        //    oForm.Freeze(false);
        //    // ADD YOUR ACTION CODE HERE ...
        //}

        public void SubFormInit(string Pformuid)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.Item(formuid);
            oForm.Freeze(true);
            this.Act1_FormInit(Pformuid);
            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:22,代码来源:KIS_SO0071F_HRD.cs

示例5: Act1_FormInit

 /// <summary>
 /// 화면 팝업에 필요한 설정정보를 호출합니다.
 /// </summary>
 private void Act1_FormInit()
 {
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     oForm.Freeze(true);
     Act2_DataSourcesBinding(oForm);
     Act3_DefualtSetting(oForm);
     //Act4_FormMenuSetting(oForm);
     //FindData(false)
     oForm.Freeze(false);
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:13,代码来源:KIS_SO0260F_HRD.cs

示例6: A00_SubFormInit

        //protected KIS_SO0031F_HRD(string strFormType, string strFormUID, bool bAddOn)
        //    : base(strFormType, strFormUID, bAddOn)
        //{
        //}

        //[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
        //public virtual bool ET_BFMenuClick(MenuEvent pVal) {
        //    // ADD YOUR ACTION CODE HERE ...
        //    return this.LoadForm();
        //}

        //[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
        //public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
        //    oForm.Freeze(true);
        //    this.Act1_FormInit();
        //    oForm.Freeze(false);
        //    // ADD YOUR ACTION CODE HERE ...
        //}

        public void A00_SubFormInit(string pStrPFormUID, Dictionary<string, string> pParamDict)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            oForm.Freeze(true);

            Act02_DataSourcesBinding(oForm);
            Act03_DefualtSetting(oForm, pStrPFormUID, pParamDict);

            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:30,代码来源:KIS_SO0031A_HRD.cs

示例7: A00_SubFormInit

        /// <summary>
        /// 화면 팝업에 필요한 설정정보를 호출합니다.
        /// </summary>
        public void A00_SubFormInit(string pStrPFormUID)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.ActiveForm;
            oForm.Freeze(true);

            Act02_DataSourcesBinding(oForm);
            Act03_DefualtSetting(oForm, pStrPFormUID);
            Act04_FormMenuSetting();
            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:14,代码来源:KIS_SD0141F_HRD.cs

示例8: Act0_SubFormInit

        public void Act0_SubFormInit(string pStrPFormUID, string pDocEntry)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.ActiveForm;

            SAPbouiCOM.Form pForm = B1Connections.theAppl.Forms.Item(pStrPFormUID);
            // UserDataSource 가 있는지 체크한다.(모달팝업여부)
            if (FN.GetUserDataSourceExistsChk(pForm, "cFORMUID"))
                pForm.DataSources.UserDataSources.Item("cFORMUID").Value = oForm.UniqueID;


            oForm.Freeze(true);
            Act2_DataSourcesBinding(oForm);
            //Call LabelInit(oForm)
            Act3_DefualtSetting(oForm, pStrPFormUID, pDocEntry);
            Act4_FormMenuSetting(oForm);
            //FindData(false)
            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:19,代码来源:KIS_SO0141A_HRD.cs

示例9: Act1_FormInit

 /// <summary>
 /// 화면 팝업에 필요한 설정정보를 호출합니다.
 /// </summary>
 private void Act1_FormInit()
 {
     // '// ADD YOUR ACTION CODE HERE ...
     oForm = B1Connections.theAppl.Forms.ActiveForm;
     oForm.Freeze(true);
     Act2_DataSourcesBinding(oForm);
     Act3_DefualtSetting(oForm, "");
     Act4_FormMenuSetting(oForm);
     //FindData(false)
     oForm.Freeze(false);
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:14,代码来源:KIS_SO0150A_HRD.cs

示例10: SubFormInit

        public void SubFormInit(string KeyValue)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.Item(formuid);
            oForm.Freeze(true);
            this.Act1_FormInit();

            oForm.Freeze(false);
            oForm.Visible = true;

            oForm.Mode = BoFormMode.fm_FIND_MODE;
            oEditText = (SAPbouiCOM.EditText)oForm.Items.Item("edtCODE").Specific;
            oEditText.Value = KeyValue;

            SAPbouiCOM.Item oItem = oForm.Items.Item("1");
            oItem.Click();

            oItem = null;

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

示例11: SubFormInit

        public void SubFormInit(string KeyValue)
        {
            this.LoadForm();
            oForm = B1Connections.theAppl.Forms.Item(formuid);
            oForm.Freeze(true);
            this.Act1_FormInit();
            if (oForm.Mode != BoFormMode.fm_VIEW_MODE) { oForm.Mode = BoFormMode.fm_OK_MODE; }

            oForm.Freeze(false);
            oForm.Visible = true;

            oGrid = (SAPbouiCOM.Grid)oForm.Items.Item("grd").Specific;

            for (int iLooper = 0; iLooper < oGrid.Rows.Count; iLooper++)
            {
                if (oGrid.DataTable.Columns.Item("Code").Cells.Item(oGrid.GetDataTableRowIndex(iLooper)).Value.ToString() == KeyValue)
                {
                    Veiw_Grid_SelectedRow(iLooper);
                    break;
                }
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:22,代码来源:KIS_SD0010A_HRD.cs

示例12: ET_cboTYPE_AFClick

        public virtual void ET_cboTYPE_AFClick(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboTYPE").Specific));
            // ADD YOUR ACTION CODE HERE ...           

            oForm.Freeze(true);
            SetItemEnabled(oForm);

            SetComboBox_Method(oForm);
            SetComboBox_AcctCode(oForm);

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

示例13: ET_grd1_BFClick

        public virtual bool ET_grd1_BFClick(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd1").Specific));
            // ADD YOUR ACTION CODE HERE ...
            try
            {

                    if (pVal.ColUID == "U_CHK")
                    {
                        #region U_CHK 클릭시 기능 구현
                        if (pVal.Row >= 0)
                        {
                            oForm.Freeze(true);
                            try
                            {
                                #region 문서단위 그룹선택 기능구현
                                int iRowIndex = oGrid.GetDataTableRowIndex(pVal.Row);


                                string U_CHK = oGrid.DataTable.GetValue("U_CHK", iRowIndex).ToString().Trim();

                                if (U_CHK == "N")
                                {
                                    oGrid.DataTable.SetValue("U_CHK", iRowIndex, "Y");
                                    if (oGrid.Rows.IsSelected(pVal.Row) == false)
                                    {
                                        oGrid.Rows.SelectedRows.Add(pVal.Row);
                                    }
                                }
                                else
                                {
                                    oGrid.DataTable.SetValue("U_CHK", iRowIndex, "N");
                                    if (oGrid.Rows.IsSelected(pVal.Row))
                                    {
                                        oGrid.Rows.SelectedRows.Remove(pVal.Row);
                                    }
                                }

                                #endregion
                            }
                            catch (Exception)
                            {
                                throw;
                            }
                            finally
                            {
                                SetGridCalc_Sum();
                                oForm.Freeze(false);
                            }
                            return false;

                        }
                        else
                        {
                            //전체선택
                            SetGridColumn_CheckBox_SelectAll(ref oGrid, "U_CHK");
                            SetGridCalc_Sum();
                            return false;
                        }
                        #endregion

                    }// end (pVal.ColUID == "U_CHK")
            }
            catch (Exception ex)
            {

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

示例14: ET_grd1_BFValidate

        public virtual bool ET_grd1_BFValidate(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd1").Specific));
            // ADD YOUR ACTION CODE HERE ...

            try
            {
                if (pVal.ItemChanged)
                {
                    oForm.Freeze(true);

                    try
                    {
                        switch (oGrid.Columns.Item(pVal.ColUID).UniqueID)
                        {
                            case "U_TRANSAMT":

                                int iRowIndex = oGrid.GetDataTableRowIndex(pVal.Row);

                                string U_CHK = oGrid.DataTable.GetValue("U_CHK", iRowIndex).ToString().Trim();

                                if (U_CHK == "N")
                                {
                                    oGrid.DataTable.SetValue("U_CHK", iRowIndex, "Y");
                                    if (oGrid.Rows.IsSelected(pVal.Row) == false)
                                    {
                                        oGrid.Rows.SelectedRows.Add(pVal.Row);
                                    }
                                }
                                break;
                            default:
                                break;
                        }
                    }
                    catch (Exception)
                    {

                        throw;
                    }
                    finally
                    {
                        oForm.Freeze(false);
                    }

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

示例15: ET_AFDataMenu_Add

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

            // ADD YOUR ACTION CODE HERE ...
            oForm.Freeze(true);

            SetItemCaption(oForm, "1", "생성");

            oForm.Freeze(false);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:11,代码来源:KIS_SO0160A_HRD.cs


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