| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package xin.glue.ui.K.K01;
- 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;
- import com.posdata.glue.dao.vo.PosRowSet;
- public class SaveAPPOINT extends PosActivity {
- public String runActivity(PosContext context) {
-
-
- String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO");
- String[] chk = (String[])context.get("CHK");
- String[] REG_ID = (String[])context.get("REG_ID");
- String[] APPOINT_NOTE = (String[])context.get("APPOINT_NOTE");
- String[] EXIST_YN = (String[])context.get("EXIST_YN");
-
- for(int i = 0 ; i < chk.length ; i++){
- if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue;
- if(EXIST_YN[i].equals("Y")){
- PosParameter param1 = new PosParameter();
- param1.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
- int updtCnt1 = getDao("mesdao").update("UIH052400_04.update", param1); //Çå³ý¶âλ
-
- PosParameter param = new PosParameter();
- param.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
- param.setWhereClauseParameter(1, OLD_SAMPL_NO[i]);
- int updtCnt = getDao("mesdao").update("UIK010010_02.insert", param);}
- else{
- PosParameter param1 = new PosParameter();
- param1.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
- this.getDao("mesdao").update("UIH052400_04.update", param1); //Çå³ý¶âλ
-
-
- PosParameter param = new PosParameter();
- param.setWhereClauseParameter(0, REG_ID[0]);
- //param.setWhereClauseParameter(1, APPOINT_NOTE[i]);
- param.setWhereClauseParameter(1, OLD_SAMPL_NO[i]);
- int updtCnt = getDao("mesdao").update("UIK010010_01.insert", param);}
- }
-
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|