csharp Filtrar combo del sistema en SAP(no probado)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp Filtrar combo del sistema en SAP(no probado)相关的知识,希望对你有一定的参考价值。

TConstantes.SBOLDObjeto.SBO_Application.StatusBar.SetSystemMessage("Hola", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            TTransaction _Transaccion = TRutinas.CreaTransaccion();
            TQuery _Query = new TQuery(_Transaccion.Conexion);
            SAPbobsCOM.Recordset recset;//= new SAPbobsCOM.Recordset();
            recset = (SAPbobsCOM.Recordset)TConstantes.SBOLDObjeto.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);

            _Query.Selected(new TField("A", "Code"));
            _Query.Selected(new TField("A", "Name"));
            _Query.Selected(new TField("A", "U_LDT_Activo"));
            _Query.From(new TFrom("@LDT_IMPRESOR", "A"));
            _Query.Where(new TField("A", "U_LDT_Activo"), OperadoresFiltros.Igual, new TValue("Y"));
            _Query.Genere_Query();
            recset.DoQuery(_Query.SQL);
            if (!recset.EoF)
            {
                recset.MoveFirst();

                Matrix oMatrix = (Matrix)pForma.Items.Item("3").Specific;
                ComboBox oCmbBox = (ComboBox)oMatrix.Columns.Item("U_LDT_Impresor").Cells.Item(1).Specific;
                int a = oCmbBox.ValidValues.Count;

                for (int i = 0; i < recset.RecordCount; i++)
                {

                    string sss = oCmbBox.ValidValues.Item(oCmbBox.ValidValues.Count - 1).Value;
                    string kkk = (string)recset.Fields.Item("Name").Value;
                    if (oCmbBox.ValidValues.Item(oCmbBox.ValidValues.Count - 1).Value.ToString() == recset.Fields.Item("Name").Value.ToString())
                    {

                    }
                    else
                    {
                        oCmbBox.ValidValues.Add(recset.Fields.Item("Code").Value.ToString(), recset.Fields.Item("Name").Value.ToString());

                    }

                    int s = oCmbBox.ValidValues.Count;


                    recset.MoveNext();
                }

            }

以上是关于csharp Filtrar combo del sistema en SAP(no probado)的主要内容,如果未能解决你的问题,请参考以下文章

csharp SearchLayout.Combo.Dictionary

csharp Combo.YesNo

csharp obtener combo de matrix

csharp obterner moneda del sistemas y otras cosas

javascript Filtrar Array por valor

php filtrar busca para determinados帖子类型