598fec28fe86b4f7620b718ab1abf30a207457e9.svn-base 19 KB

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