| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package xin.glue.ui.G.G02;
- import com.posdata.glue.biz.activity.PosActivity;
- import com.posdata.glue.biz.constants.PosBizControlConstants;
- import com.posdata.glue.context.PosContext;
- import com.posdata.glue.dao.PosGenericDao;
- import com.posdata.glue.dao.vo.PosParameter;
- public class CompulsoryCharge extends PosActivity {
- public String runActivity(PosContext context) {
- PosGenericDao dao = getDao("mesdao");
- PosParameter param = null;
-
- String[] PLAN_CHARGE_NO = (String[])context.get("PLAN_CHARGE_NO");
- String[] CHARGE_NO = (String[])context.get("CHARGE_NO");
- try{
- param = new PosParameter();
- param.setValueParamter(0, PLAN_CHARGE_NO[0]);
- dao.update("UIG020060_compulsory_end_charge_01.update",param);
-
- param = new PosParameter();
- param.setValueParamter(0, PLAN_CHARGE_NO[0]);
- dao.update("UIG020060_compulsory_end_charge_02.update",param);
-
- param = new PosParameter();
- param.setValueParamter(0, PLAN_CHARGE_NO[0]);
- dao.update("UIG020060_compulsory_end_charge_03.update",param);
-
- param = new PosParameter();
- param.setValueParamter(0, CHARGE_NO[0]);
- dao.update("UIG020060_compulsory_end_charge_04.update",param);
-
- param = new PosParameter();
- param.setValueParamter(0, PLAN_CHARGE_NO[0]);
- dao.update("UIG020060_compulsory_end_charge_05.update",param);
- }catch(Exception e){
- context.put("MESSAGES", " ½áÊøÊ§°Ü! ");
- return PosBizControlConstants.SUCCESS;
- }
-
- context.put("MESSAGES", " ²Ù×÷³É¹¦! ");
- return PosBizControlConstants.SUCCESS;
- }
- }
|