B2021-015: Approve Some – select/clear all not populating left panel & count not refreshed.
B2021-035: Approve All – Pasted, modified number and deleted procedures not refreshed so missing from list
This commit is contained in:
parent
1171a51d00
commit
171035239f
@ -67,6 +67,7 @@ namespace VEPROMS
|
|||||||
ApplicabilityIndex = myDocVersion.DocVersionConfig.SelectedSlave;
|
ApplicabilityIndex = myDocVersion.DocVersionConfig.SelectedSlave;
|
||||||
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
||||||
_MyDocVersion = myDocVersion;
|
_MyDocVersion = myDocVersion;
|
||||||
|
_MyDocVersion.ResetProcedures(); // B2021-035: Pasted, modified number and deleted procedures not refreshed so missing from list
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
FlexGridAddEvents();
|
FlexGridAddEvents();
|
||||||
_MyApproval.StatusUpdated += new ApprovalStatusChangeEvent(_MyApproval_StatusUpdated);
|
_MyApproval.StatusUpdated += new ApprovalStatusChangeEvent(_MyApproval_StatusUpdated);
|
||||||
@ -258,6 +259,7 @@ namespace VEPROMS
|
|||||||
_MyApproval = new ApprovalInfo(myFrmVEPROMS);// Save frmVEPROMS for Import to shutoff SessionPing
|
_MyApproval = new ApprovalInfo(myFrmVEPROMS);// Save frmVEPROMS for Import to shutoff SessionPing
|
||||||
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
||||||
_MyDocVersion = myDocVersion;
|
_MyDocVersion = myDocVersion;
|
||||||
|
_MyDocVersion.ResetProcedures(); // B2021-035: Pasted, modified number and deleted procedures not refreshed so missing from list
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
FlexGridAddEvents();
|
FlexGridAddEvents();
|
||||||
SetupComboBoxes(); // C2020-039 - initialize work flow stage drop down
|
SetupComboBoxes(); // C2020-039 - initialize work flow stage drop down
|
||||||
@ -275,6 +277,7 @@ namespace VEPROMS
|
|||||||
_MyApproval = new ApprovalInfo(myFrmVEPROMS);// Save frmVEPROMS for Import to shutoff SessionPing
|
_MyApproval = new ApprovalInfo(myFrmVEPROMS);// Save frmVEPROMS for Import to shutoff SessionPing
|
||||||
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
this.ConsistencyPrintRequest += new DisplayConsistencyReportEvent(dlgApproveProcedure_ConsistencyPrintRequest);
|
||||||
_MyDocVersion = myProcedure.MyDocVersion;
|
_MyDocVersion = myProcedure.MyDocVersion;
|
||||||
|
_MyDocVersion.ResetProcedures(); // B2021-035: Pasted, modified number and deleted procedures not refreshed so missing from list
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
FlexGridAddEvents();
|
FlexGridAddEvents();
|
||||||
SetupComboBoxes();
|
SetupComboBoxes();
|
||||||
@ -404,6 +407,7 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
setupLablesAndSwitches(); // C2018-008 redesign of user interface
|
setupLablesAndSwitches(); // C2018-008 redesign of user interface
|
||||||
SetupMyApproval();
|
SetupMyApproval();
|
||||||
|
RefreshCount(); // B2021-015: select/clear all not populating left panel & count not refreshed.
|
||||||
}
|
}
|
||||||
private void btnCheck_Click(object sender, EventArgs e)
|
private void btnCheck_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@ -436,9 +440,9 @@ namespace VEPROMS
|
|||||||
for (int i = 0; i < clbMore.Items.Count; i++)
|
for (int i = 0; i < clbMore.Items.Count; i++)
|
||||||
{
|
{
|
||||||
string info = clbMore.Items[i].ToString();
|
string info = clbMore.Items[i].ToString();
|
||||||
if(info.Contains(" - ("))
|
if (info.Contains(" - ("))
|
||||||
clbMore.Items[i] = info.Substring(0, info.IndexOf(" - ("));
|
clbMore.Items[i] = info.Substring(0, info.IndexOf(" - ("));
|
||||||
}
|
}
|
||||||
foreach (ProcedureInfo npi in _MyItemInfoList)
|
foreach (ProcedureInfo npi in _MyItemInfoList)
|
||||||
{
|
{
|
||||||
string info = string.Format("{0} - ({1})", npi.DisplayNumber, npi.MyDifferenceReasons);
|
string info = string.Format("{0} - ({1})", npi.DisplayNumber, npi.MyDifferenceReasons);
|
||||||
@ -464,7 +468,7 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
clbMore.Enabled = btnAll.Enabled = btnClear.Enabled = true;
|
clbMore.Enabled = btnAll.Enabled = btnClear.Enabled = true;
|
||||||
lblMore.Text = string.Format("{0} Procedures, {1} Selected", clbMore.Items.Count, clbMore.CheckedItems.Count);
|
RefreshCount();
|
||||||
btnReportMore.Enabled = true;
|
btnReportMore.Enabled = true;
|
||||||
|
|
||||||
if (swtbtCascade.Value) // C2018-008 redesign of user interface
|
if (swtbtCascade.Value) // C2018-008 redesign of user interface
|
||||||
@ -476,6 +480,12 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// B2021-015: select/clear all not populating left panel & count not refreshed.
|
||||||
|
private void RefreshCount()
|
||||||
|
{
|
||||||
|
lblMore.Text = string.Format("{0} Procedures, {1} Selected", clbMore.Items.Count, clbMore.CheckedItems.Count);
|
||||||
|
}
|
||||||
|
|
||||||
void ItemInfoList_ConsistencyCheckUpdated(object sender, ItemInfoListCCEventArgs args)
|
void ItemInfoList_ConsistencyCheckUpdated(object sender, ItemInfoListCCEventArgs args)
|
||||||
{
|
{
|
||||||
if (sender != null)
|
if (sender != null)
|
||||||
@ -494,11 +504,13 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < clbMore.Items.Count; i++)
|
for (int i = 0; i < clbMore.Items.Count; i++)
|
||||||
clbMore.SetItemChecked(i, true);
|
clbMore.SetItemChecked(i, true);
|
||||||
|
UpdateMyApproval(); // B2021-015: select/clear all not populating left panel & count not refreshed.
|
||||||
}
|
}
|
||||||
private void btnClear_Click(object sender, EventArgs e)
|
private void btnClear_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < clbMore.Items.Count; i++)
|
for (int i = 0; i < clbMore.Items.Count; i++)
|
||||||
clbMore.SetItemChecked(i, false);
|
clbMore.SetItemChecked(i, false);
|
||||||
|
UpdateMyApproval(); // B2021-015: select/clear all not populating left panel & count not refreshed.
|
||||||
}
|
}
|
||||||
private int _LastIndex = -1;
|
private int _LastIndex = -1;
|
||||||
private void clbMore_MouseMove(object sender, MouseEventArgs e)
|
private void clbMore_MouseMove(object sender, MouseEventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user