C2025-023 Electronic Procedures - Modifications to PROMS (Phase 1)
RO/table entry - Dev Testing related changes
This commit is contained in:
parent
e9e934cfb1
commit
637cbd9954
Binary file not shown.
@ -288,6 +288,10 @@ namespace VEPROMS.CSLA.Library
|
||||
try
|
||||
{
|
||||
string tmp = LazyLoad(ref _returncols, "@returncols");
|
||||
|
||||
if (string.IsNullOrEmpty(tmp))
|
||||
return new List<string>();
|
||||
else
|
||||
return tmp.Split(',').Select(p => p.Trim()).ToList();
|
||||
}
|
||||
catch
|
||||
|
@ -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;
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user