fbf6bb1e25d9ce6c6ff65b743fd08955ba5924a2.svn-base 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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>标准选择</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <datagrid1/>
  10. </root>
  11. </instance>
  12. <script type="javascript" ev:event="xforms-ready">
  13. <![CDATA[
  14. if(ope.datagrid1.colRef("CUST_SPEC_NO_INGR")==opeCurrentCol)
  15. {
  16. QueryString = "CUST_SPEC_NO_INGR";
  17. CustCd = ope.datagrid1.valueMatrix(opeCurrentRow , ope.datagrid1.colRef("CUST_SPEC_NO"));
  18. }
  19. else if(ope.datagrid1.colRef("CUST_SPEC_NO_QLTY")==opeCurrentCol)
  20. {
  21. QueryString = "CUST_SPEC_NO_QLTY";
  22. CustCd = ope.datagrid1.valueMatrix(opeCurrentRow , ope.datagrid1.colRef("CUST_SPEC_NO"));
  23. }
  24. else if(ope.datagrid1.colRef("CUST_SPEC_NO_DEL")==opeCurrentCol)
  25. {
  26. QueryString = "CUST_SPEC_NO_DEL";
  27. CustCd = ope.datagrid1.valueMatrix(opeCurrentRow , ope.datagrid1.colRef("CUST_SPEC_NO"));
  28. }
  29. find();
  30. ]]>
  31. </script>
  32. </model>
  33. <script type="javascript" src="../../js/boaCommon.js"/>
  34. <script type="javascript">
  35. <![CDATA[
  36. var ope = window.opener; //获取父窗口对象
  37. var opeCurrentRow = ope.datagrid1.row;
  38. var opeCurrentCol = ope.datagrid1.col;
  39. var QueryString;//查询条件
  40. var CustCd;
  41. function find()
  42. {
  43. model.removenode("/root/reqData");
  44. model.makeValue("/root/reqData/QueryContent" , QueryString);
  45. model.makeValue("/root/reqData/CUSTCD" , CustCd);
  46. commSubmit("UIB010250-service", "find1", "glueAction.do");
  47. model.copyNode("/root/datagrid1" , "/root/resData/CustReqInfomation_VO");
  48. model.refresh();
  49. }
  50. ]]>
  51. </script>
  52. </xhtml:head>
  53. <xhtml:body pagewidth="350" pageheight="400">
  54. <datagrid id="datagrid1" nodeset="/root/datagrid1/CustReqInfomation_Row" caption="选择^客户参数号^标准牌号" colsep="^" colwidth="57, 127, 100" mergecellsfixedrows="bycolrec" rowheight="35" rowsep="|" style="left:15px; top:10px; width:325px; height:375px; ">
  55. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  56. <col ref="VALUE1" style="text-align:left; "/>
  57. <col ref="VALUE2" visibility="visible" style="text-align:left; "/>
  58. <script type="javascript" ev:event="onclick">
  59. <![CDATA[
  60. if(datagrid1.col == datagrid1.colRef("CHK") )
  61. {
  62. if(commComfirmBox("确认?","提示")=="0") return;
  63. ope.datagrid1.valueMatrix(opeCurrentRow , opeCurrentCol) =
  64. datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("VALUE1"));
  65. ope.datagrid1.addStatus(opeCurrentRow , "update");
  66. window.close();
  67. }
  68. ]]>
  69. </script>
  70. </datagrid>
  71. </xhtml:body>
  72. </xhtml:html>