; ; @temp = ShowSearchBox("SupplierSearch","INFOMATION",txtSupplierNo1.CValue); if( @temp == "" ) return; txtSupplierNo1.CValue = @temp; txtSupplierNo2.CValue = txtSupplierNo1.CValue; @temp = ShowSearchBox("SupplierSearch","INFOMATION",txtSupplierNo2.CValue); if( @temp == "" ) return; txtSupplierNo2.CValue = @temp; @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","txtPurchaseInvoiceNo1", txtPurchaseInvoiceNo1.CValue); if( @temp == "" ) return; txtPurchaseInvoiceNo1.CValue = @temp; txtPurchaseInvoiceNo2.CValue = txtPurchaseInvoiceNo1.CValue; @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","txtPurchaseInvoiceNo2", txtPurchaseInvoiceNo2.CValue); if( @temp == "" ) return; txtPurchaseInvoiceNo2.CValue = @temp; PrintReport(ikExtendGrid1.CurrentView); Empty(); @StartSupplierNo =DBNull(); @EndSupplierNo =DBNull(); @StartPurchaseInvoiceNo =DBNull(); @EndPurchaseInvoiceNo =DBNull(); @StartDate =DBNull(); @EndDate =DBNull(); if(!Equals(txtSupplierNo1.CValue,"")) @StartSupplierNo= txtSupplierNo1.CValue; if(!Equals(txtSupplierNo2.CValue,"")) @EndSupplierNo= txtSupplierNo2.CValue; if(!Equals(txtPurchaseInvoiceNo1.CValue,"")) @StartPurchaseInvoiceNo= txtPurchaseInvoiceNo1.CValue; if(!Equals(txtPurchaseInvoiceNo2.CValue,"")) @EndPurchaseInvoiceNo= txtPurchaseInvoiceNo2.CValue; if(dtInvoiceDate1.Checked) @StartDate= dtInvoiceDate1.Value; if(dtInvoiceDate2.Checked) @EndDate= dtInvoiceDate2.Value; Search("SearchReceivales",@StartSupplierNo,@EndSupplierNo,@StartPurchaseInvoiceNo,@EndPurchaseInvoiceNo, @StartDate,@EndDate); txtSum.CValue=SumOfCol("#Total.ToPay"); txtSum.CValue = SumOfCol("#Total.ToPay",ikExtendGrid1.FilterCondition,true); txtSum.CValue = SumOfCol("#Total.ToPay",ikExtendGrid1.FilterCondition,true); Empty(); @StartSupplierNo =DBNull(); @EndSupplierNo =DBNull(); @StartPurchaseInvoiceNo =DBNull(); @EndPurchaseInvoiceNo =DBNull(); @StartDate =DBNull(); @EndDate =DBNull(); if(!Equals(txtSupplierNo1.CValue,"")) @StartSupplierNo= txtSupplierNo1.CValue; if(!Equals(txtSupplierNo2.CValue,"")) @EndSupplierNo= txtSupplierNo2.CValue; if(!Equals(txtPurchaseInvoiceNo1.CValue,"")) @StartPurchaseInvoiceNo= txtPurchaseInvoiceNo1.CValue; if(!Equals(txtPurchaseInvoiceNo2.CValue,"")) @EndPurchaseInvoiceNo= txtPurchaseInvoiceNo2.CValue; if(dtInvoiceDate1.Checked) @StartDate= dtInvoiceDate1.Value; if(dtInvoiceDate2.Checked) @EndDate= dtInvoiceDate2.Value; Search("SearchReceivales",@StartSupplierNo,@EndSupplierNo,@StartPurchaseInvoiceNo,@EndPurchaseInvoiceNo, @StartDate,@EndDate); txtSum.CValue=SumOfCol("#Total.ToPay"); Empty(); txtSupplierNo1.CValue=""; txtSupplierNo2.CValue=""; txtPurchaseInvoiceNo1.CValue=""; txtPurchaseInvoiceNo2.CValue=""; dtInvoiceDate1.Checked=False; dtInvoiceDate2.Checked=False; txtSum.CValue=0.00;