SPLPC02200_검체코드팝업.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPC02200" position="absolute 0 0 345 610" titletext="검체코드 리스트" onload="SPLPC02200_onload" class="frm_POP">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div_biz" taborder="0" layoutselecttype="inner,width" position="absolute 0 0 343 608">
  8. <Layouts>
  9. <Layout>
  10. <Div id="div_sea" taborder="6" class="div_SA" position="absolute 12 46 333 88" anchor="default"/>
  11. <Static id="caption1" text="검체코드 리스트" class="tit_2" position="absolute 12 91 161 111" anchor="default"/>
  12. <Button id="btn_cls" taborder="1" text="닫기" onclick="div_biz_btn_cls_onclick" class="btn5" position="absolute 289 578 333 598" anchor="default"/>
  13. <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 233 578 277 598" anchor="default"/>
  14. <Static id="cap_spcnm" text="검체명" class="search_name" position="absolute 21 57 82 77" anchor="default"/>
  15. <Edit id="edt_spcnm" taborder="3" onkeydown="div_biz_edt_spcnm_onkeydown" class="input_search" position="absolute 81 57 201 77" anchor="default"/>
  16. <Button id="btn_syts_ref" taborder="4" text="조회" onclick="div_biz_btn_syts_ref_onclick" class="btn1" position="absolute 266 57 322 77" anchor="default"/>
  17. <Grid id="grd_spccdlist" class="CSS::lis.css" taborder="5" useinputpanel="false" oncelldblclick="div_biz_grd_spccdlist_oncelldblclick" position="absolute 12 112 333 575" anchor="default" autofittype="col">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="30"/>
  22. <Column size="0"/>
  23. <Column size="90"/>
  24. <Column size="190"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="22" band="head"/>
  31. <Row size="20"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="기관코드"/>
  36. <Cell col="2" text="검체코드"/>
  37. <Cell col="3" text="검체명"/>
  38. <Cell col="4" text="검체약어"/>
  39. <Cell col="5" text="대표검체"/>
  40. <Cell col="6" text="대표검체명"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" text="expr:currow+1"/>
  44. <Cell col="1" text="bind:instcd"/>
  45. <Cell col="2" text="bind:spccd"/>
  46. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  47. <Cell col="4" text="bind:spcabbr"/>
  48. <Cell col="5" text="bind:reprspccd"/>
  49. <Cell col="6" text="bind:reprspcnm"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Shape id="line1" class="line_1" position="absolute 12 109 333 113" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  55. <Static id="stt_titleText" text="검체코드 리스트" class="sta_POP_title" position="absolute 12 8 161 28" anchor="default"/>
  56. <Button id="btn_close" taborder="7" onclick="div_biz_btn_close_onclick" class="btn_POP_cls" position="absolute 319 12 333 25" anchor="default"/>
  57. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 240 55 248 78" anchor="default"/>
  58. </Layout>
  59. </Layouts>
  60. </Div>
  61. </Layout>
  62. </Layouts>
  63. <Objects>
  64. <Dataset id="ds_hidden_scrndata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  65. <Dataset id="ds_rslt_spccdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="instcd" type="STRING" size="256" sumtext="병원코드"/>
  68. <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
  69. <Column id="spcnm" type="STRING" size="256" sumtext="검체명"/>
  70. <Column id="spcabbr" type="STRING" size="256" sumtext="검체약어"/>
  71. <Column id="reprspccd" type="STRING" size="256" sumtext="대표검체코드"/>
  72. <Column id="reprspcnm" type="STRING" size="256" sumtext="대표검체명"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. </Objects>
  76. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  77. * System Name :
  78. * Job Name :
  79. * File Name : SPLPC02200_검체코드팝업.xfdl
  80. * Creator :
  81. * Make Date : 2014-03-11
  82. *
  83. * Description :
  84. *---------------------------------------------------------------------------------------
  85. * Modify Date Modifier Modify Description
  86. *---------------------------------------------------------------------------------------
  87. *
  88. *---------------------------------------------------------------------------------------
  89. ****************************************************************************************/
  90. //=======================================================================================
  91. // Lib Include
  92. //---------------------------------------------------------------------------------------
  93. include "com_commonxp::comm_main.xjs";
  94. include "lis_commonxp::LPZ001.xjs";
  95. //=======================================================================================
  96. // Function
  97. //---------------------------------------------------------------------------------------
  98. /**********************************************************************************
  99. * Name : lf_ExeInitialize
  100. * Description : 초기화 Function
  101. * Argument : null
  102. * return Type : null
  103. * Author : Autumn
  104. **********************************************************************************/
  105. function lf_ExeInitialize()
  106. {
  107. dsf_createDs("ds_rslt_spccdlist");
  108. lf_GetRefData();
  109. }
  110. /**********************************************************************************
  111. * Name : lf_GetRefData
  112. * Description : 기초코드조회
  113. * Argument : null
  114. * return Type : null
  115. * Author : Autumn
  116. **********************************************************************************/
  117. function lf_GetRefData()
  118. {
  119. var sInstCd = sysf_getUserInfo("dutplcecd");
  120. var sSpcNm = div_biz.edt_spcnm.value;
  121. var sInDsName = "";
  122. // plgv_sScrnFlagCd
  123. // BASE : 대표검체만 조회
  124. // ACPT : 대표검체별 세부검체만 조회
  125. if (ds_hidden_scrndata.getColumn(0,"scrnflagcd") == "BASE"){
  126. sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd" , val: sInstCd }
  127. , {col: "spccd" , val: "" }
  128. , {col: "spcnm" , val: sSpcNm }
  129. , {col: "spcflagcd", val: "0" }
  130. , {col: "delflagcd", val: "0" }
  131. , {col: "reprspccd", val: "" }]);
  132. } else if (ds_hidden_scrndata.getColumn(0,"scrnflagcd") == "ACPT"){
  133. sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd" , val: sInstCd }
  134. , {col: "spccd" , val: "" }
  135. , {col: "spcnm" , val: sSpcNm }
  136. , {col: "spcflagcd", val: "1" }
  137. , {col: "delflagcd", val: "0" }
  138. , {col: "reprspccd", val: opener.ds_hidden_scrndata.getColumn(0,"reprspccd")}]);
  139. }
  140. tranf_submit({
  141. id: "TRLPC02201"
  142. , service: "plgycomnusemngtapp.BaseInfoCode"
  143. , method: "reqGetSpecimenCodeList"
  144. , inds : "refData="+sInDsName
  145. , outds: "ds_rslt_spccdlist=spccdlistinfo"
  146. , callback: "cbf_SPLPC02200"
  147. , async: false
  148. });
  149. div_biz.grd_spccdlist.binddataset = ds_rslt_spccdlist;
  150. }
  151. /**********************************************************************************
  152. * Name : cbf_SPLPC02200
  153. * Description : 콜백함수.
  154. * Argument : string:strSvcID, string:nErrorCode, string:strErrorMag
  155. * return Type : Null
  156. * Author : Autumn
  157. **********************************************************************************/
  158. function cbf_SPLPC02200(strSvcID, nErrorCode, strErrorMag){
  159. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  160. }
  161. //=======================================================================================
  162. // Event
  163. //---------------------------------------------------------------------------------------
  164. /****************************************************************************************
  165. * Components :
  166. * Components ID : SPMPJ01500
  167. * Event : onload
  168. * Argument : 01.obj : Object Event has occurred
  169. * : 02.e : Event Object
  170. * Description : 화면로드
  171. ****************************************************************************************/
  172. function SPLPC02200_onload(obj:Form, e:LoadEventInfo)
  173. {
  174. frmf_initForm(obj);
  175. ds_hidden_scrndata.copyData(arg_ds_hidden_scrndata);
  176. lf_ExeInitialize();
  177. }
  178. /****************************************************************************************
  179. * Components :
  180. * Components ID : btn_close
  181. * Event : onclick
  182. * Argument : 01.obj : Object Event has occurred
  183. * : 02.e : Event Object
  184. * Description : 화면닫기
  185. ****************************************************************************************/
  186. function div_biz_btn_close_onclick(obj:Button, e:ClickEventInfo)
  187. {
  188. this.close();
  189. }
  190. /****************************************************************************************
  191. * Components :
  192. * Components ID : div_biz
  193. * Event : oncelldblclick
  194. * Argument : 01.obj : Object Event has occurred
  195. * : 02.e : Event Object
  196. * Description : 검체코드선택
  197. ****************************************************************************************/
  198. function div_biz_grd_spccdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  199. {
  200. var row = opener.ds_spcinfo.rowposition;
  201. //ds_hidden_scrndata.rowposition
  202. //var row = ds_rslt_choispclist.rowposition;
  203. opener.ds_spcinfo.setColumn(row,"reprspccd", ds_rslt_spccdlist.getColumn(e.row,"spccd"));
  204. //opener.ds_spcinfo.setColumn(row,"slidno", "0");
  205. opener.ds_spcinfo.setColumn(row,"reprspcnm", ds_rslt_spccdlist.getColumn(e.row,"spcnm"));
  206. this.close();
  207. }
  208. /****************************************************************************************
  209. * Components :
  210. * Components ID : btn_cfm
  211. * Event : onclick
  212. * Argument : 01.obj : Object Event has occurred
  213. * : 02.e : Event Object
  214. * Description : 검체코드선택기
  215. ****************************************************************************************/
  216. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. //var row = opener.ds_rslt_choispclist.rowposition;
  219. var row = ds_rslt_choispclist.rowposition;
  220. //trace("row="+row);
  221. opener.ds_rslt_choispclist.setColumn(row,"reprspccd", ds_rslt_spccdlist.getColumn(ds_rslt_spccdlist.rowposition,"spccd"));
  222. opener.ds_rslt_choispclist.setColumn(row,"slidno", "0");
  223. opener.ds_rslt_choispclist.setColumn(row,"reprspcnm", ds_rslt_spccdlist.getColumn(ds_rslt_spccdlist.rowposition,"spcnm"));
  224. //this.close();
  225. }
  226. /****************************************************************************************
  227. * Components :
  228. * Components ID : btn_syts
  229. * Event : onclick
  230. * Argument : 01.obj : Object Event has occurred
  231. * : 02.e : Event Object
  232. * Description : 기초코드조회
  233. ****************************************************************************************/
  234. function div_biz_btn_syts_ref_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. lf_GetRefData();
  237. }
  238. /****************************************************************************************
  239. * Components :
  240. * Components ID : edt_spcnm
  241. * Event : onkeydown
  242. * Argument : 01.obj : Object Event has occurred
  243. * : 02.e : Event Object
  244. * Description : 기초코드조회
  245. ****************************************************************************************/
  246. function div_biz_edt_spcnm_onkeydown(obj:Edit, e:KeyEventInfo)
  247. {
  248. if(e.keycode==13) lf_GetRefData();
  249. }
  250. function div_biz_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. this.close();
  253. }
  254. ]]></Script>
  255. </Form>
  256. </FDL>