; ; @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"); dtEnd.Enabled = !dtEnd.Enabled; dtEnd.Checked = true; @StartNo_Customer = ""; @EndNo_Customer = ""; @Company_Name = ""; if(tbCustomerNo1.CValue == "") { MessageBox("请输入客户编号"); return; } 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("SearchUnStrikeInvoiceDetail",@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmUnStrikeInvoiceDetail")==0) { MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); } else { PrintReport("UIFrmUnStrikeInvoiceDetail","UI","FrmUnStrikeInvoiceDetail"); } @StartNo_Customer = ""; @EndNo_Customer = ""; @Company_Name = ""; 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("SearchUnStrikeInvoiceDetail",@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmUnStrikeInvoiceDetail")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("Excel","UIFrmUnStrikeInvoiceDetail","UI","FrmUnStrikeInvoiceDetail"); @StartNo_Customer = ""; @EndNo_Customer = ""; @Company_Name = ""; 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("SearchUnStrikeInvoiceDetail",@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmUnStrikeInvoiceDetail")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("Word","UIFrmUnStrikeInvoiceDetail","UI","FrmUnStrikeInvoiceDetail"); @StartNo_Customer = ""; @EndNo_Customer = ""; @Company_Name = ""; 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("SearchUnStrikeInvoiceDetail",@StartNo_Customer,@EndNo_Customer,@Company_Name); if(RowCount("#FrmUnStrikeInvoiceDetail")==0) MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title); else ExportReport("PrintToPrinter","UIFrmUnStrikeInvoiceDetail","UI","FrmUnStrikeInvoiceDetail"); if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID()); }