public override Dictionary <int, ThreadCateModelFieldCollection> GetAllThreadCateModelField() { using (SqlQuery query = new SqlQuery()) { query.CommandText = "bx_GetAllThreadCateModelField"; query.CommandType = CommandType.StoredProcedure; Dictionary <int, ThreadCateModelFieldCollection> fields = new Dictionary <int, ThreadCateModelFieldCollection>(); using (XSqlDataReader reader = query.ExecuteReader()) { while (reader.Read()) { ThreadCateModelField field = new ThreadCateModelField(reader); ThreadCateModelFieldCollection tempFields; if (fields.TryGetValue(field.ModelID, out tempFields) == false) { tempFields = new ThreadCateModelFieldCollection(); tempFields.Add(field); fields.Add(field.ModelID, tempFields); } else { tempFields.Add(field); } } } return(fields); } }
protected string IncludeExtendFiled(ThreadCateModelField field) { ExtendedFieldType type = UserBO.Instance.GetExtendedFieldType(field.FieldType); this.Include(this.HtmlTextWriter, new object[] { "src", type.FrontendControlSrc, "value", "", "field", field.ExtendedField }); return(null); }
protected string IncludeExtendFiled(ThreadCateModelField field) { ExtendedFieldType type = UserBO.Instance.GetExtendedFieldType(field.FieldType); this.Include(this.HtmlTextWriter, new object[] { "src", type.FrontendControlSrc, "value", "", "field", field.ExtendedField }); return null; }
public override Dictionary<int,ThreadCateModelFieldCollection> GetAllThreadCateModelField() { using (SqlQuery query = new SqlQuery()) { query.CommandText = "bx_GetAllThreadCateModelField"; query.CommandType = CommandType.StoredProcedure; Dictionary<int, ThreadCateModelFieldCollection> fields = new Dictionary<int, ThreadCateModelFieldCollection>(); using (XSqlDataReader reader = query.ExecuteReader()) { while (reader.Read()) { ThreadCateModelField field = new ThreadCateModelField(reader); ThreadCateModelFieldCollection tempFields; if (fields.TryGetValue(field.ModelID, out tempFields) == false) { tempFields = new ThreadCateModelFieldCollection(); tempFields.Add(field); fields.Add(field.ModelID, tempFields); } else { tempFields.Add(field); } } } return fields; } }