|
|
@@ -10,6 +10,7 @@ using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using System.Windows;
|
|
|
using System.Windows.Forms;
|
|
|
+using System.Xml;
|
|
|
using static OTSDataType.otsdataconst;
|
|
|
|
|
|
namespace OTSModelSharp
|
|
|
@@ -61,7 +62,13 @@ namespace OTSModelSharp
|
|
|
|
|
|
CSQLiteDB m_generalInfoTable;
|
|
|
|
|
|
- // OTSControl.OTSController control = new OTSControl.OTSController();
|
|
|
+ // OTSControl.OTSController control = new OTSControl.OTSController();
|
|
|
+
|
|
|
+ // project file mark
|
|
|
+ public const int PROJ_MGR_FILE_MARK = 'P' + 'R' + 'O' + 'J' + 'E' + 'T' + 'M' + 'A' + 'N' + 'A' + 'G' + 'E' + 'R';
|
|
|
+
|
|
|
+ // project file version string
|
|
|
+ public const String PROJ_MGR_FILE_VERSION = "1.1.1";
|
|
|
|
|
|
|
|
|
public COTSProjMgrFile()
|
|
|
@@ -1803,21 +1810,74 @@ namespace OTSModelSharp
|
|
|
|
|
|
public void SetDefaultParameters(COTSGeneralParameters val) { m_DefaultParameters = val; }
|
|
|
|
|
|
- //合并后新添加的需要的方法
|
|
|
-
|
|
|
-
|
|
|
- public bool SetImageScanParam(COTSGeneralParameters ImageScan) { return false; }
|
|
|
+ public void Serialize(bool isStoring, XmlDocument classDoc, XmlNode rootNode)
|
|
|
+ {
|
|
|
|
|
|
-
|
|
|
+ //xmls::xInt xProjMgrFileMark;
|
|
|
+ //xmls::xString xProjMgrFileVersion;
|
|
|
+ //xmls::xString xstrPathName;
|
|
|
+ //xmls::Collection<CHoleBSEImg> xholeBSEImgs;
|
|
|
+ //xmls::Collection<COTSSample> xsamples;
|
|
|
+ //xmls::Slo slo;
|
|
|
+
|
|
|
+ xInt xProjMgrFileMark = new xInt();
|
|
|
+ xString xProjMgrFileVersion = new xString();
|
|
|
+ xString xstrPathName = new xString();
|
|
|
+ Collection<CHoleBSEImg> xholeBSEImgs = new Collection<CHoleBSEImg>();
|
|
|
+ Collection<COTSSample> xsamples = new Collection<COTSSample>();
|
|
|
+ Collection<CSEMStageData> m_pSEMStageData = new Collection<CSEMStageData>();
|
|
|
+ Collection<CStage> m_pStage = new Collection<CStage>();
|
|
|
+ Slo slo = new Slo();
|
|
|
+ slo.Register("ProjMgrFileMark", xProjMgrFileMark);
|
|
|
+ slo.Register("ProjMgrFileVersion", xProjMgrFileVersion);
|
|
|
+ slo.Register("strPathName", xstrPathName);
|
|
|
+ slo.Register("SEMStageData", m_pSEMStageData);
|
|
|
+ slo.Register("Stage", m_pStage);
|
|
|
+ slo.Register("HoleBSEImg", xholeBSEImgs);
|
|
|
+ slo.Register("Samples", xsamples);
|
|
|
+
|
|
|
+ if (isStoring)
|
|
|
+ {
|
|
|
+ xProjMgrFileMark.AssignValue(PROJ_MGR_FILE_MARK);
|
|
|
+ xProjMgrFileVersion.AssignValue(PROJ_MGR_FILE_VERSION);
|
|
|
+ xstrPathName.AssignValue(m_strPathName);
|
|
|
+ xholeBSEImgs.Clear();
|
|
|
+ foreach (var hole in m_listHoleBSEImg)
|
|
|
+ {
|
|
|
+ xholeBSEImgs.addItem(hole);
|
|
|
+ }
|
|
|
+ xsamples.Clear();
|
|
|
+ foreach (var sample in m_listSamples)
|
|
|
+ {
|
|
|
+ xsamples.addItem(sample);
|
|
|
+ }
|
|
|
+ slo.Serialize(true, classDoc, rootNode);
|
|
|
|
|
|
-
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ slo.Serialize(false, classDoc, rootNode);
|
|
|
+ m_strPathName = xstrPathName.value().ToString();
|
|
|
+ m_listHoleBSEImg.Clear();
|
|
|
+ for (uint i = 0; i < xholeBSEImgs.size(); i++)
|
|
|
+ {
|
|
|
+ m_listHoleBSEImg.Add(xholeBSEImgs.getItem((int)i));
|
|
|
+ }
|
|
|
+ m_listSamples.Clear();
|
|
|
+ for (int i = 0; i < (int)xsamples.size(); i++)
|
|
|
+ {
|
|
|
+ m_listSamples.Add(xsamples.getItem(i));
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
- public COTSImgScanPrm GetImageScanParam() { return null; }
|
|
|
+ }
|
|
|
|
|
|
+ //合并后新添加的需要的方法
|
|
|
|
|
|
+ public bool SetImageScanParam(COTSGeneralParameters ImageScan) { return false; }
|
|
|
|
|
|
+ public COTSImgScanPrm GetImageScanParam() { return null; }
|
|
|
|
|
|
}
|
|
|
}
|