30d65c8fd9def5bb0a762f4c61669a7f43770b70.svn-base 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package xin.glue.ui.K.K01;
  2. import com.posdata.glue.biz.activity.PosActivity;
  3. import com.posdata.glue.biz.constants.PosBizControlConstants;
  4. import com.posdata.glue.context.PosContext;
  5. import com.posdata.glue.dao.PosGenericDao;
  6. import com.posdata.glue.dao.vo.PosParameter;
  7. import com.posdata.glue.dao.vo.PosRowSet;
  8. public class SaveSpec extends PosActivity {
  9. public String runActivity(PosContext context) {
  10. String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO");
  11. String[] COIL_THK = (String[])context.get("COIL_THK");
  12. String[] COIL_WTH = (String[])context.get("COIL_WTH");
  13. String[] COIL_LEN = (String[])context.get("COIL_LEN");
  14. String[] COIL_INDIA = (String[])context.get("COIL_INDIA");
  15. String[] COIL_OUTDIA = (String[])context.get("COIL_OUTDIA");
  16. String[] DCS_THK = (String[])context.get("DCS_THK");
  17. String[] DCS_WTH = (String[])context.get("DCS_WTH");
  18. String[] ACT_WGT = (String[])context.get("ACT_WGT");
  19. String[] CUR_LOAD_LOC = (String[])context.get("CUR_LOAD_LOC");
  20. String[] CRK_CD1 = (String[])context.get("CRK_CD1");
  21. String[] CRK_CD2 = (String[])context.get("CRK_CD2");
  22. String[] CRK_CD3 = (String[])context.get("CRK_CD3");
  23. String[] CRK_CD4 = (String[])context.get("CRK_CD4");
  24. String[] CRK_CD5 = (String[])context.get("CRK_CD5");
  25. String[] chk = (String[])context.get("CHK");
  26. String[] REG_ID = (String[])context.get("REG_ID");
  27. String[] SPEC_STL_GRD = (String[])context.get("SPEC_STL_GRD");
  28. for(int i = 0 ; i < chk.length ; i++){
  29. if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue;
  30. PosParameter param = new PosParameter();
  31. param.setWhereClauseParameter(0, COIL_THK[i]);
  32. param.setWhereClauseParameter(1, COIL_WTH[i]);
  33. param.setWhereClauseParameter(2, COIL_LEN[i]);
  34. param.setWhereClauseParameter(3, COIL_INDIA[i]);
  35. param.setWhereClauseParameter(4, COIL_OUTDIA[i]);
  36. param.setWhereClauseParameter(5, DCS_THK[i]);
  37. param.setWhereClauseParameter(6, DCS_WTH[i]);
  38. param.setWhereClauseParameter(7, ACT_WGT[i]);
  39. param.setWhereClauseParameter(8, CUR_LOAD_LOC[i]);
  40. param.setWhereClauseParameter(9, CRK_CD1[i]);
  41. param.setWhereClauseParameter(10, CRK_CD2[i]);
  42. param.setWhereClauseParameter(11, CRK_CD3[i]);
  43. param.setWhereClauseParameter(12, CRK_CD4[i]);
  44. param.setWhereClauseParameter(13, CRK_CD5[i]);
  45. param.setWhereClauseParameter(14, SPEC_STL_GRD[i]);
  46. param.setWhereClauseParameter(15, OLD_SAMPL_NO[i]);
  47. int updtCnt = getDao("mesdao").update("UIK010020_01.update", param);
  48. }
  49. return PosBizControlConstants.SUCCESS;
  50. }
  51. }