SPLMF10200_통합항균제코드조회.xfdl 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLMF10200" position="absolute 0 0 700 420" titletext="검사시행부서코드관리" oninit="model1_oninit" onload="SPLMF10200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" taborder="1" position="absolute 12 46 688 88" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 0 2 676 37" anchor="left top right"/>
  11. <Button id="btn_search" taborder="1" text="조회" onlbuttonup="btn_search_onlbuttonup" class="btn1" position="absolute 608 10 664 30" anchor="default" positiontype="position" onclick="group1_btn_search_onclick"/>
  12. <Shape id="line11" linetype="vertical" class="line_4" position="absolute 583 6 583 28" anchor="default" positiontype="position"/>
  13. <Combo id="cmb_srchflag" taborder="2" class="combo_search" position="absolute 82 10 232 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="코드">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1</Col>
  22. <Col id="datacolumn">코드</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">2</Col>
  26. <Col id="datacolumn">코드명</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Combo>
  31. <Static id="caption4" text="검색구분" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  32. <Edit id="ipt_refflag" taborder="3" class="input_search" position="absolute 235 10 345 30" anchor="default" imemode="hangul" positiontype="position" onkeydown="group1_ipt_refflag_onkeydown"/>
  33. </Layout>
  34. </Layouts>
  35. </Div>
  36. <Grid id="grd_antibiocddetl" taborder="2" useinputpanel="false" position="absolute 12 98 688 385" autofittype="col" binddataset="ds_grid_grd_antibiocddetl" positiontype="position" transparenthittest="false" treeuseexpandkey="false" autoenter="none" class="CSS::lis.css">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="30"/>
  41. <Column size="30"/>
  42. <Column size="20"/>
  43. <Column size="85"/>
  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" text="상태"/>
  56. <Cell col="2"/>
  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. </Band>
  63. <Band id="body">
  64. <Cell celltype="head" text="expr:currow+1"/>
  65. <Cell col="1" displaytype="image" expr="expr:expr:expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  66. <Cell col="2" displaytype="expr:lf_CheckAnticd(currow) == -1 ? 'checkbox': 'normal '" edittype="expr:lf_CheckAnticd(currow) == -1 ? 'checkbox': 'none '" text="bind:chk" suppressedit="false"/>
  67. <Cell col="3" displaytype="normal" edittype="none" text="bind:antibiocd"/>
  68. <Cell col="4" displaytype="normal" edittype="none" text="bind:antibionm"/>
  69. <Cell col="5" displaytype="normal" edittype="none" text="bind:antibioabbrnm"/>
  70. <Cell col="6" displaytype="normal" edittype="none" text="bind:antibioscrnnm"/>
  71. <Cell col="7" displaytype="normal" edittype="none" text="bind:antibioprntnm"/>
  72. </Band>
  73. </Format>
  74. </Formats>
  75. </Grid>
  76. <Button id="button1" taborder="3" text="추가" onclick="button1_onclick" class="btn5" position="absolute 585 388 629 410" positiontype="position"/>
  77. <Static id="caption1" text="통합항균제코드목록" class="tit_2" position="absolute 16 8 176 22"/>
  78. <Button id="btn_cfm" taborder="4" text="닫기" class="btn4" position="absolute 632 388 688 410" onclick="btn_cfm_onclick"/>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_grid_grd_antibiocddetl" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" preload="false">
  83. <ColumnInfo>
  84. <Column id="chk" type="STRING"/>
  85. <Column id="antibiocd" type="STRING"/>
  86. <Column id="antibionm" type="STRING"/>
  87. <Column id="antibioabbrnm" type="STRING"/>
  88. <Column id="antibioscrnnm" type="STRING"/>
  89. <Column id="antibioprntnm" type="STRING"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="cd" type="STRING" size="256"/>
  95. <Column id="nm" type="STRING" size="256"/>
  96. </ColumnInfo>
  97. </Dataset>
  98. </Objects>
  99. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  100. * System Name :
  101. * Job Name :
  102. * Creator :
  103. * Make Date : 2015-11-09
  104. * Description :
  105. *---------------------------------------------------------------------------------------
  106. * Modify Date Modifier Modify Description
  107. *---------------------------------------------------------------------------------------
  108. * 2015-11-09 Live Converter TF->XP
  109. *
  110. *---------------------------------------------------------------------------------------
  111. ****************************************************************************************/
  112. include "com_commonxp::comm_main.xjs";
  113. include "lis_commonxp::LLZ001.xjs";
  114. var lgv_sDeptFlag = "";
  115. //검색
  116. function lf_GetAntiSearch(btnf){
  117. var sInDsName = dsf_createDsRow("in_ds_search"
  118. , [{col: "refgbn", val: group1.cmb_srchflag.value}
  119. , {col: "searchgbn", val: group1.cmb_srchflag.value}
  120. , {col: "searchnm", val: group1.ipt_refflag.value}
  121. , {col: "btnflag", val: btnf}
  122. ]);
  123. ds_grid_grd_antibiocddetl.clearData();
  124. var oParam = {};
  125. oParam.id = "TRLMF00201";
  126. oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
  127. oParam.method = "reqGetUnityAntibioList";
  128. oParam.inds = "cond="+sInDsName;
  129. oParam.outds = "ds_grid_grd_antibiocddetl=getUnityAntibioList";
  130. oParam.async = false;
  131. oParam.callback = "cbf_SPLMF10200";
  132. tranf_submit(oParam);
  133. }
  134. // 데이터셋불러오기
  135. function lf_initDataSet(){
  136. lf_getDbDeptcd("0000|","cbf_SPLMF10200");
  137. }
  138. //콜백함수
  139. function cbf_SPLMF10200(strSvcID, nErrorCode, strErrorMag){
  140. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  141. }
  142. //통합검체 중 등록된 검체 검색
  143. function lf_CheckAnticd(nRow){
  144. var nFindRow=0;
  145. nFindRow=opener.ds_grid_grd_antibiocddetl.findRow("antibiocd",ds_grid_grd_antibiocddetl.getColumn(nRow,"antibiocd"));
  146. return nFindRow;
  147. }
  148. function SPLMF10200_onload(obj:Form, e:LoadEventInfo)
  149. {
  150. frmf_initForm(obj);
  151. lf_initDataSet();
  152. //조회
  153. lf_GetAntiSearch("1");
  154. //그리드 Sort
  155. grdf_setGridSort(grd_antibiocddetl);
  156. }
  157. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  158. {
  159. if (group1.ipt_refflag.value == undefined || group1.ipt_refflag.value == ""){
  160. lf_GetAntiSearch("1");
  161. } else {
  162. lf_GetAntiSearch("2");
  163. }
  164. }
  165. //추가
  166. function button1_onclick(obj:Button, e:ClickEventInfo)
  167. {
  168. ds_grid_grd_antibiocddetl.filterstr = "chk==1";
  169. opener.ds_grid_grd_select.copyData( ds_grid_grd_antibiocddetl , true);
  170. this.close();
  171. }
  172. // 검색어 입력 후 엔터
  173. function group1_ipt_refflag_onkeydown(obj:Edit, e:KeyEventInfo)
  174. {
  175. if(e.keycode=="13"){
  176. if (group1.ipt_refflag.value == undefined || group1.ipt_refflag.value == lgv_sDeptFlag){
  177. lf_GetAntiSearch("1");
  178. } else {
  179. lf_GetAntiSearch("2");
  180. }
  181. }
  182. }
  183. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. this.close();
  186. }
  187. ]]></Script>
  188. </Form>
  189. </FDL>