; ; @temp = ShowSearchBox("CustomerSearch","INFOMATION",txtCustomerNo1.CValue); if( @temp == "" ) return; txtCustomerNo1.CValue = @temp; @temp = ShowSearchBox("CustomerSearch","INFOMATION",txtCustomerNo2.CValue); if( @temp == "" ) return; txtCustomerNo2.CValue = @temp; ShowSearchBox("SaleBillSearch","HAVEDEPOT", "txtSaleBillNo1",txtSaleBillNo1.CValue); ShowSearchBox("SaleBillSearch","HAVEDEPOT", "txtSaleBillNo2",txtSaleBillNo2.CValue); ShowSearchBox("SaleOutDepotBillSearch","HAVEDEPOT", "txtBillNo1",txtBillNo1.CValue); ShowSearchBox("SaleOutDepotBillSearch","HAVEDEPOT", "txtBillNo2",txtBillNo2.CValue); PrintReport(ikExtendGrid1.CurrentView); ; ; Empty(); @StartNo_Customer=DBNull(); @EndNo_Customer =DBNull(); @StartNo_SaleBill=DBNull(); @EndNo_SaleBill =DBNull(); @StartAssessDate_SaleBill =DBNull(); @EndAssessDate_SaleBill =DBNull(); @StartNo_SaleOutDepotBill=DBNull(); @EndNo_SaleOutDepotBill =DBNull(); @StartAssessDate_SaleOutDepotBill =DBNull(); @EndAssessDate_SaleOutDepotBill =DBNull(); if(!Equals(txtCustomerNo1.CValue,"")) @StartNo_Customer= txtCustomerNo1.CValue; if(!Equals(txtCustomerNo2.CValue,"")) @EndNo_Customer= txtCustomerNo2.CValue; if(!Equals(txtSaleBillNo1.CValue,"")) @StartNo_SaleBill= txtSaleBillNo1.CValue; if(!Equals(txtSaleBillNo2.CValue,"")) @EndNo_SaleBill= txtSaleBillNo2.CValue; if(dtAssessDate1.Checked) @StartAssessDate_SaleBill= dtAssessDate1.Value; if(dtAssessDate2.Checked) @EndAssessDate_SaleBill= dtAssessDate2.Value; if(!Equals(txtBillNo1.CValue,"")) @StartNo_SaleOutDepotBill= txtBillNo1.CValue; if(!Equals(txtBillNo2.CValue,"")) @EndNo_SaleOutDepotBill= txtBillNo2.CValue; if(dt1.Checked) @StartAssessDate_SaleOutDepotBill= dt1.Value; if(dt2.Checked) @EndAssessDate_SaleOutDepotBill= dt2.Value; Search("SearchSaleConsignment",@StartNo_Customer,@EndNo_Customer,@StartNo_SaleBill,@EndNo_SaleBill, @StartAssessDate_SaleBill,@EndAssessDate_SaleBill,@StartNo_SaleOutDepotBill,@EndNo_SaleOutDepotBill, @StartAssessDate_SaleOutDepotBill,@EndAssessDate_SaleOutDepotBill); Empty(); @StartNo_Customer=DBNull(); @EndNo_Customer =DBNull(); @StartNo_SaleBill=DBNull(); @EndNo_SaleBill =DBNull(); @StartAssessDate_SaleBill =DBNull(); @EndAssessDate_SaleBill =DBNull(); @StartNo_SaleOutDepotBill=DBNull(); @EndNo_SaleOutDepotBill =DBNull(); @StartAssessDate_SaleOutDepotBill =DBNull(); @EndAssessDate_SaleOutDepotBill =DBNull(); if(!Equals(txtCustomerNo1.CValue,"")) @StartNo_Customer= txtCustomerNo1.CValue; if(!Equals(txtCustomerNo2.CValue,"")) @EndNo_Customer= txtCustomerNo2.CValue; if(!Equals(txtSaleBillNo1.CValue,"")) @StartNo_SaleBill= txtSaleBillNo1.CValue; if(!Equals(txtSaleBillNo2.CValue,"")) @EndNo_SaleBill= txtSaleBillNo2.CValue; if(dtAssessDate1.Checked) @StartAssessDate_SaleBill= dtAssessDate1.Value; if(dtAssessDate2.Checked) @EndAssessDate_SaleBill= dtAssessDate2.Value; if(!Equals(txtBillNo1.CValue,"")) @StartNo_SaleOutDepotBill= txtBillNo1.CValue; if(!Equals(txtBillNo2.CValue,"")) @EndNo_SaleOutDepotBill= txtBillNo2.CValue; if(dt1.Checked) @StartAssessDate_SaleOutDepotBill= dt1.Value; if(dt2.Checked) @EndAssessDate_SaleOutDepotBill= dt2.Value; Search("SearchSaleConsignment",@StartNo_Customer,@EndNo_Customer,@StartNo_SaleBill,@EndNo_SaleBill, @StartAssessDate_SaleBill,@EndAssessDate_SaleBill,@StartNo_SaleOutDepotBill,@EndNo_SaleOutDepotBill, @StartAssessDate_SaleOutDepotBill,@EndAssessDate_SaleOutDepotBill); if(RowCount("#Total") == 0) MessageBox("不存在符合查询条件的记录!"); Empty(); txtCustomerNo1.CValue=""; txtCustomerNo2.CValue=""; txtSaleBillNo1.CValue=""; txtSaleBillNo2.CValue=""; txtBillNo1.CValue=""; txtBillNo2.CValue=""; dtAssessDate1.Checked=False; dtAssessDate2.Checked=False; dt1.Checked=False; dt2.Checked=False;