zoukankan      html  css  js  c++  java
  • Dialog篩選數據

    public void context()
    {
    int selectMenu;
    FormRun formRun;
    Args args;
    Name strtext;
    QueryBuildDataSource qbds;
    QueryRun qr;
    Query q;
    PopupMenu menu = new PopupMenu(element.hWnd());
    int a = menu.insertItem("filter by field");
    int b = menu.insertItem("filter by selected field");
    int c = menu.insertItem("close");
    ;
    selectMenu = menu.draw();
    switch (selectMenu)
    {
    case -1:
    break;
    case a:
    args = new Args('SysFormSearch');
    formRun = new FormRun(args);
    formRun.run();
    formRun.wait();
    strtext = formRun.design().controlName('FindEdit').valueStr();
    if (strtext)
    {
    q = TestOne_ds.query();
    qbds = q.dataSourceTable(tablenum(TestOne));
    qbds = qbds.addDataSource(tablenum(TestLink));
    qbds.addLink(fieldnum(TestOne,Id),fieldnum(TestLink,Id));
    qbds.addRange(fieldnum(TestLink,Name)).value(strtext);
    TestOne_ds.query(q);
    TestOne_ds.executeQuery();
    }
    break;
    }
    //super();

    }


    case b:
    q = PurchLine_ds.query();
    qb1 = q.dataSourceTable(tablenum(PurchLine));
    qb1 = qb1.addDataSource(tablenum(InventTable));
    qb1.addLink(fieldnum(PurchLine,ItemId),fieldnum(InventTable,ItemId));
    qb1.addRange(fieldnum(PurchLine,ItemId)).value(Id.valueStr());
    PurchLine_ds.query(q);
    PurchLine_ds.executeQuery();
    break;
    case c:
    q = new Query();
    qb1 = q.addDataSource(tablenum(PurchLine));
    qb1.clearLinks();
    qb1.clearRanges();
    PurchLine_ds.query(q);
    PurchLine_ds.removeFilter();
    break;
    Default:
    break;

  • 相关阅读:
    pikachu靶场-File Inclusion(文件包含漏洞)
    pikachu靶场-RCE(远程代码、命令执行漏洞)
    pikachu靶场-Sql Inject(SQL 注入)
    pikachu靶场-CSRF
    pikachu靶场-XSS
    pikachu靶场-暴力破解
    OSPF 高级配置
    OSPF 多区域配置
    动态路由 RIP
    Linux PXE + Kickstart 自动装机
  • 原文地址:https://www.cnblogs.com/KobeZhang/p/3924516.html
Copyright © 2011-2022 走看看