; ; ; PrintReport(dgSaleRtnBill.CurrentView,"FrmSaleRtnNoInDepot",GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID()); Empty(); if(@SaleBackAndInDepot != 0) { if(Search("SearchSaleRtnNoInBillHaveFlow",GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) Search("SearchSaleRtnNoInBillProductHaveFlow",#SaleRtnNoInBill.No_SaleRtnBill,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID()); } else { if(Search("SearchSaleRtnNoInBillNoFlow",GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID())) Search("SearchSaleRtnNoInBillProductNoFlow",#SaleRtnNoInBill.No_SaleRtnBill,GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID()); } txtSalRtnSum.CValue = SumOfCol("#SaleRtnNoInBillProduct.Quantity_SaleRtn"); txtIndepotSum.CValue = SumOfCol("#SaleRtnNoInBillProduct.Quantity_InDepot"); ; ; ; ; ; ;