22fdd59cf4c8bab555039c2a816fbaad45008680.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package xin.glue.ui.G.G02;
  2. import com.posdata.glue.biz.activity.PosActivity;
  3. import com.posdata.glue.biz.constants.PosBizControlConstants;
  4. import com.posdata.glue.context.PosContext;
  5. import com.posdata.glue.dao.PosGenericDao;
  6. import com.posdata.glue.dao.vo.PosParameter;
  7. public class CompulsoryCharge extends PosActivity {
  8. public String runActivity(PosContext context) {
  9. PosGenericDao dao = getDao("mesdao");
  10. PosParameter param = null;
  11. String[] PLAN_CHARGE_NO = (String[])context.get("PLAN_CHARGE_NO");
  12. String[] CHARGE_NO = (String[])context.get("CHARGE_NO");
  13. try{
  14. param = new PosParameter();
  15. param.setValueParamter(0, PLAN_CHARGE_NO[0]);
  16. dao.update("UIG020060_compulsory_end_charge_01.update",param);
  17. param = new PosParameter();
  18. param.setValueParamter(0, PLAN_CHARGE_NO[0]);
  19. dao.update("UIG020060_compulsory_end_charge_02.update",param);
  20. param = new PosParameter();
  21. param.setValueParamter(0, PLAN_CHARGE_NO[0]);
  22. dao.update("UIG020060_compulsory_end_charge_03.update",param);
  23. param = new PosParameter();
  24. param.setValueParamter(0, CHARGE_NO[0]);
  25. dao.update("UIG020060_compulsory_end_charge_04.update",param);
  26. param = new PosParameter();
  27. param.setValueParamter(0, PLAN_CHARGE_NO[0]);
  28. dao.update("UIG020060_compulsory_end_charge_05.update",param);
  29. }catch(Exception e){
  30. context.put("MESSAGES", " ½áÊøÊ§°Ü! ");
  31. return PosBizControlConstants.SUCCESS;
  32. }
  33. context.put("MESSAGES", " ²Ù×÷³É¹¦! ");
  34. return PosBizControlConstants.SUCCESS;
  35. }
  36. }