| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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 SaveSpec extends PosActivity {
- public String runActivity(PosContext context) {
-
-
- String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO");
- String[] COIL_THK = (String[])context.get("COIL_THK");
- String[] COIL_WTH = (String[])context.get("COIL_WTH");
- String[] COIL_LEN = (String[])context.get("COIL_LEN");
- String[] COIL_INDIA = (String[])context.get("COIL_INDIA");
- String[] COIL_OUTDIA = (String[])context.get("COIL_OUTDIA");
- String[] DCS_THK = (String[])context.get("DCS_THK");
- String[] DCS_WTH = (String[])context.get("DCS_WTH");
- String[] ACT_WGT = (String[])context.get("ACT_WGT");
- String[] CUR_LOAD_LOC = (String[])context.get("CUR_LOAD_LOC");
- String[] CRK_CD1 = (String[])context.get("CRK_CD1");
- String[] CRK_CD2 = (String[])context.get("CRK_CD2");
- String[] CRK_CD3 = (String[])context.get("CRK_CD3");
- String[] CRK_CD4 = (String[])context.get("CRK_CD4");
- String[] CRK_CD5 = (String[])context.get("CRK_CD5");
- String[] chk = (String[])context.get("CHK");
- String[] REG_ID = (String[])context.get("REG_ID");
- String[] SPEC_STL_GRD = (String[])context.get("SPEC_STL_GRD");
-
- for(int i = 0 ; i < chk.length ; i++){
- if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue;
- PosParameter param = new PosParameter();
- param.setWhereClauseParameter(0, COIL_THK[i]);
- param.setWhereClauseParameter(1, COIL_WTH[i]);
- param.setWhereClauseParameter(2, COIL_LEN[i]);
- param.setWhereClauseParameter(3, COIL_INDIA[i]);
- param.setWhereClauseParameter(4, COIL_OUTDIA[i]);
- param.setWhereClauseParameter(5, DCS_THK[i]);
- param.setWhereClauseParameter(6, DCS_WTH[i]);
- param.setWhereClauseParameter(7, ACT_WGT[i]);
- param.setWhereClauseParameter(8, CUR_LOAD_LOC[i]);
- param.setWhereClauseParameter(9, CRK_CD1[i]);
- param.setWhereClauseParameter(10, CRK_CD2[i]);
- param.setWhereClauseParameter(11, CRK_CD3[i]);
- param.setWhereClauseParameter(12, CRK_CD4[i]);
- param.setWhereClauseParameter(13, CRK_CD5[i]);
- param.setWhereClauseParameter(14, SPEC_STL_GRD[i]);
- param.setWhereClauseParameter(15, OLD_SAMPL_NO[i]);
- int updtCnt = getDao("mesdao").update("UIK010020_01.update", param);
- }
-
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|