UID030030.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <resData/>
  10. <reqData/>
  11. <gridData1>
  12. <EmpListResult_VO/>
  13. </gridData1>
  14. <gridData2>
  15. <EmpListResult_VO>
  16. </EmpListResult_VO>
  17. </gridData2>
  18. <gridData3>
  19. <EmpListResult_VO>
  20. </EmpListResult_VO>
  21. </gridData3>
  22. <castNumber>
  23. <castNumber_left>
  24. <castNumber_left1/>
  25. <castNumber_left2/>
  26. <castNumber_left3/>
  27. <castNumber_left4/>
  28. <castNumber_left5/>
  29. </castNumber_left>
  30. <castNumber_right>
  31. <castNumber_right1/>
  32. <castNumber_right2/>
  33. <castNumber_right3/>
  34. <castNumber_right4/>
  35. <castNumber_right5/>
  36. </castNumber_right>
  37. <CASTNUMBER_LEFT/>
  38. <CASTNUMBER_RIGHT/>
  39. <charges_count_left/>
  40. <charges_count_right/>
  41. <charges_sum_right/>
  42. <charges_sum_left/>
  43. </castNumber>
  44. <BEFORE_YN>B</BEFORE_YN>
  45. <sendInfo/>
  46. <chargeNumber/>
  47. <slab_count/>
  48. <slabWgt_sum/>
  49. <castData>
  50. <CastNumbersRes_VO/>
  51. </castData>
  52. </root>
  53. </instance>
  54. <script type="javascript">
  55. <![CDATA[
  56. //1、获取用户登录信息,只能在页面初始化函数中调用
  57. function InitParams(node)
  58. {
  59. if (typeof node == "undefined" && typeof node != "object") return;
  60. model.removenode("/root/initData/rcvInfo");
  61. model.makeNode("/root/initData/rcvInfo");
  62. var nodeList = node.childNodes;
  63. for (var i = 0; i < nodeList.length; i++)
  64. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  65. }
  66. //2. 页面初始化函数(必须)
  67. function Init(node)
  68. {
  69. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  70. // 在程序中会重建该节点,最好不要重名
  71. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  72. //...
  73. }
  74. //3、页面标题
  75. function setTitle()
  76. {
  77. return "工序计划 >> 炉次浇次设计 >> 炉次浇次调整与确定"; // 如:return "进程管理 >> 订单进程现况查询";
  78. }
  79. //4. 页面按键动作
  80. // 查询按键
  81. function find()
  82. {
  83. model.removenode("/root/reqData");
  84. commSubmit("UID030030-service","findCastNo","glueAction.do");
  85. errorMessage();
  86. model.copyNode("/root/castData/CastNumbersRes_VO","/root/resData/CastNumbersRes_VO");
  87. var castCount = model.getXPathValue("count(/root/resData/CastNumbersRes_VO/CastNumbersRes_Row)");
  88. for(var i = 1; i <= castCount; i++)
  89. {
  90. model.setValue("/root/castNumber/castNumber_left/castNumber_left"+i,model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ"));
  91. model.setValue("/root/castNumber/castNumber_right/castNumber_right"+i,model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ"));
  92. if(i >= 5)
  93. {
  94. break;
  95. }
  96. }
  97. model.refresh();
  98. }
  99. // 保存按键
  100. function save()
  101. {
  102. model.removenode("/root/reqData");
  103. model.removenode("/root/sendInfo");
  104. model.makeNode("/root/sendInfo");
  105. model.duplicate("/root/sendInfo","/root/gridData1/EmpListResult_VO");
  106. model.duplicate("/root/sendInfo","/root/gridData2/EmpListResult_VO");
  107. commSendReq("/root/sendInfo");
  108. commSubmit("UID030030-service","saveCastInfoAfter","glueAction.do");
  109. errorMessage();
  110. model.refresh();
  111. }
  112. // 新增按键
  113. function create()
  114. {
  115. }
  116. // 删除按键
  117. function remove()
  118. {
  119. }
  120. function setColor(temp,color)
  121. {
  122. temp.attribute("background-color") = color;
  123. }
  124. function setCastNoValue(temp,flag)
  125. {
  126. /*if(flag == "left")
  127. {
  128. var CASTNUMBER_LEFT = model.getValue(ref);
  129. }
  130. else
  131. {
  132. var CASTNUMBER_RIGHT = model.getValue(ref);
  133. }
  134. */
  135. var ref = temp.attribute("ref");
  136. model.removenode("/root/reqData");
  137. model.makeValue("/root/reqData/CASTNUMBER",model.getValue(ref));
  138. commSubmit("UID030030-service","findCastInfo","glueAction.do");
  139. errorMessage();
  140. if(flag == "left")
  141. {
  142. model.setValue("/root/castNumber/CASTNUMBER_LEFT", model.getValue(ref));
  143. model.copyNode("/root/gridData1/EmpListResult_VO", "/root/resData/EmpListResult_VO");
  144. model.setValue("/root/castNumber/charges_count_left","0/" + model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)"));
  145. model.setValue("/root/castNumber/charges_sum_left",model.getXPathValue("sum(/root/gridData1/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
  146. }
  147. else
  148. {
  149. model.setValue("/root/castNumber/CASTNUMBER_RIGHT", model.getValue(ref));
  150. model.copyNode("/root/gridData2/EmpListResult_VO", "/root/resData/EmpListResult_VO");
  151. model.setValue("/root/castNumber/charges_count_right",model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)"));
  152. model.setValue("/root/castNumber/charges_sum_right",model.getXPathValue("sum(/root/gridData2/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
  153. }
  154. var castNo_left = model.getValue("/root/castNumber/CASTNUMBER_LEFT");
  155. var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
  156. if(castNo_left == castNo_right)
  157. {
  158. img1.visible = true;
  159. img2.visible = true;
  160. button4.visible = false;
  161. caption6.visible = false;
  162. radio2.visible = false;
  163. }
  164. else
  165. {
  166. img1.visible = false;
  167. img2.visible = false;
  168. button4.visible = true;
  169. caption6.visible = true;
  170. radio2.visible = true;
  171. }
  172. model.refresh();
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" src="../../js/boaMsg.js"/>
  177. <script type="javascript" src="../../js/boaCommon.js"/>
  178. <script type="javascript" src="../../js/dCommon.js"/>
  179. <script type="javascript" ev:event="xforms-ready">
  180. <![CDATA[
  181. img1.visible = false;
  182. img2.visible = false;
  183. datagrid1.colStatus(0)=false;
  184. datagrid2.colStatus(0)=false;
  185. ]]>
  186. </script>
  187. </model>
  188. </xhtml:head>
  189. <xhtml:body guideline="1,980;2,620;">
  190. <caption id="caption26" style="left:575px; top:5px; width:55px; height:20px; background-color:#ffff99; border-color:#000000; border-style:solid; "/>
  191. <caption id="caption6" style="left:305px; top:35px; width:85px; height:20px; background-color:#ccffcc; border-color:#000000; border-style:solid; "/>
  192. <select1 id="radio2" ref="/root/BEFORE_YN" appearance="full" cols="2" overflow="visible" style="left:315px; top:37px; width:70px; height:15px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>前</label>
  196. <value>B</value>
  197. </item>
  198. <item>
  199. <label>后</label>
  200. <value>L</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  205. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  206. <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^序号^厂内牌号组^厂内牌号^钢水量^板坏^板坏^热装区分^预定出钢日期|选择^序号^厂内牌号组^厂内牌号^钢水量^宽度^块数^热装区分^预定出钢日期" colsep="^" colwidth="60, 33, 59, 57, 51, 44, 44, 50, 85" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:485px; height:235px; ">
  207. <col ref="CHK" type="checkbox">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. var selectRow = datagrid1.row;
  211. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  212. var chk_count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row[CHK = 'true'])");
  213. model.setValue("/root/castNumber/charges_count_left",chk_count+"/"+count);
  214. caption4.refresh();
  215. ]]>
  216. </script>
  217. </col>
  218. <col ref="WITHIN_SUB_SEQ"/>
  219. <col ref="FAC_STL_GRP"/>
  220. <col ref="FAC_STL_GRD"/>
  221. <col ref="MAT_WGT" format="#,###" style="text-align:right; "/>
  222. <col ref="MAT_WTH" style="text-align:right; "/>
  223. <col ref="CMAT_CNT" style="text-align:right; "/>
  224. <col ref="HCR_YN"/>
  225. <col ref="SMS_DUEDATE"/>
  226. </datagrid>
  227. <datagrid id="datagrid3" nodeset="/root/gridData3/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="板坏管理号^板坏^板坏^板坏^钢卷^钢卷^订单号^厂内牌号^厂内牌号组^平整分卷^组合设计^余材区分^热装区分^交货期|板坏管理号^宽度^长度^重量^厚度^宽度^订单号^厂内牌号^厂内牌号组^平整分卷^组合设计^余材区分^热装区分^交货期" colsep="^" colwidth="111, 94, 87, 83, 14, 20, 6, 93, 71, 8, 89, 72, 80, 131" defaultrows="15" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:335px; width:980px; height:285px; ">
  228. <col ref="MAT_SPEC_SEQ"/>
  229. <col ref="MAT_WTH"/>
  230. <col ref="MAT_LEN"/>
  231. <col ref="MAT_WGT" format="#,###"/>
  232. <col ref="ORD_THK" visibility="hidden"/>
  233. <col ref="ORD_WTH" visibility="hidden"/>
  234. <col ref="ORD_NO" visibility="hidden"/>
  235. <col ref="FAC_STL_GRD"/>
  236. <col ref="FAC_STL_GRP"/>
  237. <col ref="SPM_PROC_YN" visibility="hidden"/>
  238. <col ref="COMB_YN"/>
  239. <col ref="ORD_FL"/>
  240. <col ref="HCR_YN"/>
  241. <col ref="DELV_REQ_DATE"/>
  242. </datagrid>
  243. <line id="line1" style="x1:0px; y1:305px; x2:980px; y2:305px; "/>
  244. <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^序号^厂内牌号组^厂内牌号^钢水量^板坏^板坏^热装区分^预定出钢日期|选择^序号^厂内牌号组^厂内牌号^钢水量^宽度^块数^热装区分^预定出钢日期" colsep="^" colwidth="60, 33, 59, 57, 51, 44, 44, 50, 86" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:495px; top:65px; width:485px; height:235px; ">
  245. <col ref="CHK" type="radio"/>
  246. <col ref="WITHIN_SUB_SEQ"/>
  247. <col ref="FAC_STL_GRP"/>
  248. <col ref="FAC_STL_GRD"/>
  249. <col ref="MAT_WGT" style="text-align:right; "/>
  250. <col ref="MAT_WTH" style="text-align:right; "/>
  251. <col ref="CMAT_CNT" style="text-align:right; "/>
  252. <col ref="HCR_YN"/>
  253. <col ref="SMS_DUEDATE"/>
  254. </datagrid>
  255. <line id="line4" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
  256. <caption id="caption1" ref="/root/castNumber/CASTNUMBER_LEFT" style="left:0px; top:35px; width:75px; height:20px; text-align:center; border-color:#000000; border-style:solid; "/>
  257. <caption id="caption3" style="left:90px; top:35px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">炉数</caption>
  258. <caption id="caption4" ref="/root/castNumber/charges_count_left" style="left:135px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  259. <caption id="caption5" ref="/root/castNumber/charges_sum_left" format="#,###" style="left:215px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  260. <button id="button4" style="left:415px; top:35px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  261. <caption>插 入..</caption>
  262. <script type="javascript" ev:event="onclick">
  263. <![CDATA[
  264. var castNo_left = model.getValue("/root/castNumber/CASTNUMBER_LEFT");
  265. var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
  266. if(castNo_left == castNo_right)//同一浇次之间的炉次调整
  267. {
  268. //alert("s");
  269. }
  270. else//不同浇次之间的炉次调整
  271. {
  272. var BEFORE_YN = model.getValue("/root/BEFORE_YN");
  273. var row_gridData2_later = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
  274. var row_gridData2 = 0;
  275. var count_gridData1 = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  276. var k = 1;
  277. var p = 1;
  278. var t = 0;//是否插入最后一行的判断
  279. var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
  280. for(var i = 1; i<=count_gridData1; i++)
  281. {
  282. row_gridData2 = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
  283. if(row_gridData2==0 || row_gridData2=="")
  284. {
  285. window.alert(" 请选择需要插入的具体位置! "," 提示信息 ");
  286. return;
  287. }
  288. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]/CHK");
  289. if(CHK == "true")
  290. {
  291. //插入选定条数之前的
  292. if(BEFORE_YN == "B")
  293. {
  294. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]","*["+row_gridData2+"]");
  295. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+row_gridData2+"]/CHK", "false");
  296. }
  297. else
  298. {
  299. //如果插入的是最后一行的后面,则直接在末尾添加
  300. if(row_gridData2_later == (model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)")-t))
  301. {
  302. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]");
  303. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)")+"]/CHK", "false");
  304. t++;
  305. }
  306. else
  307. {
  308. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]","*["+(Number(row_gridData2)+Number(p))+"]");
  309. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(row_gridData2)+Number(p))+"]/CHK", "false");
  310. p++;
  311. }
  312. }
  313. //删除一行
  314. model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]");
  315. //表一中的序列号变化
  316. for(var j = 1; j<=model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)"); j++)
  317. {
  318. var seq = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ");
  319. if(seq != j)
  320. {
  321. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ",j);
  322. }
  323. }
  324. //表二中的序列号和浇次号的变化
  325. for(var j = 1; j<=model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)"); j++)
  326. {
  327. var seq = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ");
  328. var PMAT_SPEC_SEQ = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/PMAT_SPEC_SEQ");
  329. if(seq != j)
  330. {
  331. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ",j);
  332. }
  333. if(PMAT_SPEC_SEQ != castNo_right)
  334. {
  335. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/PMAT_SPEC_SEQ",castNo_right);
  336. }
  337. }
  338. }
  339. else
  340. {
  341. k++;
  342. }
  343. }
  344. }
  345. model.refresh();
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="button5" style="left:910px; top:310px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  350. <caption>板坏查询</caption>
  351. <script type="javascript" ev:event="onclick">
  352. <![CDATA[
  353. model.removenode("/root/reqData");
  354. var chargeNo = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/MAT_SPEC_SEQ");
  355. model.makeValue("/root/reqData/chargeNo", chargeNo);
  356. model.setValue("/root/chargeNumber", chargeNo);
  357. //alert("chargeNo="+ chargeNo);
  358. commSubmit("UID030030-service","findChargeInfo","glueAction.do");
  359. errorMessage();
  360. model.setValue("/root/slab_count",model.getXPathValue("count(/root/resData/EmpListResult_VO/EmpListResult_Row)"));
  361. model.setValue("/root/slabWgt_sum",model.getXPathValue("sum(/root/resData/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
  362. model.copyNode("/root/gridData3/EmpListResult_VO","/root/resData/EmpListResult_VO");
  363. model.refresh();
  364. ]]>
  365. </script>
  366. </button>
  367. <caption id="caption7" ref="/root/castNumber/CASTNUMBER_RIGHT" style="left:495px; top:35px; width:75px; height:20px; text-align:center; border-color:#000000; border-style:solid; "/>
  368. <caption id="caption8" style="left:585px; top:35px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">炉数</caption>
  369. <caption id="caption9" ref="/root/castNumber/charges_count_right" style="left:630px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  370. <caption id="caption10" ref="/root/castNumber/charges_sum_right" format="#,###" style="left:710px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  371. <caption id="caption12" ref="/root/slabWgt_sum" style="left:315px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  372. <caption id="caption15" ref="/root/chargeNumber" style="left:100px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  373. <caption id="caption16" style="left:190px; top:310px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">块数</caption>
  374. <caption id="caption17" ref="/root/slab_count" style="left:235px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
  375. <caption id="caption11" style="left:80px; top:5px; width:55px; height:20px; background-color:#ffff99; border-color:#000000; border-style:solid; "/>
  376. <button id="button6" style="left:85px; top:5px; width:20px; height:20px; background-image:../../images/scroll_left_wl.gif; ">
  377. <caption/>
  378. <script type="javascript" ev:event="onclick">
  379. <![CDATA[
  380. var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
  381. if(castCount > 5)
  382. {
  383. var castNumber_left1 = model.getValue("/root/castNumber/castNumber_left/castNumber_left1");
  384. for(var i = 1; i <= castCount; i++)
  385. {
  386. if(castNumber_left1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && i != 1)
  387. {
  388. for(var j = 1; j <= 5; j++)
  389. {
  390. model.setValue("/root/castNumber/castNumber_left/castNumber_left"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j-2)+"]/MAT_SPEC_SEQ"));
  391. }
  392. break;
  393. }
  394. }
  395. model.refresh();
  396. }
  397. ]]>
  398. </script>
  399. </button>
  400. <button id="button7" style="left:110px; top:5px; width:20px; height:20px; background-image:../../images/scroll_right_wl.gif; ">
  401. <caption/>
  402. <script type="javascript" ev:event="onclick">
  403. <![CDATA[
  404. var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
  405. if(castCount > 5)
  406. {
  407. var castNumber_left1 = model.getValue("/root/castNumber/castNumber_left/castNumber_left1");
  408. for(var i = 1; i <= castCount; i++)
  409. {
  410. if(castNumber_left1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && (castCount-i) > 4)
  411. {
  412. for(var j = 1; j <= 5; j++)
  413. {
  414. model.setValue("/root/castNumber/castNumber_left/castNumber_left"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j)+"]/MAT_SPEC_SEQ"));
  415. }
  416. break;
  417. }
  418. }
  419. model.refresh();
  420. }
  421. ]]>
  422. </script>
  423. </button>
  424. <caption id="caption14" ref="/root/castNumber/castNumber_left/castNumber_left1" style="left:135px; top:5px; width:70px; height:20px; text-align:center; background-color:#ffffff; border-color:#000000; border-style:solid; ">
  425. <script type="javascript" ev:event="ondblclick">
  426. <![CDATA[
  427. setColor(caption14, "#3366ff");
  428. setColor(caption18, "#ffffff");
  429. setColor(caption19, "#ffffff");
  430. setColor(caption20, "#ffffff");
  431. setColor(caption21, "#ffffff");
  432. setCastNoValue(caption14,"left");
  433. ]]>
  434. </script>
  435. </caption>
  436. <caption id="caption18" ref="/root/castNumber/castNumber_left/castNumber_left2" style="left:205px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  437. <script type="javascript" ev:event="ondblclick">
  438. <![CDATA[
  439. setColor(caption18, "#3366ff");
  440. setColor(caption14, "#ffffff");
  441. setColor(caption19, "#ffffff");
  442. setColor(caption20, "#ffffff");
  443. setColor(caption21, "#ffffff");
  444. setCastNoValue(caption18,"left");
  445. ]]>
  446. </script>
  447. </caption>
  448. <caption id="caption19" ref="/root/castNumber/castNumber_left/castNumber_left3" style="left:275px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  449. <script type="javascript" ev:event="ondblclick">
  450. <![CDATA[
  451. setColor(caption19, "#3366ff");
  452. setColor(caption14, "#ffffff");
  453. setColor(caption18, "#ffffff");
  454. setColor(caption20, "#ffffff");
  455. setColor(caption21, "#ffffff");
  456. setCastNoValue(caption19,"left");
  457. ]]>
  458. </script>
  459. </caption>
  460. <caption id="caption20" ref="/root/castNumber/castNumber_left/castNumber_left4" style="left:345px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  461. <script type="javascript" ev:event="ondblclick">
  462. <![CDATA[
  463. setColor(caption20, "#3366ff");
  464. setColor(caption14, "#ffffff");
  465. setColor(caption18, "#ffffff");
  466. setColor(caption19, "#ffffff");
  467. setColor(caption21, "#ffffff");
  468. setCastNoValue(caption20,"left");
  469. ]]>
  470. </script>
  471. </caption>
  472. <caption id="caption21" ref="/root/castNumber/castNumber_left/castNumber_left5" style="left:415px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  473. <script type="javascript" ev:event="ondblclick">
  474. <![CDATA[
  475. setColor(caption21, "#3366ff");
  476. setColor(caption14, "#ffffff");
  477. setColor(caption18, "#ffffff");
  478. setColor(caption19, "#ffffff");
  479. setColor(caption20, "#ffffff");
  480. setCastNoValue(caption21,"left");
  481. ]]>
  482. </script>
  483. </caption>
  484. <caption id="caption22" style="left:0px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">对 象</caption>
  485. <caption id="caption23" ref="/root/castNumber/castNumber_right/castNumber_right4" style="left:840px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  486. <script type="javascript" ev:event="ondblclick">
  487. <![CDATA[
  488. setColor(caption23, "#3366ff");
  489. setColor(caption24, "#ffffff");
  490. setColor(caption27, "#ffffff");
  491. setColor(caption28, "#ffffff");
  492. setColor(caption29, "#ffffff");
  493. setCastNoValue(caption23);
  494. ]]>
  495. </script>
  496. </caption>
  497. <caption id="caption24" ref="/root/castNumber/castNumber_right/castNumber_right5" style="left:910px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  498. <script type="javascript" ev:event="ondblclick">
  499. <![CDATA[
  500. setColor(caption24, "#3366ff");
  501. setColor(caption23, "#ffffff");
  502. setColor(caption27, "#ffffff");
  503. setColor(caption28, "#ffffff");
  504. setColor(caption29, "#ffffff");
  505. setCastNoValue(caption24);
  506. ]]>
  507. </script>
  508. </caption>
  509. <button id="button8" style="left:580px; top:5px; width:20px; height:20px; background-image:../../images/scroll_left_wl.gif; ">
  510. <caption/>
  511. <script type="javascript" ev:event="onclick">
  512. <![CDATA[
  513. var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
  514. if(castCount > 5)
  515. {
  516. var castNumber_right1 = model.getValue("/root/castNumber/castNumber_right/castNumber_right1");
  517. for(var i = 1; i <= castCount; i++)
  518. {
  519. if(castNumber_right1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && i != 1)
  520. {
  521. for(var j = 1; j <= 5; j++)
  522. {
  523. model.setValue("/root/castNumber/castNumber_right/castNumber_right"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j-2)+"]/MAT_SPEC_SEQ"));
  524. }
  525. break;
  526. }
  527. }
  528. model.refresh();
  529. }
  530. ]]>
  531. </script>
  532. </button>
  533. <button id="button9" style="left:605px; top:5px; width:20px; height:20px; background-image:../../images/scroll_right_wl.gif; ">
  534. <caption/>
  535. <script type="javascript" ev:event="onclick">
  536. <![CDATA[
  537. var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
  538. if(castCount > 5)
  539. {
  540. var castNumber_right1 = model.getValue("/root/castNumber/castNumber_right/castNumber_right1");
  541. for(var i = 1; i <= castCount; i++)
  542. {
  543. if(castNumber_right1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && (castCount-i) > 4)
  544. {
  545. for(var j = 1; j <= 5; j++)
  546. {
  547. model.setValue("/root/castNumber/castNumber_right/castNumber_right"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j)+"]/MAT_SPEC_SEQ"));
  548. }
  549. break;
  550. }
  551. }
  552. }
  553. model.refresh();
  554. ]]>
  555. </script>
  556. </button>
  557. <caption id="caption27" ref="/root/castNumber/castNumber_right/castNumber_right1" style="left:630px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  558. <script type="javascript" ev:event="ondblclick">
  559. <![CDATA[
  560. setColor(caption27, "#3366ff");
  561. setColor(caption23, "#ffffff");
  562. setColor(caption24, "#ffffff");
  563. setColor(caption28, "#ffffff");
  564. setColor(caption29, "#ffffff");
  565. setCastNoValue(caption27);
  566. ]]>
  567. </script>
  568. </caption>
  569. <caption id="caption28" ref="/root/castNumber/castNumber_right/castNumber_right2" style="left:700px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  570. <script type="javascript" ev:event="ondblclick">
  571. <![CDATA[
  572. setColor(caption28, "#3366ff");
  573. setColor(caption23, "#ffffff");
  574. setColor(caption24, "#ffffff");
  575. setColor(caption29, "#ffffff");
  576. setColor(caption27, "#ffffff");
  577. setCastNoValue(caption28);
  578. ]]>
  579. </script>
  580. </caption>
  581. <caption id="caption29" ref="/root/castNumber/castNumber_right/castNumber_right3" style="left:770px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
  582. <script type="javascript" ev:event="ondblclick">
  583. <![CDATA[
  584. setColor(caption29, "#3366ff");
  585. setColor(caption28, "#ffffff");
  586. setColor(caption23, "#ffffff");
  587. setColor(caption24, "#ffffff");
  588. setColor(caption27, "#ffffff");
  589. setCastNoValue(caption29);
  590. ]]>
  591. </script>
  592. </caption>
  593. <caption id="caption2" style="left:495px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">位 置</caption>
  594. <caption id="caption25" style="left:0px; top:310px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">炉 次</caption>
  595. <img id="img1" src="../../images/down.gif" style="left:930px; top:35px; width:25px; height:20px; background-stretch:stretch; ">
  596. <script type="javascript" ev:event="onclick">
  597. <![CDATA[
  598. var arr = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
  599. if(arr>1)
  600. {
  601. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]","*["+(arr-1)+"]");
  602. model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]");
  603. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
  604. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)-1)+"]/WITHIN_SUB_SEQ",(Number(arr)-1));
  605. datagrid2.refresh();
  606. }
  607. ]]>
  608. </script>
  609. </img>
  610. <img id="img2" src="../../images/up.gif" style="left:955px; top:35px; width:25px; height:20px; background-stretch:stretch; ">
  611. <script type="javascript" ev:event="onclick">
  612. <![CDATA[
  613. var arr = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
  614. var count = model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)");
  615. if(arr<count)
  616. {
  617. if(arr <= (count-2))
  618. {
  619. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]","*["+(Number(arr)+2)+"]");
  620. model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
  621. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
  622. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]/WITHIN_SUB_SEQ",(Number(arr)+1));
  623. }
  624. else
  625. {
  626. model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
  627. model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
  628. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
  629. model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]/WITHIN_SUB_SEQ",(Number(arr)+1));
  630. }
  631. datagrid2.refresh();
  632. }
  633. ]]>
  634. </script>
  635. </img>
  636. <button id="button3" style="left:835px; top:310px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  637. <caption>指示确认</caption>
  638. <script type="javascript" ev:event="onclick">
  639. <![CDATA[
  640. var vleft = window.screenLeft + window.width/2 - 155;
  641. var vtop = window.screenTop + window.height/2 - 250;
  642. window.load("./UID030030_popup.xrw",
  643. "modal",
  644. "",
  645. "left:"+vleft+"; top:"+vtop+"; width:490; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
  646. "/root/initData", "/root/initData");
  647. ]]>
  648. </script>
  649. </button>
  650. </xhtml:body>
  651. </xhtml:html>