Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public virtual bool ET_mtx1_DUMY_BFChooseFromList(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_PAYCD":
                        SetConditionsPaymeny(oMatrix, pVal);
                        break;
                    case "U_CENTCD":
                        SetConditionsBranchCenter(oMatrix, pVal);
                        break;

                    //case "U_ADDR1":  
                    //        KIS_SO0000F_HRD.Act0_SubFormInit("DTL_지번주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Numberoflot, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                    //    return false;
                    //case "U_ADDR2":
                    //        KIS_SO0000F_HRD.Act0_SubFormInit("DTL_거리주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Road, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                    //    return false;
                    default:
                        break;
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
            return true;
        }
Beispiel #3
0
 private void OpenPopup_Address(SAPbouiCOM.Form oForm, string pPopUpID, SO.SO_COMMON_HRD.ZipCodeTypes pZipCodeType)
 {
     try
     {
         KIS_SO0000F_HRD KIS_SO0000F_HRD = new KIS_SO0000F_HRD();
         KIS_SO0000F_HRD.Act0_SubFormInit(pPopUpID, oForm.UniqueID, pZipCodeType, BoMatrixSelect.ms_None, 0, "CallBack");
     }
     catch (Exception ex)
     {
         B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
     }
 }
Beispiel #4
0
        public virtual bool ET_mtx1_BFChooseFromList(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oMatrix = ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtx1").Specific));

            try
            {
                KIS_SO0000F_HRD KIS_SO0000F_HRD = new KIS_SO0000F_HRD();

                switch (pVal.ColUID)
                {
                    case "U_ZIPCD1":
                        KIS_SO0000F_HRD.Act0_SubFormInit("지번주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Numberoflot, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                        return false;

                    case "U_ZIPCD2":
                        KIS_SO0000F_HRD.Act0_SubFormInit("거리주소", oForm.UniqueID, SO.SO_COMMON_HRD.ZipCodeTypes.Road, BoMatrixSelect.ms_Single, pVal.Row, "CallBack");
                        return false;

                    default:
                        break;
                }
            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                return false;
            }
            return true;
        }