6e2ea09d32d128c3f37a016160c7a0daa306209b.svn-base 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package xin.glue.ui.H.H04;
  2. import xin.glue.ui.common.PosGridSave;
  3. //import xin.glue.ui.common.component.PosSiteConfig;
  4. import xin.glue.ui.common.component.PosSiteLog;
  5. import com.posdata.glue.biz.activity.PosActivity;
  6. import com.posdata.glue.biz.constants.PosBizControlConstants;
  7. import com.posdata.glue.context.PosContext;
  8. import com.posdata.glue.dao.vo.PosParameter;
  9. import com.posdata.glue.dao.vo.PosRowSet;
  10. /*
  11. * 磨削实绩的插入与保存
  12. * @author TangLiang 唐亮
  13. * @data 2008.10.09
  14. */
  15. public class PosSendRollShop extends PosActivity{
  16. public String runActivity(PosContext context)
  17. {
  18. String[] status = (String[]) context.get("rowStuts");
  19. //轧辊号
  20. String[] ROLL_NO = (String[])context.get("ROLL_NO");
  21. //轧辊类别
  22. String[] ROLL_TYPE = (String[])context.get("ROLL_TYPE");
  23. //机架号区分
  24. String[] SEND_CLF = (String[])context.get("SEND_CLF");
  25. //位置区分
  26. String[] POSITION_CLF = (String[])context.get("POSITION_CLF");
  27. //配对轧辊号
  28. String[] ASSEM_ROLL = (String[])context.get("ASSEM_ROLL_L1");
  29. //磨削后直径
  30. String[] ROLL_CUR_DIA = (String[])context.get("ROLL_CUR_DIA");
  31. //表面粗糙度
  32. String[] SURFACE_ROUGH = (String[])context.get("SURFACE_ROUGH");
  33. //辊型代码
  34. String[] ROLL_SHAPE_CD = (String[])context.get("ROLL_SHAPE_CD");
  35. //砂轮代码
  36. String[] DRESS_CODE = (String[])context.get("DRESS_CODE");
  37. //磨削代码
  38. String[] GPROG_CODE = (String[])context.get("GPROG_CODE");
  39. //轧辊代码
  40. String[] ROLL_CODE = (String[])context.get("ROLL_CODE");
  41. //磨床号
  42. String[] GRINDER_NO = (String[])context.get("GRINDER_NO");
  43. //磨床号
  44. String[] REG_ID = (String[])context.get("REG_ID");
  45. //材质代码
  46. String[] ROLL_MAT_QLTY = (String[])context.get("ROLL_MAT_QLTY");
  47. logger.logDebug("PosSendRollShop ROLL_NO:("+ROLL_NO[0]+")");
  48. logger.logDebug("PosSendRollShop ROLL_TYPE:("+ROLL_TYPE[0]+")");
  49. PosParameter param1 = new PosParameter();
  50. param1.setValueParamter(0, ROLL_NO[0]);
  51. param1.setValueParamter(1, ROLL_CUR_DIA[0]);
  52. param1.setValueParamter(2, ROLL_TYPE[0]);
  53. param1.setValueParamter(3, SEND_CLF[0]);
  54. param1.setValueParamter(4, POSITION_CLF[0]);
  55. param1.setValueParamter(5, ASSEM_ROLL[0]);
  56. param1.setValueParamter(6, SURFACE_ROUGH[0]);
  57. param1.setValueParamter(7, ROLL_SHAPE_CD[0]);
  58. param1.setValueParamter(8, DRESS_CODE[0]);
  59. param1.setValueParamter(9, GPROG_CODE[0]);
  60. param1.setValueParamter(10, ROLL_CODE[0]);
  61. param1.setValueParamter(11, GRINDER_NO[0]);
  62. param1.setValueParamter(12, ROLL_MAT_QLTY[0]);
  63. getDao("mesdao").insert("UIH040040_L1_SEND.insert", param1);
  64. PosParameter param2 = new PosParameter();
  65. param2.setValueParamter(0,"Y");
  66. param2.setValueParamter(1,SEND_CLF[0]);
  67. param2.setValueParamter(2,POSITION_CLF[0]);
  68. param2.setValueParamter(3,ASSEM_ROLL[0]);
  69. param2.setValueParamter(4,ROLL_CUR_DIA[0]);
  70. param2.setValueParamter(5,SURFACE_ROUGH[0]);
  71. param2.setValueParamter(6,ROLL_SHAPE_CD[0]);
  72. param2.setValueParamter(7,DRESS_CODE[0]);
  73. param2.setValueParamter(8,GPROG_CODE[0]);
  74. param2.setValueParamter(9,ROLL_CODE[0]);
  75. param2.setValueParamter(10,GRINDER_NO[0]);
  76. param2.setValueParamter(11,REG_ID[0]);
  77. param2.setValueParamter(12,ROLL_NO[0]);
  78. getDao("mesdao").insert("UIH040040_SCH_UPD.update", param2);
  79. return PosBizControlConstants.SUCCESS;
  80. }
  81. }