From e024297db6123ec934a37246eb9640d898e7aa5e Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 21 Nov 2011 16:43:36 +0000 Subject: [PATCH] --- PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs | 12 +++++++++--- PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs index 3739939e..ba610e74 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs @@ -629,7 +629,9 @@ namespace VEPROMS.CSLA.Library { get { - return _Xp["SubSection", "Edit"]; + // if null - return a "Y" + string tmp = _Xp["SubSection", "Edit"]; + return tmp == null || tmp == "" ? "Y" : tmp; } set { @@ -647,7 +649,9 @@ namespace VEPROMS.CSLA.Library { get { - return _Xp["SubSection", "PH"]; + // if null - return a "Y" + string tmp = _Xp["SubSection", "PH"]; + return tmp==null||tmp==""?"Y":tmp; } set { @@ -665,7 +669,9 @@ namespace VEPROMS.CSLA.Library { get { - return _Xp["SubSection", "AutoIndent"]; + // if null - return a "Y" + string tmp = _Xp["SubSection", "AutoIndent"]; + return tmp==null||tmp==""?"Y":tmp; } set { diff --git a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs index 67bfed27..a978a932 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs @@ -116,7 +116,7 @@ namespace VEPROMS.CSLA.Library { string s = _Xp["Step", "CheckOffIndex"]; - if (s == string.Empty) return -1; + if (s == string.Empty) return 0; return int.Parse(s); }