5e4316a253e8b49df837cfa01e5d4e4b21204585.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. package xin.glue.ui.G.G02;
  2. import java.math.BigDecimal;
  3. import com.posdata.glue.biz.activity.PosActivity;
  4. import com.posdata.glue.biz.constants.PosBizControlConstants;
  5. import com.posdata.glue.biz.control.PosBizControlIF;
  6. import com.posdata.glue.biz.control.PosBizProvider;
  7. import com.posdata.glue.context.PosContext;
  8. import com.posdata.glue.dao.PosGenericDao;
  9. import com.posdata.glue.dao.vo.PosParameter;
  10. import com.posdata.glue.dao.vo.PosRow;
  11. import com.posdata.glue.dao.vo.PosRowSet;
  12. import com.posdata.glue.msg.PosMESMessageImpl;
  13. import com.posdata.glue.msg.PosMessage;
  14. /**
  15. * RH实绩查询后,按CHARGE_NO执行插入或更新操作
  16. *
  17. * @author 梅贵平
  18. * @date 2008-9-1
  19. */
  20. public class PosSaveRhResult extends PosActivity
  21. {
  22. public String runActivity(PosContext context)
  23. {
  24. String[]rowStutsFlag = (String[]) context.get("rowStutsFlag");//标记是否更新或插入BOF实绩(原料实绩除外)
  25. PosGenericDao dao = this.getDao("mesdao");// 获得数据访问对象
  26. /*
  27. * rowStutsFlag若存在,即可以:若按CHARGE_NO查询出TBG02_BOF_RESULT中无该记录(即count为0),
  28. * 则执行插入语句, 否则执行更新语句
  29. */
  30. if(rowStutsFlag!=null&& rowStutsFlag.length>0)
  31. {
  32. String sql = "SELECT CHARGE_NO FROM TBG02_RH_RESULT WHERE CHARGE_NO = ?";
  33. String[] CHARGE_NO = (String[]) context.get("CHARGE_NO");
  34. String[] PLAN_CHARGE_NO = (String[]) context.get("PLAN_CHARGE_NO");
  35. PosParameter posparam = new PosParameter();
  36. posparam.setWhereClauseParameter(0, CHARGE_NO[0]);
  37. PosRowSet rowset = dao.findByQueryStatement(sql, posparam);
  38. int count = rowset.count();
  39. PosParameter param = new PosParameter();
  40. String[] XIN_DATE = (String[])context.get("XIN_DATE");//统计日
  41. String[] RH_NO = (String[])context.get("RH_NO"); //RH炉号
  42. String[] WKSHIFT = (String[])context.get("WKSHIFT");//班次
  43. String[] WKGROUP = (String[])context.get("WKGROUP");//组
  44. String[] EMP_ID = (String[])context.get("EMP_ID");//作业人
  45. String[] ARRV_WGT = (String[])context.get("ARRV_WGT");//到达总重量
  46. String[] RH_TREAT_WGT = (String[])context.get("RH_TREAT_WGT");//RH处理重量
  47. String[] STEAM_USE_WGT= (String[])context.get("STEAM_USE_WGT");//蒸汽使用量
  48. String[] AR_WGT = (String[])context.get("AR_WGT");//Ar 用量
  49. String[] O2_WGT = (String[])context.get("O2_WGT");//O2 用量
  50. String[] N2_WGT = (String[])context.get("N2_WGT");//N2 用量
  51. String[] RH_DEP_TEMP = (String[])context.get("RH_DEP_TEMP");//出发温度
  52. String PlanChNo = null;
  53. if (PLAN_CHARGE_NO[0] == null || PLAN_CHARGE_NO[0].equals("")) {
  54. PlanChNo = '3'+CHARGE_NO[0].substring(1,10);
  55. } else {
  56. PlanChNo = PLAN_CHARGE_NO[0];
  57. }
  58. PosParameter paramA = new PosParameter();
  59. paramA.setWhereClauseParameter(0, PlanChNo);
  60. PosRowSet L2Send = this.getDao("mesdao").find("UIG020020_L2_SEND_CHARGE.select", paramA);
  61. if(!L2Send.hasNext()){
  62. return PosBizControlConstants.SUCCESS;
  63. }
  64. //若按CHARGE_NO查询出TBG02_RH_RESULT中无该记录(即count为0),则执行插入语句 否则执行更新语句
  65. if(count==0)
  66. {
  67. param.setValueParamter(0, CHARGE_NO[0]);
  68. param.setValueParamter(1, XIN_DATE[0]);
  69. param.setValueParamter(2, RH_NO[0]);
  70. param.setValueParamter(3, WKSHIFT[0]);
  71. param.setValueParamter(4, WKGROUP[0]);
  72. param.setValueParamter(5, EMP_ID[0]);
  73. param.setValueParamter(6, ARRV_WGT[0]);
  74. param.setValueParamter(7, RH_TREAT_WGT[0]);
  75. param.setValueParamter(8, STEAM_USE_WGT[0]);
  76. param.setValueParamter(9, AR_WGT[0]);
  77. param.setValueParamter(10, O2_WGT[0]);
  78. param.setValueParamter(11, N2_WGT[0]);
  79. param.setValueParamter(12, RH_DEP_TEMP[0]);
  80. param.setValueParamter(13, PLAN_CHARGE_NO[0]);
  81. dao.insert("UIG020040_01.insert", param);
  82. String STATUS_CD = null;
  83. paramA = new PosParameter();
  84. paramA.setWhereClauseParameter(0, PlanChNo);
  85. PosRowSet specChVo = this.getDao("mesdao").find("NIG020200_SPEC_CHARGE.select", paramA);
  86. if (specChVo.hasNext()) {
  87. PosRow specChROW = specChVo.next();
  88. STATUS_CD = (String) specChROW.getAttribute("STATUS_CD");
  89. }
  90. if (STATUS_CD == null || (STATUS_CD != null && (STATUS_CD.equals("A") || STATUS_CD.equals("B")))) {
  91. //PosParameter param5 = new PosParameter();
  92. //String sProgCd = "JRF";
  93. //param5.setValueParamter(0, sProgCd);
  94. //param5.setValueParamter(1, "B");
  95. //param5.setValueParamter(2, PlanChNo);
  96. PosParameter param6 = new PosParameter();
  97. param6.setValueParamter(0, "B");
  98. param6.setValueParamter(1, PlanChNo);
  99. this.getDao("mesdao").update("NIG020200_SPEC_PROG_02.update",
  100. param6);
  101. this.getDao("mesdao").update("NIG020200_SPEC_CHARGE_IDX.update", param6);
  102. if(STATUS_CD == null||(STATUS_CD != null&& STATUS_CD.equals("A"))){
  103. getDao("mesdao").update("NIG020610_SPEC_SLAB.update",
  104. param6);
  105. PosParameter param7 = new PosParameter();
  106. param7.setWhereClauseParameter(0, PlanChNo);
  107. PosRowSet specslabVo = this.getDao("mesdao").find(
  108. "NIG020210_SPEC_SLAB.select", param7);
  109. while (specslabVo.hasNext()) {
  110. PosRow specslabROW = specslabVo.next();
  111. Number SlabEdtSeq = (Number) specslabROW
  112. .getAttribute("SLAB_EDT_SEQ");
  113. PosParameter param8 = new PosParameter();
  114. param8.setValueParamter(0, "B");
  115. param8.setValueParamter(1, SlabEdtSeq);
  116. this.getDao("mesdao").update(
  117. "NIG020610_SPEC_SLAB_D.update", param8);
  118. }
  119. }
  120. }
  121. }
  122. else
  123. {
  124. param.setWhereClauseParameter(0, XIN_DATE[0]);
  125. param.setWhereClauseParameter(1, RH_NO[0]);
  126. param.setWhereClauseParameter(2, WKSHIFT[0]);
  127. param.setWhereClauseParameter(3, WKGROUP[0]);
  128. param.setWhereClauseParameter(4, EMP_ID[0]);
  129. param.setWhereClauseParameter(5, ARRV_WGT[0]);
  130. param.setWhereClauseParameter(6, RH_TREAT_WGT[0]);
  131. param.setWhereClauseParameter(7, STEAM_USE_WGT[0]);
  132. param.setWhereClauseParameter(8, AR_WGT[0]);
  133. param.setWhereClauseParameter(9, O2_WGT[0]);
  134. param.setWhereClauseParameter(10, N2_WGT[0]);
  135. param.setWhereClauseParameter(11, RH_DEP_TEMP[0]);
  136. param.setWhereClauseParameter(12, PLAN_CHARGE_NO[0]);
  137. param.setWhereClauseParameter(13, CHARGE_NO[0]);
  138. dao.update("UIG020040_01.update", param);
  139. }
  140. BigDecimal TapWgt = null;
  141. if(RH_TREAT_WGT[0] == null || RH_TREAT_WGT[0].equals("")) {
  142. TapWgt = new BigDecimal(0);
  143. } else {
  144. TapWgt = new BigDecimal(RH_TREAT_WGT[0]) ;
  145. }
  146. saveMaster(CHARGE_NO[0],PlanChNo,TapWgt,RH_NO[0]);
  147. }
  148. //对 铁合金记录执行更新或录入
  149. String []rowStuts4 =(String[]) context.get("rowStuts4");//UIG020040页面铁合金表传过来的值
  150. if(rowStuts4!=null)//判断是否需对铁合金记录执行更新或录入
  151. {
  152. String[]MAINRAW_CD = (String[])context.get("MAINRAW_CD");//铁合金CODE
  153. //String[]MAINRAW_CD_DESC = (String[])context.get("MAINRAW_CD_DESC");//铁合金CODE内容
  154. String[]MAINRAW_WGT = (String[])context.get("MAINRAW_WGT");//铁合金用量
  155. String[]CHARGE_NO = (String[])context.get("CHARGE_NO");//炉次号
  156. for(int i=0; i < rowStuts4.length; i++)
  157. {
  158. PosParameter param1 = new PosParameter();
  159. param1.setWhereClauseParameter(0, CHARGE_NO[0]);
  160. param1.setWhereClauseParameter(1, MAINRAW_CD[i]);
  161. PosRowSet scrapVo = this.getDao("mesdao").find("NIG020330_02.select", param1);
  162. if (scrapVo.hasNext()) {
  163. PosParameter param2 = new PosParameter();
  164. param2.setValueParamter(0, MAINRAW_WGT[i] );
  165. param2.setValueParamter(1, CHARGE_NO[0] );
  166. param2.setValueParamter(2, MAINRAW_CD[i] );
  167. this.getDao("mesdao").update("NIG020330_01.update", param2);
  168. } else {
  169. PosParameter param2 = new PosParameter();
  170. param2.setValueParamter(0, CHARGE_NO[0] );
  171. param2.setValueParamter(1, MAINRAW_CD[i] );
  172. param2.setValueParamter(2, MAINRAW_WGT[i]);
  173. this.getDao("mesdao").update("NIG020330_01.insert", param2);
  174. }
  175. }
  176. }
  177. // 辅料数据更新或插入
  178. String []rowStuts5 =(String[]) context.get("rowStuts5");
  179. if(rowStuts5!=null)
  180. {
  181. String[]MAINRAW_CD = (String[])context.get("MAINRAW_CD");
  182. //String[]MAINRAW_CD_DESC = (String[])context.get("MAINRAW_CD_DESC");
  183. String[]MAINRAW_WGT = (String[])context.get("MAINRAW_WGT");
  184. String[]CHARGE_NO = (String[])context.get("CHARGE_NO");
  185. for(int i=0; i < rowStuts5.length; i++)
  186. {
  187. PosParameter param1 = new PosParameter();
  188. param1.setWhereClauseParameter(0, CHARGE_NO[0]);
  189. param1.setWhereClauseParameter(1, MAINRAW_CD[i]);
  190. PosRowSet scrapVo = this.getDao("mesdao").find("NIG020330_02.select", param1);
  191. if (scrapVo.hasNext()) {
  192. PosParameter param2 = new PosParameter();
  193. param2.setValueParamter(0, MAINRAW_WGT[i] );
  194. param2.setValueParamter(1, CHARGE_NO[0] );
  195. param2.setValueParamter(2, MAINRAW_CD[i] );
  196. this.getDao("mesdao").update("NIG020330_01.update", param2);
  197. } else {
  198. PosParameter param2 = new PosParameter();
  199. param2.setValueParamter(0, CHARGE_NO[0] );
  200. param2.setValueParamter(1, MAINRAW_CD[i] );
  201. param2.setValueParamter(2, MAINRAW_WGT[i]);
  202. this.getDao("mesdao").update("NIG020330_01.insert", param2);
  203. }
  204. }
  205. }
  206. return PosBizControlConstants.SUCCESS;
  207. }
  208. public void saveMaster(String ChargeNo,String PlanChNo,BigDecimal wgt,String rhNo)
  209. {
  210. String PRODNM_CD = null;
  211. String STL_GRD = null;
  212. String LINE_PROC_CD = null;
  213. String HCR_CLF = null;
  214. String SPEC_ABBSYM = null;
  215. String CAST_MANA_NO = null;
  216. Number CAST_CHARGE_SEQ = null;
  217. String CHARGE_MANA_NO = null;
  218. Number CAST_EDT_CHARGE_CNT = null;
  219. PosParameter paramA = new PosParameter();
  220. paramA.setWhereClauseParameter(0, PlanChNo);
  221. PosRowSet specChVo = this.getDao("mesdao").find("NIG020200_SPEC_CHARGE.select", paramA);
  222. if (specChVo.hasNext()) {
  223. PosRow specChROW = specChVo.next();
  224. PRODNM_CD = (String)specChROW.getAttribute("PRODNM_CD");
  225. STL_GRD = (String)specChROW.getAttribute("STL_GRD");
  226. LINE_PROC_CD = (String)specChROW.getAttribute("LINE_PROC_CD");
  227. HCR_CLF = (String)specChROW.getAttribute("HCR_CLF");
  228. SPEC_ABBSYM = (String)specChROW.getAttribute("SPEC_ABBSYM");
  229. CAST_MANA_NO = (String)specChROW.getAttribute("CAST_MANA_NO");
  230. CAST_CHARGE_SEQ = (Number)specChROW.getAttribute("CAST_CHARGE_SEQ");
  231. CHARGE_MANA_NO = (String)specChROW.getAttribute("CHARGE_MANA_NO");
  232. CAST_EDT_CHARGE_CNT = (Number)specChROW.getAttribute("CAST_EDT_CHARGE_CNT");
  233. }
  234. PosParameter param8 = new PosParameter();
  235. param8.setWhereClauseParameter(0, ChargeNo);
  236. PosRowSet chComVo = this.getDao("mesdao").find("UIG020020_CH_COM.select", param8);
  237. String BefProg = null;
  238. String CurrProg = null;
  239. String ChargeStat = null;
  240. Number TapWgt = null;
  241. if (chComVo.hasNext()) {
  242. PosRow chComROW = chComVo.next();
  243. CurrProg = (String)chComROW.getAttribute("CUR_PROG_CD");
  244. BefProg = (String)chComROW.getAttribute("BEF_PROG_CD");
  245. ChargeStat = (String)chComROW.getAttribute("CHARGE_STAT");
  246. TapWgt = (Number)chComROW.getAttribute("BOF_TAPPING_WGT");
  247. if (ChargeStat != null && ChargeStat.equals("2")) {
  248. if (CurrProg != null) {
  249. if (CurrProg.equals("JLF")) {
  250. CurrProg = "JRF";
  251. BefProg = "JLF";
  252. } else if (CurrProg.equals("JRF")) {
  253. CurrProg = "JRF";
  254. } else if (!CurrProg.equals("JJB")) {
  255. BefProg = CurrProg;
  256. CurrProg = "JRF";
  257. }
  258. } else {
  259. CurrProg = "JRF";
  260. BefProg = "JBB";
  261. }
  262. PosParameter param9 = new PosParameter();
  263. param9.setValueParamter(0, CurrProg );
  264. param9.setValueParamter(1, "UIG020040");
  265. param9.setValueParamter(2, TapWgt);
  266. param9.setValueParamter(3, wgt);
  267. param9.setValueParamter(4, rhNo);
  268. param9.setValueParamter(5, ChargeNo );
  269. this.getDao("mesdao").update("UIG020040_CH_COM.update", param9);
  270. }
  271. } else {
  272. PosParameter param10 = new PosParameter();
  273. param10.setValueParamter(0, ChargeNo );
  274. param10.setValueParamter(1, CHARGE_MANA_NO );
  275. param10.setValueParamter(2, STL_GRD );
  276. param10.setValueParamter(3, PRODNM_CD );
  277. param10.setValueParamter(4, LINE_PROC_CD );
  278. param10.setValueParamter(5, HCR_CLF );
  279. param10.setValueParamter(6, SPEC_ABBSYM );
  280. param10.setValueParamter(7, CAST_MANA_NO );
  281. param10.setValueParamter(8, CAST_CHARGE_SEQ);
  282. param10.setValueParamter(9, CAST_EDT_CHARGE_CNT);
  283. param10.setValueParamter(10, "JRF");
  284. param10.setValueParamter(11, "UIG020040");
  285. param10.setValueParamter(12, null);
  286. param10.setValueParamter(13, wgt);
  287. param10.setValueParamter(14, rhNo);
  288. this.getDao("mesdao").update("UIG020020_CH_COM.insert", param10);
  289. PosParameter param9 = new PosParameter();
  290. param9.setWhereClauseParameter(0, ChargeNo);
  291. PosRowSet specSlabVo = this.getDao("mesdao").find("NIG020200_SPEC_SLAB.select", param9);
  292. while(specSlabVo.hasNext()) {
  293. PosRow SlabSpecROW = specSlabVo.next();
  294. Number sSlabEdtSeq= (Number)SlabSpecROW.getAttribute("SLAB_EDT_SEQ");
  295. String sPlanSlabNo= (String)SlabSpecROW.getAttribute("SLAB_MANA_NO");
  296. String sStlGrd = (String)SlabSpecROW.getAttribute("STL_GRD");
  297. Number sSlabThk = (Number)SlabSpecROW.getAttribute("SLAB_THK");
  298. Number sSlabWth = (Number)SlabSpecROW.getAttribute("SLAB_WTH");
  299. Number sSlabLen = (Number)SlabSpecROW.getAttribute("SLAB_LEN");
  300. Number sSlabWgt = (Number)SlabSpecROW.getAttribute("SLAB_WGT");
  301. String sProdNmCd = (String)SlabSpecROW.getAttribute("PRODNM_CD");
  302. String sOrdFl = (String)SlabSpecROW.getAttribute("ORD_FL");
  303. String sOrdNo = (String)SlabSpecROW.getAttribute("ORD_NO");
  304. String sOrdSeq = (String)SlabSpecROW.getAttribute("ORD_SEQ");
  305. String sHcrClf = (String)SlabSpecROW.getAttribute("HCR_CLF");
  306. String sSpecAbbsym= (String)SlabSpecROW.getAttribute("SPEC_ABBSYM");
  307. Number ORD_THK = (Number)SlabSpecROW.getAttribute("ORD_THK");
  308. Number ORD_WTH = (Number)SlabSpecROW.getAttribute("ORD_WTH");
  309. Number ORD_LEN = (Number)SlabSpecROW.getAttribute("ORD_LEN");
  310. Number ORD_WGT = (Number)SlabSpecROW.getAttribute("ORD_WGT");
  311. Number COIL_INDIA = (Number)SlabSpecROW.getAttribute("COIL_INDIA");
  312. Number COIL_OUTDIA= (Number)SlabSpecROW.getAttribute("COIL_OUTDIA");
  313. String sSlabSeq = sPlanSlabNo.substring(10,13);
  314. String sSlabNo = ChargeNo+sSlabSeq;
  315. PosParameter param1 = new PosParameter();
  316. param1.setWhereClauseParameter(0, sSlabNo);
  317. PosRowSet CreatSlabVo = getDao("mesdao").find("NIG020200_CREATE_SLAB.select", param1);
  318. if (!CreatSlabVo.hasNext() ) {
  319. PosParameter param2 = new PosParameter();
  320. param2.setValueParamter(0, sSlabNo );
  321. param2.setValueParamter(1, sPlanSlabNo );
  322. param2.setValueParamter(2, sStlGrd );
  323. param2.setValueParamter(3, sSlabThk );
  324. param2.setValueParamter(4, sSlabWth );
  325. param2.setValueParamter(5, sSlabLen );
  326. param2.setValueParamter(6, sSlabWgt );
  327. param2.setValueParamter(7, sProdNmCd );
  328. param2.setValueParamter(8, sOrdFl );
  329. param2.setValueParamter(9, sOrdNo );
  330. param2.setValueParamter(10, sOrdSeq );
  331. param2.setValueParamter(11, sHcrClf );
  332. param2.setValueParamter(12, sSpecAbbsym );
  333. param2.setValueParamter(13, sOrdFl );
  334. param2.setValueParamter(14, sOrdNo );
  335. param2.setValueParamter(15, sOrdSeq );
  336. param2.setValueParamter(16, ORD_THK );
  337. param2.setValueParamter(17, ORD_WTH );
  338. param2.setValueParamter(18, ORD_LEN );
  339. param2.setValueParamter(19, COIL_INDIA );
  340. param2.setValueParamter(20, COIL_OUTDIA );
  341. param2.setValueParamter(21, ORD_WGT );
  342. getDao("mesdao").update("NIG020200_CREATE_SLAB.insert",param2);
  343. PosParameter param3 = new PosParameter();
  344. param3.setWhereClauseParameter(0, sSlabEdtSeq);
  345. PosRowSet CreatSlabDVo = getDao("mesdao").find("NIG020200_SPEC_SLAB_D.select", param3);
  346. while( CreatSlabDVo.hasNext()) {
  347. PosRow CreatSlabDROW = CreatSlabDVo.next();
  348. String S_SLAB_CUT_SEQ = (String)CreatSlabDROW.getAttribute("SLAB_CUT_SEQ");
  349. Number S_SLAB_THK = (Number)CreatSlabDROW.getAttribute("SLAB_THK");
  350. Number S_SLAB_WTH = (Number)CreatSlabDROW.getAttribute("SLAB_WTH");
  351. Number S_SLAB_LEN = (Number)CreatSlabDROW.getAttribute("SLAB_LEN");
  352. //Number S_SLAB_WGT = (Number)CreatSlabDROW.getAttribute("SLAB_WGT");
  353. Number S_ORD_THK = (Number)CreatSlabDROW.getAttribute("ORD_THK");
  354. Number S_ORD_WTH = (Number)CreatSlabDROW.getAttribute("ORD_WTH");
  355. Number S_ORD_LEN = (Number)CreatSlabDROW.getAttribute("ORD_LEN");
  356. Number S_ORD_WGT = (Number)CreatSlabDROW.getAttribute("ORD_WGT");
  357. Number S_COIL_INDIA = (Number)CreatSlabDROW.getAttribute("COIL_INDIA");
  358. Number S_COIL_OUTDIA = (Number)CreatSlabDROW.getAttribute("COIL_OUTDIA");
  359. String S_ORD_NO = (String)CreatSlabDROW.getAttribute("ORD_NO");
  360. String S_ORD_SEQ = (String)CreatSlabDROW.getAttribute("ORD_SEQ");
  361. String S_ORD_FL = (String)CreatSlabDROW.getAttribute("ORD_FL");
  362. PosParameter param5 = new PosParameter();
  363. param5.setWhereClauseParameter(0, sSlabNo);
  364. PosRowSet SalbDVo = getDao("mesdao").find("NIG020200_CREATE_SLAB_D.select", param5);
  365. if (!SalbDVo.hasNext()) {
  366. PosParameter param4 = new PosParameter();
  367. param4.setValueParamter(0, sSlabNo );
  368. param4.setValueParamter(1, S_SLAB_CUT_SEQ );
  369. param4.setValueParamter(2, S_SLAB_THK );
  370. param4.setValueParamter(3, S_SLAB_WTH );
  371. param4.setValueParamter(4, S_SLAB_LEN );
  372. param4.setValueParamter(5, S_ORD_THK );
  373. param4.setValueParamter(6, S_ORD_WTH );
  374. param4.setValueParamter(7, S_ORD_LEN );
  375. param4.setValueParamter(8, S_ORD_WGT );
  376. param4.setValueParamter(9, S_COIL_INDIA );
  377. param4.setValueParamter(10, S_COIL_OUTDIA );
  378. param4.setValueParamter(11, S_ORD_NO );
  379. param4.setValueParamter(12, S_ORD_SEQ );
  380. param4.setValueParamter(13, S_ORD_FL );
  381. getDao("mesdao").update("NIG020200_CREATE_SLAB_D.insert",param4);
  382. }
  383. }
  384. }
  385. }
  386. }
  387. SendProg_NIE012070(PlanChNo,BefProg,wgt);
  388. SendProg_NIE012080();
  389. }
  390. public PosContext SendProg_NIE012070(String ChargeNo,String BefProg,BigDecimal wgt )
  391. {
  392. // BigDecimal wgt = new BigDecimal();
  393. PosContext context = new PosContext();
  394. PosMessage message = new PosMESMessageImpl();
  395. String TcId = "NIE012070";
  396. message.setTCID(TcId);
  397. message.setObject("MSG_ID",TcId);
  398. message.setObject("BEF_ORD_NO",null);
  399. message.setObject("BEF_ORD_SEQ",null);
  400. message.setObject("ORD_NO",null);
  401. message.setObject("ORD_SEQ",null);
  402. message.setObject("BEF_PROG_CD",BefProg);
  403. message.setObject("PROG_CD","JRF");
  404. message.setObject("MAT_TYPE","CH");
  405. message.setObject("MAT_NO",ChargeNo);
  406. message.setObject("WGT", wgt );
  407. message.setObject("PGMID","UIG020030");
  408. message.setObject("REG_ID","UIG020030");
  409. message.setTCID(TcId);
  410. context.setMessage(message);
  411. String serviceName = "NIE012070";
  412. String SERVICE_POSTFIX = "-service";
  413. context.put(PosBizControlConstants.SERVICE_NAME, serviceName + SERVICE_POSTFIX);
  414. PosBizControlIF controller = PosBizProvider.getController();
  415. controller.doSubController(context,false);
  416. logger.logInfo("XinSaveBofResult---> NIE012070 TC SendProgress end" );
  417. return null;
  418. }
  419. public PosContext SendProg_NIE012080()
  420. {
  421. logger.logInfo("XinSaveBofResult SendProg_NIE012080 " );
  422. PosContext context = new PosContext();
  423. PosMessage message = new PosMESMessageImpl();
  424. String TcId = "NIE012080";
  425. message.setTCID(TcId);
  426. message.setObject("MSG_ID",TcId);
  427. message.setObject("AA",null);
  428. message.setTCID(TcId);
  429. context.setMessage(message);
  430. // this.processComponent(PosConstants.CREATE_MESSAGE, context);
  431. // String transactionCode = context.getMessage().getTC();
  432. String serviceName = "NIE012080";
  433. String SERVICE_POSTFIX = "-service";
  434. context.put(PosBizControlConstants.SERVICE_NAME, serviceName + SERVICE_POSTFIX);
  435. // context.setMessage(message);
  436. PosBizControlIF controller = PosBizProvider.getController();
  437. controller.doSubController(context,false);
  438. logger.logInfo("XinSaveBofResult---> NIE012080 TC SendProgress end" );
  439. return null;
  440. }
  441. }