SPLLF10300_통합검사대분류조회.xfdl 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF10300" position="absolute 0 0 677 276" titletext="검사시행부서코드관리" onload="SPLLF10300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button1" taborder="0" text="추가" onclick="button1_onclick" class="btn2" position="absolute 633 253 677 273" positiontype="position"/>
  8. <Grid id="grd_testlrg" taborder="2" useinputpanel="false" position="absolute 1 21 677 250" binddataset="ds_grid_grd_testlrg" positiontype="position">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="30"/>
  14. <Column size="20"/>
  15. <Column size="85"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="22" band="head"/>
  25. <Row size="20"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. <Cell col="1"/>
  30. <Cell col="2"/>
  31. <Cell col="3" text="대분류코드"/>
  32. <Cell col="4" text="대분류유형"/>
  33. <Cell col="5" text="대분류명"/>
  34. <Cell col="6" text="대분류명(화면)"/>
  35. <Cell col="7" text="대분류명(약어)"/>
  36. <Cell col="8" text="대분류명(출력)"/>
  37. <Cell col="9" text="대분류명(라벨)"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" expr="currow+1"/>
  41. <Cell col="1" displaytype="image" 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'))"/>
  42. <Cell col="2" displaytype="expr:lf_CheckBaccd(currow) == -1 ? 'checkbox': 'normal '" edittype="expr:lf_CheckBaccd(currow) == -1 ? 'checkbox': 'none'" style="align:center middle;" text="bind:chk"/>
  43. <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:testlrgcd"/>
  44. <Cell col="4" style="align:left;" text="bind:testlrgkind" expr="expr:testlrgkind == 'M' ?'미생물' : (testlrgkind == 'B' ? '혈액은행' : (testlrgkind == 'G' ? '분자/세포 유전' : (testlrgkind =='N' ? '핵의학-체외': '')))"/>
  45. <Cell col="5" displaytype="normal" edittype="none" style="align:left;" text="bind:testlrgnm"/>
  46. <Cell col="6" displaytype="normal" edittype="none" style="align:left;" text="bind:testlrgscrnnm"/>
  47. <Cell col="7" displaytype="normal" edittype="none" style="align:left;" text="bind:testlrgabbrnm"/>
  48. <Cell col="8" displaytype="normal" edittype="none" style="align:left;" text="bind:testlrgprntnm"/>
  49. <Cell col="9" displaytype="normal" edittype="none" style="align:left;" text="bind:testlrglblnm"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Static id="caption1" text="통합검사대분류코드목록" class="tit_2" position="absolute 1 1 175 21" positiontype="position"/>
  55. </Layout>
  56. </Layouts>
  57. <Objects>
  58. <Dataset id="ds_grid_grd_testlrg" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="chk" type="STRING"/>
  61. <Column id="testlrgcd" type="STRING"/>
  62. <Column id="testlrgkind" type="STRING"/>
  63. <Column id="testlrgnm" type="STRING"/>
  64. <Column id="testlrgscrnnm" type="STRING"/>
  65. <Column id="testlrgabbrnm" type="STRING"/>
  66. <Column id="testlrgprntnm" type="STRING"/>
  67. <Column id="testlrglblnm" type="STRING"/>
  68. </ColumnInfo>
  69. </Dataset>
  70. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="cd" type="STRING" size="256"/>
  73. <Column id="nm" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. </Objects>
  77. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  78. * System Name : Himed
  79. * Job Name :
  80. * File Name : SPLLF10300_통합검사대분류조회.xfdl
  81. * Creator :
  82. * Make Date : 2014-04-14
  83. *
  84. * Description :
  85. *---------------------------------------------------------------------------------------
  86. * Modify Date Modifier Modify Description
  87. *---------------------------------------------------------------------------------------
  88. * 2014-04-14 HIT Converting Program(TF->XP)
  89. *
  90. *---------------------------------------------------------------------------------------
  91. ****************************************************************************************/
  92. include "com_commonxp::comm_main.xjs";
  93. include "lis_commonxp::LLZ001.xjs";
  94. function SPLLF10300_onload(obj:Form, e:LoadEventInfo)
  95. {
  96. frmf_initForm(obj); // 화면공통
  97. lf_setInit();
  98. lf_getTLrgList();
  99. grdf_setGridSort(grd_testlrg); //그리드 정렬
  100. }
  101. // 초기화 버튼
  102. function lf_setInit(){
  103. lf_getDbDeptcd("0000|");
  104. }
  105. // 통합검사대분류코드 목록 조회
  106. function lf_getTLrgList(){
  107. var sInDsName = dsf_createDsRow("ds_temp_search"
  108. , [{col: "refgbn", val: "1"}
  109. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  110. var oParam = {};
  111. oParam.id = "TRLLF00201";
  112. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  113. oParam.method = "reqGetUnityTestLrgList";
  114. oParam.inds = "cond="+sInDsName;
  115. oParam.outds = "ds_grid_grd_testlrg=getUnityTestLrgList";
  116. oParam.async = false;
  117. tranf_submit(oParam);
  118. }
  119. //추가
  120. function lf_addRow(){
  121. var strXML = ds_grid_grd_testlrg.saveXML("ds_grid_grd_testlrg","u");
  122. opener.ds_grid_grd_select.loadXML(strXML);
  123. close();
  124. }
  125. //등록된 검체 검색
  126. function lf_CheckBaccd(nRow){
  127. var nFindRow=0;
  128. nFindRow=opener.ds_grid_grd_testlrg.findRow("testlrgcd",ds_grid_grd_testlrg.getColumn(nRow,"testlrgcd"));
  129. return nFindRow;
  130. }
  131. // 닫기버튼
  132. function Button00_onclick(obj:Button, e:ClickEventInfo)
  133. {
  134. close();
  135. }
  136. //추가
  137. function button1_onclick(obj:Button, e:ClickEventInfo)
  138. {
  139. lf_addRow();
  140. }
  141. ]]></Script>
  142. </Form>
  143. </FDL>