SPLLF10500_통합검체코드조회.xfdl 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF10500" position="absolute 0 0 791 716" titletext="통합검체코드조회" onload="SPLLF10500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="2" position="absolute 1 25 787 67" anchor="left top right" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="0" text="검색" class="btn1" position="absolute 718 10 774 30" anchor="default" onclick="grp_sea_btn_search_onclick" positiontype="position"/>
  11. <Edit id="ipt_refflag" taborder="1" class="input_search" position="absolute 184 10 294 30" anchor="default" imemode="hangul" positiontype="position"/>
  12. <Combo id="cmb_srchflag" taborder="2" class="combo_search" position="absolute 81 10 181 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="2" text="검체명" positiontype="position">
  13. <Dataset id="innerdataset">
  14. <ColumnInfo>
  15. <Column id="codecolumn" size="256"/>
  16. <Column id="datacolumn" size="256"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="codecolumn">1</Col>
  21. <Col id="datacolumn">검체코드</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">2</Col>
  25. <Col id="datacolumn">검체명</Col>
  26. </Row>
  27. </Rows>
  28. </Dataset>
  29. </Combo>
  30. <Static id="caption4" text="검색구분" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  31. </Layout>
  32. </Layouts>
  33. </Div>
  34. <Button id="btn_add" taborder="3" text="추가" class="btn2" position="absolute 744 70 788 90" onclick="btn_add_onclick"/>
  35. <Grid id="grd_spc" taborder="4" binddataset="ds_grid_grd_spc" useinputpanel="false" autofittype="col" position="absolute 2 93 788 713">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="30"/>
  40. <Column size="25"/>
  41. <Column size="85"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="22" band="head"/>
  51. <Row size="20"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1"/>
  56. <Cell col="2" text="검체코드"/>
  57. <Cell col="3" text="검체명"/>
  58. <Cell col="4" text="검체명(화면)"/>
  59. <Cell col="5" text="검체명(약어)"/>
  60. <Cell col="6" text="검체명(출력)"/>
  61. <Cell col="7" text="검체명(라벨)"/>
  62. <Cell col="8" text="검체유형"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell celltype="head" expr="expr:currow+1"/>
  66. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  67. <Cell col="2" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spccd"/>
  68. <Cell col="3" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcnm"/>
  69. <Cell col="4" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcscrnnm"/>
  70. <Cell col="5" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcabbrnm"/>
  71. <Cell col="6" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spcprntnm"/>
  72. <Cell col="7" displaytype="normal" edittype="none" style="align:left middle;" text="bind:spclblnm"/>
  73. <Cell col="8" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:spckind" combodataset="ds_init_spckind" combocodecol="cd" combodatacol="nm"/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. <Static id="caption1" text="통합검체코드목록" class="tit_2" position="absolute 3 5 131 21"/>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_grid_grd_spc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="chk" type="STRING"/>
  85. <Column id="spccd" type="STRING"/>
  86. <Column id="spcnm" type="STRING"/>
  87. <Column id="spcscrnnm" type="STRING"/>
  88. <Column id="spcabbrnm" type="STRING"/>
  89. <Column id="spcprntnm" type="STRING"/>
  90. <Column id="spclblnm" type="STRING"/>
  91. <Column id="spckind" type="STRING"/>
  92. </ColumnInfo>
  93. </Dataset>
  94. <Dataset id="ds_init_spckind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="cd" type="STRING"/>
  97. <Column id="nm" type="STRING"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="cd">0</Col>
  102. <Col id="nm">기타검체</Col>
  103. </Row>
  104. <Row>
  105. <Col id="cd">1</Col>
  106. <Col id="nm">일반검체</Col>
  107. </Row>
  108. <Row>
  109. <Col id="cd">2</Col>
  110. <Col id="nm">미생물검체</Col>
  111. </Row>
  112. <Row>
  113. <Col id="cd">3</Col>
  114. <Col id="nm">혈액용량</Col>
  115. </Row>
  116. <Row>
  117. <Col id="cd">4</Col>
  118. <Col id="nm">방사면역검체</Col>
  119. </Row>
  120. </Rows>
  121. </Dataset>
  122. <Dataset id="ds_grid_grd_select" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="chk" type="STRING"/>
  125. <Column id="spccd" type="STRING"/>
  126. <Column id="spcnm" type="STRING"/>
  127. <Column id="spcscrnnm" type="STRING"/>
  128. <Column id="spcabbrnm" type="STRING"/>
  129. <Column id="spcprntnm" type="STRING"/>
  130. <Column id="spclblnm" type="STRING"/>
  131. <Column id="spckind" type="STRING"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. </Objects>
  135. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  136. * System Name :
  137. * Job Name :
  138. * Creator :
  139. * Make Date : 2015-11-09
  140. * Description :
  141. *---------------------------------------------------------------------------------------
  142. * Modify Date Modifier Modify Description
  143. *---------------------------------------------------------------------------------------
  144. * 2015-11-09 Live Converter TF->XP
  145. *
  146. *---------------------------------------------------------------------------------------
  147. ****************************************************************************************/
  148. include "com_commonxp::comm_main.xjs";
  149. include "lis_commonxp::LLZ001.xjs";
  150. function SPLLF10500_onload(obj:Form, e:LoadEventInfo)
  151. {
  152. frmf_initForm(obj);
  153. lf_getDbDeptcd("0000|");
  154. //그리드 Sort
  155. grdf_setGridSort(grd_spc);
  156. //검체리스트 조회
  157. lf_getSpcList();
  158. }
  159. //검색조건 없을 시 검체조회
  160. function lf_getSpcimen(){
  161. var sInDsName = dsf_createDsRow("in_ds_search"
  162. , [{col: "searchgbn", val: grp_sea.cmb_srchflag.value}
  163. , {col: "searchtext", val: grp_sea.ipt_refflag.value}
  164. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  165. var oParam = {};
  166. oParam.id = "TRLLF00302";
  167. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  168. oParam.method = "reqGetUnitySpcListRef";
  169. oParam.inds = "cond="+sInDsName;
  170. oParam.outds = "ds_grid_grd_spc=getUnitySpcListRef";
  171. oParam.async = false;
  172. oParam.callback = "cbf_SPLLF10500";
  173. tranf_submit(oParam);
  174. }
  175. //검색조건 있을 시 검체조회
  176. function lf_getSpcList(){
  177. var sInDsName = dsf_createDsRow("in_ds_search"
  178. , [{col: "cond1", val: "1"}
  179. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  180. var oParam = {};
  181. oParam.id = "TRLLF00301";
  182. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  183. oParam.method = "reqGetUnitySpcList";
  184. oParam.inds = "cond="+sInDsName;
  185. oParam.outds = "ds_grid_grd_spc=getUnitySpcList";
  186. oParam.async = false;
  187. oParam.callback = "cbf_SPLLF10500";
  188. tranf_submit(oParam);
  189. }
  190. //콜백함수
  191. function cbf_SPLLF10500(strSvcID, nErrorCode, strErrorMag){
  192. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  193. }
  194. //통합검체 중 등록된 검체 검색
  195. function lf_checkSpccd(nRow){
  196. var nFindRow=0;
  197. nFindRow=opener.ds_grid_grd_spc.findRow("spccd",ds_grid_grd_spc.getColumn(nRow,"spccd"));
  198. return nFindRow;
  199. }
  200. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  201. {
  202. close();
  203. }
  204. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. if (grp_sea.ipt_refflag.value == ""){
  207. lf_getSpcList();
  208. } else {
  209. lf_getSpcimen();
  210. }
  211. }
  212. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. var strXML = ds_grid_grd_spc.saveXML("ds_grid_grd_spc","u");
  215. opener.ds_grid_grd_select.loadXML(strXML);
  216. btn_close_onclick();
  217. }
  218. ]]></Script>
  219. </Form>
  220. </FDL>