Guest User

Untitled

a guest
Nov 25th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. public ZkemSDK(){
  2.  
  3. zkem = new ActiveXComponent("zkemkeeper.ZKEM.1");
  4. System.out.println("done ");
  5. }
  6. public boolean connect(String address,int port, int machineNum) throws Exception{
  7.  
  8. boolean result = zkem.invoke("Connect_NET",address,port).getBoolean();
  9.  
  10. public boolean SetUserInfo(int machineNum,int enrollNo2,String userName,String password,int privelage ,boolean flag) {
  11.  
  12. Variant dwUserName = new Variant(userName,true);
  13. Variant dwPassword = new Variant(password,true);
  14. Variant dwPrivelage = new Variant(privelage,true);
  15. Variant dwEnrollNo = new Variant(enrollNo2,true);
  16. Variant dwMachineNum= new Variant(machineNum,true);
  17.  
  18. /****/
  19.  
  20. zkem.setProperty("CardNumber[0]",454545);
  21.  
  22. Variant vResult = Dispatch.call(zkem,"SetUserInfo",dwMachineNum, dwEnrollNo, dwUserName, dwPassword, dwPrivelage,true);
  23.  
  24.  
  25. return true;
  26. }
Add Comment
Please, Sign In to add comment