UIH090160.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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[热轧板坯中间品登记(UIH090160) ]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <searchData>
  12. <SLAB_NO/>
  13. <FROM/>
  14. <TO/>
  15. </searchData>
  16. <saveData>
  17. <REG_ID/>
  18. </saveData>
  19. <datagrid1/>
  20. <resData/>
  21. <reqData/>
  22. <Updata>
  23. <rowStuts>u</rowStuts>
  24. </Updata>
  25. </root>
  26. </instance>
  27. </model>
  28. <script type="javascript" src="../../js/boaCommon.js"/>
  29. <script type="javascript" src="../../js/b01.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. //查询待登记的热轧中间品信息
  33. function find(){
  34. model.removenode("/root/reqData");
  35. model.makeValue("/root/reqData/SLAB_NO" , input1.value);
  36. model.makeValue("/root/reqData/FROM" , input3.value);
  37. model.makeValue("/root/reqData/TO" , input4.value);
  38. //这里加入出库时间条件,减少数据量
  39. if(model.getValue("/root/searchData/FROM") == ""||model.getValue("/root/searchData/TO") == ""){
  40. alert(" 出库时间需要选择,否则将导致数据量过大。不便于查找!!! ");
  41. return;
  42. }
  43. commSubmit("UIH090160-service" , "find" , "glueAction.do");
  44. model.copyNode("/root/datagrid1" , "/root/resData/Result0_VO");
  45. model.refresh();
  46. }
  47. //中间品登记
  48. function save(){
  49. // 表格中的行数
  50. var gridRows = datagrid1.rows - datagrid1.fixedRows;
  51. //清空发送接点
  52. //控制输入数据不能为空,前提是该行已经CHK 选择
  53. for(var i = datagrid1.fixedRows ; i < (gridRows + datagrid1.fixedRows) ; i++){
  54. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
  55. datagrid1.valueMatrix(i,datagrid1.colRef("REASON")) == ""&&
  56. datagrid1.valueMatrix(i,datagrid1.colRef("LOCALTION")) == ""&&
  57. datagrid1.valueMatrix(i,datagrid1.colRef("CUR_LOAD_LOC")) == ""&&
  58. datagrid1.valueMatrix(i,datagrid1.colRef("COUNT")) == ""){
  59. alert(" 提交数据有误,不能有空值 ");
  60. return;
  61. }
  62. datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = model.getValue("/root/initData/rcvInfo/REG_NM");
  63. }
  64. model.removenode("/root/reqData");
  65. model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
  66. model.makeNode("/root/reqData");
  67. for(var i=0;i<datagrid1.rows;i++){
  68. datagrid1.rowStatus(i) = 2;
  69. }
  70. model.refresh();
  71. b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
  72. commSubmit("UIH090160-service","save","glueAction.do");
  73. datagrid1.clearStatus();
  74. find1();
  75. }
  76. function find1(){
  77. if(commDiffDay(input3.value,input4.value)>180)
  78. {
  79. alert(" 查询时间过长,请重新选择六个月内数据查询!! ");
  80. return;
  81. }
  82. model.removenode("/root/reqData");
  83. model.makeValue("/root/reqData/SLAB_NO" , input1.value);
  84. model.makeValue("/root/reqData/FROM" , input3.value);
  85. model.makeValue("/root/reqData/TO" , input4.value);
  86. //这里加入出库时间条件,减少数据量
  87. if(model.getValue("/root/searchData/FROM") == ""||model.getValue("/root/searchData/TO") == ""){
  88. alert(" 出库时间需要选择,否则将导致数据量过大。不便于查找!!! ");
  89. return;
  90. }
  91. commSubmit("UIH090160-service" , "find1" , "glueAction.do");
  92. model.copyNode("/root/datagrid1" , "/root/resData/Result0_VO");
  93. model.refresh();
  94. }
  95. function xformSelect(){
  96. // if( //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO")) == "" ||
  97. //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) == "" ||
  98. //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) == ""
  99. // ) //return;
  100. if(datagrid1.row != datagrid1.fixedRows){
  101. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO"));
  102. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL"));
  103. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC"));
  104. }
  105. }
  106. function xformDeselect(){
  107. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = "";
  108. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = "";
  109. //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = "";
  110. //datagrid1.rowStatus(datagrid1.row) = 0;
  111. }
  112. ]]>
  113. </script>
  114. <script type="javascript" src="../../js/boaCommon.js"/>
  115. <script type="javascript" src="../../js/boaMsg.js"/>
  116. <script type="javascript" src="../../js/mesCommon.js"/>
  117. </xhtml:head>
  118. <xhtml:body style="font-family:SimSun-ExtB; font-size:12pt; color:#000000; vertical-align:middle; ">
  119. <datagrid id="datagrid1" nodeset="/root/datagrid1/Result0_Row" scroll="both" allowuserresize="true" caption="选择^坯料号^产生原因^产生位置^摆放位置^块数^生产时间^班次^班组^牌号^计划厚度^计划宽度^轧制单元号^理论重量^登记时间^登记人|选择^坯料号^产生原因^产生位置^摆放位置^块数^生产时间^班次^班组^牌号^计划厚度^计划宽度^轧制单元号^理论重量^登记时间^登记人" colsep="^" colwidth="35, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:65px; width:975px; height:535px; border-color:#000000; ">
  120. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  121. <col editable="true" ref="SLAB_NO" type="input" visibility="visible" style="background-color:transparent; "/>
  122. <col editable="true" ref="REASON" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
  123. <col editable="true" ref="LOCALTION" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
  124. <col editable="true" ref="CUR_LOAD_LOC" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
  125. <col ref="COUNT" type="combo" visibility="visible">
  126. <choices>
  127. <item>
  128. <label>1</label>
  129. <value>1</value>
  130. </item>
  131. <item>
  132. <label>2</label>
  133. <value>2</value>
  134. </item>
  135. <item>
  136. <label>3</label>
  137. <value>3</value>
  138. </item>
  139. <item>
  140. <label>4</label>
  141. <value>4</value>
  142. </item>
  143. <item>
  144. <label>5</label>
  145. <value>5</value>
  146. </item>
  147. <item>
  148. <label>6</label>
  149. <value>6</value>
  150. </item>
  151. <item>
  152. <label>7</label>
  153. <value>7</value>
  154. </item>
  155. <item>
  156. <label>8</label>
  157. <value>8</value>
  158. </item>
  159. <item>
  160. <label>9</label>
  161. <value>9</value>
  162. </item>
  163. <item>
  164. <label>10</label>
  165. <value>10</value>
  166. </item>
  167. <item>
  168. <label>11</label>
  169. <value>11</value>
  170. </item>
  171. <item>
  172. <label>12</label>
  173. <value>12</value>
  174. </item>
  175. <item>
  176. <label>13</label>
  177. <value>13</value>
  178. </item>
  179. <item>
  180. <label>14</label>
  181. <value>14</value>
  182. </item>
  183. <item>
  184. <label>15</label>
  185. <value>15</value>
  186. </item>
  187. <item>
  188. <label>16</label>
  189. <value>16</value>
  190. </item>
  191. <item>
  192. <label>17</label>
  193. <value>17</value>
  194. </item>
  195. <item>
  196. <label>18</label>
  197. <value>18</value>
  198. </item>
  199. </choices>
  200. </col>
  201. <col ref="MILL_DTIME"/>
  202. <col ref="REG_SHIFT" type="combo" visibility="visible" style="color:#993300; border-style:solid; ">
  203. <choices>
  204. <item>
  205. <label>早</label>
  206. <value>1</value>
  207. </item>
  208. <item>
  209. <label>中</label>
  210. <value>2</value>
  211. </item>
  212. <item>
  213. <label>晚</label>
  214. <value>3</value>
  215. </item>
  216. </choices>
  217. </col>
  218. <col ref="REG_GROUP" type="combo" visibility="visible" style="color:#993300; border-style:solid; ">
  219. <choices>
  220. <item>
  221. <label>甲</label>
  222. <value>甲</value>
  223. </item>
  224. <item>
  225. <label>已</label>
  226. <value>已</value>
  227. </item>
  228. <item>
  229. <label>丙</label>
  230. <value>丙</value>
  231. </item>
  232. <item>
  233. <label>丁</label>
  234. <value>丁</value>
  235. </item>
  236. </choices>
  237. </col>
  238. <col ref="SPEC_STL_GRD"/>
  239. <col ref="THK_AIM"/>
  240. <col ref="WTH_AIM"/>
  241. <col ref="ROLL_MANA_NO"/>
  242. <col ref="ACT_WGT"/>
  243. <col ref="REG_DTIME"/>
  244. <col ref="REG_ID"/>
  245. <script type="javascript" ev:event="xforms-select">
  246. <![CDATA[
  247. xformSelect();
  248. ]]>
  249. </script>
  250. <script type="javascript" ev:event="xforms-deselect">
  251. <![CDATA[
  252. xformDeselect();
  253. ]]>
  254. </script>
  255. </datagrid>
  256. <caption id="caption1" style="left:0px; top:20px; width:55px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">坯料号</caption>
  257. <input id="input1" ref="/root/searchData/SLAB_NO" style="left:55px; top:20px; width:105px; height:25px; "/>
  258. <caption id="caption2" style="left:220px; top:20px; width:55px; height:25px; background-color:#99ccff; border-style:solid; ">生产时间</caption>
  259. <input id="input3" ref="/root/searchData/FROM" inputtype="date" style="left:275px; top:20px; width:95px; height:25px; "/>
  260. <input id="input4" ref="/root/searchData/TO" inputtype="date" style="left:385px; top:20px; width:90px; height:25px; "/>
  261. <caption id="caption3" style="left:370px; top:20px; width:15px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">-</caption>
  262. <button id="button1" style="left:795px; top:20px; width:94px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">
  263. <caption>查询录入结果</caption>
  264. <script type="javascript" ev:event="onclick">
  265. <![CDATA[
  266. find1();
  267. ]]>
  268. </script>
  269. </button>
  270. <button id="button2" visibility="visible" style="left:610px; top:25px; width:75px; height:20px; ">
  271. <caption>button2</caption>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. save();
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button3" visibility="hidden" style="left:360px; top:210px; width:90px; height:25px; ">
  279. <caption>button3</caption>
  280. <script type="javascript" ev:event="onclick">
  281. <![CDATA[
  282. find();
  283. ]]>
  284. </script>
  285. </button>
  286. </xhtml:body>
  287. </xhtml:html>