|
@@ -99,7 +99,15 @@ namespace OTSMeasureApp
|
|
|
IDC_COMBO_STDSelect.Items.Clear();
|
|
|
|
|
|
string STDLibFolderName = m_cgenparam.GetPartSTDLibFolderName();
|
|
|
- string[] files = System.IO.Directory.GetFiles(STDLibFolderName, "*.db");
|
|
|
+ if (m_cotsprogmgrparamfile.GetSysType() == "IncA")
|
|
|
+ {
|
|
|
+ STDLibFolderName += "IncA\\";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ STDLibFolderName += "Cleanliness\\";
|
|
|
+ }
|
|
|
+ //string[] files = System.IO.Directory.GetFiles(STDLibFolderName, "*.db");
|
|
|
System.IO.DirectoryInfo folder = new System.IO.DirectoryInfo(STDLibFolderName);
|
|
|
foreach (System.IO.FileInfo file in folder.GetFiles("*.db"))
|
|
|
{
|
|
@@ -982,13 +990,20 @@ namespace OTSMeasureApp
|
|
|
#region 各按钮控件点击事件
|
|
|
private void IDC_BUTTON_KLFX_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
try
|
|
|
{
|
|
|
if (IDC_COMBO_STDSelect.Text != "NoSTDDB")
|
|
|
{
|
|
|
- Process p = System.Diagnostics.Process.Start(".\\OTSPartA_STDEditor.exe", Application.StartupPath + "\\Config\\SysData\\" + IDC_COMBO_STDSelect.Text);
|
|
|
+ string Currentpath = "\\Config\\SysData\\";
|
|
|
+ if (m_cotsprogmgrparamfile.GetSysType() == "IncA")
|
|
|
+ {
|
|
|
+ Currentpath += "IncA\\";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Currentpath += "Cleanliness\\";
|
|
|
+ }
|
|
|
+ Process p = System.Diagnostics.Process.Start(".\\OTSPartA_STDEditor.exe", Application.StartupPath + Currentpath + IDC_COMBO_STDSelect.Text + ".db");
|
|
|
p.WaitForExit();
|
|
|
}
|
|
|
else
|