SPAER02500_과거진단조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAER02500" position="absolute 0 0 530 560" titletext="과거진단조회" onload="SPAER02500_onload" oninit="SPAER02500_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_basecd" taborder="3" useinputpanel="false" position="absolute 1 19 527 527" anchor="all" onclick="grd_basecd_onclick" binddataset="ds_main_selectdiaglist" positiontype="position" cellsizingtype="col" oncolresized="grd_basecd_oncolresized" oncellclick="grd_basecd_oncellclick">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="42"/>
  12. <Column size="123"/>
  13. <Column size="189"/>
  14. <Column size="142"/>
  15. <Column size="100"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="선택"/>
  25. <Cell col="1" text="결과확정일시"/>
  26. <Cell col="2" text="진단명"/>
  27. <Cell col="3" text="소견"/>
  28. <Cell col="4" text="진단코드"/>
  29. <Cell col="5" text="생검여부"/>
  30. <Cell col="6" text="결과번호"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == &quot;Y&quot;?&quot;1&quot;:&quot;0&quot;"/>
  34. <Cell col="1" text="bind:cnfmdt" mask="@@@@-@@-@@ @@:@@:@@"/>
  35. <Cell col="2" text="bind:termengnm"/>
  36. <Cell col="3" text="bind:rsltcomment"/>
  37. <Cell col="4" text="bind:termcd"/>
  38. <Cell col="5" text="bind:patholyn"/>
  39. <Cell col="6" text="bind:rsltno"/>
  40. <Cell col="7"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Button id="btn_cls" taborder="4" text="닫기" class="btn4" position="absolute 474 534 530 554" anchor="right bottom" positiontype="position" onclick="btn_cls_onclick"/>
  46. <Button id="btn_cfm" taborder="5" text="확인" onlbuttonup="btn_cfm_onlbuttonup" class="btn4" position="absolute 415 534 471 554" anchor="right bottom" positiontype="position" onclick="btn_cfm_onclick"/>
  47. <Static id="caption1" text="과거진단조회" class="tit_2" position="absolute 1 1 138 21"/>
  48. </Layout>
  49. </Layouts>
  50. <Objects>
  51. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="termcd" type="STRING" size="256"/>
  54. <Column id="termengnm" type="STRING" size="256"/>
  55. <Column id="rsltcomment" type="STRING" size="256"/>
  56. </ColumnInfo>
  57. </Dataset>
  58. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="pid" type="STRING" size="256"/>
  61. <Column id="tmplcdflag" type="STRING" size="256"/>
  62. <Column id="prcpgenrflag" type="STRING" size="256"/>
  63. </ColumnInfo>
  64. <Rows>
  65. <Row>
  66. <Col id="pid"/>
  67. <Col id="tmplcdflag">B</Col>
  68. <Col id="prcpgenrflag"/>
  69. </Row>
  70. </Rows>
  71. </Dataset>
  72. <Dataset id="ds_main_selectdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onvaluechanged="ds_main_selectdiaglist_onvaluechanged">
  73. <ColumnInfo>
  74. <Column id="check" type="STRING" size="256"/>
  75. <Column id="cnfmdt" type="STRING" size="256"/>
  76. <Column id="termengnm" type="STRING" size="256"/>
  77. <Column id="rsltcomment" type="STRING" size="256"/>
  78. <Column id="termcd" type="STRING" size="256"/>
  79. <Column id="patholyn" type="STRING" size="256"/>
  80. <Column id="rsltno" type="STRING" size="256"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="check"/>
  85. <Col id="cnfmdt"/>
  86. <Col id="termengnm"/>
  87. <Col id="rsltcomment"/>
  88. <Col id="termcd"/>
  89. <Col id="patholyn"/>
  90. <Col id="rsltno"/>
  91. </Row>
  92. </Rows>
  93. </Dataset>
  94. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="instance1" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row/>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  103. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  104. </Objects>
  105. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  106. * System Name :
  107. * Job Name :
  108. * File Name : SPAER02500_과거진단조회.xfdl
  109. * Creator :
  110. * Make Date :
  111. *
  112. * Description :
  113. *---------------------------------------------------------------------------------------
  114. * Modify Date Modifier Modify Description
  115. *---------------------------------------------------------------------------------------
  116. *
  117. *---------------------------------------------------------------------------------------
  118. ****************************************************************************************/
  119. //=======================================================================================
  120. // xjs Include
  121. //---------------------------------------------------------------------------------------
  122. include "com_commonxp::comm_main.xjs";
  123. include "ast_examcurexp::AEZ0001.xjs";
  124. //=======================================================================================
  125. // Function
  126. //---------------------------------------------------------------------------------------
  127. /****************************************************************************************
  128. * Argument : N/A
  129. * Description : 결과예문 선택 시 Parent Instance Setting Function
  130. ****************************************************************************************/
  131. function fSendContents() {
  132. if(frmf_checkOpener()){
  133. var row = -1;
  134. for (var i=0; i<ds_main_selectdiaglist.rowcount; i++) {
  135. var check = ds_main_selectdiaglist.getColumn(i, "check");
  136. if (check == "Y" ) {
  137. row = row + 1;
  138. ds_temp.addRow();
  139. ds_temp.setColumn(row, "termcd" , ds_main_selectdiaglist.getColumn(i, "termcd"));
  140. ds_temp.setColumn(row, "termengnm" , ds_main_selectdiaglist.getColumn(i, "termengnm"));
  141. ds_temp.setColumn(row, "rsltcomment", ds_main_selectdiaglist.getColumn(i, "rsltcomment"));
  142. }//메인창으로 값을 넘겨주는 데이터, ds_temp로 넘길수 있게
  143. }
  144. if(ds_temp.getRowCount() > 0){
  145. //결과관리 창으로 값만 넘겨주면 됨
  146. opener.dsf_createDs("ds_temp_selectdiaglist");
  147. opener.ds_temp_selectdiaglist.copyData(ds_temp);
  148. }
  149. }else {
  150. sysf_messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
  151. return;
  152. }
  153. this.close();
  154. }
  155. /****************************************************************************************
  156. * Argument : N/A
  157. * Description : 조회함수
  158. ****************************************************************************************/
  159. function f_TRAER00417(){
  160. dsf_createDsRow("ds_req",
  161. [{col:"pid" , val:ds_send.getColumn(0, "pid")}
  162. ,{col:"suppdeptcd" , val:opener.ds_send_globalinstance.getColumn(0,"instance1")}
  163. ,{col:"flag" , val:"L"}
  164. ,{col:"prcpgenrflag", val:ds_send.getColumn(0, "prcpgenrflag")}]);
  165. if (!utlf_isNull(ds_send.getColumn(0, "pid"))) {
  166. var oParam = {};
  167. oParam.id = "TRAER00417";
  168. oParam.service = "examcurebaseapp.ComCode";
  169. oParam.method = "reqGetHistoryDiagDataList";
  170. oParam.inds = "req=ds_req";
  171. oParam.outds = "ds_main_selectdiaglist=item";
  172. oParam.async = false;
  173. oParam.callback = "cf_TRAER00417";
  174. tranf_submit(oParam);
  175. }
  176. }
  177. function cf_TRAER00417(sSvcId, objErrorCode, objErrorMsg) {
  178. ds_main_selectdiaglist.updateColID("diagcd","termcd");
  179. ds_main_selectdiaglist.updateColID("diagnm","termengnm");
  180. }
  181. //=======================================================================================
  182. // Event
  183. //---------------------------------------------------------------------------------------
  184. /****************************************************************************************
  185. * Components : Form
  186. * Components ID : SPAER02500
  187. * Event : oninit
  188. * Argument : 01.obj : Object Event has occurred
  189. * : 02.e : Event Object
  190. * Description : 화면 처음 초기화시 폼초기화
  191. ****************************************************************************************/
  192. function SPAER02500_oninit(obj:Form, e:InitEventInfo)
  193. {
  194. frmf_initForm(obj); // 화면공통
  195. }
  196. /****************************************************************************************
  197. * Components : Form
  198. * Components ID : SPAER02500
  199. * Event : onload
  200. * Argument : 01.obj : Object Event has occurred
  201. * : 02.e : Event Object
  202. * Description : 화면 처음 초기화시 폼초기화
  203. ****************************************************************************************/
  204. function SPAER02500_onload(obj:Form, e:LoadEventInfo)
  205. {
  206. lf_aezfSetSuppDeptcd();
  207. ds_main_selectdiaglist.clearData();
  208. ds_hidden.copyData(arg_ds_hidden);
  209. ds_send.setColumn(0,"pid" ,ds_hidden.getColumn(0,"pid"));
  210. ds_send.setColumn(0,"prcpgenrflag" ,ds_hidden.getColumn(0,"prcpgenrflag"));
  211. // sysf_trace(ds_send.saveXML());
  212. if (!utlf_isNull(ds_send.getColumn(0, "pid"))) {
  213. f_TRAER00417();
  214. }
  215. }
  216. /****************************************************************************************
  217. * Components : Grid
  218. * Components ID : grd_basecd
  219. * Event : oncellclick
  220. * Argument : 01.obj : Object Event has occurred
  221. * : 02.e : Event Object
  222. * Description :
  223. ****************************************************************************************/
  224. function grd_basecd_oncellclick(obj:Grid, e:GridClickEventInfo)
  225. {
  226. for(var i = 0; i<ds_main_selectdiaglist.getRowCount(); i++){
  227. ds_main_selectdiaglist.setColumn(i, "check", "0");
  228. }
  229. ds_main_selectdiaglist.setColumn(ds_main_selectdiaglist.rowposition, "check", "1");
  230. }
  231. /****************************************************************************************
  232. * Components : Button
  233. * Components ID : btn_cfm
  234. * Event : onclick
  235. * Argument : 01.obj : Object Event has occurred
  236. * : 02.e : Event Object
  237. * Description : 확인버튼 클릭
  238. ****************************************************************************************/
  239. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. var rowcnt = 0;
  242. for(var i=0; i<ds_main_selectdiaglist.rowcount; i++) {
  243. if(ds_main_selectdiaglist.getColumn(i, "check") == "Y"){
  244. rowcnt ++;
  245. }
  246. }
  247. if (rowcnt > 0) {
  248. fSendContents();
  249. }
  250. }
  251. /****************************************************************************************
  252. * Components : Button
  253. * Components ID : btn_cls
  254. * Event : onclick
  255. * Argument : 01.obj : Object Event has occurred
  256. * : 02.e : Event Object
  257. * Description : 화면닫기
  258. ****************************************************************************************/
  259. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. this.close();
  262. }
  263. /****************************************************************************************
  264. * Components : Grid
  265. * Components ID : grd_basecd
  266. * Event : oncolresized
  267. * Argument : 01.obj : Object Event has occurred
  268. * : 02.e : Event Object
  269. * Description :
  270. ****************************************************************************************/
  271. function grd_basecd_oncolresized(obj:Grid, e:GridSizeChangedEventInfo)
  272. {
  273. if(e.newvalue == 0){
  274. obj.setRealColSize(e.subindex, 1);
  275. }
  276. }
  277. /****************************************************************************************
  278. * Components : Dataset
  279. * Components ID : ds_main_selectdiaglist
  280. * Event : onvaluechanged
  281. * Argument : 01.obj : Object Event has occurred
  282. * : 02.e : Event Object
  283. * Description :
  284. ****************************************************************************************/
  285. function ds_main_selectdiaglist_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
  286. {
  287. if(e.columnid == "check"){
  288. if(e.newvalue == "1"){
  289. ds_main_selectdiaglist.setColumn(e.row, "check", "Y");
  290. }else{
  291. ds_main_selectdiaglist.setColumn(e.row, "check", "N");
  292. }
  293. }
  294. }
  295. function Button00_onclick(obj:Button, e:ClickEventInfo)
  296. {
  297. this.close();
  298. }
  299. ]]></Script>
  300. </Form>
  301. </FDL>