b95fc192358993f27ed391c88a433eb5c922bb5f.svn-base 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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>
  6. <![CDATA[热轧作业>>轧辊/热轧标准>>轧辊废弃实绩登录与查询(UIH040050)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <ROLL_NO/>
  13. </formData>
  14. <resData/>
  15. <reqData/>
  16. <datagrid2/>
  17. <datagrid1/>
  18. <ROLL_DISUSE_DTIME/>
  19. <ROLL_DISUSE_CAUSE_CD/>
  20. <ROLL_DISUSE_EMP_ID/>
  21. <roll_dcc/>
  22. </root>
  23. </instance>
  24. </model>
  25. <script type="javascript">
  26. <![CDATA[
  27. //查询
  28. function find(){
  29. //清空reqData接点
  30. model.removenode("/root/reqData");
  31. model.makeNode("/root/reqData");
  32. //清空废弃轧辊接点
  33. model.removenode("/root/datagrid2");
  34. model.makeNode("/root/datagrid2");
  35. //清空轧辊现况信息
  36. model.removenode("/root/datagrid1");
  37. model.makeNode("/root/datagrid1");
  38. //清空废弃原因代码
  39. model.removenode("/root/ROLL_DISUSE_CAUSE_CD");
  40. model.makeNode("/root/ROLL_DISUSE_CAUSE_CD");
  41. //把查询结果放入查询条件中
  42. model.duplicate("/root/reqData","/root/formData/ROLL_NO");
  43. commSubmit("UIH040050-service","find","glueAction.do");
  44. //把取出的特定轧辊号的信息绑定在datagrid1中
  45. model.duplicate("/root/datagrid1","/root/resData/RollNoResultList_VO");
  46. model.duplicate("/root/datagrid2","/root/resData/RollNoDisuseList_VO");
  47. model.duplicate("/root/ROLL_DISUSE_CAUSE_CD","/root/resData/ROLL_DISUSE_CAUSE_CD_VO");
  48. model.refresh();
  49. }
  50. //保存
  51. function save(){
  52. //清空reqData接点
  53. model.removenode("/root/reqData");
  54. model.makeNode("/root/reqData");
  55. //获取需要发送的数据
  56. //把查询结果放入查询条件中
  57. model.duplicate("/root/reqData","/root/roll_dcc");
  58. model.duplicate("/root/reqData","/root/ROLL_DISUSE_DTIME");
  59. model.duplicate("/root/reqData","/root/ROLL_DISUSE_EMP_ID");
  60. model.duplicate("/root/reqData","/root/formData/ROLL_NO");
  61. //判断相关输入框不能为空
  62. if(model.getValue("/root/roll_dcc") == ""){
  63. alert(" 废弃原因代码不能为空,请选择相应的废弃代码! ");
  64. return;
  65. }else if(model.getValue("/root/ROLL_DISUSE_DTIME") == ""){
  66. alert(" 废弃时间信息不能为空,请选择相应的废弃时间! ");
  67. return;
  68. }else if(model.getValue("/root/ROLL_DISUSE_EMP_ID") == ""){
  69. alert(" 废弃处理人信息不能为空,请输入废弃处理人信息! ");
  70. return;
  71. }
  72. commSubmit("UIH040050-service","save","glueAction.do");
  73. model.refresh();
  74. //取出后台返回的轧辊号不存在的情况
  75. if(model.getValue("root/resData/rs_VO/rs_Row")=="error")
  76. {
  77. window.alert("输入的轧辊号不存在,请确定后再保存!");
  78. return;
  79. }
  80. //清空datagrid2的代码
  81. model.removenode("/root/datagrid2");
  82. model.makeNode("/root/datagrid2");
  83. //清空废弃原因代码
  84. model.removenode("/root/ROLL_DISUSE_CAUSE_CD");
  85. model.makeNode("/root/ROLL_DISUSE_CAUSE_CD");
  86. //把相关的结果取出,放在相应的位置上
  87. model.duplicate("/root/datagrid2","/root/resData/RollNoDisuseList_VO");
  88. model.duplicate("/root/ROLL_DISUSE_CAUSE_CD","/root/resData/ROLL_DISUSE_CAUSE_CD_VO");
  89. model.refresh();
  90. }
  91. ]]>
  92. </script>
  93. <script type="javascript" src="../../js/boaMsg.js"/>
  94. <script type="javascript" src="../../js/boaCommon.js"/>
  95. </xhtml:head>
  96. <xhtml:body guideline="2,0;">
  97. <caption id="caption6" class="cell" style="left:0px; top:40px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">轧辊现况</caption>
  98. <datagrid id="datagrid1" nodeset="/root/datagrid1/RollNoResultList_VO/RollNoResultList_Row" disabled="true" caption="轧辊类别^入库直径^废弃直径^现在直径^轧辊状态^替换时间^磨削时间^磨削次数^入库时间" colsep="^" colwidth="110, 110, 110, 110, 107, 110, 110, 86, 123" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:980px; height:44px; ">
  99. <col ref="ROLL_TYPE" type="output"/>
  100. <col ref="ENT_DIA" type="output" style="text-align:right; "/>
  101. <col ref="DISUSE_DIA" type="output" style="text-align:right; "/>
  102. <col ref="CUR_DIA" type="output" style="text-align:right; "/>
  103. <col ref="ROLL_STAT" type="output"/>
  104. <col ref="CHANG_DTIME" type="output" format="yyyy-mm-dd hh:mm:ss"/>
  105. <col ref="GRIND_DTIME" type="output" style="text-align:right; "/>
  106. <col ref="GRIND_STEPNO" type="output"/>
  107. <col ref="ENT_DTIME" type="output" format="yyyy-mm-dd hh:mm:ss"/>
  108. </datagrid>
  109. <caption id="caption1" class="cell" style="left:0px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃原因代码</caption>
  110. <select1 id="combo1" visibility="hidden" appearance="minimal" style="left:105px; top:145px; width:185px; height:20px; background-color:#ffff99; border-color:#000000; ">
  111. <choices>
  112. <itemset nodeset="/root/ROLL_DISUSE_CAUSE_CD/ROLL_DISUSE_CAUSE_CD_VO/ROLL_DISUSE_CAUSE_CD_Row">
  113. <label ref="LABEL"/>
  114. <value ref="VALUE"/>
  115. </itemset>
  116. </choices>
  117. </select1>
  118. <caption id="caption2" class="cell" style="left:567px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃时间</caption>
  119. <input id="input1" ref="/root/ROLL_DISUSE_DTIME" inputtype="date" style="left:659px; top:115px; width:110px; height:20px; background-color:#ffff99; "/>
  120. <caption id="caption3" class="cell" style="left:774px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃处理人</caption>
  121. <input id="input2" ref="/root/ROLL_DISUSE_EMP_ID" style="left:866px; top:115px; width:110px; height:20px; background-color:#ffff99; "/>
  122. <caption id="caption4" class="cell" style="left:0px; top:145px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃轧辊</caption>
  123. <datagrid id="datagrid2" nodeset="/root/datagrid2/RollNoDisuseList_VO/RollNoDisuseList_Row" disabled="true" caption="轧辊号^轧辊类别^入库直径^废弃直径^轧辊单价^轧辊材质^厂家标志^废弃时间^废弃原因代码^废弃处理人" colsep="^" colwidth="100, 112, 112, 112, 112, 112, 100, 112, 111, 95" defaultrows="22" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:165px; width:980px; height:435px; ">
  124. <col ref="ROLL_NO"/>
  125. <col ref="ROLL_TYPE"/>
  126. <col ref="ENT_DIA" style="text-align:right; "/>
  127. <col ref="DISUSE_DIA" style="text-align:right; "/>
  128. <col ref="ROLL_UCOST"/>
  129. <col ref="ROLL_MAT_QLTY"/>
  130. <col ref="ROLL_MAKER"/>
  131. <col ref="ROLL_DISUSE_DTIME" format="yyyy-mm-dd hh:mm:ss"/>
  132. <col ref="ROLL_DISUSE_CAUSE_CD"/>
  133. <col ref="ROLL_DISUSE_EMP_ID"/>
  134. </datagrid>
  135. <caption id="caption8" class="cell" style="left:0px; top:5px; width:90px; height:23px; font-weight:bold; ">轧辊号:</caption>
  136. <caption id="caption5" ref="/root/formData/ROLL_NO" class="cell" style="left:93px; top:5px; width:114px; height:23px; vertical-align:middle; "/>
  137. <input id="input3" ref="/root/formData/ROLL_NO" style="left:95px; top:8px; width:110px; height:17px; ">
  138. <script type="javascript" ev:event="ondblclick">
  139. <![CDATA[
  140. window.load("./UIH04_SELECT_ROLLNO.xrw", "modal", "modalWin", "left:400; top:100; width:400px; height:400px");
  141. ]]>
  142. </script>
  143. </input>
  144. <line id="line1" style="x1:0px; y1:35px; x2:980px; y2:35px; "/>
  145. <line id="line2" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
  146. <line id="line3" style="x1:0px; y1:140px; x2:980px; y2:140px; "/>
  147. <input id="input4" ref="/root/roll_dcc" maxlength="100" style="left:90px; top:115px; width:475px; height:20px; background-color:#ffff99; ">
  148. <hint>
  149. <![CDATA[废弃原因的输入不能超过50个汉字]]>
  150. </hint>
  151. </input>
  152. <button id="button1" style="left:890px; top:35px; width:85px; height:25px; ">
  153. <caption>废弃轧辊回退</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. //这里把输入的废弃轧辊改为磨削待机,取消废弃原因代码等相关信息
  157. model.removenode("/root/reqData");
  158. model.makeNode("/root/reqData");
  159. model.duplicate("/root/reqData","/root/formData/ROLL_NO");
  160. commSubmit("UIH040050-service","return","glueAction.do");
  161. model.refresh();
  162. //取出后台返回的轧辊号不存在的情况
  163. if(model.getValue("root/resData/rs_VO/rs_Row")=="return")
  164. {
  165. window.alert("输入的轧辊号不存在,请确定后再保存!");
  166. return;
  167. }
  168. find();
  169. ]]>
  170. </script>
  171. </button>
  172. </xhtml:body>
  173. </xhtml:html>