public void init() { panelItemList = new List <BaseCheckRepoatView>(); foreach (KeyValuePair <int, object> pair in dataDic) { int key = pair.Key; switch (key) { case ReportCodeDict.HP_REPORT_CODE: XapDataList <OrdSrvDO> dataList = pair.Value as XapDataList <OrdSrvDO>; BaseCheckRepoatView reportview = new HealthCheckRepoatView(dataList, this.id_ors, ReportCodeDict.REPORT_DICT[key], key, this.ciOrderDO); panelItemList.Add(reportview); this.AddRender(reportview); break; case ReportCodeDict.UNCPOR_REPORT_CODE: XapDataList <CiOrderDO> cpordataList = pair.Value as XapDataList <CiOrderDO>; BaseCheckRepoatView cporReportview = new CporCheckRepoatView(cpordataList, this.id_ors, ReportCodeDict.REPORT_DICT[key], key); panelItemList.Add(cporReportview); this.AddRender(cporReportview); break; } } ReLocation(); this.getScrollBarRect(); }
internal void loadFormView(view.OrdEmsView ordEmsView) { XapDataList <OrdSrvDO> dataSource = new HealthCheckReportModel().getDataSource(this.id_ors); if (dataSource != null && dataSource.Count() > 0) { reportView = new HealthCheckRepoatView(dataSource, this.id_ors, this.orderType); xLayoutPanel.AddControl(reportView, ControlPosition.Center); this.ShowDialog(ordEmsView); } }