B2018-136 logic now uses the procedures that are checked in the checkbox list of procedures (right panel) for the consistency check.
This commit is contained in:
parent
37fb880794
commit
1c5993b87f
@ -395,11 +395,14 @@ namespace VEPROMS
|
|||||||
lblPhase.Text = z.ToString();
|
lblPhase.Text = z.ToString();
|
||||||
string oldLabel = lblMore.Text;
|
string oldLabel = lblMore.Text;
|
||||||
pbMore.Visible = true;
|
pbMore.Visible = true;
|
||||||
pbMore.Maximum = _MyApproval.MyProcedures.Count;
|
|
||||||
ItemInfoList.ConsistencyCheckUpdated += new ItemInfoListCCEvent(ItemInfoList_ConsistencyCheckUpdated);
|
ItemInfoList.ConsistencyCheckUpdated += new ItemInfoListCCEvent(ItemInfoList_ConsistencyCheckUpdated);
|
||||||
List<ProcedureInfo> myProcs = new List<ProcedureInfo>();
|
List<ProcedureInfo> myProcs = new List<ProcedureInfo>();
|
||||||
foreach (ApprovalProcedure ap in _MyApproval.MyProcedures)
|
// B2018-136 use the list of procedures that have checkboxes and are checked (right panel) instead of the list to be approved (left panel)
|
||||||
myProcs.Add(ap.ProcInfo);
|
// when doing a consistency check
|
||||||
|
for (int i = 0; i < clbMore.Items.Count; i++)
|
||||||
|
if (clbMore.GetItemChecked(i))
|
||||||
|
myProcs.Add(GetProcedureInfoByKey(clbMore.Items[i].ToString()));
|
||||||
|
pbMore.Maximum = myProcs.Count;
|
||||||
_MyItemInfoList = ItemInfoList.GetMoreProcedures(myProcs);
|
_MyItemInfoList = ItemInfoList.GetMoreProcedures(myProcs);
|
||||||
ItemInfoList.ConsistencyCheckUpdated -= new ItemInfoListCCEvent(ItemInfoList_ConsistencyCheckUpdated);
|
ItemInfoList.ConsistencyCheckUpdated -= new ItemInfoListCCEvent(ItemInfoList_ConsistencyCheckUpdated);
|
||||||
lblMore.Text = oldLabel;
|
lblMore.Text = oldLabel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user