做过创智医保的朋友,求教大神
long gl_pinterface = ybUtil.newinterfacewithinit(ls_server, ll_port, ls_servlet);
String ls_func_id = “BIZC110122”; // 功能号
ll_return = ybUtil.start(gl_pinterface, ls_func_id);
ybUtil.putcol(gl_pinterface, "oper_centerid", zxbm);// 医院中心编号
ybUtil.putcol(gl_pinterface, "oper_hospitalid", ybUser); // 操作编号
ybUtil.putcol(gl_pinterface, "oper_staffid", "");// 操作员工号
// 设置参数
ybUtil.putcol(gl_pinterface, "center_id", "");// 中心编码
ll_return = ybUtil.run(gl_pinterface);
if (ll_return < 0) {
ybUtil.getmessage(gl_pinterface, ls_p);
dataJson.put("data", "");
dataJson.put("msg", "获取中心药品目录下载失败,医保中心返回原因:" + ls_p.toString());
dataJson.put("error", -1);
} else {
StringBuilder ybbm = new StringBuilder(30); // 医保编码
StringBuilder spm = new StringBuilder(30); // 药品商品名
StringBuilder jxm = new StringBuilder(30); // 剂型码 ypjxbmb对照
StringBuilder flm = new StringBuilder(30); // 药品分类码 flbmb对照
StringBuilder ypgg = new StringBuilder(30); // 药品规格
StringBuilder pym = new StringBuilder(30); // 拼音码
StringBuilder wbm = new StringBuilder(30); // 五笔码
int result = ybUtil.setresultset(gl_pinterface, "Info11");
if (result > 0) {
do {
ybUtil.getbyname(gl_pinterface, "medi_code", ybbm); // 中心药品代码
ybUtil.getbyname(gl_pinterface, "medi_name", spm); // 中心药品名称
ybUtil.getbyname(gl_pinterface, "model", jxm); // 中心药品剂型
ybUtil.getbyname(gl_pinterface, "medi_item_type", flm); // 药品类别
ybUtil.getbyname(gl_pinterface, "standard", ypgg);// 药品规格
ybUtil.getbyname(gl_pinterface, "CODE_PY", pym); // 拼音码
ybUtil.getbyname(gl_pinterface, "CODE_WB", wbm); // 五笔码
} while (ybUtil.nextrow(gl_pinterface) > 0);
dataJson.put("data", "");
dataJson.put("msg", "医保中心药品库下载成功,共下载【" + result + "】条信息!");
dataJson.put("error", 0);
} else {
dataJson.put("data", "");
dataJson.put("msg", "获取中心药品目录下载失败,医保中心返回原因:" + ls_p.toString());
ybUtil.getmessage(gl_pinterface, ls_p);
dataJson.put("error", -1);
}
这样写可以吗?
前台是用jsp写的
还有java用jnative调用c++的dll中void* 在java中怎么写
给的文档只有delphi 还有vb调用例子