429b019dac317413ce51b514a4297d85de7e9045.svn-base 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  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[品质判定>>成分判定>>炼钢综合判定]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <INGR/>
  13. <EXGD/>
  14. <TOTL/>
  15. <TIME_TYPE>2</TIME_TYPE>
  16. <SDTIME/>
  17. <EDTIME/>
  18. <ORD_YN/>
  19. <SLABOUT/>
  20. <TSLX/>
  21. <SBZT/>
  22. <IS_INGR_DCS>False</IS_INGR_DCS>
  23. <IS_EXTSHAPE_DCS>False</IS_EXTSHAPE_DCS>
  24. <IS_TOT_DCS>False</IS_TOT_DCS>
  25. <RESULTHOT/>
  26. <RESULTLENGTH/>
  27. <CHECKED1>Y</CHECKED1>
  28. <CHECKED2>Y</CHECKED2>
  29. <CHARGE_NO/>
  30. <sfMethod/>
  31. <cfMethod/>
  32. </formData>
  33. <datagrid2/>
  34. <datagrid3/>
  35. <reqData/>
  36. <comboData>
  37. <PROC_Row/>
  38. </comboData>
  39. <datagrid1/>
  40. <comboData1>
  41. <IngrStatus_Row/>
  42. <HotSong_Row/>
  43. </comboData1>
  44. <comboData2>
  45. <HotSong_Row/>
  46. </comboData2>
  47. <initMome>
  48. <ComboMome_Row>
  49. <LABEL/>
  50. <VALUE/>
  51. </ComboMome_Row>
  52. </initMome>
  53. <initChem>
  54. <ComboChem_Row>
  55. <LABEL/>
  56. <VALUE/>
  57. </ComboChem_Row>
  58. </initChem>
  59. <LHResult_Row>
  60. <SLH/>
  61. <XLH/>
  62. </LHResult_Row>
  63. <comboData3>
  64. <LengthSong_Row/>
  65. </comboData3>
  66. <dcsdatil/>
  67. <dcsdatil2/>
  68. <dcsdatil3/>
  69. <dategrid3/>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. if(window.parent==null) Init();
  75. ]]>
  76. </script>
  77. </model>
  78. <script type="javascript" src="../../js/boaCommon.js"/>
  79. <script type="javascript" src="../../js/boaMsg.js"/>
  80. <script type="javascript">
  81. <![CDATA[
  82. function Init(node)
  83. {
  84. input2.value = commCurDate();
  85. input3.value = commCurDate();
  86. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//进行全选操作
  87. model.removenode("/root/reqData");
  88. model.makeNode("/root/reqData");
  89. commSubmit("UIB020221-service","success","glueAction.do");
  90. model.copyNode("/root/comboData" , "/root/resData/PROC_VO");
  91. model.copyNode("/root/comboData1" , "/root/resData/IngrStatus_VO");
  92. model.copyNode("/root/comboData2" , "/root/resData/HotSong_VO");
  93. model.copyNode("/root/comboData3" , "/root/resData/LengthSong_VO");
  94. model.copyNode("/root/datagrid3" , "/root/resData/MomeContent_VO");
  95. model.copyNode("/root/initMome" , "/root/resData/ComboMome_VO");
  96. model.copyNode("/root/datagrid2" , "/root/resData/ChemContent_VO");
  97. model.copyNode("/root/initChem" , "/root/resData/ComboChem_VO");
  98. model.refresh();
  99. combo1.select(0);
  100. combo2.select(0);
  101. combo3.select(0);
  102. combo10.select(0);
  103. combo11.select(0);
  104. checkbox1.value = "";
  105. checkbox2.value = "";
  106. }
  107. function excelExport1()
  108. {
  109. var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  110. if(x1 == "") return;
  111. datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  112. window.alert("导出成功" + x1 + " !!!");
  113. }
  114. function find()
  115. {
  116. if(commDiffDay(input2.value,input3.value)>30)
  117. {
  118. window.alert("查询时间不能超过30天");
  119. return;
  120. }
  121. model.removenode("/root/reqData");
  122. commSendReq("/root/formData");
  123. // if(input1.value == "")
  124. // {
  125. // model.setValue("/root/reqData/CHARGE_NO" , "%");
  126. // }
  127. model.setValue("/root/reqData/CHARGE_NO" , input1.value);
  128. model.setValue("/root/reqData/SDTIME" , input2.value+"0000");
  129. model.setValue("/root/reqData/EDTIME" , input3.value+"9999");
  130. model.makeValue("/root/reqData/IS_INGR_DCS" , model.getValue("/root/formData/IS_INGR_DCS"));
  131. model.makeValue("/root/reqData/IS_EXTSHAPE_DCS" , model.getValue("/root/formData/IS_EXTSHAPE_DCS"));
  132. model.makeValue("/root/reqData/IS_TOT_DCS" , model.getValue("/root/formData/IS_TOT_DCS"));
  133. commSubmit("UIB020221-service","find","glueAction.do");
  134. model.copyNode("/root/datagrid1","/root/resData/SlabTotDcs_VO");
  135. datagrid1.clearStatus();
  136. datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
  137. var str = datagrid1.children;
  138. //commGridInit(datagrid1);
  139. model.refresh();
  140. setColor();
  141. //pageInit();
  142. }
  143. function save()
  144. {
  145. model.removenode("/root/reqData");
  146. model.makeNode("/root/reqData");
  147. commMultiUpdate(datagrid1,"/root/reqData" ,"A", true, "rowStatus");
  148. model.makeValue("/root/reqData/XX" , "UIB020221");
  149. model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  150. commSubmit("UIB020221-service","save","glueAction.do");
  151. find();
  152. }
  153. //检查错误,改变颜色
  154. function setColor()
  155. {
  156. datagrid1.rebuildStyle();
  157. for(var i = datagrid1.fixedRows ; i < datagrid1.rows; i ++)
  158. {
  159. if(datagrid1.valueMatrix(i , datagrid1.colRef("ERROR_YN")) == "XX")
  160. {
  161. datagrid1.rowstyle(i, "data", "color") = "#ff0000";
  162. }
  163. }
  164. }
  165. //设置等级
  166. function setGrd(comboSelect)
  167. {
  168. var col ;
  169. if(comboSelect == combo1)//成分
  170. {
  171. col = datagrid1.colRef("SLAB_INGR_DEC_GRD_EXT");
  172. }
  173. else if(comboSelect == combo2)
  174. {
  175. col = datagrid1.colRef("EXTSHAPE_GRD_EXT");
  176. }
  177. else if(comboSelect == combo3)
  178. {
  179. col = datagrid1.colRef("SLAB_TOT_DEC_GRD");
  180. }
  181. else if(comboSelect == combo5)
  182. {
  183. col = datagrid1.colRef("POPORD_YN");
  184. }
  185. else if(comboSelect == combo6)
  186. {
  187. col = datagrid1.colRef("SLAB_OUT_TP");
  188. }
  189. else if(comboSelect == combo10)
  190. {
  191. col = datagrid1.colRef("NO_HOT_REASON");
  192. }
  193. else if(comboSelect == combo11)
  194. {
  195. col = datagrid1.colRef("NO_DIRECT_REASON");
  196. }
  197. else if(comboSelect == checkbox1)
  198. {
  199. col = datagrid1.colRef("NO_HOT_STEELNAME");
  200. }
  201. else if(comboSelect == checkbox2)
  202. {
  203. col = datagrid1.colRef("NO_CRAFT_STEELNAME");
  204. }
  205. else if(comboSelect == textarea1)
  206. {
  207. col = datagrid1.colRef("SLAB_DCS_DETAIL");
  208. }
  209. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  210. {
  211. if(datagrid1.valueMatrix( i , datagrid1.colRef("CHK")) == "Y")
  212. {
  213. datagrid1.valueMatrix(i , col) = comboSelect.value;
  214. }
  215. }
  216. }
  217. /*
  218. function apply()
  219. {
  220. model.removenode("/root/reqData");
  221. model.makeNode("/root/reqData");
  222. if(combo6.value=='Y')
  223. {
  224. window.alert("申报项目不允许出库","提示");
  225. return;
  226. }
  227. var iRow=datagrid1.rows; //grid的行数
  228. //alert(iRow);
  229. var flag=false; //用于判断行是否被选中
  230. var lh=new Array();
  231. var j=0;
  232. for(var i=1;i<iRow;i++)
  233. {
  234. if(datagrid1.valueMatrix(i,1)=="Y") //这个checkbox设置的值为Y,N,不是默认的true,fasle。
  235. {
  236. flag= true;
  237. lh[j]=datagrid1.valueMatrix(i,2).substr(0,10);
  238. j=j+1;
  239. model.makeValue("/root/reqData["+i+"]/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM")); //操作人
  240. model.makeValue("/root/reqData["+i+"]/SLH" , input4.value); //上炉号
  241. model.makeValue("/root/reqData["+i+"]/XLH" , input5.value); //下炉号
  242. model.makeValue("/root/reqData["+i+"]/TSLX" ,model.getValue("/root/formData/TSLX")); //特殊放行
  243. model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2)); //板坯号
  244. }
  245. }
  246. if(flag==false)
  247. {
  248. window.alert("请选择你要确定的项","提示");
  249. return;
  250. }
  251. for(var i=0;i<j;i++)
  252. {
  253. if(lh[i]!=lh[i+1]&&i+1<j)
  254. {
  255. window.alert("所选择的项不是同一炉号,不能批量申报","提示");
  256. return;
  257. }
  258. }
  259. commSubmit("UIB020221-service", "Apply", "glueAction.do");
  260. model.refresh();
  261. }
  262. function CancleApply()
  263. {
  264. model.removenode("/root/reqData");
  265. model.makeNode("/root/reqData");
  266. var flag=false;
  267. for(var i=0;i<datagrid1.rows;i++)
  268. {
  269. if(datagrid1.valueMatrix(i,1)=="Y")
  270. {
  271. flag= true;
  272. model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
  273. }
  274. }
  275. if(flag==false)
  276. {
  277. window.alert("请选择你要取消的项","提示");
  278. return;
  279. }
  280. if(commComfirmBox("确定要取消吗?","提示")==0)
  281. return;
  282. commSubmit("UIB020221-service", "CancleApply", "glueAction.do");
  283. }*/
  284. ]]>
  285. </script>
  286. </xhtml:head>
  287. <xhtml:body pagewidth="980" pageheight="700" guideline="1,987;1,980;">
  288. <line id="line2" style="x1:0px; y1:1px; x2:962px; y2:1px; "/>
  289. <line id="line1" style="x1:0px; y1:30px; x2:964px; y2:30px; "/>
  290. <datagrid id="datagrid1" nodeset="/root/datagrid1/SlabTotDcs_Row" caption="选择^板坯号^进程状态^判定方式^允许出库^操作时间^错误检查^计划规格^磅重^不可热送钢钟^流程不可热送钢种^不可热送原因^非直送原因^说明^实际规格^实际牌号^合同号^余材区分^系统成分等级^系统外观等级^解除合同^成分等级^外观等级^综合等级^操作人^操作时间" colsep="^" colwidth="43, 86, 79, 79, 39, 58, 31, 76, 48, 100, 59, 86, 84, 76, 96, 72, 37, 47, 55, 65, 96, 96, 99, 99, 99, 99" explorerbar="sortshow" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:35px; width:978px; height:475px; ">
  291. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  292. <col ref="SLAB_NO" style="left:63px; top:35px; width:86px; height:21px; text-align:left; "/>
  293. <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
  294. <choices>
  295. <itemset nodeset="/root/comboData/PROC_Row">
  296. <label ref="SM_CFNM"/>
  297. <value ref="SM_CD"/>
  298. </itemset>
  299. </choices>
  300. </col>
  301. <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo" style="text-align:left; ">
  302. <choices>
  303. <item>
  304. <label>内控判定</label>
  305. <value>1</value>
  306. </item>
  307. <item>
  308. <label>炼钢放行(订单材)</label>
  309. <value>2</value>
  310. </item>
  311. <item>
  312. <label>正常流转</label>
  313. <value>3</value>
  314. </item>
  315. <item>
  316. <label>成品放行</label>
  317. <value>4</value>
  318. </item>
  319. <item>
  320. <label>改判</label>
  321. <value>5</value>
  322. </item>
  323. <item>
  324. <label>判次</label>
  325. <value>6</value>
  326. </item>
  327. <item>
  328. <label>强制合格</label>
  329. <value>7</value>
  330. </item>
  331. <item>
  332. <label>炼钢放行(余材)</label>
  333. <value>8</value>
  334. </item>
  335. <item>
  336. <label>化废</label>
  337. <value>10</value>
  338. </item>
  339. <item>
  340. <label>流转申请中</label>
  341. <value>11</value>
  342. </item>
  343. <item>
  344. <label>流转申请取消</label>
  345. <value>12</value>
  346. </item>
  347. <item>
  348. <label>流转确认成功</label>
  349. <value>13</value>
  350. </item>
  351. <item>
  352. <label>手动充当</label>
  353. <value>14</value>
  354. </item>
  355. </choices>
  356. </col>
  357. <col ref="SLAB_OUT_TP"/>
  358. <col ref="SLAB_OUT_TP_DTIME" visibility="hidden"/>
  359. <col ref="ERROR_YN" visibility="hidden" style="text-align:left; "/>
  360. <col ref="INSTR_TWL" visibility="visible" style="text-align:left; "/>
  361. <col ref="WEIGHT_WGT" style="text-align:left; "/>
  362. <col ref="NO_HOT_STEELNAME" visibility="hidden" style="text-align:left; "/>
  363. <col ref="NO_CRAFT_STEELNAME" visibility="visible" style="text-align:left; "/>
  364. <col disabled="true" ref="NO_HOT_REASON" type="combo" style="text-align:left; ">
  365. <choices>
  366. <itemset nodeset="/root/comboData2/HotSong_Row">
  367. <label ref="SM_CFNM"/>
  368. <value ref="SM_CD"/>
  369. </itemset>
  370. </choices>
  371. </col>
  372. <col disabled="true" ref="NO_DIRECT_REASON" type="combo" style="text-align:left; ">
  373. <choices>
  374. <itemset nodeset="/root/comboData3/LengthSong_Row">
  375. <label ref="SM_CFNM"/>
  376. <value ref="SM_CD"/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. <col editable="false" ref="SLAB_DCS_DETAIL" type="input" style="text-align:left; "/>
  381. <col ref="TWL" visibility="visible" style="text-align:left; "/>
  382. <col ref="STL_GRD" style="text-align:left; "/>
  383. <col ref="ORD_NO" style="text-align:left; "/>
  384. <col disabled="true" ref="ORD_FL" type="combo" style="text-align:left; ">
  385. <choices>
  386. <item>
  387. <label>订单材</label>
  388. <value>1</value>
  389. </item>
  390. <item>
  391. <label>余材</label>
  392. <value>2</value>
  393. </item>
  394. </choices>
  395. </col>
  396. <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
  397. <choices>
  398. <item>
  399. <label>合格</label>
  400. <value>1</value>
  401. </item>
  402. <item>
  403. <label>不合格</label>
  404. <value>2</value>
  405. </item>
  406. <item>
  407. <label>待判定</label>
  408. <value/>
  409. </item>
  410. <item>
  411. <label>化废</label>
  412. <value>3</value>
  413. </item>
  414. </choices>
  415. </col>
  416. <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
  417. <choices>
  418. <item>
  419. <label>合格</label>
  420. <value>1</value>
  421. </item>
  422. <item>
  423. <label>不合格</label>
  424. <value>2</value>
  425. </item>
  426. <item>
  427. <label>待修磨</label>
  428. <value>3</value>
  429. </item>
  430. <item>
  431. <label>待判</label>
  432. <value/>
  433. </item>
  434. </choices>
  435. </col>
  436. <col disabled="true" ref="POPORD_YN" type="combo" visibility="hidden" style="text-align:left; ">
  437. <choices>
  438. <item>
  439. <label>是</label>
  440. <value>Y</value>
  441. </item>
  442. </choices>
  443. </col>
  444. <col disabled="true" ref="SLAB_INGR_DEC_GRD_EXT" type="combo" style="text-align:left; ">
  445. <choices>
  446. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  447. <label ref="SM_CFNM"/>
  448. <value ref="SM_CD"/>
  449. </itemset>
  450. </choices>
  451. </col>
  452. <col disabled="true" ref="EXTSHAPE_GRD_EXT" type="combo" style="text-align:left; ">
  453. <choices>
  454. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  455. <label ref="SM_CFNM"/>
  456. <value ref="SM_CD"/>
  457. </itemset>
  458. </choices>
  459. </col>
  460. <col disabled="true" ref="SLAB_TOT_DEC_GRD" type="combo" style="text-align:left; ">
  461. <choices>
  462. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  463. <label ref="SM_CFNM"/>
  464. <value ref="SM_CD"/>
  465. </itemset>
  466. </choices>
  467. </col>
  468. <col ref="SLAB_TOT_DEC_GRD_ID" style="text-align:left; "/>
  469. <col ref="SLAB_TOT_DEC_GRD_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  470. <!--<script type="javascript" ev:event="onclick">
  471. <![CDATA[
  472. var iRow=datagrid1.row; //点击了哪一行,标题行算第0行。
  473. if(iRow==0)
  474. return;
  475. var BPNO=datagrid1.valueMatrix(iRow,2).substr(0,10); //板坯号,前10位就是炉号。如J91-00338A,
  476. var ChargeNo=BPNO.substr(0,10);
  477. //alert(ChargeNo);
  478. model.removenode("/root/reqData");
  479. model.makeValue("/root/reqData/CHNO",ChargeNo);
  480. commSubmit("UIB020221-service","returnselect","glueAction.do");
  481. model.copyNode("/root/LHResult_Row","/root/resData/LHResult_VO/LHResult_Row");
  482. //model.copyNode("/root/LHResult_Row","/root/resData/LHResult_VO/LHResult_Row");
  483. model.refresh();
  484. ]]>
  485. </script>
  486. -->
  487. </datagrid>
  488. <caption id="caption1" class="cell" style="left:40px; top:565px; width:70px; height:20px; ">成分等级</caption>
  489. <caption id="caption2" class="cell" style="left:275px; top:565px; width:80px; height:20px; ">外观等级</caption>
  490. <caption id="caption3" class="cell" style="left:500px; top:565px; width:75px; height:20px; ">综合等级</caption>
  491. <select1 id="combo1" ref="/root/formData/INGR" appearance="minimal" style="left:110px; top:565px; width:100px; height:20px; ">
  492. <choices>
  493. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  494. <label ref="SM_CFNM"/>
  495. <value ref="SM_CD"/>
  496. </itemset>
  497. </choices>
  498. <script type="javascript" ev:event="xforms-select">
  499. <![CDATA[
  500. setGrd(combo1);
  501. ]]>
  502. </script>
  503. </select1>
  504. <select1 id="combo2" ref="/root/formData/EXGD" appearance="minimal" style="left:355px; top:565px; width:100px; height:20px; ">
  505. <choices>
  506. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  507. <label ref="SM_CFNM"/>
  508. <value ref="SM_CD"/>
  509. </itemset>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-select">
  512. <![CDATA[
  513. setGrd(combo2);
  514. ]]>
  515. </script>
  516. </select1>
  517. <select1 id="combo3" ref="/root/formData/TOTL" appearance="minimal" style="left:575px; top:565px; width:100px; height:20px; ">
  518. <choices>
  519. <itemset nodeset="/root/comboData1/IngrStatus_Row">
  520. <label ref="SM_CFNM"/>
  521. <value ref="SM_CD"/>
  522. </itemset>
  523. </choices>
  524. <script type="javascript" ev:event="xforms-select">
  525. <![CDATA[
  526. setGrd(combo3);
  527. ]]>
  528. </script>
  529. </select1>
  530. <caption id="caption4" class="cell" style="left:0px; top:5px; width:55px; height:20px; ">炉 号</caption>
  531. <input id="input1" ref="/root/formData/CHARGE_NO" style="left:55px; top:5px; width:90px; height:20px; "/>
  532. <select1 id="combo4" ref="/root/formData/TIME_TYPE" appearance="minimal" style="left:150px; top:5px; width:75px; height:20px; ">
  533. <choices>
  534. <item>
  535. <label>判定日期</label>
  536. <value>1</value>
  537. </item>
  538. <item>
  539. <label>生产日期</label>
  540. <value>2</value>
  541. </item>
  542. </choices>
  543. </select1>
  544. <input id="input2" ref="/root/formData/SDTIME" inputtype="date" style="left:225px; top:5px; width:85px; height:20px; "/>
  545. <line id="line3" style="x1:310px; y1:15px; x2:320px; y2:15px; "/>
  546. <input id="input3" ref="/root/formData/EDTIME" inputtype="date" style="left:320px; top:5px; width:85px; height:20px; "/>
  547. <caption id="caption5" class="cell" visibility="hidden" style="left:785px; top:470px; width:100px; height:20px; ">是否解除订单</caption>
  548. <select1 id="combo5" ref="/root/formData/ORD_YN" visibility="hidden" appearance="minimal" style="left:885px; top:470px; width:55px; height:20px; ">
  549. <choices>
  550. <item>
  551. <label/>
  552. <value/>
  553. </item>
  554. <item>
  555. <label>是</label>
  556. <value>Y</value>
  557. </item>
  558. </choices>
  559. <script type="javascript" ev:event="xforms-select">
  560. <![CDATA[
  561. if(combo5.value == "Y")
  562. {
  563. if(commComfirmBox("订单一经解除,将无法还原,操作将被详细记录,确认操作?","提示")=="0") return;
  564. }
  565. setGrd(combo5);
  566. ]]>
  567. </script>
  568. </select1>
  569. <caption id="caption6" class="cell" visibility="visible" style="left:745px; top:565px; width:70px; height:20px; ">允许出库</caption>
  570. <select1 id="combo6" ref="/root/formData/SLABOUT" appearance="minimal" style="left:815px; top:565px; width:100px; height:20px; ">
  571. <choices>
  572. <item>
  573. <label/>
  574. <value/>
  575. </item>
  576. <item>
  577. <label>是</label>
  578. <value>Y</value>
  579. </item>
  580. </choices>
  581. <script type="javascript" ev:event="xforms-select">
  582. <![CDATA[
  583. setGrd(combo6);
  584. ]]>
  585. </script>
  586. </select1>
  587. <button id="button1" visibility="hidden" style="left:745px; top:5px; width:45px; height:20px; background-color:#00ccff; ">
  588. <caption>查询</caption>
  589. <script type="javascript" ev:event="onclick">
  590. <![CDATA[
  591. find();
  592. ]]>
  593. </script>
  594. </button>
  595. <button id="button2" visibility="hidden" style="left:800px; top:5px; width:62px; height:20px; background-color:#00ff00; ">
  596. <caption>申报待判</caption>
  597. <script type="javascript" ev:event="onclick">
  598. <![CDATA[
  599. apply();
  600. find();
  601. ]]>
  602. </script>
  603. </button>
  604. <button id="button3" visibility="hidden" style="left:860px; top:5px; width:68px; height:20px; background-color:#00ff00; ">
  605. <caption>取消申报</caption>
  606. <script type="javascript" ev:event="onclick">
  607. <![CDATA[
  608. CancleApply();
  609. find();
  610. ]]>
  611. </script>
  612. </button>
  613. <select1 id="combo7" ref="/root/formData/IS_EXTSHAPE_DCS" appearance="minimal" style="left:465px; top:5px; width:50px; height:20px; ">
  614. <choices>
  615. <item>
  616. <label>全部</label>
  617. <value>False</value>
  618. </item>
  619. <item>
  620. <label>待判</label>
  621. <value>True</value>
  622. </item>
  623. </choices>
  624. </select1>
  625. <caption id="caption7" class="cell" style="left:410px; top:5px; width:55px; height:20px; ">外观判定</caption>
  626. <caption id="caption8" class="cell" style="left:520px; top:5px; width:55px; height:20px; ">成分判定</caption>
  627. <select1 id="combo8" ref="/root/formData/IS_INGR_DCS" appearance="minimal" style="left:575px; top:5px; width:50px; height:20px; ">
  628. <choices>
  629. <item>
  630. <label>全部</label>
  631. <value>False</value>
  632. </item>
  633. <item>
  634. <label>待判</label>
  635. <value>True</value>
  636. </item>
  637. </choices>
  638. </select1>
  639. <caption id="caption9" class="cell" style="left:630px; top:5px; width:55px; height:20px; ">综合判定</caption>
  640. <select1 id="combo9" ref="/root/formData/IS_TOT_DCS" appearance="minimal" style="left:685px; top:5px; width:50px; height:20px; ">
  641. <choices>
  642. <item>
  643. <label>全部</label>
  644. <value>False</value>
  645. </item>
  646. <item>
  647. <label>待判</label>
  648. <value>True</value>
  649. </item>
  650. </choices>
  651. </select1>
  652. <select id="checkbox1" ref="/root/formData/CHECKED1" visibility="hidden" overflow="hidden" appearance="full" style="left:880px; top:590px; width:18px; height:20px; border-style:none; ">
  653. <choices>
  654. <item>
  655. <label/>
  656. <value>1</value>
  657. </item>
  658. </choices>
  659. <script type="javascript" ev:event="xforms-select">
  660. <![CDATA[
  661. setGrd(checkbox1);
  662. ]]>
  663. </script>
  664. <script type="javascript" ev:event="onclick">
  665. <![CDATA[
  666. setGrd(checkbox1);
  667. ]]>
  668. </script>
  669. </select>
  670. <select id="checkbox2" ref="/root/formData/CHECKED2" overflow="visible" appearance="full" style="left:45px; top:592px; width:18px; height:20px; border-style:none; ">
  671. <choices>
  672. <item>
  673. <label/>
  674. <value>1</value>
  675. </item>
  676. </choices>
  677. <script type="javascript" ev:event="xforms-select">
  678. <![CDATA[
  679. setGrd(checkbox2);
  680. ]]>
  681. </script>
  682. <script type="javascript" ev:event="onclick">
  683. <![CDATA[
  684. setGrd(checkbox2);
  685. ]]>
  686. </script>
  687. </select>
  688. <caption id="caption10" class="cell" visibility="hidden" style="left:900px; top:590px; width:80px; height:20px; ">不可热送钢钟</caption>
  689. <caption id="caption11" class="cell" style="left:70px; top:590px; width:140px; height:20px; ">流程不可热送钢种</caption>
  690. <caption id="caption12" class="cell" style="left:275px; top:590px; width:90px; height:20px; ">不可热送的原因</caption>
  691. <select1 id="combo10" ref="/root/formData/RESULTHOT" appearance="minimal" style="left:365px; top:590px; width:90px; height:20px; ">
  692. <choices>
  693. <itemset nodeset="/root/comboData2/HotSong_Row">
  694. <label ref="SM_CFNM"/>
  695. <value ref="SM_CD"/>
  696. </itemset>
  697. </choices>
  698. <script type="javascript" ev:event="xforms-select">
  699. <![CDATA[
  700. setGrd(combo10);
  701. ]]>
  702. </script>
  703. </select1>
  704. <caption id="caption13" class="cell" style="left:500px; top:590px; width:90px; height:20px; ">非直送的原因</caption>
  705. <select1 id="combo11" ref="/root/formData/RESULTLENGTH" appearance="minimal" style="left:585px; top:590px; width:90px; height:20px; ">
  706. <choices>
  707. <itemset nodeset="/root/comboData3/LengthSong_Row">
  708. <label ref="SM_CFNM"/>
  709. <value ref="SM_CD"/>
  710. </itemset>
  711. </choices>
  712. <script type="javascript" ev:event="xforms-select">
  713. <![CDATA[
  714. setGrd(combo11);
  715. ]]>
  716. </script>
  717. </select1>
  718. <button id="button4" visibility="hidden" style="left:935px; top:5px; width:45px; height:20px; background-color:#00ccff; ">
  719. <caption>保存</caption>
  720. <script type="javascript" ev:event="onclick">
  721. <![CDATA[
  722. save();
  723. ]]>
  724. </script>
  725. </button>
  726. <textarea id="textarea1" ref="/root/dcsdatil" style="left:35px; top:510px; width:420px; height:50px; "/>
  727. <button id="button5" style="left:915px; top:515px; width:35px; height:40px; background-color:#00ccff; ">
  728. <caption>提交说明</caption>
  729. <script type="javascript" ev:event="onclick">
  730. <![CDATA[
  731. setGrd(textarea1);
  732. ]]>
  733. </script>
  734. </button>
  735. <caption id="caption14" class="cell" style="left:500px; top:530px; width:75px; height:20px; ">备注内容</caption>
  736. <datagrid id="datagrid3" nodeset="/root/datagrid3/MomeContent_Row" visibility="hidden" allowuserresize="false" caption="选择^备注内容^SM_CD" colsep="^" colwidth="40, 220, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:455px; top:165px; width:240px; height:365px; ">
  737. <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
  738. <col disabled="true" ref="SM_CFNM" type="combo">
  739. <choices>
  740. <itemset nodeset="/root/initMome/ComboMome_Row">
  741. <label ref="LABEL"/>
  742. <value ref="VALUE"/>
  743. </itemset>
  744. </choices>
  745. </col>
  746. <col ref="SM_CD" visibility="hidden"/>
  747. <script type="javascript" ev:event="xforms-value-changed">
  748. <![CDATA[
  749. /*
  750. 通过循环判断表3中是否有选中的行,只对表3中选中的行进行操作
  751. */
  752. var mome="";
  753. for(var i=1 ; i <= datagrid3.rows; i++)
  754. {
  755. if(datagrid3.valueMatrix(i , datagrid3.colRef("CHK1"))=="Y")
  756. {
  757. if(mome=="")
  758. {
  759. mome=datagrid3.valueMatrix(i , datagrid3.colRef("SM_CFNM"));
  760. }
  761. else
  762. {
  763. mome=mome +","+ datagrid3.valueMatrix(i , datagrid3.colRef("SM_CFNM"));
  764. }
  765. }
  766. }
  767. textarea2.value=mome;
  768. if(textarea2.value=="")
  769. {
  770. textarea1.value=textarea3.value;
  771. }
  772. else
  773. {
  774. textarea1.value=textarea2.value+","+ textarea3.value;
  775. }
  776. model.refresh();
  777. ]]>
  778. </script>
  779. </datagrid>
  780. <input id="input4" ref="/root/formData/sfMethod" inputtype="button" style="left:575px; top:530px; width:100px; height:20px; ">
  781. <script type="javascript" ev:event="onclick">
  782. <![CDATA[
  783. datagrid3.visible = !datagrid3.visible;
  784. for(var i=1; i <= datagrid3.rows; i++)
  785. {
  786. datagrid3.valueMatrix(i , 0)="N";
  787. }
  788. model.refresh();
  789. ]]>
  790. </script>
  791. </input>
  792. <caption id="caption15" class="cell" style="left:745px; top:530px; width:70px; height:20px; ">成分内容</caption>
  793. <input id="input5" ref="/root/formData/cfMethod" inputtype="button" style="left:815px; top:530px; width:100px; height:20px; ">
  794. <script type="javascript" ev:event="onclick">
  795. <![CDATA[
  796. datagrid2.visible = !datagrid2.visible;
  797. for(var i=1; i <= datagrid2.rows; i++)
  798. {
  799. datagrid2.valueMatrix(i , 0)="N";
  800. }
  801. model.refresh();
  802. ]]>
  803. </script>
  804. </input>
  805. <datagrid id="datagrid2" nodeset="/root/datagrid2/ChemContent_Row" visibility="hidden" allowuserresize="false" caption="选择^成分内容^SM_CD" colsep="^" colwidth="40, 220, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:695px; top:165px; width:220px; height:365px; ">
  806. <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
  807. <col disabled="true" ref="SM_CFNM" type="combo">
  808. <choices>
  809. <itemset nodeset="/root/initChem/ComboChem_Row">
  810. <label ref="LABEL"/>
  811. <value ref="VALUE"/>
  812. </itemset>
  813. </choices>
  814. </col>
  815. <col ref="SM_CD" visibility="hidden"/>
  816. <script type="javascript" ev:event="xforms-value-changed">
  817. <![CDATA[
  818. /*
  819. 通过循环判断表2中是否有选中的行,只对表2中选中的行进行操作
  820. */
  821. var chem="";
  822. for(var i=1 ; i <= datagrid2.rows; i++)
  823. {
  824. if(datagrid2.valueMatrix(i , datagrid2.colRef("CHK1"))=="Y")
  825. {
  826. if(chem=="")
  827. {
  828. chem=datagrid2.valueMatrix(i , datagrid2.colRef("SM_CFNM"));
  829. }
  830. else
  831. {
  832. chem=chem +","+ datagrid2.valueMatrix(i , datagrid2.colRef("SM_CFNM"));
  833. }
  834. }
  835. }
  836. textarea3.value=chem;
  837. if(textarea2.value=="")
  838. {
  839. textarea1.value=textarea3.value;
  840. }
  841. else
  842. {
  843. textarea1.value=textarea2.value+","+ textarea3.value;
  844. }
  845. model.refresh();
  846. ]]>
  847. </script>
  848. </datagrid>
  849. <textarea id="textarea2" ref="/root/dcsdatil2" visibility="hidden" style="left:745px; top:590px; width:40px; height:15px; "/>
  850. <textarea id="textarea3" ref="/root/dcsdatil3" visibility="hidden" style="left:790px; top:590px; width:40px; height:15px; "/>
  851. <button id="button6" visibility="visible" style="left:760px; top:5px; width:70px; height:20px; background-color:#00ccff; ">
  852. <caption>导出</caption>
  853. <script type="javascript" ev:event="DOMActivate">
  854. <![CDATA[
  855. excelExport1();
  856. ]]>
  857. </script>
  858. </button>
  859. </xhtml:body>
  860. </xhtml:html>