protected void _approved(Context ctx, IObjectValue model)
throws BOSException {
VisaChangeInfo info = null;
info = (VisaChangeInfo) model;
// 设置已审核
info.setBillStatus(BillStatus.approved);
// 设置审核日期
Date currentDate = new Date();
info.setAuditDate(currentDate);
// info(currentDate);
// 设置审核人
UserInfo currentUser = (UserInfo) ctx.get(SysContextConstant.USERINFO);
info.setAuditor(currentUser);
try {
super.update(ctx, new ObjectUuidPK(info.getId()), info);
String sql = " update T_CON_Contract set fsumamt = "
+ info.getChangeAmt().toString()
+ ", " // 备注
+ " FSumAmtDom = " + info.getChangeAmt().toString()
+ ", " + " FUnPaidAmt = "
+ info.getChangeAmt().toString() + "- FPaidAmt" + // 造价性质
" where Fnumber= '" + info.getConNo().toString() + "'";
com.kingdee.eas.util.app.DbUtil.execute(ctx, sql);
} catch (EASBizException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}