faa45edd1f2bdea5daf093144e512d0256759f54.svn-base 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package xin.glue.ui.B.B02;
  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 SaveLgJiaoJieBan extends PosActivity
  8. {
  9. public String runActivity(PosContext context)
  10. {
  11. PosGenericDao dao = this.getDao("mesdao");
  12. PosParameter param = null;
  13. String[] REG_NM = (String[])context.get("REG_NM");
  14. String[] WK_CTX = (String[])context.get("WK_CTX");
  15. String[] rowStatus= (String[])context.get("rowStatus");
  16. String[] REG_DTIME = (String[])context.get("REG_DTIME");
  17. if("A".equals(rowStatus[0]))
  18. {
  19. param = new PosParameter();
  20. param.setValueParamter(0, WK_CTX[0]);
  21. param.setValueParamter(1, REG_NM[0]);
  22. dao.insert("UIB030207_01.INSERT", param);
  23. }
  24. else if("B".equals(rowStatus[0]))
  25. {
  26. param = new PosParameter();
  27. param.setWhereClauseParameter(0, WK_CTX[0]);
  28. param.setWhereClauseParameter(1, REG_NM[0]);
  29. param.setWhereClauseParameter(2, REG_DTIME[0]);
  30. dao.update("UIB030207_01.UPDATE", param);
  31. }
  32. return PosBizControlConstants.SUCCESS;
  33. }
  34. }