; ; dtEnd.Checked = dtStart.Checked; dtEnd.CValue = dtStart.CValue; ShowSearchBox("BillSearch","HAVEDEPOT", "tbSaleBillNo1",tbSaleBillNo1.CValue); tbSaleBillNo2.CValue = tbSaleBillNo1.CValue; ShowSearchBox("BillSearch","HAVEDEPOT", "tbSaleBillNo2",tbSaleBillNo2.CValue); tbCustomerNo2.CValue = tbCustomerNo1.CValue; UpdateForm(false, "cbPrincipal1"); Search("SearchPrincipal"); UpdateForm(true, "cbPrincipal1"); cbPrincipal2.SelectedName = cbPrincipal1.SelectedName; cbPrincipal2.SelectedNo=cbPrincipal1.SelectedNo; UpdateForm(false, "cbPrincipal2"); Search("SearchPrincipal"); UpdateForm(true, "cbPrincipal2"); UpdateForm(false, "cbLocation1"); Search("SearchLocation"); UpdateForm(true, "cbLocation1"); cbLocation2.SelectedName = cbLocation1.SelectedName; cbLocation2.SelectedNo = cbLocation1.SelectedNo; UpdateForm(false, "cbLocation2"); Search("SearchLocation"); UpdateForm(true, "cbLocation2"); tbProduct2.CValue = tbProduct1.CValue; UpdateForm(false, "cbType1"); Search("SearchType"); UpdateForm(true, "cbType1"); cbType2.Text = cbType1.Text; UpdateForm(false, "cbType2"); Search("SearchType"); UpdateForm(true, "cbType2"); UpdateForm(false, "cbCustomerType1"); Search("SearchCustomerType"); UpdateForm(true, "cbCustomerType1"); cbCustomerType2.Text = cbCustomerType1.Text; UpdateForm(false, "cbCustomerType2"); Search("SearchCustomerType"); UpdateForm(true, "cbCustomerType2"); dtEndFileDate.Checked = dtFileDate.Checked; dtEndFileDate.CValue = dtFileDate.CValue; if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID()); } if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Disable_SaleBill=0 and Customer.ID_Creator='{0}' ",GetLoginUserID()); }