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