private int SetFormData() { string tempSql = SQL; if (NeedTranslatedValue != null) { #region 需要被翻译的种类。 Managers.Functions.SQLCodeType[] types = new QuickReportCore.Managers.Functions.SQLCodeType[4]; types[0] = QuickReportCore.Managers.Functions.SQLCodeType.Tree; types[1] = QuickReportCore.Managers.Functions.SQLCodeType.System; types[2] = QuickReportCore.Managers.Functions.SQLCodeType.Condition; types[3] = QuickReportCore.Managers.Functions.SQLCodeType.Column; #endregion Translating = true; NeedTranslatedValue(ref tempSql, types); Translating = false; } DataSet ds = GetDataSet(tempSql); if (ds == null) { return(-1); } return(frmSelector.InitSelector(this, ds)); }