修改recipe默认值
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
|
||||
<Catalog DisplayName="StepInfo">
|
||||
<Group DisplayName="SH Flow->SH Total Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="1.N2/H2 Switch" UnitName="" ControlName="SHN2H2Switch.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="1.N2/H2 Switch" UnitName="" ControlName="SHN2H2Switch.SetValve" Description="">
|
||||
<Item DisplayName="N2" ControlName="N2" />
|
||||
<Item DisplayName="H2" ControlName="H2" />
|
||||
</Step>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="2. SH Total Flow" UnitName="sccm" ControlName="SHTotalFlow" InputMode="" Min="0" Max="1000000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="3. Carry Gas Flow (M40)" UnitName="sccm" ControlName="Mfc40.Ramp" InputMode="" Min="0" Max="1000000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="4. SH Total Flow Split Ratio" UnitName="" ControlName="SHTotalFlowSplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="5. Flow Set Mode" UnitName="" ControlName="FlowSetMode" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="2. SH Total Flow" UnitName="sccm" ControlName="SHTotalFlow" InputMode="" Min="0" Max="200000" Default="1000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="3. Carry Gas Flow (M40)" UnitName="sccm" ControlName="Mfc40.Ramp" InputMode="" Min="0" Max="100000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="4. SH Total Flow Split Ratio" UnitName="" ControlName="SHTotalFlowSplitRatio" Default="100:100:100"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="5. Flow Set Mode" UnitName="" ControlName="FlowSetMode" Default="Ramp" Description="">
|
||||
<Item DisplayName="Ramp" ControlName="Ramp" />
|
||||
<Item DisplayName="Jump" ControlName="Jump" />
|
||||
</Step>
|
||||
@@ -36,21 +36,21 @@
|
||||
|
||||
<Catalog DisplayName="StepInfo">
|
||||
<Group DisplayName="Temperature -> Control Mode">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="8. PSU Control Mode" UnitName="" ControlName="TC1.SetHeaterMode" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="8. PSU Control Mode" UnitName="" ControlName="TC1.SetHeaterMode" Default="Power" Description="">
|
||||
<Item DisplayName="Power" ControlName="Power" />
|
||||
<Item DisplayName="Follow" ControlName="PyroFollow" />
|
||||
<Item DisplayName="Auto" ControlName="PyroAuto" />
|
||||
</Step>
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="9. PSU Set Mode" UnitName="" ControlName="SusHeaterSetMode" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="9. PSU Set Mode" UnitName="" ControlName="SusHeaterSetMode" Default="Ramp" Description="">
|
||||
<Item DisplayName="Ramp" ControlName="Ramp" />
|
||||
<Item DisplayName="Jump" ControlName="Jump" />
|
||||
</Step>
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="10. SCR Control Mode" UnitName="" ControlName="TC2.SetHeaterMode2" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="10. SCR Control Mode" UnitName="" ControlName="TC2.SetHeaterMode2" Default="Power" Description="">
|
||||
<Item DisplayName="Power" ControlName="Power" />
|
||||
<Item DisplayName="Follow" ControlName="PyroFollow" />
|
||||
<Item DisplayName="Auto" ControlName="PyroAuto" />
|
||||
</Step>
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="11. SCR Set Mode" UnitName="" ControlName="WWHeaterSetMode" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="ReadOnlySelection" DisplayName="11. SCR Set Mode" UnitName="" ControlName="WWHeaterSetMode" Default="Ramp" Description="">
|
||||
<Item DisplayName="Ramp" ControlName="Ramp" />
|
||||
<Item DisplayName="Jump" ControlName="Jump" />
|
||||
</Step>
|
||||
@@ -79,11 +79,11 @@
|
||||
<Catalog DisplayName="StepInfo">
|
||||
|
||||
<Group DisplayName="SH Flow->Source1->Source1 Total Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="22. Source1 Total Flow" UnitName="sccm" ControlName="Source1TotalFlow" InputMode="" Min="0" Max="10000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="22. Source1 Total Flow" UnitName="sccm" ControlName="Source1TotalFlow" InputMode="" Min="0" Max="200000" Default="1000" Description=""/>
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source1->Mo(CO)6 Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="23. Mo(CO)6 Flow Mode" UnitName="" ControlName="MoCO6Flow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="23. Mo(CO)6 Flow Mode" UnitName="" ControlName="MoCO6Flow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -94,7 +94,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source1->Mo(Reserve) Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="27. Mo Flow Mode" UnitName="" ControlName="MoFlow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="27. Mo Flow Mode" UnitName="" ControlName="MoFlow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -105,7 +105,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source1->W(CO)6 Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="31. W(CO)6 Flow Mode" UnitName="" ControlName="WCO6Flow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="31. W(CO)6 Flow Mode" UnitName="" ControlName="WCO6Flow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -116,7 +116,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source1->Source1 Split">
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="35. Source Split Ratio" UnitName="" ControlName="Source1SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="35. Source Split Ratio" UnitName="" Default="100:100:100" ControlName="Source1SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="36. Source1 Push Pressure (PC5)" UnitName="mbar" ControlName="Pressure5.Ramp" InputMode="" Min="0" Max="3000" Description="PC5"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="37. Source1 Inner Flow (M20)" UnitName="sccm" ControlName="Mfc20.Ramp" InputMode="" Min="0" Max="5000" IsColumnEditable="false" Description="M20"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="38. Source1 Middle Flow (M19)" UnitName="sccm" ControlName="Mfc19.Ramp" InputMode="" Min="0" Max="10000" IsColumnEditable="false" Description="M19"/>
|
||||
@@ -124,11 +124,11 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source2->Source2 Total Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="40. Source2 Total Flow" UnitName="sccm" ControlName="Source2TotalFlow" InputMode="" Min="0" Max="200000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="40. Source2 Total Flow" UnitName="sccm" ControlName="Source2TotalFlow" InputMode="" Min="0" Max="200000" Default="1000" Description=""/>
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source2->CS2 Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="41. CS2 Flow Mode" UnitName="" ControlName="CS2Flow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="41. CS2 Flow Mode" UnitName="" ControlName="CS2Flow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -139,7 +139,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source2->H2S Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="45. H2S Flow Mode" UnitName="" ControlName="H2SFlow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="45. H2S Flow Mode" UnitName="" ControlName="H2SFlow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -148,7 +148,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source2->H2Se Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="47. H2Se Flow Mode" UnitName="" ControlName="H2SeFlow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="47. H2Se Flow Mode" UnitName="" ControlName="H2SeFlow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -157,7 +157,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source2->Source2 Split">
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="49. Source2 Split Ratio" UnitName="" ControlName="Source2SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="49. Source2 Split Ratio" UnitName="" Default="100:100:100" ControlName="Source2SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="50. Source2 Push Pressure (PC6)" UnitName="mbar" ControlName="Pressure6.Ramp" InputMode="" Min="0" Max="3000" Description="PC6"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="51. Source2 Inner Flow (M23)" UnitName="sccm" ControlName="Mfc23.Ramp" InputMode="" Min="0" Max="5000" IsColumnEditable="false" Description="M23"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="52. Source2 Middle Flow (M22)" UnitName="sccm" ControlName="Mfc22.Ramp" InputMode="" Min="0" Max="10000" IsColumnEditable="false" Description="M22"/>
|
||||
@@ -165,16 +165,16 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source3->Source3 Total Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="54. Source3 Total Flow" UnitName="sccm" ControlName="Source3TotalFlow" InputMode="" Min="0" Max="1000000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="54. Source3 Total Flow" UnitName="sccm" ControlName="Source3TotalFlow" InputMode="" Min="0" Max="1000000" Default="1000" Description=""/>
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source3->O2 Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="55. O2 Flow Mode" UnitName="" ControlName="O2Flow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="55. O2 Flow Mode" UnitName="" ControlName="O2Flow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
</Step>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="56. O2 Acutal Flow" UnitName="sccm" ControlName="O2ActualFlow" InputMode="" Min="0" Max="1000000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="56. O2 Acutal Flow" UnitName="sccm" ControlName="O2ActualFlow" InputMode="" Min="0" Max="1000000" Default="1000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="57. O2 Flow(M4)" UnitName="sccm" ControlName="Mfc4.Ramp" InputMode="" Min="0" Max="100" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="58. Dilut Flow For Doping(M3)" UnitName="sccm" ControlName="Mfc3.Ramp" InputMode="" Min="0" Max="10000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="59. Diluted O2 Flow(M6)" UnitName="sccm" ControlName="Mfc6.Ramp" InputMode="" Min="0" Max="1000" IsColumnEditable="false" Description=""/>
|
||||
@@ -182,7 +182,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source3->SO2 Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="61. SO2 Flow Mode" UnitName="" ControlName="SO2Flow.SetValve" Description="">
|
||||
<Step ModuleName="" DeviceType="" InputType="FlowModeSelection" DisplayName="61. SO2 Flow Mode" UnitName="" ControlName="SO2Flow.SetValve" Default="Purge" Description="">
|
||||
<Item DisplayName="Purge" ControlName="Purge" />
|
||||
<Item DisplayName="Vent" ControlName="Vent" />
|
||||
<Item DisplayName="Run" ControlName="Run" />
|
||||
@@ -191,7 +191,7 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="SH Flow->Source3->Source3 Split">
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="63. Source3 Split Ratio" UnitName="" ControlName="Source3SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="Set3RatioInput" DisplayName="63. Source3 Split Ratio" UnitName="" Default="100:100:100" ControlName="Source3SplitRatio"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="64. Source3 Push Pressure (PC7)" UnitName="mbar" ControlName="Pressure7.Ramp" InputMode="" Min="0" Max="3000" Description="PC7"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="65. Source3 Inner Flow (M26)" UnitName="sccm" ControlName="Mfc26.Ramp" InputMode="" Min="0" Max="5000" IsColumnEditable="false" Description="M26"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="66. Source3 Middle Flow (M25)" UnitName="sccm" ControlName="Mfc25.Ramp" InputMode="" Min="0" Max="10000" IsColumnEditable="false" Description="M25"/>
|
||||
@@ -216,15 +216,15 @@
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="Purge->Chamber Periphery Purge">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="77. GasRing Purge Flow (M32)" UnitName="sccm" ControlName="Mfc32.Ramp" InputMode="" Min="0" Max="1000000" Description="M32.GasRingPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="78. Chamber Purge Flow (M35)" UnitName="sccm" ControlName="Mfc35.Ramp" InputMode="" Min="0" Max="1000000" Description="M35.ChamberPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="79. Rotation-Up Purge Flow (M36)" UnitName="sccm" ControlName="Mfc36.Ramp" InputMode="" Min="0" Max="15000" Description="M36.Rotation-upPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="77. GasRing Purge Flow (M32)" UnitName="sccm" ControlName="Mfc32.Ramp" InputMode="" Min="0" Max="20000" Description="M32.GasRingPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="78. Chamber Purge Flow (M35)" UnitName="sccm" ControlName="Mfc35.Ramp" InputMode="" Min="0" Max="30000" Description="M35.ChamberPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="79. Rotation-Up Purge Flow (M36)" UnitName="sccm" ControlName="Mfc36.Ramp" InputMode="" Min="0" Max="30000" Description="M36.Rotation-upPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="80. Shutter Purge Flow (M37)" UnitName="sccm" ControlName="Mfc37.Ramp" InputMode="" Min="0" Max="20000" Description="M37.ShutterPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="81. Heater-WF Purge Flow (M38)" UnitName="sccm" ControlName="Mfc38.Ramp" InputMode="" Min="0" Max="30000" Description="M38.Heater-WFPurgeFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="81. Heater-WF Purge Flow (M38)" UnitName="sccm" ControlName="Mfc38.Ramp" InputMode="" Min="0" Max="20000" Description="M38.Heater-WFPurgeFlow"/>
|
||||
</Group>
|
||||
|
||||
<Group DisplayName="Purge->Vent Flow">
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="82. Total Vent Flow" UnitName="sccm" ControlName="TotalVentFlow" InputMode="" Min="0" Max="1000000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="82. Total Vent Flow" UnitName="sccm" ControlName="TotalVentFlow" InputMode="" Min="0" Max="1000000" Default="1000" Description=""/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="83. Vent Push Flow (M1)" UnitName="sccm" ControlName="Mfc1.Ramp" InputMode="" Min="0" Max="10000" Description="M1.VentPushFlow"/>
|
||||
<Step ModuleName="" DeviceType="" InputType="DoubleInput" DisplayName="84. Vent Pre-Exhaust Pressure (PC4)" UnitName="mbar" ControlName="Pressure4.Ramp" InputMode="" Min="0" Max="3000" Description="PC4.VentPre-ExhaustPres"/>
|
||||
</Group>
|
||||
|
||||
+86
-66
@@ -46,6 +46,9 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
private const string NAME_ATTR_DISPLAY_NAME = "DisplayName";
|
||||
private const string NAME_ATTR_UNIT_NAME = "UnitName";
|
||||
private const string NAME_ATTR_DESC = "Description";
|
||||
private const string NAME_ATTR_DEFAULT = "Default";
|
||||
private const string NAME_ATTR_MAX = "Max";
|
||||
private const string NAME_ATTR_MIN = "Min";
|
||||
|
||||
private const string PATH_GROUP = $"{NAME_NODE_TABLE_RECIPE_FORMAT}/{NAME_NODE_CATALOG}/{NAME_NODE_GROUP}";
|
||||
|
||||
@@ -234,6 +237,15 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public double GetDoubleValueByName(string name)
|
||||
{
|
||||
if (double.TryParse(name, out var d))
|
||||
{
|
||||
return d;
|
||||
}
|
||||
else return 0;
|
||||
}
|
||||
|
||||
public double GetDoubleValueByName(string module, string name)
|
||||
{
|
||||
var value = SystemConfigProvider.Instance.GetValueByName(module, name);
|
||||
@@ -483,7 +495,10 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
IsEnable = defaultCellEnable,
|
||||
MaxSets = 3
|
||||
};
|
||||
|
||||
if (step.Attributes[NAME_ATTR_DEFAULT] != null)
|
||||
{
|
||||
col.Default = step.Attributes[NAME_ATTR_DEFAULT].Value;
|
||||
}
|
||||
break;
|
||||
|
||||
case "TextInput":
|
||||
@@ -551,29 +566,22 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
break;
|
||||
|
||||
case "DoubleInput":
|
||||
//MFC和PC的最大值读取MFC的设定
|
||||
var displayText = new Regex(@"\(M\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)
|
||||
.Value;
|
||||
var maxConfig =
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Max";
|
||||
var minConfig =
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Min";
|
||||
var displayText = new Regex(@"\(M\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value).Value;
|
||||
var defaultConfig = "";
|
||||
if (displayText.Contains("M"))
|
||||
{
|
||||
maxConfig =
|
||||
$"PM.{module}.MFC.Mfc{displayText.Replace("(M", "").Replace(")", "")}.N2Scale";
|
||||
defaultConfig =
|
||||
$"PM.{module}.MFC.Mfc{displayText.Replace("(M", "").Replace(")", "")}.DefaultSetPoint";
|
||||
}
|
||||
else
|
||||
{
|
||||
displayText = new Regex(@"\(PC\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)
|
||||
.Value;
|
||||
displayText = new Regex(@"\(PC\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value).Value;
|
||||
if (displayText.Contains("PC"))
|
||||
{
|
||||
maxConfig =
|
||||
$"PM.{module}.PC.PC{displayText.Replace("(PC", "").Replace(")", "")}.Scale";
|
||||
defaultConfig =
|
||||
$"PM.{module}.PC.PC{displayText.Replace("(PC", "").Replace(")", "")}.DefaultSetPoint";
|
||||
}
|
||||
}
|
||||
|
||||
col = new DoubleColumn()
|
||||
{
|
||||
ModuleName = step.Attributes[NAME_ATTR_MODULE_NAME].Value,
|
||||
@@ -581,10 +589,8 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
DisplayName = step.Attributes[NAME_ATTR_DISPLAY_NAME].Value,
|
||||
UnitName = step.Attributes[NAME_ATTR_UNIT_NAME].Value,
|
||||
InputMode = step.Attributes["InputMode"].Value,
|
||||
Maximun = GetDoubleValueByName("PM", maxConfig),
|
||||
Minimun = GetDoubleValueByName("PM", minConfig),
|
||||
Default = GetStringValueByName("PM",
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Default"),
|
||||
Maximun = GetDoubleValueByName(step.Attributes[NAME_ATTR_MAX].Value),
|
||||
Minimun = GetDoubleValueByName(step.Attributes[NAME_ATTR_MIN].Value),
|
||||
StringCellTemplate = "CellTemplateDisplay",
|
||||
StringCellEditingTemplate = "CellTemplateNumber",
|
||||
StringHeaderTemplate = "ColumnHeaderTemplateCommon",
|
||||
@@ -594,13 +600,23 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
Convert.ToBoolean(step.Attributes["EnableTolerance"].Value),
|
||||
IsEnable = defaultCellEnable,
|
||||
};
|
||||
|
||||
//strAbc此函数去除了括号及括号中的内容,所以在此处重新赋值,保留括号及其内容*********************
|
||||
if (displayText.Contains("M")|| displayText.Contains("PC"))
|
||||
if (defaultConfig != "")
|
||||
{
|
||||
col.Default = GetStringValueByName("PM",
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value, false)}.Default");
|
||||
col.Default = GetStringValueByName("PM", defaultConfig);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (step.Attributes[NAME_ATTR_DEFAULT]!=null)
|
||||
{
|
||||
col.Default = GetDoubleValueByName(step.Attributes[NAME_ATTR_DEFAULT].Value).ToString();
|
||||
}
|
||||
}
|
||||
//strAbc此函数去除了括号及括号中的内容,所以在此处重新赋值,保留括号及其内容*********************
|
||||
//if (displayText.Contains("M")|| displayText.Contains("PC"))
|
||||
//{
|
||||
// col.Default = GetStringValueByName("PM",
|
||||
// $"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value, false)}.Default");
|
||||
//}
|
||||
//******************************************************************************************
|
||||
|
||||
|
||||
@@ -610,49 +626,49 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
}
|
||||
break;
|
||||
|
||||
case "DoubleTextInput":
|
||||
//MFC和 PC 的最大值读取MFC的设定
|
||||
displayText = new Regex(@"\(M\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value).Value;
|
||||
maxConfig =
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Max";
|
||||
minConfig =
|
||||
$"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Min";
|
||||
if (displayText.Contains("M"))
|
||||
{
|
||||
maxConfig =
|
||||
$"PM.{module}.MFC.Mfc{displayText.Replace("(M", "").Replace(")", "")}.N2Scale";
|
||||
}
|
||||
else
|
||||
{
|
||||
displayText = new Regex(@"\(PC\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)
|
||||
.Value;
|
||||
if (displayText.Contains("PC"))
|
||||
{
|
||||
maxConfig =
|
||||
$"PM.{module}.PC.PC{displayText.Replace("(PC", "").Replace(")", "")}.Scale";
|
||||
}
|
||||
}
|
||||
//case "DoubleTextInput":
|
||||
// //MFC和 PC 的最大值读取MFC的设定
|
||||
// displayText = new Regex(@"\(M\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value).Value;
|
||||
// maxConfig =
|
||||
// $"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Max";
|
||||
// minConfig =
|
||||
// $"PM.RecipeConfig.{strAbc(node.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.{strAbc(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)}.Min";
|
||||
// if (displayText.Contains("M"))
|
||||
// {
|
||||
// maxConfig =
|
||||
// $"PM.{module}.MFC.Mfc{displayText.Replace("(M", "").Replace(")", "")}.N2Scale";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// displayText = new Regex(@"\(PC\d+\)").Match(step.Attributes[NAME_ATTR_DISPLAY_NAME].Value)
|
||||
// .Value;
|
||||
// if (displayText.Contains("PC"))
|
||||
// {
|
||||
// maxConfig =
|
||||
// $"PM.{module}.PC.PC{displayText.Replace("(PC", "").Replace(")", "")}.Scale";
|
||||
// }
|
||||
// }
|
||||
|
||||
col = new DoubleColumn()
|
||||
{
|
||||
ModuleName = step.Attributes[NAME_ATTR_MODULE_NAME].Value,
|
||||
ControlName = step.Attributes[NAME_ATTR_CONTROL_NAME].Value,
|
||||
DisplayName = step.Attributes[NAME_ATTR_DISPLAY_NAME].Value,
|
||||
UnitName = step.Attributes[NAME_ATTR_UNIT_NAME].Value,
|
||||
InputMode = step.Attributes["InputMode"].Value,
|
||||
Minimun = GetDoubleValueByName("PM", minConfig),
|
||||
Maximun = GetDoubleValueByName("PM", maxConfig),
|
||||
Default = "Hold",
|
||||
StringCellTemplate = "CellTemplateDisplay",
|
||||
StringCellEditingTemplate = "CellTemplateNumberText",
|
||||
StringHeaderTemplate = "ColumnHeaderTemplateCommon",
|
||||
EnableConfig = step.Attributes["EnableConfig"] != null &&
|
||||
Convert.ToBoolean(step.Attributes["EnableConfig"].Value),
|
||||
EnableTolerance = step.Attributes["EnableTolerance"] != null &&
|
||||
Convert.ToBoolean(step.Attributes["EnableTolerance"].Value),
|
||||
IsEnable = defaultCellEnable,
|
||||
};
|
||||
break;
|
||||
// col = new DoubleColumn()
|
||||
// {
|
||||
// ModuleName = step.Attributes[NAME_ATTR_MODULE_NAME].Value,
|
||||
// ControlName = step.Attributes[NAME_ATTR_CONTROL_NAME].Value,
|
||||
// DisplayName = step.Attributes[NAME_ATTR_DISPLAY_NAME].Value,
|
||||
// UnitName = step.Attributes[NAME_ATTR_UNIT_NAME].Value,
|
||||
// InputMode = step.Attributes["InputMode"].Value,
|
||||
// Minimun = GetDoubleValueByName("PM", minConfig),
|
||||
// Maximun = GetDoubleValueByName("PM", maxConfig),
|
||||
// Default = "Hold",
|
||||
// StringCellTemplate = "CellTemplateDisplay",
|
||||
// StringCellEditingTemplate = "CellTemplateNumberText",
|
||||
// StringHeaderTemplate = "ColumnHeaderTemplateCommon",
|
||||
// EnableConfig = step.Attributes["EnableConfig"] != null &&
|
||||
// Convert.ToBoolean(step.Attributes["EnableConfig"].Value),
|
||||
// EnableTolerance = step.Attributes["EnableTolerance"] != null &&
|
||||
// Convert.ToBoolean(step.Attributes["EnableTolerance"].Value),
|
||||
// IsEnable = defaultCellEnable,
|
||||
// };
|
||||
// break;
|
||||
|
||||
case "EditableSelection":
|
||||
case "ReadOnlySelection":
|
||||
@@ -678,6 +694,10 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
|
||||
|
||||
|
||||
};
|
||||
if (step.Attributes[NAME_ATTR_DEFAULT] != null)
|
||||
{
|
||||
col.Default = step.Attributes[NAME_ATTR_DEFAULT].Value;
|
||||
}
|
||||
var items = step.SelectNodes("Item");
|
||||
foreach (XmlNode item in items)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user