Example #1
0
        internal void LoadSubForm(SAPbouiCOM.Form oForm, string ObjectType, string DocEntry = "")
        {
            try
            {
                switch (ObjectType)
                {
                    case "KIS_SD0030_HRD":
                        using (KIS_HRD.KIS_SD0030A_HRD KIS_SD0030A_HRD = new KIS_HRD.KIS_SD0030A_HRD())
                        {
                            KIS_SD0030A_HRD.SubFormInit(DocEntry);
                        }

                        break;
                    case "KIS_SD0050_HRD":
                        using (KIS_HRD.KIS_SD0050A_HRD KIS_SD0050A_HRD = new KIS_HRD.KIS_SD0050A_HRD())
                        {
                            KIS_SD0050A_HRD.SubFormInit(DocEntry);
                        }

                        break;

                    default:
                        break;
                }
            }
            catch (Exception ex)
            {

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


        }
Example #2
0
        internal void LoadSubForm(SAPbouiCOM.Form oForm, string ObjectType, string DocEntry = "")
        {
            try
            {
                switch (ObjectType)
                {
                    case "KIS_SD0030_HRD":
                        using (KIS_HRD.KIS_SD0030A_HRD KIS_SD0030A_HRD = new KIS_HRD.KIS_SD0030A_HRD())
                        {
                            KIS_SD0030A_HRD.SubFormInit(DocEntry);
                        }

                        break;
                    case "KIS_SD0050_HRD":
                        using (KIS_HRD.KIS_SD0050A_HRD KIS_SD0050A_HRD = new KIS_HRD.KIS_SD0050A_HRD())
                        {
                            KIS_SD0050A_HRD.SubFormInit(DocEntry);
                        }

                        break;
                    case "KIS_SD0051F_HRD":
                        string cformuid = GetModal(oForm);
                        if (cformuid == "")
                        {
                            using (KIS_HRD.KIS_SD0051F_HRD KIS_SD0051F_HRD = new KIS_HRD.KIS_SD0051F_HRD())
                            {
                                KIS_SD0051F_HRD.SubFormInit(oForm.UniqueID);
                            }

                        }
                        else
                        {
                            SAPbouiCOM.Form cForm = (SAPbouiCOM.Form)B1Connections.theAppl.Forms.Item(cformuid);
                            //KIS_SD0051F_HRD.Veiw_Grid1_DataTable(cForm);
                            cForm.Visible = true;
                            cForm.Select();
                            cForm = null;
                        }
                        break;
                    case "KIS_SD0070_HRD":
                        using (KIS_HRD.KIS_SD0070A_HRD KIS_SD0070A_HRD = new KIS_HRD.KIS_SD0070A_HRD())
                        {
                            KIS_SD0070A_HRD.SubFormInit(DocEntry);
                        }
                        break;
                    default:
                        break;
                }

            }
            catch (Exception ex)
            {

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


        }