这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
faq:license2-description [2018/03/07 02:51] admin [格式变化] |
faq:license2-description [2018/03/07 03:04] (当前版本) admin [ERP如何从新License中读取到旧的License?] |
||
---|---|---|---|
行 17: | 行 17: | ||
===== ERP如何从新License中读取到旧的License? ===== | ===== ERP如何从新License中读取到旧的License? ===== | ||
- | - 从WebConfig的AppSettings节点中读取到属性ERP-License-ProductVersion的值。 | + | 1、从WebConfig的AppSettings节点中读取到属性ERP-License-ProductVersion的值。 |
- | 参考代码: | + | |
+ | <code> | ||
System.Configuration.ConfigurationManager.AppSettings["ERP-License-ProductVersion"] | System.Configuration.ConfigurationManager.AppSettings["ERP-License-ProductVersion"] | ||
- | - 在XML中使用XPath检索 | + | </code> |
- | 参考代码 | + | |
+ | 2、在XML中使用XPath检索 | ||
+ | |||
+ | <code> | ||
xmlDocument.SelectSingleNode("/licenseArray/licenses/license[@productVersion=\"" + ProductVersion + "\"]") | xmlDocument.SelectSingleNode("/licenseArray/licenses/license[@productVersion=\"" + ProductVersion + "\"]") | ||
- | - 上述节点的查询结果的OuterXml就是旧License的内容. | + | </code> |
+ | |||
+ | 3、上述节点的查询结果的OuterXml就是旧License的内容. | ||
===== 核心ERP的调整 ===== | ===== 核心ERP的调整 ===== |