Compare commits
No commits in common. "7c33bad3628f393c5989907c45a007354f7b4288" and "e49a4d674f00f7852eea3f49be3003471f8296e9" have entirely different histories.
7c33bad362
...
e49a4d674f
@ -54,7 +54,6 @@ namespace VEPROMS
|
|||||||
lbAnnotationTypes.DisplayMember = "Value";
|
lbAnnotationTypes.DisplayMember = "Value";
|
||||||
lbAnnotationTypes.ValueMember = "Key";
|
lbAnnotationTypes.ValueMember = "Key";
|
||||||
lbAnnotationTypes.SelectedIndexChanged += lbAnnotationTypes_SelectedIndexChanged;
|
lbAnnotationTypes.SelectedIndexChanged += lbAnnotationTypes_SelectedIndexChanged;
|
||||||
lbAnnotationTypes.ClearSelected();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// create comma delimited string of procedures selected by user.
|
// create comma delimited string of procedures selected by user.
|
||||||
@ -152,28 +151,25 @@ namespace VEPROMS
|
|||||||
// Retrieve number of annotations that will be deleted.
|
// Retrieve number of annotations that will be deleted.
|
||||||
private void lbAnnotationTypes_SelectedIndexChanged(object sender, EventArgs e)
|
private void lbAnnotationTypes_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (lbAnnotationTypes.SelectedIndex > -1)
|
btnClean.Enabled = false;
|
||||||
|
lblCountNumber.Text = "";
|
||||||
|
int deletecountProc = 0;
|
||||||
|
int deletecountDocv = 0;
|
||||||
|
if (pil2.Count > 0)
|
||||||
{
|
{
|
||||||
btnClean.Enabled = false;
|
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
|
||||||
lblCountNumber.Text = "";
|
deletecountProc = Annotation.getAnnotationProcCnt(AnnotationTyp, getAnnotationProcItems(pil2));
|
||||||
int deletecountProc = 0;
|
|
||||||
int deletecountDocv = 0;
|
|
||||||
if (pil2.Count > 0)
|
|
||||||
{
|
|
||||||
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
|
|
||||||
deletecountProc = Annotation.getAnnotationProcCnt(AnnotationTyp, getAnnotationProcItems(pil2));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dvil2.Count > 0)
|
|
||||||
{
|
|
||||||
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
|
|
||||||
deletecountDocv = Annotation.getAnnotationCountDocv(AnnotationTyp, getAnnotationDocvItems(dvil2));
|
|
||||||
}
|
|
||||||
lblCountNumber.Text = (deletecountProc + deletecountDocv).ToString();
|
|
||||||
totalDeleteCnt = (deletecountProc + deletecountDocv).ToString();
|
|
||||||
btnClean.Enabled = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dvil2.Count > 0)
|
||||||
|
{
|
||||||
|
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
|
||||||
|
deletecountDocv = Annotation.getAnnotationCountDocv(AnnotationTyp, getAnnotationDocvItems(dvil2));
|
||||||
|
}
|
||||||
|
lblCountNumber.Text = (deletecountProc + deletecountDocv).ToString();
|
||||||
|
totalDeleteCnt = (deletecountProc + deletecountDocv).ToString();
|
||||||
|
btnClean.Enabled = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
// Close form.
|
// Close form.
|
||||||
private void btnClose_Click(object sender, EventArgs e)
|
private void btnClose_Click(object sender, EventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user