; ; dtEnd.Checked = dtStart.Checked; dtEnd.CValue = dtStart.CValue; @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNo1.CValue); if( @temp == "" ) return; tbCustomerNo1.CValue = @temp; tbCustomerNo2.CValue = tbCustomerNo1.CValue; @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNo2.CValue); if( @temp == "" ) return; tbCustomerNo2.CValue = @temp; UpdateForm(false,""); @StartDate=DBNull(); @EndDate=DBNull(); @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); if(dtStart.Checked) @StartDate=dtStart.Value; else #UI.StartDate=DBNull(); if(dtEnd.Checked) @EndDate=dtEnd.Value; else #UI.EndDate=DBNull(); if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; Search("SearchCustomerAccountStatistics",@StartDate,@EndDate,@StartNo_Customer,@EndNo_Customer); if(RowCount("#FrmCustomerAccountStatistics")==0) { MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); } else { PrintReport("UIFrmCustomerAccountStatistics","UI","FrmCustomerAccountStatistics"); } UpdateForm(false,""); @StartDate=DBNull(); @EndDate=DBNull(); @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); if(dtStart.Checked) @StartDate=dtStart.Value; else #UI.StartDate=DBNull(); if(dtEnd.Checked) @EndDate=dtEnd.Value; else #UI.EndDate=DBNull(); if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; Search("SearchCustomerAccountStatistics",@StartDate,@EndDate,@StartNo_Customer,@EndNo_Customer); if(RowCount("#FrmCustomerAccountStatistics")==0) { MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); } else { PrintReport("Excel","UIFrmCustomerAccountStatistics","UI","FrmCustomerAccountStatistics"); } UpdateForm(false,""); @StartDate=DBNull(); @EndDate=DBNull(); @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); if(dtStart.Checked) @StartDate=dtStart.Value; else #UI.StartDate=DBNull(); if(dtEnd.Checked) @EndDate=dtEnd.Value; else #UI.EndDate=DBNull(); if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; Search("SearchCustomerAccountStatistics",@StartDate,@EndDate,@StartNo_Customer,@EndNo_Customer); if(RowCount("#FrmCustomerAccountStatistics")==0) { MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); } else { PrintReport("Word","UIFrmCustomerAccountStatistics","UI","FrmCustomerAccountStatistics"); } UpdateForm(false,""); @StartDate=DBNull(); @EndDate=DBNull(); @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); if(dtStart.Checked) @StartDate=dtStart.Value; else #UI.StartDate=DBNull(); if(dtEnd.Checked) @EndDate=dtEnd.Value; else #UI.EndDate=DBNull(); if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; Search("SearchCustomerAccountStatistics",@StartDate,@EndDate,@StartNo_Customer,@EndNo_Customer); if(RowCount("#FrmCustomerAccountStatistics")==0) { MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); } else { PrintReport("PrintToPrinter","UIFrmCustomerAccountStatistics","UI","FrmCustomerAccountStatistics"); } if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID()); }