public boolean getOrder(AccountManagevo amvo) { // return false; FinancialmanService fs = new AccountIO(); try { // System.out.println("sdweretr"); if (fs.addAccount(new Accountpo(amvo))) HostLog.addMes( "新增银行账户: " + "\n" + "账户名称: " + amvo.accountName + "\n" + "初始金额: " + amvo.money + "\n"); return true; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; // TODO Auto-generated method stub // AccountManageService am=new }
@Override public boolean deleteAccount(String name) throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new AccountIO(); try { if (fs.deleteAcc(name)) { HostLog.addMes("删除账户名称为" + name + " 的银行账户" + "\n"); return true; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; }
@Override public AccountUservo findUsers(AccountMesvo qvo) throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new AccountIO(); Accountpo co; try { co = fs.find(qvo.getName()); if (co == null) return null; HostLog.addMes("查找银行账户" + "\n"); return new AccountUservo(co); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public boolean writeInitCheliang() throws RemoteException { // TODO Auto-generated method stub try { BusinessHall fs = new BusinessHall(); CarMespo[] ap; ap = fs.AllSearch(); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitCheliang(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初车辆信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }
@Override public boolean writeInitKucun() throws RemoteException { // TODO Auto-generated method stub try { Storing fs = new Storing(); Warningpo[] ap; ap = fs.AllSearch(); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitKucun(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初库存信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }
@Override public boolean writeInitAccount() throws RemoteException { try { FinancialmanService fs = new AccountIO(); Accountpo[] ap; ap = fs.AllSearch(); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitAccount(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初银行账户信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }
@Override public PaymentInputvo[] searchPay(String text) throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new PaymentListIO(); CostOrderpo[] rp; try { rp = fs.SearchPay(text); if (rp == null) return null; else { HostLog.addMes("查找付款单信息" + "\n"); PaymentInputvo[] rv = new PaymentInputvo[rp.length]; for (int i = 0; i < rp.length; i++) { PaymentInputvo s = rp[i].getPaymentList(); rv[i] = s; } return rv; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public AccountManagevo[] searchAll() throws RemoteException { // TODO Auto-generated method stub FinancialmanService as = new AccountIO(); Accountpo[] up; try { up = as.AllSearch(); if (up == null) return null; else { HostLog.addMes("查找所有银行账户" + "\n"); AccountManagevo[] uv = new AccountManagevo[up.length]; for (int i = 0; i < up.length; i++) { AccountManagevo s = up[i].geUser(); uv[i] = s; } return uv; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public boolean writeInitJigou() throws RemoteException { // TODO Auto-generated method stub try { Institution fs = new Institution(); Institutionpo[] ap; ap = fs.searchAll(); System.out.println(ap.length); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitAccount(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初机构信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }
@Override public AccountManagevo[] searchMo(String text) throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new AccountIO(); Accountpo[] ap; try { ap = fs.MoSearch(text); if (ap == null) return null; else { HostLog.addMes("模糊查找" + "关键字为" + text + " 的银行账户" + "\n"); AccountManagevo[] av = new AccountManagevo[ap.length]; for (int i = 0; i < ap.length; i++) { AccountManagevo s = ap[i].geUser(); av[i] = s; } return av; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }