3bc1fc887369b352fa3cce42430b6a0ae98cae21.svn-base 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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("UID040010-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="380" 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="100, 100, 149" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:80px; width:350px; height:360px; ">
  45. <col ref="CHK" type="radio"/>
  46. <col ref="WITHIN_SUB_SEQ"/>
  47. <col ref="MAT_SPEC_SEQ"/>
  48. </datagrid>
  49. <caption id="caption13" style="left:5px; top:445px; width:370px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
  50. <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>
  51. <button id="button2" style="left:215px; top:35px; width:70px; height:20px; background-image:../../images/create.gif; ">
  52. <caption>确定</caption>
  53. <script type="javascript" ev:event="onclick">
  54. <![CDATA[
  55. var pbWidth = 200;
  56. var pbHeight = 100;
  57. var width = htmlwindow.screen.width;
  58. var height = htmlwindow.screen.height;
  59. var left = (width - pbWidth) / 2;
  60. var top = (height - pbHeight) / 2;
  61. 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;");
  62. var count = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row)");
  63. var chkCheck = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true'])");
  64. /*for(var i = 1; i <= count; i++)
  65. {
  66. var CHK = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/CHK");
  67. if(CHK == "true")
  68. {
  69. model.makeValue("/root/reqData/CastNo","/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/MAT_SPEC_SEQ");
  70. break;
  71. }
  72. }*/
  73. if(chkCheck == 0)
  74. {
  75. body.removeChild("progressBar");
  76. window.alert("请选择传送对象!","提示信息");
  77. return;
  78. }
  79. var existYN = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/EXIST_YN")
  80. if(existYN == "0")
  81. {
  82. body.removeChild("progressBar");
  83. window.alert("该浇次中没有任何炉次信息,不能下发计划!","提示信息");
  84. return;
  85. }
  86. //commSendReq("/root/sendInfo");
  87. model.removenode("/root/reqData");
  88. model.makeValue("/root/reqData/CastNo",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/MAT_SPEC_SEQ"));
  89. model.removenode("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']");
  90. commSubmit("UID040010-service","sureCastInfoToPro","glueAction.do");
  91. body.removeChild("progressBar");
  92. errorMessage();
  93. // model.makeNode("/root/resData/ListResult_0_VO");
  94. // errorMessage();
  95. // window.alert("指示确认成功!","提示信息");
  96. // window.close();
  97. ]]>
  98. </script>
  99. </button>
  100. <button id="button4" style="left:290px; top:35px; width:70px; height:20px; background-image:../../images/btn_exit.gif; ">
  101. <caption>关闭</caption>
  102. <script type="javascript" ev:event="onclick">
  103. <![CDATA[
  104. window.close();
  105. ]]>
  106. </script>
  107. </button>
  108. <img id="img1" src="../../images/tit.gif" style="left:5px; top:10px; width:13px; height:13px; background-stretch:stretch; "/>
  109. <caption id="caption3" style="left:23px; top:8px; width:100px; height:20px; font-weight:bold; ">指示确定</caption>
  110. </xhtml:body>
  111. </xhtml:html>