; ; UpdateForm(false, "comboYear"); Search("SearchYearr"); UpdateForm(true, "comboYear"); UpdateForm(false, "comboFlag"); Search("SearchHalfYear"); UpdateForm(true, "comboFlag"); @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; ComboCompany.Enabled = !ComboCompany.Enabled; UpdateForm(false, "ComboCompany"); Search("SearchCompany"); UpdateForm(true, "ComboCompany"); UpdateForm(false,""); @Start_Year = DBNull(); @Start_Month = 0; @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); @Company_Name = ""; if (comboYear.Text =="" ) { MessageBox("清选泽起始年份!!"); return; } else { @Start_Year = comboYear.Text; } if (comboFlag.Text == "" ) { MessageBox("清选泽起始月份!!"); return; } else { @Start_Month = comboFlag.Text; } if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; if( ikCheckCompany.Checked ){ if (ComboCompany.Text !=""){ #UI.company_Name = ComboCompany.Text; @Company_Name = ComboCompany.Text; }else{ MessageBox("请选泽所属公司!!"); #UI.company_Name = ""; @Company_Name = ""; return; } } else { #UI.company_Name = ""; @Company_Name = ""; } Search("SearchReceivableStrikeStatistics",@Start_Year,@Start_Month,@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmReceivableStrikeStatistics")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else PrintReport("UIFrmReceivableStrikeStatistics","UI","FrmReceivableStrikeStatistics"); UpdateForm(false,""); @Start_Year = DBNull(); @Start_Month = 0; @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); @Company_Name = ""; if (comboYear.Text =="" ) { MessageBox("清选泽起始年份!!"); return; } else { @Start_Year = comboYear.Text; } if (comboFlag.Text == "" ) { MessageBox("清选泽起始月份!!"); return; } else { @Start_Month = comboFlag.Text; } if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; if( ikCheckCompany.Checked ){ if (ComboCompany.Text !=""){ #UI.company_Name = ComboCompany.Text; @Company_Name = ComboCompany.Text; }else{ MessageBox("请选泽所属公司!!"); #UI.company_Name = ""; @Company_Name = ""; return; } } else { #UI.company_Name = ""; @Company_Name = ""; } Search("SearchReceivableStrikeStatistics",@Start_Year,@Start_Month,@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmReceivableStrikeStatistics")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("Excel","UI","FrmReceivableStrikeStatistics"); UpdateForm(false,""); @Start_Year = DBNull(); @Start_Month = 0; @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); @Company_Name = ""; if (comboYear.Text =="" ) { MessageBox("清选泽起始年份!!"); return; } else { @Start_Year = comboYear.Text; } if (comboFlag.Text == "" ) { MessageBox("清选泽起始月份!!"); return; } else { @Start_Month = comboFlag.Text; } if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; if( ikCheckCompany.Checked ){ if (ComboCompany.Text !=""){ #UI.company_Name = ComboCompany.Text; @Company_Name = ComboCompany.Text; }else{ MessageBox("请选泽所属公司!!"); #UI.company_Name = ""; @Company_Name = ""; return; } } else { #UI.company_Name = ""; @Company_Name = ""; } Search("SearchReceivableStrikeStatistics",@Start_Year,@Start_Month,@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmReceivableStrikeStatistics")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("Word","UI","FrmReceivableStrikeStatistics"); UpdateForm(false,""); @Start_Year = DBNull(); @Start_Month = 0; @StartNo_Customer = DBNull(); @EndNo_Customer = DBNull(); @Company_Name = ""; if (comboYear.Text =="" ) { MessageBox("清选泽起始年份!!"); return; } else { @Start_Year = comboYear.Text; } if (comboFlag.Text == "" ) { MessageBox("清选泽起始月份!!"); return; } else { @Start_Month = comboFlag.Text; } if(tbCustomerNo1.CValue != "") @StartNo_Customer = tbCustomerNo1.CValue; if(tbCustomerNo2.CValue != "") @EndNo_Customer = tbCustomerNo2.CValue; if( ikCheckCompany.Checked ){ if (ComboCompany.Text !=""){ #UI.company_Name = ComboCompany.Text; @Company_Name = ComboCompany.Text; }else{ MessageBox("请选泽所属公司!!"); #UI.company_Name = ""; @Company_Name = ""; return; } } else { #UI.company_Name = ""; @Company_Name = ""; } Search("SearchReceivableStrikeStatistics",@Start_Year,@Start_Month,@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmReceivableStrikeStatistics")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("PrintToPrinter","UIFrmReceivableStrikeStatistics","UI","FrmReceivableStrikeStatistics"); if(GetRight("客户基本资料","全权查看")) FormatString(""); else FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID());