; ; @temp = ShowSearchBox("CustomerSearch","INFOMATION",txtCustomerNo1.CValue); if( @temp == "" ) return; txtCustomerNo1.CValue = @temp; txtCustomerNo2.CValue = txtCustomerNo1.CValue; @temp = ShowSearchBox("CustomerSearch","INFOMATION",txtCustomerNo2.CValue); if( @temp == "" ) return; txtCustomerNo2.CValue = @temp; @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","tbInvoiceNo1",tbInvoiceNo1.CValue); if( @temp == "" ) return; tbInvoiceNo1.CValue = @temp; tbInvoiceNo2.CValue = tbInvoiceNo1.CValue; @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","tbInvoiceNo2", tbInvoiceNo2.CValue); if( @temp == "" ) return; tbInvoiceNo2.CValue = @temp; PrintReport(ikExtendGrid1.CurrentView); txtSum.CValue=SumOfCol("#Total.ReceivableMoney",ikExtendGrid1.FilterCondition,true); txtSum.CValue=SumOfCol("#Total.ReceivableMoney",ikExtendGrid1.FilterCondition,true); Empty(); @StartCustomerNo =DBNull(); @EndCustomerNo =DBNull(); @StartSaleInvoiceNo =DBNull(); @EndSaleInvoiceNo =DBNull(); @StartInvoiceDate =DBNull(); @EndInvoiceDate =DBNull(); @StartPayDate =DBNull(); @EndPayDate =DBNull(); if(!Equals(txtCustomerNo1.CValue,"")) @StartCustomerNo= txtCustomerNo1.CValue; if(!Equals(txtCustomerNo2.CValue,"")) @EndCustomerNo= txtCustomerNo2.CValue; if(!Equals(tbInvoiceNo1.CValue,"")) @StartSaleInvoiceNo= tbInvoiceNo1.CValue; if(!Equals(tbInvoiceNo2.CValue,"")) @EndSaleInvoiceNo= tbInvoiceNo2.CValue; if(dtAssessDate1.Checked) @StartInvoiceDate= dtAssessDate1.Value; if(dtAssessDate2.Checked) @EndInvoiceDate= dtAssessDate2.Value; if(dt1.Checked) @StartPayDate= dt1.Value; if(dt2.Checked) @EndPayDate= dt2.Value; Search("SearchReceivales",@StartCustomerNo,@EndCustomerNo,@StartSaleInvoiceNo,@EndSaleInvoiceNo, @StartInvoiceDate,@EndInvoiceDate,@StartPayDate,@EndPayDate,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID()); txtSum.CValue=SumOfCol("#Total.ReceivableMoney"); Empty(); @StartCustomerNo =DBNull(); @EndCustomerNo =DBNull(); @StartSaleInvoiceNo =DBNull(); @EndSaleInvoiceNo =DBNull(); @StartInvoiceDate =DBNull(); @EndInvoiceDate =DBNull(); @StartPayDate =DBNull(); @EndPayDate =DBNull(); if(!Equals(txtCustomerNo1.CValue,"")) @StartCustomerNo= txtCustomerNo1.CValue; if(!Equals(txtCustomerNo2.CValue,"")) @EndCustomerNo= txtCustomerNo2.CValue; if(!Equals(tbInvoiceNo1.CValue,"")) @StartSaleInvoiceNo= tbInvoiceNo1.CValue; if(!Equals(tbInvoiceNo2.CValue,"")) @EndSaleInvoiceNo= tbInvoiceNo2.CValue; if(dtAssessDate1.Checked) @StartInvoiceDate= dtAssessDate1.Value; if(dtAssessDate2.Checked) @EndInvoiceDate= dtAssessDate2.Value; if(dt1.Checked) @StartPayDate= dt1.Value; if(dt2.Checked) @EndPayDate= dt2.Value; Search("SearchReceivales",@StartCustomerNo,@EndCustomerNo,@StartSaleInvoiceNo,@EndSaleInvoiceNo, @StartInvoiceDate,@EndInvoiceDate,@StartPayDate,@EndPayDate,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID()); txtSum.CValue=SumOfCol("#Total.ReceivableMoney"); Empty(); txtCustomerNo1.CValue=""; txtCustomerNo2.CValue=""; tbInvoiceNo1.CValue=""; tbInvoiceNo2.CValue=""; dtAssessDate1.Checked=False; dtAssessDate2.Checked=False; dt1.Checked=False; dt2.Checked=False; txtSum.CValue=0.00;