Compare commits
17 Commits
a73a8fb993
...
F2024-074-
Author | SHA1 | Date | |
---|---|---|---|
b47f9b2606 | |||
2b5becfa34 | |||
ce02c3e4bd | |||
2ab1856b13 | |||
027a9dc729 | |||
b071db8f60 | |||
98d6557cd2 | |||
ebd7b1249f | |||
1b6eeaf4ad | |||
1d3dac0e51 | |||
48da58b681 | |||
68639eadf0 | |||
dc77984c10 | |||
5b4e1cd694 | |||
3fbd974fa9 | |||
b457496297 | |||
dd83491169 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -23,8 +23,8 @@ using System.Runtime.CompilerServices;
|
||||
// Build YYMM (two digit year, two digit month)
|
||||
// Revision DHH (day - no leading zero, two digit hour - military time
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.2404.1611")]
|
||||
[assembly: AssemblyFileVersion("2.3.2404.1611")]
|
||||
[assembly: AssemblyVersion("2.3.2410.815")]
|
||||
[assembly: AssemblyFileVersion("2.3.2410.815")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
@@ -92,5 +92,6 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -100,6 +100,7 @@ using System.Text;
|
||||
using RODBInterface;
|
||||
using ROFields;
|
||||
using VlnStatus;
|
||||
using System.Linq;
|
||||
|
||||
namespace ROEditor
|
||||
{
|
||||
@@ -245,6 +246,37 @@ namespace ROEditor
|
||||
return CvtFldToUserFld(origGroup);
|
||||
}
|
||||
}
|
||||
|
||||
//CSM C2024-023
|
||||
//Part of 2024 PROMS Upgrades
|
||||
//When the Overall Form is activated
|
||||
//if there are any items that are Fields that are in use
|
||||
//add them as auto-complete options to the
|
||||
//Accessory Page Access - Value Textbox
|
||||
//Typing < will bring up the auto-complete options
|
||||
protected void tbValue_AddAutoComplete(object sender, EventArgs e)
|
||||
{
|
||||
string dummy = ""; // need for RODB_GetFIeldsInUse call, won't be used.
|
||||
ArrayList AvailList, InUseList;
|
||||
//first see if it is a valid 'InUse' Field.
|
||||
AvailList = myrodb.RODB_GetFields(elem, (uint)RecordType.Schema);
|
||||
InUseList = myrodb.RODB_GetFieldsInUse(elem, AvailList, "FieldsInUse", ref dummy, false);
|
||||
|
||||
//if any ROField items are in use,
|
||||
//use LINQ to get a string array of the FieldNames
|
||||
if (InUseList.Count > 0)
|
||||
{
|
||||
string[] InUseListFieldNames = InUseList.OfType<ROField>().Select(x => $"<{x.GetFieldname}>").ToArray();
|
||||
AutoCompleteStringCollection allowedTypes = new AutoCompleteStringCollection();
|
||||
allowedTypes.AddRange(InUseListFieldNames);
|
||||
tbValue.AutoCompleteCustomSource = allowedTypes;
|
||||
tbValue.AutoCompleteMode = AutoCompleteMode.Suggest;
|
||||
tbValue.AutoCompleteSource = AutoCompleteSource.CustomSource;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void FillInData()
|
||||
{
|
||||
this.tbGroup.Text = DetermineGroupName();
|
||||
@@ -432,6 +464,7 @@ namespace ROEditor
|
||||
this.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.Name = "GroupDefFrm";
|
||||
this.Text = "Group Definition";
|
||||
this.Activated += new EventHandler(tbValue_AddAutoComplete);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
@@ -23798,7 +23798,7 @@ BEGIN TRY -- Try Block
|
||||
--then remove the link from the copy
|
||||
--if original item was not linked, update new items to not be linked
|
||||
DECLARE @xconfig XML = (Select cast(config as xml) xconfig from Contents where ContentID = @ContentID);
|
||||
IF @xconfig.exist('//Enhanced[1]') = 0
|
||||
IF ISNULL(@xconfig.exist('//Enhanced[1]'),0) = 0
|
||||
BEGIN
|
||||
UPDATE Contents SET Config = dbo.vefn_RemoveEnhanced(Contents.Config)
|
||||
Where ContentID in (Select ContentID FROM vefn_ChildItems(@NewItemID))
|
||||
@@ -24001,6 +24001,38 @@ UPDATE [dbo].[DisplayTabTmp]
|
||||
SET Active = 0
|
||||
WHERE UserID = @UserID
|
||||
GO
|
||||
-- Table: DisplayTabTmp
|
||||
-- If DisplayTabTmp table already exists then don't drop and recreate it
|
||||
IF Not Exists(SELECT * FROM sys.objects Where name = 'DisplayTabTmp' AND type in (N'U'))
|
||||
Begin
|
||||
SET ANSI_NULLS ON
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
-- =============================================
|
||||
-- Author: Paul Larsen
|
||||
-- Create date: 9/30/2024
|
||||
-- Description: Table to hold tab state in PROMS editor.
|
||||
-- =============================================
|
||||
/****** Object: Table [dbo].[DisplayTabTmp] Script Date: 10/3/2024 11:22:00 AM ******/
|
||||
|
||||
CREATE TABLE [dbo].[DisplayTabTmp](
|
||||
[ID] [int] IDENTITY(1,1) NOT NULL,
|
||||
[ItemID] [int] NOT NULL,
|
||||
[DisplayTabID] [nvarchar](100) NOT NULL,
|
||||
[DisplayTabName] [nchar](100) NOT NULL,
|
||||
[UpdateDate] [datetime] NOT NULL,
|
||||
[UserID] [nchar](100) NOT NULL,
|
||||
[Active] [bit] NOT NULL,
|
||||
[taborder] [int] NOT NULL
|
||||
) ON [PRIMARY]
|
||||
|
||||
ALTER TABLE [dbo].[DisplayTabTmp] ADD CONSTRAINT [DF_DisplayTabTmp_UpdateDate] DEFAULT (getdate()) FOR [UpdateDate]
|
||||
|
||||
ALTER TABLE [dbo].[DisplayTabTmp] ADD CONSTRAINT [DF_DisplayTabTmp_Active] DEFAULT ((1)) FOR [Active]
|
||||
|
||||
ALTER TABLE [dbo].[DisplayTabTmp] ADD DEFAULT ((0)) FOR [taborder]
|
||||
|
||||
End
|
||||
GO
|
||||
/*
|
||||
==========================================================================================================
|
||||
End: C2017-031: SQL to allow copy/replace enhanced step
|
||||
@@ -24040,8 +24072,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '09/26/2024 11:24'
|
||||
set @RevDescription = 'SQL to allow copy/replace enhanced step.'
|
||||
set @RevDate = '10/03/2024 11:24'
|
||||
set @RevDescription = 'Add the ability for PROMS to remember the procedure tabs that were open when you closed PROMS'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
@@ -1676,23 +1676,25 @@ namespace VEPROMS
|
||||
{
|
||||
// B2018-091 Allow PROMS to close if only MSWord sections have been opened.
|
||||
// B2019-071 we will now close one or all of the tabs (even step editor ones)
|
||||
|
||||
string DisplayTabID = "";
|
||||
int pos;
|
||||
int TabItemID;
|
||||
string DisplayTabName = "";
|
||||
int cnt = 0;
|
||||
// Deactivate previous procedure tab state by user
|
||||
VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
|
||||
// Save current procedure tab state
|
||||
foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems)
|
||||
if (_WeAreExitingPROMS)
|
||||
{
|
||||
cnt++;
|
||||
DisplayTabID = pgTab.Key;
|
||||
TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7));
|
||||
DisplayTabName = pgTab.Value.ToString();
|
||||
//tc.SelectedDisplayTabItem.MyStepTabPanel.ToString()
|
||||
VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt);
|
||||
string DisplayTabID = "";
|
||||
int pos;
|
||||
int TabItemID;
|
||||
string DisplayTabName = "";
|
||||
int cnt = 0;
|
||||
// Deactivate previous procedure tab state by user
|
||||
VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
|
||||
// Save current procedure tab state
|
||||
foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems)
|
||||
{
|
||||
cnt++;
|
||||
DisplayTabID = pgTab.Key;
|
||||
TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7));
|
||||
DisplayTabName = pgTab.Value.ToString();
|
||||
//tc.SelectedDisplayTabItem.MyStepTabPanel.ToString()
|
||||
VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt);
|
||||
}
|
||||
}
|
||||
|
||||
int n = tc._MyDisplayTabItems.Count;
|
||||
|
Reference in New Issue
Block a user