; ; dtEnd.Checked = dtStart.Checked; dtEnd.CValue = dtStart.CValue; ShowSearchBox("BillSearch","HAVEDEPOT", "tbSaleRtnBillNo1",tbSaleRtnBillNo1.CValue); tbSaleRtnBillNo2.CValue = tbSaleRtnBillNo1.CValue; ShowSearchBox("BillSearch","HAVEDEPOT", "tbSaleRtnBillNo2",tbSaleRtnBillNo2.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"); @ClickType="View"; @ClickType="Excel"; @ClickType="Word"; @ClickType="PrintToPrinter"; if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID()); } if(GetRight("客户基本资料","全权查看")) { FormatString(""); } else { FormatString(" Disable_SaleRtnBill=0 and Customer.ID_Creator='{0}' ",GetLoginUserID()); }
if(ikRadioButton4.Checked) { tbProduct1.ReadOnly=false; tbProduct2.ReadOnly=false; tbProduct1.IKButton.Enabled=true; tbProduct2.IKButton.Enabled=true; cbType1.Enabled=true; cbType2.Enabled=true; } else { tbProduct1.ReadOnly=true; tbProduct2.ReadOnly=true; tbProduct1.IKButton.Enabled=false; tbProduct2.IKButton.Enabled=false; cbType1.Enabled=false; cbType2.Enabled=false; }