; ; @Temp = ShowSearchBox("ProductSearch","INFOMATION"); if(@Temp != StringEmpty()) { txtProductNo1.CValue = @Temp; } @Temp = ShowSearchBox("ProductSearch","INFOMATION"); if(@Temp != StringEmpty()) { txtProductNo2.CValue = @Temp; } PrintReport(ikExtendGrid1.CurrentView); ; ; Empty(); @StartNo_Product =DBNull(); @EndNo_Product =DBNull(); @StartName_Product =DBNull(); @EndName_Product =DBNull(); @StartUnit_Product =DBNull(); @EndUnit_Product =DBNull(); if(!Equals(txtProductNo1.CValue,"")) @StartNo_Product= txtProductNo1.CValue; if(!Equals(txtProductNo2.CValue,"")) @EndNo_Product= txtProductNo2.CValue; if(!Equals(txtProductName1.CValue,"")) @StartName_Product= txtProductName1.CValue; if(!Equals(txtProductName2.CValue,"")) @EndName_Product= txtProductName2.CValue; if(!Equals(cbUnit1.Text,"")) @StartUnit_Product= cbUnit1.Text; if(!Equals(cbUnit2.Text,"")) @EndUnit_Product= cbUnit2.Text; Search("SearchCost",@StartNo_Product,@EndNo_Product,@StartName_Product,@EndName_Product, @StartUnit_Product,@EndUnit_Product); Empty(); @StartNo_Product =DBNull(); @EndNo_Product =DBNull(); @StartName_Product =DBNull(); @EndName_Product =DBNull(); @StartUnit_Product =DBNull(); @EndUnit_Product =DBNull(); if(!Equals(txtProductNo1.CValue,"")) @StartNo_Product= txtProductNo1.CValue; if(!Equals(txtProductNo2.CValue,"")) @EndNo_Product= txtProductNo2.CValue; if(!Equals(txtProductName1.CValue,"")) @StartName_Product= txtProductName1.CValue; if(!Equals(txtProductName2.CValue,"")) @EndName_Product= txtProductName2.CValue; if(!Equals(cbUnit1.Text,"")) @StartUnit_Product= cbUnit1.Text; if(!Equals(cbUnit2.Text,"")) @EndUnit_Product= cbUnit2.Text; Search("SearchCost",@StartNo_Product,@EndNo_Product,@StartName_Product,@EndName_Product, @StartUnit_Product,@EndUnit_Product); Empty();
SuspendLayout(); for(@i=0;@i<RowCount("#Type");@i++) { SetPosition("#Type",@i); cbUnit1.Items.Add(#Type.Name_TypeDef); cbUnit2.Items.Add(#Type.Name_TypeDef); } ResumeLayout();