/// <summary> ///诊断信息 /// </summary> /// <returns></returns> public XapDataList <IpViewDiagDTO> GetDiagDataList(string id_ent) { XapDataList <IpViewDiagDTO> list = new XapDataList <IpViewDiagDTO>(); IpViewDiagDTO[] diagItem = qryService.getCiDiagItemDOList(id_ent, ""); if (diagItem != null && diagItem.Count() > 0) { foreach (IpViewDiagDTO item in diagItem) { list.Add(item); } } return(list); }
public override void OnSetData(Dictionary <string, object> datadict) { if (datadict != null && datadict.Count > 0) { string id_ent = datadict["id_ent"] as string; if (id_ent != null) { List <string> fieldNameList = new List <string>(); BindingList <object> valueList = new BindingList <object>(); qryService = XapServiceMgr.find <ICiOrdQryService>(); IpViewDiagDTO[] diagItem = qryService.getCiDiagItemDOList(id_ent, ""); foreach (IpViewDiagDTO item in diagItem) { valueList.Add(item); } fieldNameList.Add("name"); this.SetData(fieldNameList, valueList, null); } } }