控件的Lookup

控件的Lookup

 

   SysTableLookup           sysTableLookup = SysTableLookup::newParameters(tablenum(prodTable),this);

   Query                    query = new Query();

   QueryBuildDataSource     qbds;

   ;

   qbds = query.addDataSource(tablenum(ProdTable));

 

   sysTableLookup.addLookupfield(fieldnum(prodTable,prodId));

   sysTableLookup.addLookupfield(fieldnum(prodTable,Itemid));

   if (SilverModelInfo_ItemId.text())

   qbds.addRange(fieldnum(ProdTable,ItemId)).value(QueryValue(SilverModelInfo_ItemId.text()));

 

   sysTableLookup.parmQuery(query);

   sysTableLookup.performFormLookup();

posted @ 2011-07-28 08:45  perock  阅读(356)  评论(0编辑  收藏  举报