| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package xin.glue.ui.B.B02;
- 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 SaveLgJiaoJieBan extends PosActivity
- {
- public String runActivity(PosContext context)
- {
- PosGenericDao dao = this.getDao("mesdao");
- PosParameter param = null;
- String[] REG_NM = (String[])context.get("REG_NM");
- String[] WK_CTX = (String[])context.get("WK_CTX");
- String[] rowStatus= (String[])context.get("rowStatus");
- String[] REG_DTIME = (String[])context.get("REG_DTIME");
-
- if("A".equals(rowStatus[0]))
- {
- param = new PosParameter();
- param.setValueParamter(0, WK_CTX[0]);
- param.setValueParamter(1, REG_NM[0]);
- dao.insert("UIB030207_01.INSERT", param);
- }
- else if("B".equals(rowStatus[0]))
- {
- param = new PosParameter();
- param.setWhereClauseParameter(0, WK_CTX[0]);
- param.setWhereClauseParameter(1, REG_NM[0]);
- param.setWhereClauseParameter(2, REG_DTIME[0]);
- dao.update("UIB030207_01.UPDATE", param);
- }
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|