public byte[] GetChartTemplateFile(int id) { List <MB.Util.Model.QueryParameterInfo> filter = new List <Util.Model.QueryParameterInfo>(); filter.Add(new Util.Model.QueryParameterInfo("ID", id, DataFilterConditions.Equal)); List <ChartTemplateInfo> list = _TemplateClient.GetObjects(filter.ToArray()); if (list != null && list.Count > 0) { return(list[0].TEMPLATE_FILE); } return(null); }
private List <ChartTemplateInfo> getTemplateList(DevExpress.XtraGrid.GridControl xtraGrid) { if (_ContainerForm != null && _ContainerForm.ClientRuleObject != null) { string gridName = _ContainerForm.GetType().FullName + "~" + xtraGrid.Name + "~" + _ContainerForm.GetType().Assembly.GetName().Name; string ruleName = _ContainerForm.ClientRuleObject.GetType().FullName + "~" + _ContainerForm.ClientRuleObject.GetType().Assembly.GetName().Name; List <MB.Util.Model.QueryParameterInfo> filterParams = new List <Util.Model.QueryParameterInfo>(); filterParams.Add(new Util.Model.QueryParameterInfo("RULE_PATH", ruleName, Util.DataFilterConditions.Equal)); filterParams.Add(new Util.Model.QueryParameterInfo("GRID_NAME", gridName, Util.DataFilterConditions.Equal)); return(_TemplateClient.GetObjects(filterParams.ToArray())); } return(null); }