SPCDT01100_수치결과검사검색.xfdl 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCDT01100" position="absolute 0 0 457 448" titletext="수치결과검사항목검색" oninit="SPCDT01100_oninit" onload="SPCDT01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="수치결과검사항목" class="tit_2" position="absolute 0 0 165 21"/>
  8. <Shape id="line2" class="line_10" position="absolute 0 16 450 22"/>
  9. <Grid id="grd_testrsltlist" taborder="1" binddataset="ds_main_list_testrsltlist" useinputpanel="false" position="absolute 0 21 450 421" autoenter="select" cellsizingtype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="19"/>
  14. <Column size="20"/>
  15. <Column size="130"/>
  16. <Column size="210"/>
  17. <Column size="50"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1"/>
  26. <Cell col="2" text="검사코드"/>
  27. <Cell col="3" text="검사명"/>
  28. <Cell col="4" text="단위"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell celltype="head" expr="expr:ds_main_list_testrsltlist.rowposition == currow ? '▶' : ''"/>
  32. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
  33. <Cell col="2" class="text_center" text="bind:testcd"/>
  34. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:testnm"/>
  35. <Cell col="4" class="text_center" text="bind:rsltunit"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. <Button id="btn_cancel" taborder="2" text="취소" class="btn4" position="absolute 394 422 450 444" onclick="btn_cancel_onclick"/>
  41. <Button id="btn_confirm" taborder="3" text="확인" class="btn4" position="absolute 335 422 391 444" onclick="btn_confirm_onclick"/>
  42. </Layout>
  43. </Layouts>
  44. <Objects>
  45. <Dataset id="ds_main_list_testrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_testrsltlist_oncolumnchanged">
  46. <ColumnInfo>
  47. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  48. <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
  49. <Column id="rsltunit" type="STRING" size="256" sumtext="단위"/>
  50. <Column id="chk" type="STRING" size="256"/>
  51. </ColumnInfo>
  52. </Dataset>
  53. <Dataset id="ds_temp_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  54. </Objects>
  55. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  56. * System Name :
  57. * Job Name :
  58. * Creator :
  59. * Make Date : 2016-05-24
  60. * Description :
  61. *---------------------------------------------------------------------------------------
  62. * Modify Date Modifier Modify Description
  63. *---------------------------------------------------------------------------------------
  64. * 2016-05-24 Live Converter TF->XP
  65. *
  66. *---------------------------------------------------------------------------------------
  67. ****************************************************************************************/
  68. include "com_commonxp::comm_main.xjs";
  69. function SPCDT01100_oninit(obj:Form, e:InitEventInfo)
  70. {
  71. frmf_initForm(obj);
  72. }
  73. function SPCDT01100_onload(obj:Form, e:LoadEventInfo)
  74. {
  75. grdf_initGrid(grd_testrsltlist);
  76. var oParam = {};
  77. oParam.id = "TRCDT01101";
  78. oParam.service = "dtmnmngtapp.DtmnTrgt";
  79. oParam.method = "reqGetTestRsltList";
  80. oParam.inds = "";
  81. oParam.outds = "ds_main_list_testrsltlist=testrsltlist";
  82. oParam.async = false;
  83. //oParam.callback = "cf_TRCDT01101";
  84. tranf_submit(oParam);
  85. var rowCount = ds_main_list_testrsltlist.rowcount;
  86. if (rowCount < 1)
  87. {
  88. sysf_messageBox("수치결과가 ","I004");
  89. this.close();
  90. }
  91. }
  92. function ds_main_list_testrsltlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  93. {
  94. if(e.columnid == "chk")
  95. {
  96. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  97. }
  98. }
  99. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  100. {
  101. fGetTestInfo();
  102. }
  103. function fGetTestInfo()
  104. {
  105. // 부모창에 값을 넘겨주고 창을 닫는다.
  106. var count = 0;
  107. var check_cnt = 0;
  108. for (var i = 0; i < ds_main_list_testrsltlist.rowcount; i++)
  109. {
  110. if(ds_main_list_testrsltlist.getColumn(i, "chk") == "Y")
  111. {
  112. var testcd = ds_main_list_testrsltlist.getColumn(i, "testcd");
  113. var testnm = ds_main_list_testrsltlist.getColumn(i, "testnm");
  114. var rsltunit = ds_main_list_testrsltlist.getColumn(i, "rsltunit");
  115. dsf_makeValue(ds_temp_testlist, "status", "string", "I"); // 임시노드에 선택된 항목을 넣어준다.
  116. dsf_makeValue(ds_temp_testlist, "dtmnkey", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
  117. dsf_makeValue(ds_temp_testlist, "seq", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
  118. dsf_makeValue(ds_temp_testlist, "testcd", "string", testcd); // 임시노드에 선택된 항목을 넣어준다.
  119. dsf_makeValue(ds_temp_testlist, "testnm", "string", testnm); // 임시노드에 선택된 항목을 넣어준다.
  120. dsf_makeValue(ds_temp_testlist, "refh", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
  121. dsf_makeValue(ds_temp_testlist, "refl", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
  122. dsf_makeValue(ds_temp_testlist, "rsltunit", "string", rsltunit); // 임시노드에 선택된 항목을 넣어준다.
  123. opener.ds_main_testlist.copyRow(opener.ds_main_testlist.addRow(), ds_temp_testlist, 0);
  124. check_cnt++;
  125. }
  126. }
  127. if(check_cnt < 1)
  128. {
  129. sysf_messageBox("수치결과검사 리스트를","C002");
  130. }
  131. else
  132. {
  133. this.close();
  134. }
  135. }
  136. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. this.close();
  139. }
  140. ]]></Script>
  141. </Form>
  142. </FDL>