SMLLR90500_AB결과선택.xfdl 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLR90500" position="absolute 0 0 328 342" titletext="Abnormal Result" oninit="SMLLR90500_oninit" onload="SMLLR90500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 26 325 32" style="strokepen:3 solid #33bbbbff;"/>
  8. <Grid id="datagrid3" taborder="1" binddataset="ds_TestInfo" useinputpanel="false" position="absolute 0 31 325 309" autofittype="col" cellclickbound="cell">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="24"/>
  13. <Column size="34"/>
  14. <Column size="81"/>
  15. <Column size="163"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="24" band="head"/>
  19. <Row size="24"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell/>
  23. <Cell col="1" text="선택"/>
  24. <Cell col="2" text="검사코드"/>
  25. <Cell col="3" text="검사항목명"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell text="expr:currow + 1"/>
  29. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  30. <Cell col="2" text="bind:testcd"/>
  31. <Cell col="3" displaytype="text" text="bind:tclsscrnm"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Static id="caption3" text="Abnormal Result" class="tit_2" position="absolute 0 10 133 28"/>
  37. <Button id="button1" taborder="2" text="선택" class="btn4" position="absolute 210 314 266 336" onclick="button1_onclick"/>
  38. <Button id="button2" taborder="3" text="닫기" class="btn4" position="absolute 269 314 325 336" onclick="button2_onclick"/>
  39. </Layout>
  40. </Layouts>
  41. <Objects>
  42. <Dataset id="ds_TestInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="chk" type="STRING"/>
  45. <Column id="testcd" type="STRING"/>
  46. <Column id="tclsscrnm" type="STRING"/>
  47. </ColumnInfo>
  48. </Dataset>
  49. <Dataset id="ds_hidden_abnormalresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="abnormallist" type="STRING" size="256"/>
  52. </ColumnInfo>
  53. </Dataset>
  54. </Objects>
  55. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  56. * System Name :
  57. * Job Name :
  58. * Creator :
  59. * Make Date : 2015-05-01
  60. * Description :
  61. *---------------------------------------------------------------------------------------
  62. * Modify Date Modifier Modify Description
  63. *---------------------------------------------------------------------------------------
  64. * 2015-05-01 Live Converter TF->XP
  65. *
  66. *---------------------------------------------------------------------------------------
  67. ****************************************************************************************/
  68. include "com_commonxp::comm_main.xjs";
  69. function SMLLR90500_oninit(obj:Form, e:InitEventInfo)
  70. {
  71. frmf_initForm(obj);
  72. }
  73. function SMLLR90500_onload(obj:Form, e:LoadEventInfo)
  74. {
  75. grdf_initGrid(datagrid3);
  76. try
  77. {
  78. ds_TestInfo.copyData(arg_ds_abnormal);
  79. var testcd = vtestcd;
  80. }catch(e){};
  81. ds_TestInfo.addColumn("chk","string");
  82. ds_TestInfo.filterstr = "testcd2== '" + testcd + "'";
  83. }
  84. //선택
  85. function button1_onclick(obj:Button, e:ClickEventInfo)
  86. {
  87. fAbResult();
  88. }
  89. //선택
  90. function fAbResult()
  91. {
  92. var cnt = ds_TestInfo.rowcount;
  93. dsf_copyColInfo(ds_hidden_abnormalresult,ds_TestInfo);
  94. var abTF = false;
  95. for(var i = 0; i < cnt; i++)
  96. {
  97. if(ds_TestInfo.getColumn(i, "chk") == 1)
  98. {
  99. ds_hidden_abnormalresult.copyRow(ds_hidden_abnormalresult.addRow(),ds_TestInfo,i);
  100. abTF = true;
  101. }
  102. }
  103. if(abTF)
  104. {
  105. opener.ds_copy_abnormallist.copyData(ds_hidden_abnormalresult);
  106. this.close();
  107. }
  108. else
  109. {
  110. sysf_messageBox("검사항목을","C002","") ;
  111. return;
  112. }
  113. }
  114. //닫기
  115. function button2_onclick(obj:Button, e:ClickEventInfo)
  116. {
  117. this.close();
  118. }
  119. ]]></Script>
  120. </Form>
  121. </FDL>