module ecplise
模块classes 文件放在public(接口)
META-INF\classes private(实现类)
client client
模块结构 public对的是class lib ,private 对的是META-INF , client对的是client
nchome中 modules是存放模块的,ierp/bin/prop.xml (存放数据源配置) 和account.xml(存放账套配置)
如果是新开发的模块放在lib中。
二次开放的模块放入class中,nc的运行逻辑是先运行class后运行lib中的
在安装软件的时候安装相当于解压的过程,在进入管理系统中进行安装 账套或者升级账套是执行sql脚本
select * from SM_FUNCREGISTER where isbuttonpower='Y'--控制按钮的可见性
.NC中所有单据的增删改查都在nc.jdbc.framework.JdbcPersistenceManager这个类中完成。
convertToJavaBean xml 转换成JavaBean
JaxbUtil.convertToXml(aggBean); JavaBean转换成xml
converXMLAndSynEb 封装Eb xml及发送请求数据
synSupplier(String ebXml, StringBuffer exeInf) 同步电商的供应商或者分包商
//nc中增删该查操作
IPFBusiAction ipf = (IPFBusiAction)NCLocator.getInstance().lookup(IPFBusiAction.class);
AggPayBillVO[] processAction = (AggPayBillVO[]) ipf.processAction("SAVE", "F3", null,aggvo, null, null);//动作,单据类型,null,vo,null,null
private BaseDAO dao;
private BaseDAO getDao() {
if (dao == null) {
dao = new BaseDAO();
}
return dao;
}
(IUAPQueryBS)NCLocator.getInstance().lookup(IUAPQueryBS.class.getName());
iUAPQueryBS. executeQuery();
BaseDAO dao=new BaseDAO();
HYPubBO_Client.insert(sysinitvo);
List<Map<String, String>> m = (List<Map<String, String>>) dao.executeQuery(sql2, new MapListProcessor());
JzbdTaxrateVO JzbdTaxrateVO = (JzbdTaxrateVO) dao.executeQuery( "select * from jzbd_taxrate where enablestate = 2 and ntaxrate='"+ntaxrate+"' and dr=0",new BeanProcessor(JzbdTaxrateVO.class));
String pk_eps = (String) dao.executeQuery(sql,new ColumnProcessor());
ProjectHeadVO[] jobbasvos = (ProjectHeadVO[]) bo.queryByCondition(ProjectHeadVO.class, "def20 = '" + contdefinevo.getPk_project() + "' and dr='0'");
ArrayList<YunDanHaoVO> ydhvolist = (ArrayList<YunDanHaoVO>) getWLDao().executeQuery(sql, new BeanListProcessor(YunDanHaoVO.class));
ChannelVO[] channelDVO = (ChannelVO[]) getDao().retrieveByClause(ChannelVO.class, "ileveltype='2' and iproducttype ='3'").toArray(new ChannelVO[0]);
getOpenService().updateVO(parentVO, new String[]{"bisopen","iinvstatus","bistransgoldtax","bisgoldopensucess","bisreport"});
ISysInitQry sysinitQry = NCLocator.getInstance().lookup(ISysInitQry.class);
StringUtils.isEmpty(contdefinevo.getContractnumber())
UFDate.getDate(organizationvo.getBusibegindate())
UFBoolean.valueOf(organizationvo.getIsseal())
new UFDateTime(new Date())
// DBTool db=new DBTool();
// Connection connection = db.getConnection();
// connection.setAutoCommit(true);