private void FillReportStore() { //GEtting the filter from the page string filter = string.Empty; //Fetching the corresponding list //in this test will take a list of News TaskReportsListRequest request = new TaskReportsListRequest(); request.Filter = ""; request.taskId = currentRuId.Text; ListResponse <Report> routers = _taskScheduleService.ChildGetAll <Report>(request); if (!routers.Success) { Common.errorMessage(routers); return; } this.reportsStore.DataSource = routers.Items; this.reportsStore.DataBind(); }
private void FillReceiverStore() { //GEtting the filter from the page string filter = string.Empty; //Fetching the corresponding list //in this test will take a list of News TaskReportsListRequest request = new TaskReportsListRequest(); request.Filter = ""; request.taskId = currentRuId.Text; ListResponse <Receiver> routers = _taskScheduleService.ChildGetAll <Receiver>(request); if (!routers.Success) { Common.errorMessage(routers); return; } if (routers.Items.Count > 0) { lineSeq.Text = (routers.Items[routers.Items.Count - 1].seqNo + 1).ToString(); } else { lineSeq.Text = "1"; } this.receiversStore.DataSource = routers.Items; this.receiversStore.DataBind(); }