C2025-027-AnnotationsTypeSelect
This commit is contained in:
@@ -119,13 +119,11 @@ namespace Volian.Controls.Library
|
||||
if (CurrentItem.MyDocVersion != null)
|
||||
if (CurrentItem.MyDocVersion.DocVersionAssociationCount > 0)
|
||||
_ROPath = CurrentItem.MyDocVersion.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath;
|
||||
ProcItem = CurrentItem.MyProcedure;
|
||||
// C2025-027
|
||||
//cbGridAnnoType.DataSource = VEPROMS.CSLA.Library.AnnotationstypeSelections.Get(ProcItem.ItemID);
|
||||
cbGridAnnoType.DataSource = VEPROMS.CSLA.Library.AnnotationstypeSelections.Get(MyUserInfo.UserID, ProcItem.ItemID);
|
||||
cbGridAnnoType.WatermarkText = "Select Annotation Type";
|
||||
|
||||
|
||||
//ProcItem = CurrentItem.MyProcedure;
|
||||
// C2025-027 Annotation Type Filtering
|
||||
//cbGridAnnoType.WatermarkText = "Select Annotation Type";
|
||||
//cbGridAnnoType.DataSource = VEPROMS.CSLA.Library.AnnotationstypeSelections.Get(MyUserInfo.UserID);
|
||||
|
||||
}
|
||||
public AnnotationInfo FirstExeAnnotation(ItemInfo ii)
|
||||
@@ -372,6 +370,12 @@ namespace Volian.Controls.Library
|
||||
cbGridAnnoType.DisplayMember = "Name";
|
||||
cbGridAnnoType.ValueMember = "TypeId";
|
||||
cbGridAnnoType.DataSource = AnnotationTypeInfoList.Get().Clone();
|
||||
|
||||
//ProcItem = CurrentItem.MyProcedure;
|
||||
//C2025 - 027 Annotation Type Filtering
|
||||
cbGridAnnoType.WatermarkText = "Select Annotation Type";
|
||||
cbGridAnnoType.DataSource = VEPROMS.CSLA.Library.AnnotationstypeSelections.Get(MyUserInfo.UserID);
|
||||
|
||||
// If there are no annotatons, then selected index is -1 (not defined), otherwise select the first.
|
||||
// This was done so that it could be saved if there was text entered but user moves to another steprtb without selecting save button
|
||||
// so that annotation gets saved.
|
||||
|
Reference in New Issue
Block a user