SPLQP00300_QC핵의학검사항목조회.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLQP00300" position="absolute 0 0 535 588" titletext="장비별 검사항목 조회" oninit="SPLQP00300_oninit" onload="SPLQP00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption5" text="장비별 검사항목 조회" class="tit_2" position="absolute 0 0 150 22"/>
  8. <Shape id="line8" class="line_10" position="absolute 0 16 530 22" anchor="left top right"/>
  9. <Shape id="line2" linetype="vertical" class="line_3" position="absolute 530 561 530 561"/>
  10. <Grid id="grd_eqmtTestList" taborder="1" binddataset="ds_main_eqmtTestList" useinputpanel="false" cellsizingtype="col" position="absolute 0 21 530 561" anchor="all">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="30"/>
  15. <Column size="70"/>
  16. <Column size="130"/>
  17. <Column size="80"/>
  18. <Column size="220"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell displaytype="checkbox" edittype="checkbox"/>
  26. <Cell col="1" text="그룹코드"/>
  27. <Cell col="2" text="사용부서"/>
  28. <Cell col="3" text="검사코드"/>
  29. <Cell col="4" text="검사명"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  33. <Cell col="1" style="align:left middle;" text="bind:eqmtcd"/>
  34. <Cell col="2" style="align:left middle;" text="bind:eqmtnm"/>
  35. <Cell col="3" style="align:left middle;" text="bind:testcd"/>
  36. <Cell col="4" style="align:left middle;" text="bind:testnm"/>
  37. </Band>
  38. </Format>
  39. </Formats>
  40. </Grid>
  41. <Button id="btn_accept" taborder="2" text="확인" class="btn4" position="absolute 416 562 472 584" anchor="right bottom" onclick="btn_accept_onclick"/>
  42. <Button id="btn_can" taborder="3" text="닫기" class="btn4" position="absolute 474 562 530 584" anchor="right bottom" onclick="btn_can_onclick"/>
  43. </Layout>
  44. </Layouts>
  45. <Objects>
  46. <Dataset id="ds_main_eqmtTestList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  47. <ColumnInfo>
  48. <Column id="chk" type="STRING"/>
  49. <Column id="eqmtcd" type="STRING"/>
  50. <Column id="eqmtnm" type="STRING"/>
  51. <Column id="testcd" type="STRING"/>
  52. <Column id="testnm" type="STRING"/>
  53. </ColumnInfo>
  54. </Dataset>
  55. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  56. <ColumnInfo>
  57. <Column id="eqmtcd" type="STRING" size="256"/>
  58. <Column id="deptflag" type="STRING" size="256"/>
  59. <Column id="eqmtcd2" type="STRING" size="256"/>
  60. <Column id="getflag" type="STRING" size="256"/>
  61. <Column id="divgrupcd" type="STRING" size="256"/>
  62. </ColumnInfo>
  63. <Rows>
  64. <Row>
  65. <Col id="eqmtcd"/>
  66. <Col id="deptflag"/>
  67. <Col id="eqmtcd2"/>
  68. <Col id="getflag"/>
  69. <Col id="divgrupcd"/>
  70. </Row>
  71. </Rows>
  72. </Dataset>
  73. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="testnm" type="STRING" size="256"/>
  76. <Column id="testcd" type="STRING" size="256"/>
  77. <Column id="testcd2" type="STRING" size="256"/>
  78. <Column id="testnm2" type="STRING" size="256"/>
  79. </ColumnInfo>
  80. <Rows>
  81. <Row>
  82. <Col id="testnm"/>
  83. <Col id="testcd"/>
  84. <Col id="testcd2"/>
  85. <Col id="testnm2"/>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  90. </Objects>
  91. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  92. * System Name :
  93. * Job Name :
  94. * Creator :
  95. * Make Date : 2015-05-01
  96. * Description :
  97. *---------------------------------------------------------------------------------------
  98. * Modify Date Modifier Modify Description
  99. *---------------------------------------------------------------------------------------
  100. * 2015-05-01 Live Converter TF->XP
  101. *
  102. *---------------------------------------------------------------------------------------
  103. ****************************************************************************************/
  104. include "com_commonxp::comm_main.xjs";
  105. function SPLQP00300_oninit(obj:Form, e:InitEventInfo)
  106. {
  107. frmf_initForm(obj);
  108. }
  109. function SPLQP00300_onload(obj:Form, e:LoadEventInfo)
  110. {
  111. grdf_initGrid(grd_eqmtTestList);
  112. if (frmf_checkOpener())
  113. {
  114. var param = opener.frmf_getParameter("opener_parameter_id");
  115. ds_send.setColumn(0, "divgrupcd", arg_divgrupcd);
  116. if(!utlf_isNull(param))
  117. {
  118. condarray = String(param).split("▦");
  119. ds_send.setColumn(0, "eqmtcd", condarray[1]);
  120. ds_send.setColumn(0, "deptflag", condarray[2]);
  121. if(condarray.length != "3")
  122. {
  123. grd_eqmtTestList.setFormatColProperty(1, "size", 0);
  124. grd_eqmtTestList.setFormatColProperty(2, "size", 0);
  125. ds_send.setColumn(0, "eqmtcd2", condarray[3]);
  126. ds_send.setColumn(0, "getflag", "Dual");
  127. }
  128. else
  129. {
  130. ds_send.setColumn(0, "getflag", "Single");
  131. }
  132. fGetTestList();
  133. }
  134. }
  135. }
  136. function fGetTestList()
  137. {
  138. var oParam = {};
  139. oParam.id = "TRLQP00115";
  140. oParam.service = "grademngtprintapp.QCRsltReference";
  141. oParam.method = "reqGetTestList3";
  142. oParam.inds = "cond=ds_send";
  143. oParam.outds = "ds_main_eqmtTestList=eqmttestlist";
  144. oParam.async = false;
  145. //oParam.callback = "cf_TRLQP00115";
  146. tranf_submit(oParam);
  147. }
  148. function btn_accept_onclick(obj:Button, e:ClickEventInfo)
  149. {
  150. fAccept();
  151. }
  152. function btn_can_onclick(obj:Button, e:ClickEventInfo)
  153. {
  154. fExeCancel();
  155. }
  156. function fAccept()
  157. {
  158. var testnm = ""; //검사명 ,로 구분(검사항목조회에 보이는놈)
  159. var testnm2 = ""; //검사명 ▦로 구분(그리드 셋팅때 사용)
  160. var testcd = ""; //검사코드
  161. var testcd2 = ""; //검사코드2(조회때 사용)
  162. for(var i = 0; i < ds_main_eqmtTestList.rowcount; i++)
  163. {
  164. if(ds_main_eqmtTestList.getColumn(i, "chk") == "1")
  165. {
  166. if (utlf_isNull(testnm))
  167. {
  168. testnm = testnm + ds_main_eqmtTestList.getColumn(i, "testnm");
  169. testnm2 = testnm2 + ds_main_eqmtTestList.getColumn(i, "testnm");
  170. testcd = testcd + ds_main_eqmtTestList.getColumn(i, "testcd");
  171. testcd2 = testcd2 + ds_main_eqmtTestList.getColumn(i, "testcd");
  172. }
  173. else
  174. {
  175. testnm = testnm + ", " + ds_main_eqmtTestList.getColumn(i, "testnm");
  176. testnm2 = testnm2 + "▦" + ds_main_eqmtTestList.getColumn(i, "testnm");
  177. testcd = testcd + "▦" + ds_main_eqmtTestList.getColumn(i, "testcd");
  178. testcd2 = testcd2 + "', '" + ds_main_eqmtTestList.getColumn(i, "testcd");
  179. }
  180. }
  181. }
  182. ds_hidden_ref.setColumn(0, "testcd", testcd);
  183. ds_hidden_ref.setColumn(0, "testcd2", testcd2);
  184. ds_hidden_ref.setColumn(0, "testnm", testnm);
  185. ds_hidden_ref.setColumn(0, "testnm2", testnm2);
  186. opener.ds_hidden_ref_testlist.copyData(ds_hidden_ref);
  187. fExeCancel();
  188. }
  189. function fExeCancel()
  190. {
  191. this.close();
  192. }]]></Script>
  193. </Form>
  194. </FDL>