@Override public void init() throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new AccountIO(); try { fs.writeInit(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public boolean getOrder(InitMesvo ivo) throws RemoteException { // TODO Auto-generated method stub FinancialmanService fs = new AccountIO(); try { // System.out.println("sdweretr"); if (fs.addInitMes(new InitMespo(ivo))) return true; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; }
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 AccountManagevo[] searchAllInitAccount() throws RemoteException { // TODO Auto-generated method stub FinancialmanService as = new AccountIO(); Accountpo[] up; try { up = as.AllSearchInitAccount(); if (up == null) return null; else { 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 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[] 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; }