C2025-027-AnnotationsTypeSelect

This commit is contained in:
2025-07-16 15:03:32 -04:00
parent c98299d916
commit 7a0f56cad8
9 changed files with 58 additions and 252 deletions

View File

@@ -12,20 +12,19 @@ using VEPROMS.CSLA.Library;
namespace VEPROMS
{
// C2025-027 Annotation Type Filtering
public partial class DlgAnnotationsSelect : Form
public partial class dlgAnnotationsSelect : Form
{
int AnnotationTypeID;
string AnnotationNameStr = "";
//int AnnotationTypeID;
//string AnnotationNameStr = "";
public DlgAnnotationsSelect()
public dlgAnnotationsSelect()
{
InitializeComponent();
}
public DlgAnnotationsSelect(string userid)
public dlgAnnotationsSelect(string userid)
{
InitializeComponent();
//MyItemID = pi.ItemID;
UserID = userid;
}
@@ -97,13 +96,13 @@ namespace VEPROMS
// Save selected list to DB.
private void btnUpdate_Click(object sender, EventArgs e)
{
int AnnotationTypeID;
string AnnotationNameStr = "";
// dltFlg flag is used to notify SQL SP to deleted all the entries for the user before entering the annotation type selections.
int dltFlg = 1;
foreach (AnnotataionItem item in lstSelected.Items.OfType<AnnotataionItem>())
{
lstSelected.DisplayMember = "NameStr";
lstSelected.ValueMember = "TypeID";
AnnotationTypeID = item.TypeID;
AnnotationNameStr = item.NameStr;