TSDepart eiu = commonDao.findByProperty(TSDepart.class, "departname",
"信息部").get(0);
TSDepart RAndD = commonDao.findByProperty(TSDepart.class, "departname",
"研发室").get(0);
TSUser admin = new TSUser();
admin.setSignatureFile("images/renfang/qm/licf.gif");
admin.setStatus((short) 1);
admin.setRealName("管理员");
admin.setUserName("admin");
admin.setPassword("c44b01947c9e6e3f");
admin.setTSDepart(eiu);
admin.setActivitiSync((short) 1);
commonDao.saveOrUpdate(admin);
TSUser scott = new TSUser();
scott.setMobilePhone("13426432910");
scott.setOfficePhone("7496661");
scott.setEmail("zhangdaiscott@163.com");
scott.setStatus((short) 1);
scott.setRealName("张代浩");
scott.setUserName("scott");
scott.setPassword("97c07a884bf272b5");
scott.setTSDepart(RAndD);
scott.setActivitiSync((short) 0);
commonDao.saveOrUpdate(scott);
TSUser buyer = new TSUser();
buyer.setStatus((short) 1);
buyer.setRealName("采购员");
buyer.setUserName("cgy");
buyer.setPassword("f2322ec2fb9f40d1");
buyer.setTSDepart(eiu);
buyer.setActivitiSync((short) 0);
commonDao.saveOrUpdate(buyer);
TSUser approver = new TSUser();
approver.setStatus((short) 1);
approver.setRealName("采购审批员");
approver.setUserName("cgspy");
approver.setPassword("a324509dc1a3089a");
approver.setTSDepart(eiu);
approver.setActivitiSync((short) 1);
commonDao.saveOrUpdate(approver);
}