399ef3f8bde4f8f68e5cdec89d724b242243e1ad.svn-base 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package xin.glue.ui.H.H05;
  2. import xin.glue.ui.common.PosGridSave;
  3. //import xin.glue.ui.common.component.PosSiteConfig;
  4. import xin.glue.ui.common.component.PosSiteLog;
  5. import com.posdata.glue.biz.activity.PosActivity;
  6. import com.posdata.glue.biz.constants.PosBizControlConstants;
  7. import com.posdata.glue.context.PosContext;
  8. import com.posdata.glue.dao.vo.PosParameter;
  9. import com.posdata.glue.dao.vo.PosRowSet;
  10. public class SendLockMillL2 extends PosActivity{
  11. public String runActivity(PosContext context)
  12. {
  13. String[] FROM_ADDR = (String[]) context.get("FROM_ADDR");
  14. String[] TO_ADDR = (String[]) context.get("TO_ADDR");
  15. String FromPos = FROM_ADDR[0].substring(0,2);
  16. String ToPos = TO_ADDR[0].substring(0,2);
  17. String TC_ID = null;
  18. if (FromPos != null && (FromPos.substring(0,1).equals("B") || FromPos.equals("C0")) )
  19. {
  20. TC_ID = "HML030";
  21. PosParameter param1 = new PosParameter();
  22. param1.setValueParamter(0,TC_ID);
  23. param1.setValueParamter(1,FROM_ADDR[0].substring(0,3));
  24. getDao("mesdao").insert("UIH050030_LOCK_SEND.insert", param1);
  25. } else if (ToPos != null && (ToPos.substring(0,1).equals("B") || ToPos.equals("C0")) ){
  26. TC_ID = "HML060";
  27. PosParameter param1 = new PosParameter();
  28. param1.setValueParamter(0,TC_ID);
  29. param1.setValueParamter(1,TO_ADDR[0].substring(0,3));
  30. getDao("mesdao").insert("UIH050030_LOCK_SEND.insert", param1);
  31. }
  32. return PosBizControlConstants.SUCCESS;
  33. }
  34. }