SMAEB00401_검사치료코드조회.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00401" position="absolute 0 0 900 600" titletext="검사치료코드조회" onload="SMAEB00401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="0" class="div_SA2" position="absolute 0 0 894 60">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" linetype="vertical" position="absolute 802 12 808 50" anchor="default"/>
  11. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 821 20 877 42" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  12. <Static id="caption2" text="검사코드 :" class="search_name" position="absolute 10 10 96 27" anchor="default"/>
  13. <Edit id="ipt_srchexamcurecd" taborder="3" autoselect="true" class="input_search" position="absolute 92 8 212 27" anchor="default"/>
  14. <Static id="caption3" text="검사코드명 :" class="search_name" position="absolute 227 10 327 27" anchor="default"/>
  15. <Edit id="ipt_srchexamcurenm" taborder="4" autoselect="true" class="input_search" position="absolute 323 8 472 27" anchor="default"/>
  16. <Static id="caption5" text="지원부서 :" class="search_name" position="absolute 485 10 571 27" anchor="default"/>
  17. <Combo id="cmb_deptcd" taborder="5" innerdataset="ds_init_cmb_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" position="absolute 570 8 695 27" enable="false" anchor="default"/>
  18. <Static id="caption7" text="검사실 :" class="search_name" position="absolute 10 35 75 52" anchor="default"/>
  19. <Combo id="cmb_excuroom" taborder="6" innerdataset="ds_init_cmb_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" class="combo_default" position="absolute 92 33 212 52" anchor="default"/>
  20. <Static id="caption4" text="구/신코드 :" class="search_name" position="absolute 227 35 327 52" anchor="default"/>
  21. <Combo id="combo1" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 323 33 413 52" anchor="default">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn">1</Col>
  30. <Col id="datacolumn">신코드</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">2</Col>
  34. <Col id="datacolumn">구코드</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn"/>
  38. <Col id="datacolumn">전체</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. </Layout>
  44. </Layouts>
  45. </Div>
  46. <Static id="caption1" text="코드조회" class="tit_2" position="absolute 0 66 380 83"/>
  47. <Shape id="line1" class="line_10" position="absolute 0 82 896 88"/>
  48. <Div id="group1" taborder="3" position="absolute 96 572 895 599">
  49. <Layouts>
  50. <Layout>
  51. <Button id="btn_cfm" taborder="1" text="확인" class="btn4" position="absolute 684 1 740 23" anchor="default" onclick="group1_btn_cfm_onclick"/>
  52. <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 743 1 799 23" anchor="default" onclick="group1_btn_cls_onclick"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Grid id="grd_examcurecdlist" taborder="4" binddataset="ds_main_examcurecdlist" scrollpixel="all" autoenter="key" useinputpanel="false" extendsizetype="row" cellsizingtype="both" cellsizebandtype="allband" position="absolute 0 87 894 567" cellclickbound="cell" oncelldblclick="grd_examcurecdlist_oncelldblclick">
  57. <Formats>
  58. <Format id="default">
  59. <Columns>
  60. <Column size="25" band="left"/>
  61. <Column size="25" band="left"/>
  62. <Column size="85" band="left"/>
  63. <Column size="230" band="left"/>
  64. <Column size="100" band="left"/>
  65. <Column size="100" band="left"/>
  66. <Column size="71"/>
  67. <Column size="58"/>
  68. <Column size="57"/>
  69. <Column size="47"/>
  70. <Column size="44"/>
  71. <Column size="55"/>
  72. <Column size="61"/>
  73. <Column size="80"/>
  74. <Column size="100"/>
  75. <Column size="90"/>
  76. <Column size="280"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="100"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. </Columns>
  83. <Rows>
  84. <Row size="24" band="head"/>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell rowspan="2" taborder="undefined"/>
  90. <Cell col="1" rowspan="2" displaytype="image" taborder="undefined"/>
  91. <Cell col="2" rowspan="2" text="코드" taborder="undefined"/>
  92. <Cell col="3" rowspan="2" text="검사명" taborder="undefined"/>
  93. <Cell col="4" colspan="2" text="기본설정" taborder="undefined"/>
  94. <Cell col="6" colspan="7" text="분류" taborder="undefined"/>
  95. <Cell col="13" text="판독/대출"/>
  96. <Cell col="14" rowspan="2" colspan="2" text="시행부서" taborder="undefined"/>
  97. <Cell col="16" rowspan="2" text="비고" taborder="undefined"/>
  98. <Cell col="17" text="caption1"/>
  99. <Cell col="18" text="caption2"/>
  100. <Cell col="19" rowspan="2" text="주의사항" taborder="undefined"/>
  101. <Cell col="20" text="saveflag"/>
  102. <Cell col="21" text="grupsnglflag"/>
  103. <Cell row="1" col="4" text="검사/치료실"/>
  104. <Cell row="1" col="5" text="검사부위/품목"/>
  105. <Cell row="1" col="6" text="SECTION"/>
  106. <Cell row="1" col="7" text="Modality"/>
  107. <Cell row="1" col="8" text="분류코드"/>
  108. <Cell row="1" col="9" text="대"/>
  109. <Cell row="1" col="10" text="중"/>
  110. <Cell row="1" col="11" text="구분"/>
  111. <Cell row="1" col="12" text="상세내역"/>
  112. <Cell row="1" col="13" text="배정검사실"/>
  113. <Cell row="1" col="17" text="부서코드"/>
  114. <Cell row="1" col="18" text="종료일자"/>
  115. <Cell row="1" col="20" text="saveflag"/>
  116. <Cell row="1" col="21" text="grupsnglflag"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell celltype="head" text="expr:currow+1"/>
  120. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check==&quot;Y&quot;||check==1)?1:0" combodisplay="display"/>
  121. <Cell col="2" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucd" wordwrap="char" editautoselect="true"/>
  122. <Cell col="3" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucdnm" wordwrap="char" editautoselect="true"/>
  123. <Cell col="4" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excuroomcd" wordwrap="char" editautoselect="true" combodataset="ds_init_cmb_excuroom" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
  124. <Cell col="5" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excupartcd" wordwrap="char" editautoselect="true" combodataset="ds_init_bodypart" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
  125. <Cell col="6" text="bind:section"/>
  126. <Cell col="7" text="bind:modality"/>
  127. <Cell col="8" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excuclscd" wordwrap="char" editautoselect="true" editautoskip="false" combodataset="ds_init_A0463" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="100" combodisplaynulltext="-" combodisplaynulltype="nulltext" combotype="search"/>
  128. <Cell col="9" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:lrgcd" wordwrap="char" editautoselect="true" combodataset="ds_init_cmb_excuroomgrp" combocodecol="excuroomgrpcdid" combodatacol="excuroomgrpcdnm" combodisplayrowcount="100" combotype="search"/>
  129. <Cell col="10" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:mdlcd" wordwrap="char" editautoselect="true" combodataset="ds_init_bodypart" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
  130. <Cell col="11" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:ioexamflag" wordwrap="char" editautoselect="true" combodataset="ds_init_A0072" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="100" combodisplaynulltext="없음" combodisplaynulltype="nulltext" combotype="search"/>
  131. <Cell col="12" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucdrem" wordwrap="char" editautoselect="true"/>
  132. <Cell col="13" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:autroomassgcd" wordwrap="char" editautoselect="true"/>
  133. <Cell col="14" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:prcpexecdeptcd" wordwrap="char" editautoselect="true" combodataset="ds_init_dept_info" combocodecol="prcpexecdeptcdid" combodatacol="prcpexecdeptcdnm" combotype="search" enable="false"/>
  134. <Cell col="15" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:prcpexecdeptcd1" wordwrap="char" editautoselect="true"/>
  135. <Cell col="16" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excurem" wordwrap="char" editautoselect="true"/>
  136. <Cell col="17" style="align:left top;padding:5 3 1 3;" text="bind:basesuppdeptcd" wordwrap="char" editautoselect="true"/>
  137. <Cell col="18" style="align:left top;padding:5 3 1 3;" text="bind:excutodd" wordwrap="char" editautoselect="true"/>
  138. <Cell col="19" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excupatrem" wordwrap="char" editautoselect="true"/>
  139. <Cell col="20" text="bind:saveflag"/>
  140. <Cell col="21" text="bind:grupsnglflag"/>
  141. </Band>
  142. </Format>
  143. </Formats>
  144. </Grid>
  145. </Layout>
  146. </Layouts>
  147. <Objects>
  148. <Dataset id="ds_main_examcurecdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_examcurecdlist_oncolumnchanged">
  149. <ColumnInfo>
  150. <Column id="update" type="STRING"/>
  151. <Column id="excucd" type="STRING"/>
  152. <Column id="excucdnm" type="STRING"/>
  153. <Column id="excuroomcd" type="STRING"/>
  154. <Column id="excupartcd" type="STRING"/>
  155. <Column id="execbaseflag" type="STRING"/>
  156. <Column id="rcptacptyn" type="STRING"/>
  157. <Column id="rcptrsrvyn" type="STRING"/>
  158. <Column id="prcptdayaftrcptyn" type="STRING"/>
  159. <Column id="prcptdayrcptyn" type="STRING"/>
  160. <Column id="rsrvplceflag" type="STRING"/>
  161. <Column id="excuclscd" type="STRING"/>
  162. <Column id="lrgcd" type="STRING"/>
  163. <Column id="mdlcd" type="STRING"/>
  164. <Column id="ioexamflag" type="STRING"/>
  165. <Column id="excucdrem" type="STRING"/>
  166. <Column id="angioaltprcpcd" type="STRING"/>
  167. <Column id="angiouseyn" type="STRING"/>
  168. <Column id="autroomassgyn" type="STRING"/>
  169. <Column id="autroomassgcd" type="STRING"/>
  170. <Column id="section" type="STRING"/>
  171. <Column id="specdrcd" type="STRING"/>
  172. <Column id="rslttmplcd" type="STRING"/>
  173. <Column id="rslttmplcdnm" type="STRING"/>
  174. <Column id="rslttmplcd2nd" type="STRING"/>
  175. <Column id="ocrtmplcd" type="STRING"/>
  176. <Column id="eqmtifyn" type="STRING"/>
  177. <Column id="readdrid3" type="STRING"/>
  178. <Column id="readdrid3nm" type="STRING"/>
  179. <Column id="rsltdispyn" type="STRING"/>
  180. <Column id="rsltdispgbn" type="STRING"/>
  181. <Column id="rsltclscd1" type="STRING"/>
  182. <Column id="rsltclscd2" type="STRING"/>
  183. <Column id="partcntstats" type="STRING"/>
  184. <Column id="phocntstats" type="STRING"/>
  185. <Column id="curetims" type="STRING"/>
  186. <Column id="rsrvexcupossyn" type="STRING"/>
  187. <Column id="rsrvexcuroomposscd" type="STRING"/>
  188. <Column id="rsrvexcuroomposscd2" type="STRING"/>
  189. <Column id="rsrvsono" type="STRING"/>
  190. <Column id="excutm" type="STRING"/>
  191. <Column id="rsrvexmptmplcd" type="STRING"/>
  192. <Column id="rsrvmultitmplcd" type="STRING"/>
  193. <Column id="rsrvexmptmplexecrnm" type="STRING"/>
  194. <Column id="rsrvexmpcnt" type="STRING"/>
  195. <Column id="fastyn" type="STRING"/>
  196. <Column id="enemayn" type="STRING"/>
  197. <Column id="rsrvaprvtmplcd" type="STRING"/>
  198. <Column id="slepyn" type="STRING"/>
  199. <Column id="dcusrsrvyn" type="STRING"/>
  200. <Column id="rsrvupdtcncllimdayno" type="STRING"/>
  201. <Column id="modality" type="STRING"/>
  202. <Column id="pacsnocretyn" type="STRING"/>
  203. <Column id="etceqmtifyn" type="STRING"/>
  204. <Column id="prestddappyn" type="STRING"/>
  205. <Column id="anotestyn" type="STRING"/>
  206. <Column id="sytserdispyn" type="STRING"/>
  207. <Column id="sytshealdispyn" type="STRING"/>
  208. <Column id="glycostestyn" type="STRING"/>
  209. <Column id="bonedentestyn" type="STRING"/>
  210. <Column id="emryn" type="STRING"/>
  211. <Column id="prcpexecdeptcd" type="STRING"/>
  212. <Column id="prcpexecdeptcd1" type="STRING"/>
  213. <Column id="nextexcuroomcd" type="STRING"/>
  214. <Column id="excurem" type="STRING"/>
  215. <Column id="basesuppdeptcd" type="STRING"/>
  216. <Column id="excutodd" type="STRING"/>
  217. <Column id="excupatrem" type="STRING"/>
  218. <Column id="saveflag" type="STRING"/>
  219. <Column id="grupsnglflag" type="STRING"/>
  220. <Column id="selectdryn" type="STRING" size="0"/>
  221. </ColumnInfo>
  222. </Dataset>
  223. <Dataset id="ds_init_cmb_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="suppdeptcd" type="STRING" size="256"/>
  226. <Column id="depthngnm" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_init_cmb_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="basecd" type="STRING"/>
  232. <Column id="basecdflagdesc" type="STRING"/>
  233. </ColumnInfo>
  234. </Dataset>
  235. <Dataset id="ds_init_A0463" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  236. <ColumnInfo>
  237. <Column id="cdid" type="STRING" size="256"/>
  238. <Column id="cdnm" type="STRING" size="256"/>
  239. </ColumnInfo>
  240. </Dataset>
  241. <Dataset id="ds_init_A0072" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="cdid" type="STRING" size="256"/>
  244. <Column id="cdnm" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. <Dataset id="ds_init_cmb_excuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  248. <ColumnInfo>
  249. <Column id="basecdcnts" type="STRING" size="256"/>
  250. <Column id="basecdcnts2" type="STRING" size="256"/>
  251. <Column id="seq" type="STRING" size="256"/>
  252. </ColumnInfo>
  253. </Dataset>
  254. <Dataset id="ds_init_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="sortno" type="STRING" size="256" sumtext="부서코드"/>
  257. <Column id="basecd" type="STRING" size="256" sumtext="기본코드구분"/>
  258. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
  259. <Column id="basecdcnts" type="STRING" size="256" sumtext="부서코드"/>
  260. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  261. <Column id="basecdflag" type="STRING" size="256" sumtext="부서코드"/>
  262. </ColumnInfo>
  263. </Dataset>
  264. <Dataset id="ds_init_dept_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  265. <ColumnInfo>
  266. <Column id="prcpexecdeptcdid" type="STRING" size="256" sumtext="시행부서코드"/>
  267. <Column id="prcpexecdeptcdnm" type="STRING" size="256" sumtext="시행부서명"/>
  268. </ColumnInfo>
  269. </Dataset>
  270. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  271. <ColumnInfo>
  272. <Column id="srchexamcurecd" type="STRING" size="256"/>
  273. <Column id="srchexamcurenm" type="STRING" size="256"/>
  274. <Column id="deptcd" type="STRING" size="256"/>
  275. <Column id="excuroomcd" type="STRING" size="256"/>
  276. <Column id="newoldyb" type="STRING" size="256"/>
  277. </ColumnInfo>
  278. <Rows>
  279. <Row>
  280. <Col id="srchexamcurecd"/>
  281. <Col id="srchexamcurenm"/>
  282. <Col id="deptcd"/>
  283. <Col id="excuroomcd"/>
  284. <Col id="newoldyb"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_send_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  289. <ColumnInfo>
  290. <Column id="cd" type="STRING" size="256"/>
  291. <Column id="nm" type="STRING" size="256"/>
  292. </ColumnInfo>
  293. </Dataset>
  294. </Objects>
  295. <Bind>
  296. <BindItem id="item4" compid="grp_sea.ipt_srchexamcurecd" propid="value" datasetid="ds_send" columnid="srchexamcurecd"/>
  297. <BindItem id="item5" compid="grp_sea.ipt_srchexamcurenm" propid="value" datasetid="ds_send" columnid="srchexamcurenm"/>
  298. <BindItem id="item1" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  299. <BindItem id="item2" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
  300. <BindItem id="item6" compid="grp_sea.combo1" propid="value" datasetid="ds_send" columnid="newoldyb"/>
  301. </Bind>
  302. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  303. * System Name :
  304. * Job Name :
  305. * Creator :
  306. * Make Date : 2017-12-04
  307. * Description :
  308. *---------------------------------------------------------------------------------------
  309. * Modify Date Modifier Modify Description
  310. *---------------------------------------------------------------------------------------
  311. * 2017-06-19 Live Converter TF->XP
  312. *
  313. *---------------------------------------------------------------------------------------
  314. ****************************************************************************************/
  315. //=======================================================================================
  316. // Lib Include
  317. //---------------------------------------------------------------------------------------
  318. include "com_commonxp::comm_main.xjs";
  319. include "ast_examcurexp::AEZ0001.xjs";
  320. //=======================================================================================
  321. // Global Form Variable
  322. //---------------------------------------------------------------------------------------
  323. var arErrorCode = new HashArray();
  324. //=======================================================================================
  325. // Function
  326. //---------------------------------------------------------------------------------------
  327. /*-**************************************************************************************
  328. * Argument : N/A
  329. * Description : 기초코드 조회
  330. ****************************************************************************************/
  331. function fn_TRAEA01301(){
  332. dsf_createDsRow("ds_reqparam", [
  333. {col:"basesuppdeptcd", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
  334. , {col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("dutplceinstcd")}
  335. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  336. , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
  337. , {col:"initflag", type:"STRING", size:256, val:"1"}
  338. , {col:"alladdyn", type:"STRING", size:256, val:""}
  339. ]);
  340. var oParam = {};
  341. oParam.id = "TRAEA01301";
  342. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  343. oParam.method = "reqGetInitExamCureRoomGrpCodeList";
  344. oParam.inds = "reqparam=ds_reqparam";
  345. oParam.outds = "ds_init_cmb_excuroomgrp=initexcuroomgrp ds_init_cmb_excuroom=initexcuroom ds_init_cmb_suppdept=suppdept";
  346. oParam.async = false;
  347. oParam.callback = "cf_TRAEA01301";
  348. tranf_submit(oParam);
  349. }
  350. function cf_TRAEA01301(strSvcID, nErrorCode, strErrorMsg){
  351. if(nErrorCode < 0) return;
  352. ds_init_cmb_excuroomgrp.updateColID("basecdcnts","excuroomgrpcdid");
  353. ds_init_cmb_excuroomgrp.updateColID("basecdcnts2","excuroomgrpcdnm");
  354. dsf_setDefaultVal(ds_init_cmb_excuroomgrp,"all");
  355. }
  356. /*-**************************************************************************************
  357. * Argument : N/A
  358. * Description : 기초코드 조회
  359. ****************************************************************************************/
  360. function fn_TRAEB00601() {
  361. dsf_createDsRow("ds_req", [
  362. {col:"basecd", type:"STRING", size:256, val:""}
  363. , {col:"basesuppdeptcd", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
  364. , {col:"bbasecdflag", type:"STRING", size:256, val:"B"}
  365. ]);
  366. var oParam = {};
  367. oParam.id = "TRAEB00601";
  368. oParam.service = "examcurebaseapp.BodyPart";
  369. oParam.method = "reqGetBodyPartList";
  370. oParam.inds = "req=ds_req";
  371. oParam.outds = "ds_init_bodypart=bodypart";
  372. oParam.async = false;
  373. //oParam.callback = "cf_TRAEB00601";
  374. tranf_submit(oParam);
  375. }
  376. /*-**************************************************************************************
  377. * Argument : N/A
  378. * Description : 기초코드 조회
  379. ****************************************************************************************/
  380. function fn_TRAEB00205() {
  381. dsf_createDsRow("ds_req", [
  382. {col:"instance1", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
  383. ]);
  384. var oParam = {};
  385. oParam.id = "TRAEB00205";
  386. oParam.service = "examcurebaseapp.ComCode";
  387. oParam.method = "reqGetPrcpExecDeptCdList";
  388. oParam.inds = "req=ds_req";
  389. oParam.outds = "ds_init_dept_info=item";
  390. oParam.async = false;
  391. //oParam.callback = "cf_TRAEB00205";
  392. tranf_submit(oParam);
  393. }
  394. /*-**************************************************************************************
  395. * Argument : N/A
  396. * Description : 검사치료코드 조회
  397. ****************************************************************************************/
  398. function fn_TRAEB00201() {
  399. var examcurecd = utlf_transNullToEmpty(grp_sea.ipt_srchexamcurecd.value);
  400. if ( examcurecd == "" ) {
  401. examcurecd = "%";
  402. }else {
  403. examcurecd = "%" + examcurecd.toUpperCase()+"%";
  404. }
  405. dsf_createDsRow("ds_req", [
  406. {col:"srchexamcurecd", type:"STRING", size:256, val:examcurecd}
  407. , {col:"srchexamcurenm", type:"STRING", size:256, val:ds_send.getColumn(0,"srchexamcurenm")}
  408. , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send.getColumn(0,"deptcd")}
  409. , {col:"newoldyb", type:"STRING", size:256, val:ds_send.getColumn(0,"newoldyb")}
  410. , {col:"excuroomcd", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcd")}
  411. //, {col:"saveflag", type:"STRING", size:256, val:ds_send.getColumn(0,"saveflag")}
  412. ]);
  413. var oParam = {};
  414. oParam.id = "TRAEB00201";
  415. oParam.service = "examcurebaseapp.ExamCureCode";
  416. oParam.method = "reqGetExamCureCodeList";
  417. oParam.inds = "req=ds_req";
  418. oParam.outds = "ds_main_examcurecdlist=item";
  419. oParam.async = false;
  420. oParam.callback = "cf_TRAEB00201";
  421. tranf_submit(oParam);
  422. }
  423. function cf_TRAEB00201(sSvcId, nErrorCode, sErrorMsg) {
  424. if(nErrorCode < 0) return;
  425. fMakeCopyColumn(ds_main_examcurecdlist,"rcptrsrvyn","bfrcptrsrvyn");
  426. fMakeCopyColumn(ds_main_examcurecdlist,"prcptdayrcptyn","bfprcptdayrcptyn");
  427. ds_main_examcurecdlist.updateColID("suppdeptcd","basesuppdeptcd");
  428. ds_main_examcurecdlist.addColumn("check","string");
  429. }
  430. /****************************************************************************************
  431. * Argument : objDs - Dataset ID
  432. * : sColSrc - 원본 컬럼
  433. * : sColTgt - 생성할 컬럼
  434. * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
  435. ****************************************************************************************/
  436. function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
  437. if(utlf_isNull(objDs.getColumnInfo(sColTgt))) objDs.addColumn(sColTgt,"string");
  438. for(var i = 0 ; i < objDs.rowcount ; i++) {
  439. objDs.setColumn(i,sColTgt,objDs.getColumn(i,sColSrc));
  440. }
  441. }
  442. //=======================================================================================
  443. // Event
  444. //---------------------------------------------------------------------------------------
  445. /****************************************************************************************
  446. * Components : Form
  447. * Description : 화면 처음 초기화시 폼초기화
  448. ****************************************************************************************/
  449. function SMAEB00401_onload(obj:Form, e:LoadEventInfo)
  450. {
  451. frmf_initForm(obj);
  452. try{
  453. dsf_makeValue(ds_send, "multiyn", "string", arg_multiyn);
  454. dsf_makeValue(ds_send, "srchexamcurecd", "string", arg_calcscorcd);
  455. dsf_makeValue(ds_send, "deptcd", "string", arg_suppdeptcd);
  456. }catch(e){}
  457. if(ds_send.getColumn(0, "multiyn") == "N") {
  458. grd_examcurecdlist.setFormatColProperty(1, "size", 0);
  459. }
  460. grdf_setGridSort(grd_examcurecdlist); // 그리드 소트만
  461. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  462. // ds_send.setColumn(0,"deptcd",frmf_getParameter("AST_DEPTCD"));
  463. appf_getCodeList([{dsNm: "ds_init_A0072", cdGrpId: "A0072"}
  464. , {dsNm: "ds_init_A0463", cdGrpId: "A0463"} ], true);
  465. fn_TRAEA01301();
  466. fn_TRAEB00601();
  467. fn_TRAEB00205();
  468. grp_sea.btn_sea.click();
  469. }
  470. /****************************************************************************************
  471. * Components : Button
  472. * Description : 조회
  473. ****************************************************************************************/
  474. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. ds_main_examcurecdlist.clearData();
  477. fn_TRAEB00201();
  478. }
  479. /****************************************************************************************
  480. * Components : Dataset
  481. * Description :
  482. ****************************************************************************************/
  483. function ds_main_examcurecdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  484. {
  485. if(e.columnid=="check") {
  486. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  487. }
  488. }
  489. /****************************************************************************************
  490. * Components : Button
  491. * Description : 확인(데이터전송)
  492. ****************************************************************************************/
  493. function group1_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  494. {
  495. ds_send_prcplist.clearData();
  496. ds_main_examcurecdlist.filter("check=='Y'");
  497. if(ds_main_examcurecdlist.rowcount == 0) {
  498. sysf_messageBox("선택된 데이터가 없습니다.","E");
  499. ds_main_examcurecdlist.filter("");
  500. return;
  501. }
  502. for(var i = 0; i < ds_main_examcurecdlist.rowcount; i++) {
  503. var nRow = ds_send_prcplist.addRow();
  504. ds_send_prcplist.setColumn(nRow, "cd", ds_main_examcurecdlist.getColumn(i, "excucd"));
  505. ds_send_prcplist.setColumn(nRow, "nm", ds_main_examcurecdlist.getColumn(i, "excucdnm"));
  506. }
  507. ds_main_examcurecdlist.filter("");
  508. opener.dsf_createDs("ds_temp_prcplist");
  509. opener.ds_temp_prcplist.copyData(ds_send_prcplist);
  510. this.close();
  511. }
  512. /****************************************************************************************
  513. * Components : Button
  514. * Description : 닫기
  515. ****************************************************************************************/
  516. function group1_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  517. {
  518. this.close();
  519. }
  520. /****************************************************************************************
  521. * Components : Grid
  522. * Description : 선택행 데이터 전송
  523. ****************************************************************************************/
  524. function grd_examcurecdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  525. {
  526. if(e.row < 0) return;
  527. ds_send_prcplist.clearData();
  528. var nRow = ds_send_prcplist.addRow();
  529. ds_send_prcplist.setColumn(nRow, "cd", ds_main_examcurecdlist.getColumn(e.row, "excucd"));
  530. ds_send_prcplist.setColumn(nRow, "nm", ds_main_examcurecdlist.getColumn(e.row, "excucdnm"));
  531. opener.dsf_createDs("ds_temp_prcplist");
  532. opener.ds_temp_prcplist.copyData(ds_send_prcplist);
  533. this.close();
  534. }
  535. ]]></Script>
  536. </Form>
  537. </FDL>