SELECT BPD_SYSTEM_ITEM.*
FROM BPD_SYSTEM_ITEM
WHERE ITEM_NO LIKE :ITEM_NO
AND ITEM_NAME LIKE :ITEM_NAME
事件代码:
with QuerySystemItem do
begin
Close;
if EditItemNo.Text <> '' then
Params.ParamByName('Item_no').AsString := EditItemNo.Text
else
Params.ParamByName('Item_no').AsString := '%s';
if EditItemNo.Text <> '' then
Params.ParamByName('Item_Name').AsString := EditItemName.Text
else
Params.ParamByName('Item_Name').AsString := '%s';
Open;
end;