SPMRI09005_연명환자문서목록.xfdl 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRI09005_연명환자문서목록" classname="SPMRI09005_연명환자문서목록" inheritanceid="" position="absolute 0 0 339 244" titletext="문서목록" onload="SPMRI09005_연명환자문서목록_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="Grid00" taborder="1" useinputpanel="false" position="absolute 4 59 335 240" binddataset="ds_doclist" autofittype="none" oncellclick="Grid00_oncellclick" oncelldblclick="Grid00_oncelldblclick">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="2"/>
  12. <Column size="329"/>
  13. </Columns>
  14. <Rows>
  15. <Row size="24" band="head"/>
  16. <Row size="24"/>
  17. </Rows>
  18. <Band id="head">
  19. <Cell text="코드"/>
  20. <Cell col="1" displaytype="normal" text="문서명"/>
  21. </Band>
  22. <Band id="body">
  23. <Cell text="bind:doccode"/>
  24. <Cell col="1" displaytype="combo" style="align:center;padding:0 5 0 5;" text="bind:doccode" combodataset="ds_init_A0665" combocodecol="cdid" combodatacol="cdnm"/>
  25. </Band>
  26. </Format>
  27. </Formats>
  28. </Grid>
  29. <Static id="cap_oldpwd00" text="등록번호" class="cell_1" position="absolute 4 33 65 53"/>
  30. <Edit id="Edit_pid" taborder="2" enable="false" position="absolute 71 33 151 53"/>
  31. <Static id="cap_oldpwd01" text="환자성명" class="cell_1" position="absolute 158 33 219 53"/>
  32. <Edit id="sct_hngnm" taborder="3" readonly="true" maxlength="20" class="output" position="absolute 224 33 335 53"/>
  33. <Static id="caption6" text="연명의료 정보처리시스템 등록 문서" class="search_name" position="absolute 0 6 219 26"/>
  34. </Layout>
  35. </Layouts>
  36. <Objects>
  37. <Dataset id="ds_doclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  38. <ColumnInfo>
  39. <Column id="id" type="STRING" size="256"/>
  40. <Column id="doccode" type="STRING" size="256"/>
  41. <Column id="docsn" type="STRING" size="256"/>
  42. </ColumnInfo>
  43. </Dataset>
  44. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="rrgstno" type="STRING" size="256"/>
  47. <Column id="pid" type="STRING" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row/>
  51. </Rows>
  52. </Dataset>
  53. <Dataset id="ds_patient" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="pid" type="STRING" size="256"/>
  56. <Column id="hngnm" type="STRING" size="256"/>
  57. </ColumnInfo>
  58. <Rows>
  59. <Row/>
  60. </Rows>
  61. </Dataset>
  62. <Dataset id="ds_init_A0665" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  63. <ColumnInfo>
  64. <Column id="cdid" type="STRING" size="256"/>
  65. <Column id="cdnm" type="STRING" size="256"/>
  66. </ColumnInfo>
  67. </Dataset>
  68. </Objects>
  69. <InitValue>
  70. <Edit id="Edit_pid" enable="false"/>
  71. </InitValue>
  72. <Bind>
  73. <BindItem id="item7" compid="Edit_pid" propid="value" datasetid="ds_patient" columnid="pid"/>
  74. <BindItem id="item0" compid="sct_hngnm" propid="value" datasetid="ds_patient" columnid="hngnm"/>
  75. </Bind>
  76. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  77. function SPMRI09005_연명환자문서목록_onload(obj:Form, e:LoadEventInfo)
  78. {
  79. frmf_initForm(obj); //폼 초기화
  80. fInit();
  81. }
  82. function fInit()
  83. {
  84. if(!frmf_checkOpener()){
  85. //sysf_messageBox("정상적으로 호출되지 않았습니다.","E999");
  86. //this.close();
  87. return;
  88. }
  89. var arrParam = [
  90. {dsNm: "ds_init_A0665", cdGrpId: "A0665", sortField: "dispseq", sortMehotd: "asc"}
  91. ]
  92. appf_getCodeList(arrParam, true);
  93. var rrgstno = opener.frmf_getParameter("SPMRI09005_PARAM1");
  94. var pid = opener.frmf_getParameter("SPMRI09005_PARAM2");
  95. var hngnm = opener.frmf_getParameter("SPMRI09005_PARAM3");
  96. ds_patient.setColumn(0, "pid", pid);
  97. ds_patient.setColumn(0, "hngnm", hngnm);
  98. ds_cond.setColumn(0,"rrgstno", rrgstno);
  99. ds_cond.setColumn(0,"pid", pid);
  100. var oParam = {};
  101. oParam.id = "SPMRI09005_1";
  102. oParam.service = "recmngtapp.IntegrityRec";
  103. oParam.method = "reqGetYeonPatDocList";
  104. oParam.inds = "req=ds_cond";
  105. oParam.outds = "ds_doclist=doclist";
  106. oParam.async = false;
  107. //oParam.callback = "cf_TRMMR04001";
  108. tranf_submit(oParam);
  109. }
  110. function fReset() {
  111. var arrParam = [
  112. {dsNm: "ds_init_A0665", cdGrpId: "A0665", sortField: "dispseq", sortMehotd: "asc"}
  113. ]
  114. appf_getCodeList(arrParam, true);
  115. var pid = ds_main_patinfo.getColumn(0,"pid");
  116. var hngnm = ds_main_patinfo.getColumn(0,"hngnm");
  117. ds_patient.setColumn(0, "pid", pid);
  118. ds_patient.setColumn(0, "hngnm", hngnm);
  119. ds_cond.setColumn(0,"pid", pid);
  120. var oParam = {};
  121. oParam.id = "SPMRI09005_1";
  122. oParam.service = "recmngtapp.IntegrityRec";
  123. oParam.method = "reqGetYeonPatDocList";
  124. oParam.inds = "req=ds_cond";
  125. oParam.outds = "ds_doclist=doclist";
  126. oParam.async = false;
  127. //oParam.callback = "cf_TRMMR04001";
  128. tranf_submit(oParam);
  129. }
  130. function Grid00_oncellclick(obj:Grid, e:GridClickEventInfo)
  131. {
  132. // var row = e.row;
  133. //
  134. // if(e.col <> 2) return;
  135. //
  136. //
  137. // var doccode = ds_doclist.getColumn(row, "doccode");
  138. // var docsn = ds_doclist.getColumn(row, "docsn");
  139. //
  140. // if(utlf_isNull(doccode) || utlf_isNull(docsn) || doccode == "99") return;
  141. //
  142. // frmf_setParameter("SPMRI09004_PARAM1", doccode );
  143. // frmf_setParameter("SPMRI09004_PARAM2", docsn );
  144. //
  145. // frmf_modal("SPMRI09004", "SPMRI09004", null, null, null, null, null, null, null, null, null, null, "M");
  146. }
  147. function Grid00_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  148. {
  149. var row = e.row;
  150. var doccode = ds_doclist.getColumn(row, "doccode");
  151. var docsn = ds_doclist.getColumn(row, "docsn");
  152. if(utlf_isNull(doccode) || utlf_isNull(docsn) || doccode == "99") return;
  153. frmf_setParameter("SPMRI09004_PARAM1", doccode );
  154. frmf_setParameter("SPMRI09004_PARAM2", docsn );
  155. frmf_modal("SPMRI09004", "SPMRI09004", null, null, null, null, null, null, null, null, null, null, "M");
  156. }
  157. ]]></Script>
  158. </Form>
  159. </FDL>