private void deleteAllWorkSequence(string currentWfId) { WorkSequenceListRequest req = new WorkSequenceListRequest(); req.wfId = currentWfId; ListResponse <WorkSequence> resp = _companyStructureRepository.ChildGetAll <WorkSequence>(req); if (!resp.Success) { Common.errorMessage(resp); return; } PostRequest <WorkSequence> req1 = new PostRequest <WorkSequence>(); resp.Items.ForEach(x => { req1.entity = x; PostResponse <WorkSequence> delresp = _companyStructureRepository.ChildDelete <WorkSequence>(req1); if (!delresp.Success) { Common.errorMessage(delresp); throw new Exception(); } }); }
private void FillWorkSequenceStore(string currentWfId) { WorkSequenceListRequest req = new WorkSequenceListRequest(); req.wfId = currentWfId; ListResponse <WorkSequence> resp = _companyStructureRepository.ChildGetAll <WorkSequence>(req); if (!resp.Success) { Common.errorMessage(resp); return; } if (resp.Items.Count != 0) { currentSeq.Text = resp.Items.OrderBy(x => x.seqNo).Last().seqNo.ToString(); } workSequenceStore.DataSource = resp.Items; workSequenceStore.DataBind(); }