9937ff4d0e3c686f32c48f49a7e553660e721bc9.svn-base 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <resData/>
  12. <reqData/>
  13. <gridData1>
  14. <CastInfoWhenSureRes_VO/>
  15. </gridData1>
  16. <gridData2>
  17. <CastInfoWhenSureRes_VO/>
  18. </gridData2>
  19. <sendInfo/>
  20. <initData>
  21. <rcvInfo/>
  22. </initData>
  23. </root>
  24. </instance>
  25. <script type="javascript">
  26. <![CDATA[
  27. //1、获取用户登录信息,只能在页面初始化函数中调用
  28. function InitParams(node) {
  29. if (typeof node == "undefined" && typeof node != "object") return;
  30. model.removenode("/root/initData/rcvInfo");
  31. model.makeNode("/root/initData/rcvInfo");
  32. var nodeList = node.childNodes;
  33. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  34. for (var i = 0; i < nodeList.length; i++)
  35. node.appendChild(nodeList.item(i));
  36. }
  37. //2. 页面初始化函数(必须)
  38. function Init(node)
  39. {
  40. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  41. // 在程序中会重建该节点,最好不要重名
  42. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  43. //...
  44. }
  45. ]]>
  46. </script>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. //datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;
  50. //datagrid2.colStatus(0)=false;
  51. //datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
  52. //datagrid1.colStatus(0)=false;
  53. model.removenode("/root/reqData");
  54. commSubmit("UID020040-service","findCastInfoWhenSure","glueAction.do");
  55. errorMessage();
  56. model.copyNode("/root/gridData2/CastInfoWhenSureRes_VO","/root/resData/CastInfoWhenSureRes_VO");
  57. model.refresh();
  58. ]]>
  59. </script>
  60. </model>
  61. <script type="javascript" src="../../js/boaCommon.js"/>
  62. <script type="javascript" src="../../js/boaMsg.js"/>
  63. <script type="javascript" src="../../js/mesCommon.js"/>
  64. <script type="javascript" src="../../js/dCommon.js"/>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="480" pageheight="465" guideline="2,500;1,708;" style="font-family:宋体; ">
  67. <line id="line1" style="x1:5px; y1:30px; x2:470px; y2:30px; "/>
  68. <line id="line2" style="x1:5px; y1:55px; x2:470px; y2:55px; "/>
  69. <datagrid id="datagrid2" nodeset="/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row" caption="选择^传送顺序^管理号(浇次)^计划炼钢^计划炼钢|选择^传送顺序^管理号(浇次)^开始时间^结束时间" colsep="^" colwidth="66, 73, 90, 109, 109" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:80px; width:451px; height:360px; ">
  70. <col ref="CHK" type="radio"/>
  71. <col ref="WITHIN_SUB_SEQ"/>
  72. <col ref="MAT_SPEC_SEQ"/>
  73. <col ref="INSCHARGESTRDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
  74. <col editable="false" ref="INSCHARGEENDDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
  75. </datagrid>
  76. <caption id="caption13" style="left:5px; top:445px; width:370px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
  77. <caption id="caption1" style="left:15px; top:60px; width:100px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">传送对象</caption>
  78. <button id="button2" style="left:318px; top:35px; width:70px; height:20px; background-image:../../images/create.gif; ">
  79. <caption>确定</caption>
  80. <script type="javascript" ev:event="onclick">
  81. <![CDATA[
  82. var pbWidth = 200;
  83. var pbHeight = 100;
  84. var width = htmlwindow.screen.width;
  85. var height = htmlwindow.screen.height;
  86. var left = (width - pbWidth) / 2;
  87. var top = (height - pbHeight) / 2;
  88. var progressBar = body.createChild("xforms:group", "id:progressBar;left:" + left + "px; top:" + top + "px; width:" + pbWidth + "px; height:" + pbHeight + "px; popup:true; showeffect:blend 300; background-color:#dddddd; background-image:../../images/wait.gif; background-position:center; background-stretch:no-stretch;");
  89. var count = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row)");
  90. var chkCheck = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true'])");
  91. /*for(var i = 1; i <= count; i++)
  92. {
  93. var CHK = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/CHK");
  94. if(CHK == "true")
  95. {
  96. model.makeValue("/root/reqData/CastNo","/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/MAT_SPEC_SEQ");
  97. break;
  98. }
  99. }*/
  100. if(chkCheck == 0)
  101. {
  102. body.removeChild("progressBar");
  103. window.alert("请选择传送对象!","提示信息");
  104. return;
  105. }
  106. var existYN = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/EXIST_YN")
  107. if(existYN == "0")
  108. {
  109. body.removeChild("progressBar");
  110. window.alert("该浇次中没有任何炉次信息,不能下发计划!","提示信息");
  111. return;
  112. }
  113. //commSendReq("/root/sendInfo");
  114. model.removenode("/root/reqData");
  115. model.makeValue("/root/reqData/RegId" , model.getValue("/root/initData/rcvInfo/REG_ID"));
  116. model.makeValue("/root/reqData/ModId" , model.getValue("/root/initData/rcvInfo/REG_ID"));
  117. model.makeValue("/root/reqData/CastNo",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/MAT_SPEC_SEQ"));
  118. model.makeValue("/root/reqData/insChargeStrDtime",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGESTRDTIME"));
  119. model.makeValue("/root/reqData/insChargeEndDtime",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGEENDDTIME"));
  120. model.removenode("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']");
  121. commSubmit("UID020040-service","sureCastInfoToPro","glueAction.do");
  122. body.removeChild("progressBar");
  123. errorMessage();
  124. // model.makeNode("/root/resData/ListResult_0_VO");
  125. // errorMessage();
  126. // window.alert("指示确认成功!","提示信息");
  127. // window.close();
  128. ]]>
  129. </script>
  130. </button>
  131. <button id="button4" style="left:393px; top:35px; width:70px; height:20px; background-image:../../images/btn_exit.gif; ">
  132. <caption>关闭</caption>
  133. <script type="javascript" ev:event="onclick">
  134. <![CDATA[
  135. window.close();
  136. ]]>
  137. </script>
  138. </button>
  139. <img id="img1" src="../../images/tit.gif" style="left:5px; top:10px; width:13px; height:13px; background-stretch:stretch; "/>
  140. <caption id="caption3" style="left:23px; top:8px; width:100px; height:20px; font-weight:bold; ">指示确定</caption>
  141. </xhtml:body>
  142. </xhtml:html>