UIZ030020.xrw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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" autocdata="false">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <searchInfo>
  13. <LG_CD>A01004</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. </codeData>
  18. <formData>
  19. <searchInfo>
  20. <PRODNM_CD/>
  21. <DEL_TO_DATE_MIN/>
  22. <DEL_TO_DATE_MAX/>
  23. </searchInfo>
  24. </formData>
  25. <gridData>
  26. </gridData>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. if (window.parent == null) Init();
  32. ]]>
  33. </script>
  34. </model>
  35. <script type="javascript" src="../../js/boaCommon.js"/>
  36. <script type="javascript" src="../../js/boaMsg.js"/>
  37. <script type="javascript" src="../../js/mesCommon.js">
  38. <![CDATA[
  39. submitID = "UIZ030020-service";
  40. function Init(node) {
  41. InitParams(node);
  42. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO");
  43. model.setValue("/root/formData/searchInfo/DEL_TO_DATE_MIN", commFirstDay());
  44. model.setValue("/root/formData/searchInfo/DEL_TO_DATE_MAX", commCurDate());
  45. pageInit();
  46. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  47. }
  48. function pageInit() {
  49. model.removenode("/root/reqData");
  50. model.removenode("/root/resData");
  51. model.refresh();
  52. colStyle(datagrid1, "LG_NM,SM_CFNM");
  53. }
  54. function find() {
  55. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  56. pageInit();
  57. }
  58. function save() {
  59. exec("/root/formData", datagrid1, "save", "/root/gridData/ListResult_0_VO");
  60. pageInit();
  61. }
  62. function create() {
  63. var datagrid = datagrid1;
  64. commAddRow(datagrid, "LG_NM,SM_CFNM");
  65. datagrid.valueMatrix(datagrid.row, datagrid.colRef("LG_NM")) = 999990;
  66. datagrid.valueMatrix(datagrid.row, datagrid.colRef("SM_CFNM")) = "AR";
  67. }
  68. function remove() {}
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  73. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:35px; ">
  74. <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  75. <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; ">计划日期</caption>
  76. <caption id="caption2" class="cell" style="left:324px; top:5px; width:90px; height:20px; vertical-align:middle; ">品名</caption>
  77. <select1 id="combo2" ref="PRODNM_CD" appearance="minimal" style="left:416px; top:5px; width:110px; height:20px; ">
  78. <choices>
  79. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD = 'A']">
  80. <label ref="SM_CFNM"/>
  81. <value ref="SM_CD"/>
  82. </itemset>
  83. </choices>
  84. </select1>
  85. <input id="input3" ref="DEL_TO_DATE_MIN" inputtype="date" style="left:92px; top:5px; width:110px; height:20px; "/>
  86. <input id="input1" ref="DEL_TO_DATE_MAX" inputtype="date" style="left:205px; top:5px; width:110px; height:20px; "/>
  87. </group>
  88. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="计划日产量(t)^品名^计划日期^修改日期^修改者^SM_CD" colsep="^" colwidth="100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:35px; width:980px; height:585px; border-style:solid; border-right-style:sunken; ">
  89. <col ref="LG_NM" type="input" format="#,###" style="text-align:right; "/>
  90. <col ref="SM_CFNM" type="combo" style="text-align:left; ">
  91. <choices>
  92. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'A01004']">
  93. <label ref="SM_CFNM"/>
  94. <value ref="SM_CD"/>
  95. </itemset>
  96. </choices>
  97. </col>
  98. <col key="false" ref="SM_EFNM" format="yyyy-mm-dd"/>
  99. <col key="false" ref="MOD_DATE" format="yyyy-mm-dd"/>
  100. <col key="false" ref="MOD_ID" style="text-align:left; "/>
  101. <col ref="SM_CD" visibility="hidden"/>
  102. <script type="javascript" ev:event="onentercell">
  103. <![CDATA[
  104. datagrid1.editCell();
  105. ]]>
  106. </script>
  107. <script type="javascript" ev:event="ondblclick">
  108. <![CDATA[
  109. var datagrid = datagrid1;
  110. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  111. ]]>
  112. </script>
  113. </datagrid>
  114. </xhtml:body>
  115. </xhtml:html>