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

C# ItemEvent类代码示例

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

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



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

示例1: sapApp_ItemEvent

 internal void sapApp_ItemEvent(string FormUID, ref ItemEvent pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     foreach (var e in itemEvents)
     {
         ((_IApplicationEvents_ItemEventEventHandler)e)(FormUID, ref pVal, out BubbleEvent);
         if (!BubbleEvent)
             break;
     }
 }
开发者ID:THJLI,项目名称:dover,代码行数:10,代码来源:AddinAppEventHandler.cs


示例2: ET_1_BFItemPressed

 public virtual bool ET_1_BFItemPressed(ItemEvent pVal) {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
     // ADD YOUR ACTION CODE HERE ...
     try
     {
         switch (oForm.Mode)
         {
             case BoFormMode.fm_ADD_MODE:
                 if (CheckValues() == false)
                 {
                     return false;
                 }
                 break;
             case BoFormMode.fm_EDIT_MODE:
                 break;
             case BoFormMode.fm_FIND_MODE:
                 break;
             case BoFormMode.fm_OK_MODE:
                 
                 break;
             case BoFormMode.fm_PRINT_MODE:
                 break;
             case BoFormMode.fm_UPDATE_MODE:
                 if (CheckValues() == false)
                 {
                     return false;
                 }
                 break;
             case BoFormMode.fm_VIEW_MODE:
                 break;
             default:
                 break;
         }
     }
     catch (Exception ex)
     {
         B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
     }
     return true;
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:41,代码来源:KIS_AD_COR393_HRD.cs


示例3: ET_grd_BFClick

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

            if (pVal.Row == -1)
            {
                oGrid.SelectionMode = BoMatrixSelect.ms_None;
            }
            else { oGrid.SelectionMode = BoMatrixSelect.ms_Single; }

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


示例4: ET_btnBACK_AFItemPressed

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

            try
            {
                string strPFormUID = oForm.DataSources.UserDataSources.Item("pFORMUID").ValueEx;
                if (strPFormUID != "")
                {
                    oForm.Visible = false;
                    SAPbouiCOM.Form pForm = B1Connections.theAppl.Forms.Item(strPFormUID);
                    pForm.Select();
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:21,代码来源:KIS_SD0141F_HRD.cs


示例5: ET_BFFormClose

        public virtual bool ET_BFFormClose(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            // ADD YOUR ACTION CODE HERE ...

            try
            {
                string pFORMUID = oForm.DataSources.UserDataSources.Item("pFORMUID").ValueEx;
                if (pFORMUID != "")
                {

                    SAPbouiCOM.Form pform = (SAPbouiCOM.Form)B1Connections.theAppl.Forms.Item(pFORMUID);
                    pform.DataSources.UserDataSources.Item("cFORMUID").ValueEx = "";
                    pform.Close();
                    pform = null;
                }

            }
            catch (Exception ex)
            {

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

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


示例6: ET_AFFormLoad

 public virtual void ET_AFFormLoad(ItemEvent pVal)
 {
     oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
     // ADD YOUR ACTION CODE HERE ...
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:5,代码来源:KIS_SD0141F_HRD.cs


示例7: ET_AFFormClose

        public virtual void ET_AFFormClose(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            // ADD YOUR ACTION CODE HERE ...

            // 결재방법 팝업 닫기
            string strCFormUID = oForm.DataSources.UserDataSources.Item("cFORMUID").Value.ToString();
            if (FN.GetFormExistsChk(strCFormUID))
            {
                B1Connections.theAppl.Forms.Item(strCFormUID).Close();
            }

            // 주소 팝업창 닫기
            KIS_SO0000F_HRD.CloseForm(oForm.UniqueID);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:15,代码来源:KIS_SO0030A_HRD.cs


示例8: ET_btnLIST_AFItemPressed

        public virtual void ET_btnLIST_AFItemPressed(ItemEvent pVal) 
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnLIST").Specific));
            // ADD YOUR ACTION CODE HERE ...
            try
            {
                string edtCode = oForm.Items.Item("edtCode").Specific.Value;

                if (String.IsNullOrEmpty(edtCode))
                {
                    B1Connections.theAppl.StatusBar.SetText("독자를 선택해주세요.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                    return;
                }

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


示例9: ET_1_BFClick

        public virtual bool ET_1_BFClick(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_ADD_MODE || oForm.Mode == BoFormMode.fm_UPDATE_MODE)
            {
                if (!BeforSaveData_MasterValidation(oForm))
                    return false;
                if (!BeforSaveData_LineValidation(oForm))
                    return false;

                if (oForm.Mode == BoFormMode.fm_ADD_MODE)
                {
                    // 저장전 독자코드가 존재하면 새로운 독자코드를 채번하고 라인데이터에 배송코드에도 적용하도록 한다.
                    if (GetCodeExists(oForm))
                        SeNewCodeApply(oForm);
                }
            }
            return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:22,代码来源:KIS_SO0030A_HRD.cs


示例10: ET_btnSTOP_AFItemPressed

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

            int idx = 0;
            string strRowStat = string.Empty;
            try
            {
                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx1_DUMY").Specific;
                oDB1_Z = oForm.DataSources.DBDataSources.Item("@KIS_SO00301Z_HRD");

                
                string strNowDate  = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
                strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.n_YYYYMMDD);

                string strStopDate = oForm.DataSources.UserDataSources.Item("edtSTOPDT").ValueEx;
                
                //if (String.IsNullOrEmpty(strNowDate))
                //{
                //    B1Connections.theAppl.StatusBar.SetText("중지 일자가 입력되지 않았습니다.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                //    //oForm.Items.Item("btnSTOP").Click(0);
                //    return ;
                //}

                for (int i = 1; i <= oMatrix.VisualRowCount; i++)
                {
                    idx = GetDataTableIndexByMatrix(oMatrix, i);
                    strRowStat = gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["ROWSTATE"].ToString(); //Row상태값

                    if (strNowDate.CompareTo(strStopDate) >= 0)
                    {
                        // 상태값
                        oMatrix.SetCellWithoutValidation(i, "U_STATUS", "US");
                        gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["STATUS"] = "US";

                    }
                    else
                    {
                        // 상태값
                        oMatrix.SetCellWithoutValidation(i, "U_STATUS", "UO");
                        gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["STATUS"] = "UO";

                    }


                    // 중지일자
                    //oMatrix.SetCellWithoutValidation(i, "U_CLOSEDT", strStopDate);
                    //gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CLOSEDT"] = FN.SetDateFormatToDB(strStopDate, FN.eDateType.n_YYYYMMDD);
                    oMatrix.SetCellWithoutValidation(i, "U_CLOSEDT", strNowDate);
                    gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CLOSEDT"] = FN.SetDateFormatToDB(strNowDate, FN.eDateType.n_YYYYMMDD);

                    // 배달종료일자 
                    oMatrix.SetCellWithoutValidation(i, "U_DELVTO", strStopDate);
                    gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["DELVTO"] = FN.SetDateFormatToDB(strStopDate, FN.eDateType.n_YYYYMMDD);

                    if (string.IsNullOrEmpty(strRowStat))
                    {
                        gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["ROWSTATE"] = "M";
                        SetSumNumberOfCofies(oForm);
                    }
                }

                if (oMatrix.VisualRowCount > 0)
                {
                    oMatrix.FlushToDataSource();

                    if (oForm.Mode == BoFormMode.fm_OK_MODE)
                        oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:77,代码来源:KIS_SO0030A_HRD.cs


示例11: ET_edtCALLPER_AFValidate

        public virtual void ET_edtCALLPER_AFValidate(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtCALLPER").Specific));
            // ADD YOUR ACTION CODE HERE ....

            if (pVal.ItemChanged == true)
            {
                if (oEditText.Value == "")
                {
                    oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
                    oDB_M.SetValue("U_CALLNM", 0, "");
                }
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:15,代码来源:KIS_SO0030A_HRD.cs


示例12: ET_edtCALLPER_AFChooseFromList

        public virtual void ET_edtCALLPER_AFChooseFromList(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtCALLPER").Specific));
            // ADD YOUR ACTION CODE HERE ...

            //데이터를 가져오기 위해 데이터테이블 추가

            SAPbouiCOM.DataTable oDataTable = FN.GetCFLSelectedObjects(pVal);

            try
            {
                if (oForm.Mode != BoFormMode.fm_FIND_MODE)
                {
                    if (oDataTable != null)
                    {
                        oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
                        oDB_M.SetValue("U_CALLPER", 0, oDataTable.GetValue("USER_CODE", 0).ToString());
                        oDB_M.SetValue("U_CALLNM", 0, oDataTable.GetValue("U_NAME", 0).ToString());
                        if (oForm.Mode == BoFormMode.fm_OK_MODE)
                            oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                    }
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText("ET_edtCALLPER_AFChooseFromList " + ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            }
            finally
            {
                oDataTable = null;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:33,代码来源:KIS_SO0030A_HRD.cs


示例13: ET_mtx1_DUMY_BFMatrixLinkPressed

        public virtual bool ET_mtx1_DUMY_BFMatrixLinkPressed(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oMatrix = ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtx1_DUMY").Specific));
            // ADD YOUR ACTION CODE HERE ...
            try
            {
                string KeyValue = string.Empty;

                switch (pVal.ColUID)
                {
                    case "U_SAILCD":
                        string strEmpNo = FN.GetMatirxCellValue(ref oMatrix, "U_SAILCD", pVal.Row);

                        // 사원번호로 사원마스터 키값을 조회한다.
                        string strUserId = GetEmployeeInfo(SO.SO_COMMON_HRD.QueryType_Employee.OHEM_Id, strEmpNo);
                        B1Connections.theAppl.OpenForm(BoFormObjectEnum.fo_Employee, null, strUserId);
                        return false;

                    case "U_PAYCD":

                        // 메모리에 
                        SO.SO_COMMON_HRD.KeyValue = FN.GetMatirxCellValue(ref oMatrix, "U_PAYCD", pVal.Row);
                        B1Connections.theAppl.ActivateMenuItem("KIS_SO0050A_HRD");
                        return false;

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


示例14: ET_mtx1_DUMY_AFChooseFromList

        public virtual void ET_mtx1_DUMY_AFChooseFromList(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oMatrix = ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtx1_DUMY").Specific));
            // ADD YOUR ACTION CODE HERE ...
            SAPbouiCOM.IChooseFromListEvent oCFLEvento = (SAPbouiCOM.IChooseFromListEvent)pVal;
            SAPbouiCOM.DataTable oDataTable = oCFLEvento.SelectedObjects;
            bool bModify = false;

            try
            {
                int idx = GetDataTableIndexByMatrix(oMatrix, pVal.Row);
                switch (pVal.ColUID)
                {
                    case "U_PAYCD"://요금제
                        if (oDataTable != null)
                        {
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_PAYCD", oDataTable.GetValue("Code", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_PAYNM", oDataTable.GetValue("Name", 0).ToString());

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["PAYCD"] = oDataTable.GetValue("Code", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["PAYNM"] = oDataTable.GetValue("Name", 0).ToString();

                            bModify = true;
                        }
                        break;
                    case "U_PAYNM"://요금제
                        if (oDataTable != null)
                        {
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_PAYCD", oDataTable.GetValue("Code", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_PAYNM", oDataTable.GetValue("Name", 0).ToString());

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["PAYCD"] = oDataTable.GetValue("Code", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["PAYNM"] = oDataTable.GetValue("Name", 0).ToString();

                            bModify = true;
                        }
                        break;
                    case "U_SAILCD"://유치자
                        if (oDataTable != null)
                        {

                            string strUserCode = oDataTable.GetValue("U_EMPNO", 0).ToString();
                            string strUserName = oDataTable.GetValue("lastName", 0).ToString();

                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_SAILCD", strUserCode);
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_SAILNM", strUserName);

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["SAILCD"] = strUserCode;
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["SAILNM"] = strUserName;


                            // 유치자 사용자의 부서정보를 조회한다.
                            string strDeptName = GetEmployeeInfo(SO.SO_COMMON_HRD.QueryType_Employee.Dept_Name, strUserCode);

                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_SDEPT", strDeptName);
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["SDEPT"] = strDeptName;

                            bModify = true;
                        }
                        break;
                    case "U_CENTCD"://분국
                        if (oDataTable != null)
                        {
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_CENTCD", oDataTable.GetValue("Code", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_CENTNM", oDataTable.GetValue("Name", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_BTEL1", oDataTable.GetValue("U_TEL1", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_BTEL2", oDataTable.GetValue("U_TEL2", 0).ToString());

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CENTCD"] = oDataTable.GetValue("Code", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CENTNM"] = oDataTable.GetValue("Name", 0).ToString();

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["BTEL1"] = oDataTable.GetValue("U_TEL1", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["BTEL2"] = oDataTable.GetValue("U_TEL2", 0).ToString();

                            bModify = true;
                        }
                        break;
                    case "U_CENTNM"://분국
                        if (oDataTable != null)
                        {
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_CENTCD", oDataTable.GetValue("Code", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_CENTNM", oDataTable.GetValue("Name", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_BTEL1", oDataTable.GetValue("U_TEL1", 0).ToString());
                            oMatrix.SetCellWithoutValidation(pVal.Row, "U_BTEL2", oDataTable.GetValue("U_TEL2", 0).ToString());

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CENTCD"] = oDataTable.GetValue("Code", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["CENTNM"] = oDataTable.GetValue("Name", 0).ToString();

                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["BTEL1"] = oDataTable.GetValue("U_TEL1", 0).ToString();
                            gDs.Tables[oForm.UniqueID + "_Deliver"].Rows[idx]["BTEL2"] = oDataTable.GetValue("U_TEL2", 0).ToString();

                            bModify = true;
                        }
                        break;
                    default:
                        break;
                }

                if (bModify)
//.........这里部分代码省略.........
开发者ID:wldyd0210,项目名称:TEST,代码行数:101,代码来源:KIS_SO0030A_HRD.cs


示例15: SetConditionsBranchCenter

        /// <summary>
        /// 분국
        /// </summary>
        /// <param name="oMatrix"></param>
        /// <param name="pVal"></param>
        private void SetConditionsBranchCenter(SAPbouiCOM.Matrix oMatrix, ItemEvent pVal)
        {
            SAPbouiCOM.ChooseFromList oCFL;
            SAPbouiCOM.IChooseFromListEvent oCFLEvento = (SAPbouiCOM.IChooseFromListEvent)pVal;
            SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams;
            SAPbouiCOM.Conditions oCons = new SAPbouiCOM.Conditions();
            SAPbouiCOM.Condition oCon;
            SAPbobsCOM.Recordset oRs = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            try
            {

                string strPaperTp = FN.GetMatirxCellValue(ref oMatrix, "U_PAPERTP", pVal.Row);
                oCFLCreationParams = (SAPbouiCOM.ChooseFromListCreationParams)B1Connections.theAppl.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams);
                oCFL = oForm.ChooseFromLists.Item(oCFLEvento.ChooseFromListUID);


                //oCon = oCons.Add();
                //oCon.Alias = "U_PAPERTP";//지종
                //oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                //oCon.CondVal = strPaperTp;

                //oCon.Relationship = BoConditionRelationship.cr_AND;

                oCon = oCons.Add();
                oCon.Alias = "U_STATUS";//상태
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                oCon.CondVal = "O"; //활성된것만              

                oCFL.SetConditions(oCons);

            }
            catch (Exception ex)
            {

                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
            finally
            {
                Marshal.ReleaseComObject(oRs);
                oRs = null;

                oCFL = null;
                oCFLEvento = null;
                oCFLCreationParams = null;
                oCons = null;
                oCon = null;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:53,代码来源:KIS_SO0030A_HRD.cs


示例16: ET_mtx1_DUMY_AFKeyDown

        public virtual void ET_mtx1_DUMY_AFKeyDown(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oMatrix = ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtx1_DUMY").Specific));
            // ADD YOUR ACTION CODE HERE ...

            try
            {
                KIS_SO0000F_HRD KIS_SO0000F_HRD = new KIS_SO0000F_HRD();
                switch (pVal.ColUID)
                {
                    case "U_ADDR1":
                        if (pVal.CharPressed == 9 && FN.GetMatirxCellValue(ref oMatrix, pVal.ColUID, pVal.Row) == "")
                            KIS_SO0000F_HRD.Act0_SubFormInit("DTL_지번주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Numberoflot, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                        break;
                    case "U_ADDR2":
                        if (pVal.CharPressed == 9 && FN.GetMatirxCellValue(ref oMatrix, pVal.ColUID, pVal.Row) == "")
                            KIS_SO0000F_HRD.Act0_SubFormInit("DTL_거리주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Road, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                        break;
                    default:
                        break;
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:28,代码来源:KIS_SO0030A_HRD.cs


示例17: ET_btnSTOP_BFClick

        public virtual bool ET_btnSTOP_BFClick(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnSTOP").Specific));
            // ADD YOUR ACTION CODE HERE ...
            string strNowDate = oForm.Items.Item("edtSTOPDT").Specific.Value; //oForm.DataSources.UserDataSources.Item("edtSTOPDT").ValueEx;

            if (String.IsNullOrEmpty(strNowDate))
            {
                B1Connections.theAppl.StatusBar.SetText("중지 일자가 입력되지 않았습니다.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                //oForm.Items.Item("btnSTOP").Click(0);
                return false;
            }
            return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:15,代码来源:KIS_SO0030A_HRD.cs


示例18: ET_CallBack_AFClick

        public virtual void ET_CallBack_AFClick(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("CallBack").Specific));

            // ADD YOUR ACTION CODE HERE ...
            string popupID = string.Empty;
            popupID = oButton.Caption.ToString();

            if (string.IsNullOrEmpty(popupID)) return;

            // 리턴 DataTable
            SAPbouiCOM.DataTable rDT = KIS_SO0000F_HRD.GetReturnDT(popupID, oForm.UniqueID);

            int rowIdx = KIS_SO0000F_HRD.GetSelectRowIdx(popupID, oForm.UniqueID);
            oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx1_DUMY").Specific;
            int idx = GetDataTableIndexByMatrix(oMatrix, rowIdx);

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");

            switch (popupID)
            {
                case "DTL_지번주소":

                    oMatrix.SetCellWithoutValidation(rowIdx, "U_ADDR1", rDT.GetValue("RADDR_KOR", 0));
                    SetDeliveryDataApply(oForm, "U_ADDR1", rowIdx);
                    if (oForm.Mode == BoFormMode.fm_OK_MODE) oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                    break;

                case "DTL_거리주소":
                    oMatrix.SetCellWithoutValidation(rowIdx, "U_ADDR2", rDT.GetValue("RADDR_KOR", 0));
                    SetDeliveryDataApply(oForm, "U_ADDR2", rowIdx);
                    if (oForm.Mode == BoFormMode.fm_OK_MODE) oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                    break;

                case "MST_지번주소":

                    oDB_M.SetValue("U_ZIPCD1", 0, rDT.GetValue("ZIP_CD", 0));
                    oDB_M.SetValue("U_ADDR1", 0, rDT.GetValue("RADDR_KOR", 0));

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

                case "MST_거리주소":
                    oDB_M.SetValue("U_ZIPCD2", 0, rDT.GetValue("ZIP_CD", 0));
                    oDB_M.SetValue("U_ADDR2", 0, rDT.GetValue("RADDR_KOR", 0));

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

                case "접수내용":
                    rowIdx = int.Parse(oForm.DataSources.UserDataSources.Item("cRow").Value);

                    SetCallDataApply(oForm, "U_MEMO", rowIdx);
                    if (oForm.Mode == BoFormMode.fm_OK_MODE) oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                    break;

                case "선수금내역":
                    break;

                default:
                    break;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:64,代码来源:KIS_SO0030A_HRD.cs


示例19: ET_OnFormResize

        public virtual void ET_OnFormResize(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            // ADD YOUR ACTION CODE HERE ...


            SAPbouiCOM.Item oItemRet = oForm.Items.Item("retFOLD");
            SAPbouiCOM.Item oItemGrd = oForm.Items.Item("grd");
            oGrid = oForm.Items.Item("grd").Specific;

            SAPbouiCOM.Item oItem1Mtx = oForm.Items.Item("mtx1_DUMY");
            SAPbouiCOM.Item oItem2Mtx = oForm.Items.Item("mtx2_DUMY");

            SAPbouiCOM.Item oItem3Mtx = oForm.Items.Item("mtx1_ORIG");
            SAPbouiCOM.Item oItem4Mtx = oForm.Items.Item("mtx2_ORIG");

            // 폴더박스 리사이즈
            oItemRet.Height = oForm.Height - 110;
            oItemRet.Width = oForm.Width - 30;

            // 상담이력 메트릭스
            oItem2Mtx.Top = oItem1Mtx.Height + 200;
            oItem2Mtx.Width = oForm.Width - 425;
            oItem2Mtx.Height = 140;

            // 청구데이터(그리드)
            oItemGrd.Top = oItem1Mtx.Height + 200;
            oItemGrd.Width = 360;
            oItemGrd.Height = 140;

            // 안보이는 메트릭스
            oItem3Mtx.Left = oForm.Width + 100;
            oItem4Mtx.Left = oForm.Width + 100;

            if (oGrid.Columns.Count > 0) oGrid.AutoResizeColumns();

            ((SAPbouiCOM.Matrix)oForm.Items.Item("mtx1_DUMY").Specific).AutoResizeColumns();
            ((SAPbouiCOM.Matrix)oForm.Items.Item("mtx2_DUMY").Specific).AutoResizeColumns();
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:39,代码来源:KIS_SO0030A_HRD.cs


示例20: ET_btnADDR2_AFItemPressed

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

            OpenPopup_Address(oForm, "MST_거리주소", SO.SO_COMMON_HRD.ZipCodeTypes.Road);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:8,代码来源:KIS_SO0030A_HRD.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ItemEventArgs类代码示例发布时间:2022-05-24
下一篇:
C# ItemDictionary类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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