; ; @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNo.CValue); if( @temp == "" ) return; tbCustomerNo.CValue = @temp; tbCustomerNoEnd.CValue = tbCustomerNo.CValue; @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNoEnd.CValue); if( @temp == "" ) return; tbCustomerNoEnd.CValue = @temp; ShowPrintBox("ReportTitle",dgSaleBillResult.GetSelectedData(),"销售合同","对账单"); ChangeMode("Search"); if(ckDTStart.Checked) { dtStart.Enabled = true; } else { dtStart.Enabled = false; } if(ckDTEnd.Checked) { dtEnd.Enabled = true; } else { dtEnd.Enabled = false; }
Empty(); ckDTStart.Checked = false; ckDTEnd.Checked = false; tbCustomerNo.CValue = StringEmpty(); txtShortName.CValue = StringEmpty(); tbCustomerNoEnd.CValue = StringEmpty(); txtShortNameEnd.CValue = StringEmpty(); dtStart.CValue = DateTimeNow(); dtEnd.CValue = DateTimeNow(); dtStart.Enabled = false; dtEnd.Enabled = false; dgSaleBillResult.ReadOnly = true; dgSaleBillResult.AllowNew(false); dgSaleBillResult.ReadOnly = false; dgSaleBillResult.AllowNew(false); dgSaleBillResult.AllowDelete(false);