463fb86eb4ff476fc33423128d079d203265c7a1.svn-base 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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[炼钢作业 >> 板坯库管理 >> 板坯库垛位信息查询(UIG040030)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <YARD_ADDR/>
  13. <STORELAY/>
  14. <SLAB_NO/>
  15. </formData>
  16. <gridDAta/>
  17. <resData/>
  18. <reqData/>
  19. </root>
  20. </instance>
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. var parentWindow = window.opener;
  24. var tempYardAddr = parentWindow.model.getValue("/root/tempData/selectCaption");
  25. var searchType = parentWindow.model.getValue("/root/tempData/searchType");
  26. var tempStr = "";
  27. if(searchType == "mill_fl"){
  28. tempStr = "RHF_SCH_YN";
  29. }else if(searchType == "order_fl"){
  30. tempStr = "ORD_FL";
  31. }
  32. model.setValue("/root/formData/YARD_ADDR",tempYardAddr);
  33. model.refresh();
  34. model.removenode("/root/reqData");
  35. commSendReq("/root/formData");
  36. commSubmit("UIG040030-service","find","glueAction.do");
  37. commAppendData("/root/gridDAta/yardAddrDetailResult_VO","/root/resData/yardAddrDetailResult_VO");
  38. model.refresh();
  39. var nodeset = datagrid1.nodeset;
  40. var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
  41. var jj = 0;
  42. for(var ii = 2;ii<=nodeCnt2+1;ii++)
  43. {
  44. jj = ii - 1;
  45. var RhfSch = model.getValue("/root/gridDAta/yardAddrDetailResult_VO/yardAddrDetailResult_Row["+jj+"]/" + tempStr);
  46. if ( RhfSch != null && (RhfSch == "Y" || RhfSch == "2") ) {
  47. datagrid1.cellstyle("background-color", jj, 1, jj, 5) = "#ff00ff";
  48. }
  49. }
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../js/boaCommon.js"/>
  54. <script type="javascript" src="../../js/boaMsg.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. function save()
  58. {
  59. commSendReq("/root/formData");
  60. commSubmit("UIG040030-service","save","glueAction.do");
  61. var errorMsg = model.getValue("/root/resData/ConfMsg_VO/ConfMsg_Row/ERROR_MSG");
  62. if(errorMsg != ""){
  63. alert(errorMsg);
  64. }
  65. }
  66. function find(){
  67. commSendReq("/root/formData");
  68. commSubmit("UIG040030-service","find","glueAction.do");
  69. commAppendData("/root/gridDAta/yardAddrDetailResult_VO","/root/resData/yardAddrDetailResult_VO");
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body guideline="2,615;">
  76. <datagrid id="datagrid1" nodeset="/root/gridDAta/yardAddrDetailResult_VO/yardAddrDetailResult_Row" allowuserresize="false" caption="块^板坯号^厚度^宽度^长度^重量^牌号^合同号^订单号^产品名称^余材区分^精整有无^装炉指示" colwidth="32, 100, 71, 68, 70, 62, 100, 95, 90, 100, 65, 65, 60" defaultrows="30" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:37px; width:980px; height:578px; border-color:#000000; ">
  77. <col ref="STORELAY"/>
  78. <col ref="SLAB_NO" type="input"/>
  79. <col ref="SLAB_THK" type="input" editable="false"/>
  80. <col ref="SLAB_WTH" type="input" editable="false"/>
  81. <col ref="SLAB_LEN" type="input" editable="false"/>
  82. <col ref="SLAB_WGT" type="input" editable="false"/>
  83. <col ref="STL_GRD" type="input" editable="false"/>
  84. <col ref="ORD_NO" type="input" editable="false"/>
  85. <col ref="ORD_SEQ" type="input" disabled="true" editable="false"/>
  86. <col ref="PRODNM_CD" type="input" editable="false"/>
  87. <col ref="ORD_FL" type="combo" disabled="true">
  88. <choices>
  89. <item>
  90. <label>正常材</label>
  91. <value>1</value>
  92. </item>
  93. <item>
  94. <label>余材</label>
  95. <value>2</value>
  96. </item>
  97. </choices>
  98. </col>
  99. <col ref="CORRECT_END_CLF"/>
  100. <col ref="RHF_SCH_YN" type="combo" disabled="true">
  101. <choices>
  102. <item>
  103. <label>指示装炉</label>
  104. <value>Y</value>
  105. </item>
  106. <item>
  107. <label/>
  108. <value/>
  109. </item>
  110. </choices>
  111. </col>
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. model.setValue("/root/formData/STORELAY",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("STORELAY")));
  115. model.setValue("/root/formData/SLAB_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.col));
  116. ]]>
  117. </script>
  118. </datagrid>
  119. <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">存放位置</caption>
  120. <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  121. <input id="input1" ref="/root/formData/YARD_ADDR" style="left:102px; top:5px; width:100px; height:20px; "/>
  122. <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">存放位置</caption>
  123. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  124. <input id="input2" ref="/root/formData/YARD_ADDR" style="left:102px; top:5px; width:100px; height:20px; "/>
  125. <script type="javascript" ev:event="onkeypress">
  126. <![CDATA[
  127. if(event.keyCode == 13){
  128. save();
  129. find();
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:body>
  134. </xhtml:html>