zoukankan      html  css  js  c++  java
  • Lookup Method

    Lookup

    DataSource

    public void lookup(FormControl _formControl, str _filterStr)

    {//;

        //journalFormTable.designLookupJournalName(_formControl);

        Query                   query          = new Query();

        QueryBuildDataSource    queryBuildDataSource;

        QueryBuildRange         queryBuildRange;

        // Create an instance of SysTableLookup where 'this'

        // is the current form control.

        SysTableLookup sysTableLookup =

        SysTableLookup::newParameters(tablenum(InventJournalName), _formControl);

        ;

        // Add fields to be shown in the lookup form.

        sysTableLookup.addLookupfield(fieldnum(InventJournalName,JournalNameID ));

        sysTableLookup.addLookupfield(fieldnum(InventJournalName, Description));

       // Limit and arrange the data selection.

        queryBuildDataSource = query.addDataSource(tablenum(InventJournalName));

        queryBuildRange = queryBuildDataSource.addRange(

            fieldnum(InventJournalName, BSEInOutType));

        queryBuildRange.value(QueryValue(BSEInOutType::NoProdPick));

        sysTableLookup.parmQuery(query);

        // Perform the lookup.

        sysTableLookup.performFormLookup();

    }

    FormDesign

    public void lookup()

    {

        Query                   query          = new Query();

        QueryBuildDataSource    queryBuildDataSource;

        QueryBuildRange         queryBuildRange;

        // Create an instance of SysTableLookup where 'this'

        // is the current form control.

        SysTableLookup sysTableLookup =

       SysTableLookup::newParameters(tablenum(BS_PUR_TVendTypeTable), this);

        ;

        // Add fields to be shown in the lookup form.

        sysTableLookup.addLookupfield(fieldnum(BS_PUR_TVendTypeTable,BsVendTypeID ));

        sysTableLookup.addLookupfield(fieldnum(BS_PUR_TVendTypeTable, BsVendTypeName));

    //    sysTableLookup.addLookupField(fieldNum(BS_PUR_TVendTypeTable, BsVendType));

        // Limit and arrange the data selection.

        queryBuildDataSource = query.addDataSource(tablenum(BS_PUR_TVendTypeTable));

        queryBuildRange = queryBuildDataSource.addRange(

            fieldnum(BS_PUR_TVendTypeTable, BsVendType));

        queryBuildRange.value(enum2str(BS_PUR_TVendTypeRelation.BsVendType));

        sysTableLookup.parmQuery(query);

        // Perform the lookup.

        sysTableLookup.performFormLookup();

        //Don't call super() (commented out in the code).

        //   super()

    }

  • 相关阅读:
    软链接和硬链接
    Hive的基本常识
    Hadoop
    Docker技术
    人生苦短,我用Python(6)
    人生苦短,我用Python(5)
    人生苦短,我用Python(4)
    openssl telnet openssh
    iptables
    http与httpd
  • 原文地址:https://www.cnblogs.com/lingdanglfw/p/1242231.html
Copyright © 2011-2022 走看看