UID030030_popup.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. </root>
  21. </instance>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. //datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;
  25. //datagrid2.colStatus(0)=false;
  26. //datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
  27. //datagrid1.colStatus(0)=false;
  28. model.removenode("/root/reqData");
  29. commSubmit("UID030030-service","findCastInfoWhenSure","glueAction.do");
  30. errorMessage();
  31. model.copyNode("/root/gridData2/CastInfoWhenSureRes_VO","/root/resData/CastInfoWhenSureRes_VO");
  32. model.refresh();
  33. ]]>
  34. </script>
  35. </model>
  36. <script type="javascript" src="../../js/boaCommon.js"/>
  37. <script type="javascript" src="../../js/boaMsg.js"/>
  38. <script type="javascript" src="../../js/mesCommon.js"/>
  39. <script type="javascript" src="../../js/dCommon.js"/>
  40. </xhtml:head>
  41. <xhtml:body pagewidth="480" pageheight="465" guideline="2,500;1,708;" style="font-family:宋体; ">
  42. <line id="line1" style="x1:5px; y1:30px; x2:375px; y2:30px; "/>
  43. <line id="line2" style="x1:5px; y1:55px; x2:375px; y2:55px; "/>
  44. <datagrid id="datagrid2" nodeset="/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row" caption="选择^传送顺序^管理号(浇次)^计划炼钢^计划炼钢|选择^传送顺序^管理号(浇次)^开始时间^结束时间" colsep="^" colwidth="45, 55, 70, 104, 111" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:80px; width:396px; height:360px; ">
  45. <col ref="CHK" type="radio"/>
  46. <col ref="WITHIN_SUB_SEQ"/>
  47. <col ref="MAT_SPEC_SEQ"/>
  48. <col ref="INSCHARGESTRDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
  49. <col ref="INSCHARGEENDDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
  50. </datagrid>
  51. <caption id="caption13" style="left:5px; top:445px; width:410px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
  52. <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>
  53. <button id="button2" style="left:215px; top:35px; width:70px; height:20px; background-image:../../images/create.gif; ">
  54. <caption>确定</caption>
  55. <script type="javascript" ev:event="onclick">
  56. <![CDATA[
  57. var pbWidth = 200;
  58. var pbHeight = 100;
  59. var width = htmlwindow.screen.width;
  60. var height = htmlwindow.screen.height;
  61. var left = (width - pbWidth) / 2;
  62. var top = (height - pbHeight) / 2;
  63. 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;");
  64. var count = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row)");
  65. var chkCheck = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true'])");
  66. /*for(var i = 1; i <= count; i++)
  67. {
  68. var CHK = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/CHK");
  69. if(CHK == "true")
  70. {
  71. model.makeValue("/root/reqData/CastNo","/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/MAT_SPEC_SEQ");
  72. break;
  73. }
  74. }*/
  75. if(chkCheck == 0)
  76. {
  77. body.removeChild("progressBar");
  78. window.alert("请选择传送对象!","提示信息");
  79. return;
  80. }
  81. var existYN = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/EXIST_YN")
  82. if(existYN == "0")
  83. {
  84. body.removeChild("progressBar");
  85. window.alert("该浇次中没有任何炉次信息,不能下发计划!","提示信息");
  86. return;
  87. }
  88. //commSendReq("/root/sendInfo");
  89. model.removenode("/root/reqData");
  90. model.makeValue("/root/reqData/CastNo",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/MAT_SPEC_SEQ"));
  91. model.makeValue("/root/reqData/INSCHARGESTRDTIME",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGESTRDTIME"));
  92. model.makeValue("/root/reqData/INSCHARGEENDDTIME",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGEENDDTIME"));
  93. model.removenode("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']");
  94. commSubmit("UID030030-service","sureCastInfoToPro","glueAction.do");
  95. body.removeChild("progressBar");
  96. errorMessage();
  97. // model.makeNode("/root/resData/ListResult_0_VO");
  98. // errorMessage();
  99. // window.alert("指示确认成功!","提示信息");
  100. // window.close();
  101. ]]>
  102. </script>
  103. </button>
  104. <button id="button4" style="left:290px; top:35px; width:70px; height:20px; background-image:../../images/btn_exit.gif; ">
  105. <caption>关闭</caption>
  106. <script type="javascript" ev:event="onclick">
  107. <![CDATA[
  108. window.close();
  109. ]]>
  110. </script>
  111. </button>
  112. <img id="img1" src="../../images/tit.gif" style="left:5px; top:10px; width:13px; height:13px; background-stretch:stretch; "/>
  113. <caption id="caption3" style="left:23px; top:8px; width:100px; height:20px; font-weight:bold; ">指示确定</caption>
  114. </xhtml:body>
  115. </xhtml:html>