From 637cbd9954bd615fc03deefaefbd7dc4005e283f Mon Sep 17 00:00:00 2001 From: mschill Date: Thu, 8 May 2025 10:18:50 -0400 Subject: [PATCH] C2025-023 Electronic Procedures - Modifications to PROMS (Phase 1) RO/table entry - Dev Testing related changes --- PROMS/Formats/epall/EPFormatTST1.xml | Bin 2952 -> 3266 bytes .../Format/EPFormatFile.cs | 6 +++++- .../frmEPAnnotationDetails.cs | 20 +++++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/PROMS/Formats/epall/EPFormatTST1.xml b/PROMS/Formats/epall/EPFormatTST1.xml index cd99e3c7034a73022cec70157ef5de85e9c9a58b..ac38208e776a535ad21e20d7868c0df4bcfe85ba 100644 GIT binary patch delta 58 zcmeAWKP0(f5+i30Ln1>GLn=eg=9!E)IVUSHEAR#bxycMA44Dl140)4Xx$GxvaSAY+ NPEKSNoqUFC4*=d{5DWkS delta 20 ccmX>k*&)7R6653yW}eLp7_V?nUc(~>08y_8S^xk5 diff --git a/PROMS/VEPROMS.CSLA.Library/Format/EPFormatFile.cs b/PROMS/VEPROMS.CSLA.Library/Format/EPFormatFile.cs index 456f043d..0d2253d2 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/EPFormatFile.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/EPFormatFile.cs @@ -288,7 +288,11 @@ namespace VEPROMS.CSLA.Library try { string tmp = LazyLoad(ref _returncols, "@returncols"); - return tmp.Split(',').Select(p => p.Trim()).ToList(); + + if (string.IsNullOrEmpty(tmp)) + return new List(); + else + return tmp.Split(',').Select(p => p.Trim()).ToList(); } catch { diff --git a/PROMS/Volian.Controls.Library/frmEPAnnotationDetails.cs b/PROMS/Volian.Controls.Library/frmEPAnnotationDetails.cs index 540eb713..8017d256 100644 --- a/PROMS/Volian.Controls.Library/frmEPAnnotationDetails.cs +++ b/PROMS/Volian.Controls.Library/frmEPAnnotationDetails.cs @@ -47,7 +47,7 @@ namespace Volian.Controls.Library myEPFields = _CurrentAnnotation.MyItem.GetValidEPFields(_CurrentAnnotation.TypeID); MyConfig = new AnnotationConfig(currAnn.Config); - int MaxCharsInLabel = myEPFields.Max(x => x.label.Length); + int MaxCharsInLabel = myEPFields.Where(y => y.type.ToLower() != "tableinput").Max(x => x.label.Length); //font size 8 - make labels slightly bigger than largest label panelEP.ColumnStyles[0].SizeType = SizeType.Absolute; panelEP.ColumnStyles[0].Width = (8 * MaxCharsInLabel) + 5; @@ -59,12 +59,16 @@ namespace Volian.Controls.Library panelEP.RowCount = RowCount; panelEP.Top = 20; - Label wlbl = new Label(); - wlbl.Text = EP.label; - wlbl.Visible = true; - wlbl.TextAlign = ContentAlignment.MiddleLeft; - wlbl.Anchor = AnchorStyles.Left | AnchorStyles.Top; - panelEP.Controls.Add(wlbl, 0, panelEP.RowCount - 1); + if (EP.type.ToLower() != "tableinput") + { + Label wlbl = new Label(); + wlbl.Text = EP.label; + wlbl.Visible = true; + wlbl.TextAlign = ContentAlignment.MiddleLeft; + wlbl.Anchor = AnchorStyles.Left | AnchorStyles.Top; + wlbl.Width = (8 * MaxCharsInLabel) + 5; + panelEP.Controls.Add(wlbl, 0, panelEP.RowCount - 1); + } if (EP.type.ToLower() == "text") { @@ -163,7 +167,7 @@ namespace Volian.Controls.Library if (EP.type.ToLower() == "tableinput" && _TablePropControl == null) { string val = MyConfig.GetValue("EP", EP.name); - _TablePropControl = new TablePropertiesControl(EP.name, EP.text, val); + _TablePropControl = new TablePropertiesControl(EP.name, EP.label, val); _TablePropControl.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; panelEP.Controls.Add(_TablePropControl, 1, panelEP.RowCount - 1);