Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f90a80c366 | |||
| d9ec756e22 | |||
| 9f7c24c540 | |||
| fe2833395d | |||
| a181cf3815 | |||
| dfce44a47a | |||
| 22280bf1e3 | |||
| 7afca6a254 | |||
| 1c56aa2eb1 | |||
| f38aa4595f |
Binary file not shown.
Binary file not shown.
@@ -216,7 +216,7 @@ namespace VEPROMS
|
|||||||
MembershipInfo mi = (MembershipInfo)lstMembers.SelectedItem;
|
MembershipInfo mi = (MembershipInfo)lstMembers.SelectedItem;
|
||||||
string selectedUserID = mi.MyUserUserID;
|
string selectedUserID = mi.MyUserUserID;
|
||||||
string msg = "Are you sure you want to remove this Group Member?";
|
string msg = "Are you sure you want to remove this Group Member?";
|
||||||
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
||||||
{
|
{
|
||||||
@@ -255,7 +255,7 @@ namespace VEPROMS
|
|||||||
MessageBox.Show("There are still users who are members of this group. You need to delete all members in order to delete this group.", "Group Has Members", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
MessageBox.Show("There are still users who are members of this group. You need to delete all members in order to delete this group.", "Group Has Members", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MessageBox.Show("Are you sure you want to delete this group?", "Confirm Deleting Group", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show("Are you sure you want to delete this group?", "Confirm Deleting Group", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
Group.Delete(gi.GID);
|
Group.Delete(gi.GID);
|
||||||
LoadRefreshGroupUsers();
|
LoadRefreshGroupUsers();
|
||||||
@@ -397,7 +397,7 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
int nummemberships = ui.UserMemberships.Count(mi => mi.EndDate == null || mi.EndDate == string.Empty);
|
int nummemberships = ui.UserMemberships.Count(mi => mi.EndDate == null || mi.EndDate == string.Empty);
|
||||||
string mem_text = nummemberships > 0 ? "\r\nNote that this will remove all memberships that this user has." : "";
|
string mem_text = nummemberships > 0 ? "\r\nNote that this will remove all memberships that this user has." : "";
|
||||||
if (MessageBox.Show($"Are you sure you want to delete this user?{mem_text}", "Confirm Deleting User", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show($"Are you sure you want to delete this user?{mem_text}", "Confirm Deleting User", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
foreach (MembershipInfo minfo in ui.UserMemberships.Where(mi => mi.EndDate == null || mi.EndDate == string.Empty))
|
foreach (MembershipInfo minfo in ui.UserMemberships.Where(mi => mi.EndDate == null || mi.EndDate == string.Empty))
|
||||||
{
|
{
|
||||||
@@ -477,7 +477,7 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
MembershipInfo mi = (MembershipInfo)lstGroups.SelectedItem;
|
MembershipInfo mi = (MembershipInfo)lstGroups.SelectedItem;
|
||||||
string msg = "Are you sure you want to remove this Group Member?";
|
string msg = "Are you sure you want to remove this Group Member?";
|
||||||
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -165,9 +165,9 @@ This function will cause no change to data or records in PROMS.
|
|||||||
It should however be performed when other users are not in PROMS, as it could
|
It should however be performed when other users are not in PROMS, as it could
|
||||||
cause slowdown or errors for other users while it is running.</value>
|
cause slowdown or errors for other users while it is running.</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<data name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</data>
|
||||||
<data name="swDeleteFolder.SuperTooltip" xml:space="preserve">
|
<data name="swDeleteFolder.SuperTooltip" xml:space="preserve">
|
||||||
<value>This allows the user to remove folders and sub folders as well as their contents.
|
<value>This allows the user to remove folders and sub folders as well as their contents.
|
||||||
|
|
||||||
@@ -304,22 +304,22 @@ Should an item become orphaned (disconnected) from the rest of the data, it will
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="swCheckROLinks.SuperTooltip" xml:space="preserve">
|
<data name="swCheckROLinks.SuperTooltip" xml:space="preserve">
|
||||||
<value>This allows the user to check referenced objects links in procedure step data for multiple working drafts in a batch mode.
|
<value>This allows the user to check referenced object links in procedure step data for multiple working drafts in a batch mode.
|
||||||
|
|
||||||
Bad referenced bject links will be identified with an Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
Bad referenced object links will be identified with a Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
||||||
|
|
||||||
Be sure a current backup of the database exists prior performing this function.
|
Be sure a current backup of the database exists prior to performing this function.
|
||||||
|
|
||||||
It is recommended that this be done during off hours.
|
It is recommended that this be done during off hours.
|
||||||
|
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="labelX12.SuperTooltip" xml:space="preserve">
|
<data name="labelX12.SuperTooltip" xml:space="preserve">
|
||||||
<value>This allows the user to check referenced objects links in procedure step data for multiple working drafts in a batch mode.
|
<value>This allows the user to check referenced object links in procedure step data for multiple working drafts in a batch mode.
|
||||||
|
|
||||||
Bad referenced bject links will be identified with an Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
Bad referenced object links will be identified with a Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
||||||
|
|
||||||
Be sure a current backup of the database exists prior performing this function.
|
Be sure a current backup of the database exists prior to performing this function.
|
||||||
|
|
||||||
It is recommended that this be done during off hours.
|
It is recommended that this be done during off hours.
|
||||||
</value>
|
</value>
|
||||||
@@ -388,7 +388,8 @@ If more than one procedure is selected, it is recommended that this be performed
|
|||||||
ud8AKwnMnBpmYFAAAAAASUVORK5CYII=
|
ud8AKwnMnBpmYFAAAAAASUVORK5CYII=
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="$this.TrayHeight" type="System.Int32, mscorlib">
|
||||||
<value>25</value>
|
<value>25</value>
|
||||||
</metadata>
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -3312,6 +3312,25 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//B2026-011 Improve the resolution of unit numbers in multi-unit background documents when printing.
|
||||||
|
// for enhanced documents, when copying content, need to not resolve the
|
||||||
|
//unit designators until print time
|
||||||
|
public string DisplayTextKeepSpecialCharsKeepUnitSpecific
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string str = MyContent.Text;
|
||||||
|
foreach (string key in SpecialCharacters.Keys)
|
||||||
|
str = str.Replace(key, SpecialCharacters[key]);
|
||||||
|
string retval = ConvertToDisplayText(str);
|
||||||
|
foreach (string key in SpecialCharacters.Keys)
|
||||||
|
retval = retval.Replace(SpecialCharacters[key], key);
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public string DisplayNumber
|
public string DisplayNumber
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -8358,7 +8377,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ItemInfo srcItem = ItemInfo.Get(seds[0].ItemID);
|
ItemInfo srcItem = ItemInfo.Get(seds[0].ItemID);
|
||||||
// B2022-049: Copy/paste of enhanced procedure and bad links between source and enhanced. Null reference check
|
// B2022-049: Copy/paste of enhanced procedure and bad links between source and enhanced. Null reference check
|
||||||
if (srcItem != null && srcItem.DisplayTextKeepSpecialChars != ii.DisplayTextKeepSpecialChars)
|
//B2026-011 Improve the resolution of unit numbers in multi-unit background documents when printing.
|
||||||
|
// for enhanced documents, when copying content, need to not resolve the
|
||||||
|
//unit designators until print time
|
||||||
|
if (srcItem != null && srcItem.DisplayTextKeepSpecialCharsKeepUnitSpecific != ii.DisplayTextKeepSpecialCharsKeepUnitSpecific)
|
||||||
{
|
{
|
||||||
if (retiil == null) retiil = new ItemInfoList(ii);
|
if (retiil == null) retiil = new ItemInfoList(ii);
|
||||||
else retiil.AddItem(ii);
|
else retiil.AddItem(ii);
|
||||||
@@ -8384,7 +8406,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
ItemInfo srcItem = ItemInfo.Get(seds[0].ItemID);
|
ItemInfo srcItem = ItemInfo.Get(seds[0].ItemID);
|
||||||
using (Item enhItem = Item.Get(ii.ItemID))
|
using (Item enhItem = Item.Get(ii.ItemID))
|
||||||
{
|
{
|
||||||
enhItem.MyContent.Text = srcItem.DisplayTextKeepSpecialChars;
|
//B2026-011 Improve the resolution of unit numbers in multi-unit background documents when printing.
|
||||||
|
// for enhanced documents, when copying content, need to not resolve the
|
||||||
|
//unit designators until print time
|
||||||
|
enhItem.MyContent.Text = srcItem.DisplayTextKeepSpecialCharsKeepUnitSpecific;
|
||||||
enhItem.Save();
|
enhItem.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user