SMAER00001_전환데이타검증.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAER00001" position="absolute 0 0 1194 787" titletext="데이타 검증" oninit="SMAER00001_oninit" onload="SMAER00001_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 1113 759 1193 781" id="btn_excel" class="btn7" text="엑셀저장" onclick="btn_excel_onclick"/>
  8. <Static id="caption6" text="데이타 검증" class="tit_1" position="absolute 0 0 120 25"/>
  9. <Div id="grp_sea" taborder="1" position="absolute 0 25 1193 85" class="div_SA">
  10. <Layouts>
  11. <Layout>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1099 13 1105 51" anchor="default"/>
  13. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 1118 21 1174 43" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  14. <Static id="caption1" text="지원부서 :" class="search_name" position="absolute 248 23 334 40" anchor="default"/>
  15. <Combo id="combo1" taborder="2" innerdataset="@ds_init_cmb_info_suppdeptlist_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" class="combo_search" position="absolute 334 22 437 41" anchor="default" onitemchanged="grp_sea_combo1_onitemchanged"/>
  16. <Static id="caption5" text="검사/치료실 :" class="search_name" position="absolute 480 23 586 40" anchor="default"/>
  17. <Combo id="cmb_excuroom" taborder="3" innerdataset="@ds_init_cmb_info_excuroomcdlist_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" class="combo_search" position="absolute 585 22 722 41" anchor="default"/>
  18. <Calendar id="ipt_fromdd" taborder="4" class="input_default" position="absolute 130 9 220 28" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  19. <Combo id="cmb_ddflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 20 22 120 41" anchor="default">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">prcpdd</Col>
  28. <Col id="datacolumn">처방일자</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">acptdd</Col>
  32. <Col id="datacolumn">접수일자</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">execdd</Col>
  36. <Col id="datacolumn">실시일자</Col>
  37. </Row>
  38. </Rows>
  39. </Dataset>
  40. </Combo>
  41. <Calendar id="input1" taborder="6" class="input_default" position="absolute 130 34 220 53" anchor="default" dateformat="yyyy-MM-dd"/>
  42. <Edit id="ipt_pid" taborder="7" class="input_search" position="absolute 852 22 952 41" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown"/>
  43. <Static id="caption8" text="등록번호 :" class="search_name" position="absolute 765 23 853 40" anchor="default"/>
  44. <CheckBox id="chk_prcp" taborder="8" position="absolute 965 8 1100 28" anchor="default" text="ASIS처방Sync조회"/>
  45. <CheckBox id="chk_tobe" taborder="9" position="absolute 965 33 1100 53" anchor="default" text="TOBE처방Sync조회"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. <Grid id="grd_mdvlist" class="datagrid2" taborder="2" binddataset="ds_main_mdv_mdvlist" useinputpanel="false" position="absolute 0 90 1193 755" cellsizingtype="both" extendsizetype="row">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="25" band="left"/>
  54. <Column size="58"/>
  55. <Column size="63"/>
  56. <Column size="59"/>
  57. <Column size="82"/>
  58. <Column size="59"/>
  59. <Column size="73"/>
  60. <Column size="69"/>
  61. <Column size="172"/>
  62. <Column size="71"/>
  63. <Column size="63"/>
  64. <Column size="100"/>
  65. <Column size="100"/>
  66. <Column size="100"/>
  67. <Column size="58"/>
  68. <Column size="66"/>
  69. <Column size="50"/>
  70. <Column size="69"/>
  71. <Column size="79"/>
  72. <Column size="100"/>
  73. <Column size="100"/>
  74. <Column size="100"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="100"/>
  80. <Column size="100"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. <Column size="45"/>
  84. <Column size="45"/>
  85. <Column size="100"/>
  86. <Column size="100"/>
  87. <Column size="100"/>
  88. <Column size="100"/>
  89. <Column size="73"/>
  90. <Column size="86"/>
  91. <Column size="38"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. </Columns>
  95. <Rows>
  96. <Row size="30" band="head"/>
  97. <Row size="24"/>
  98. </Rows>
  99. <Band id="head">
  100. <Cell/>
  101. <Cell col="1" text="처방체크"/>
  102. <Cell col="2" text="등록번호"/>
  103. <Cell col="3" text="환자명"/>
  104. <Cell col="4" text="지원부서명"/>
  105. <Cell col="5" text=" 검사실명"/>
  106. <Cell col="6" text="처방일자"/>
  107. <Cell col="7" text="유일번호"/>
  108. <Cell col="8" text="처방명"/>
  109. <Cell col="9" text="처방코드"/>
  110. <Cell col="10" text="처방상태"/>
  111. <Cell col="11" text="접수일시"/>
  112. <Cell col="12" text="실시일시"/>
  113. <Cell col="13" text="판독일시"/>
  114. <Cell col="14" text="구분"/>
  115. <Cell col="15" text="처방과"/>
  116. <Cell col="16" text="처방의"/>
  117. <Cell col="17" text="처방과코드"/>
  118. <Cell col="18" text="처방의사번"/>
  119. <Cell col="19" text="소견"/>
  120. <Cell col="20" text="결론"/>
  121. <Cell col="21" text="권고"/>
  122. <Cell col="22" text="판독의1"/>
  123. <Cell col="23" text="판독의2"/>
  124. <Cell col="24" text="판독의3"/>
  125. <Cell col="25" text="판독의4"/>
  126. <Cell col="26" text="판독의1"/>
  127. <Cell col="27" text="판독의2"/>
  128. <Cell col="28" text="판독의3"/>
  129. <Cell col="29" text="판독의4"/>
  130. <Cell col="30" text="접수자"/>
  131. <Cell col="31" text="실시자"/>
  132. <Cell col="32" text="처방전달사항"/>
  133. <Cell col="33" text="실시코멘트"/>
  134. <Cell col="34" text="지원부서"/>
  135. <Cell col="35" text="검사실코드"/>
  136. <Cell col="36" text="시행부서"/>
  137. <Cell col="37" text="시행부서명"/>
  138. <Cell col="38" text="S/A"/>
  139. <Cell col="39" text="병동"/>
  140. <Cell col="40" text="병실"/>
  141. </Band>
  142. <Band id="body">
  143. <Cell celltype="head" text="expr:currow+1"/>
  144. <Cell col="1" text="bind:dumpyn"/>
  145. <Cell col="2" displaytype="text" edittype="text" text="bind:pid"/>
  146. <Cell col="3" displaytype="text" edittype="text" text="bind:hngnm"/>
  147. <Cell col="4" displaytype="text" edittype="text" text="bind:suppdeptnm"/>
  148. <Cell col="5" displaytype="text" edittype="text" text="bind:excuroomnm"/>
  149. <Cell col="6" displaytype="text" edittype="text" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) || prcpdd == '-' ? '####-##-##' : ''"/>
  150. <Cell col="7" displaytype="text" edittype="text" text="bind:execprcpuniqno"/>
  151. <Cell col="8" displaytype="text" edittype="text" text="bind:prcpnm"/>
  152. <Cell col="9" displaytype="text" edittype="text" text="bind:calcscorcd"/>
  153. <Cell col="10" text="bind:execprcpstatcd"/>
  154. <Cell col="11" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt == '-' ? '####-##-## ##:##:##' : ''"/>
  155. <Cell col="12" text="bind:execdt" mask="expr:utlf_isNull(execdt) || execdt == '-' ? '####-##-## ##:##:##' : ''"/>
  156. <Cell col="13" text="bind:cnfmdt" mask="expr:utlf_isNull(cnfmdt) || cnfmdt == '-' ? '####-##-## ##:##:##' : ''"/>
  157. <Cell col="14" text="bind:ioflag"/>
  158. <Cell col="15" displaytype="text" edittype="text" text="bind:orddeptnm"/>
  159. <Cell col="16" displaytype="text" edittype="text" text="bind:rgstrnm"/>
  160. <Cell col="17" displaytype="text" edittype="text" text="bind:orddeptcd"/>
  161. <Cell col="18" displaytype="text" edittype="text" text="bind:rgstrid"/>
  162. <Cell col="19" displaytype="text" edittype="text" text="bind:rsltcomment"/>
  163. <Cell col="20" displaytype="text" edittype="text" text="bind:rsltrept"/>
  164. <Cell col="21" displaytype="text" edittype="text" text="bind:rsltrecm"/>
  165. <Cell col="22" text="bind:cnfmmanid"/>
  166. <Cell col="23" text="bind:readdrid1"/>
  167. <Cell col="24" text="bind:readdrid2"/>
  168. <Cell col="25" text="bind:readdrid3"/>
  169. <Cell col="26" displaytype="text" edittype="text" text="bind:cnfmmanidnm"/>
  170. <Cell col="27" displaytype="text" edittype="text" text="bind:readdrid1nm"/>
  171. <Cell col="28" displaytype="text" edittype="text" text="bind:readdrid2nm"/>
  172. <Cell col="29" displaytype="text" edittype="text" text="bind:readdrid3nm"/>
  173. <Cell col="30" text="bind:acptidnm"/>
  174. <Cell col="31" text="bind:execridnm"/>
  175. <Cell col="32" text="bind:prcpdelivefact"/>
  176. <Cell col="33" text="bind:execrem"/>
  177. <Cell col="34" text="bind:suppdeptcd"/>
  178. <Cell col="35" text="bind:excuroomcd"/>
  179. <Cell col="36" text="bind:prcpexecdeptcd"/>
  180. <Cell col="37" text="bind:prcpexecdeptnm"/>
  181. <Cell col="38" text="bind:sna"/>
  182. <Cell col="39" text="bind:wardcd"/>
  183. <Cell col="40" text="bind:roomcd"/>
  184. </Band>
  185. </Format>
  186. </Formats>
  187. </Grid>
  188. <Shape id="line1" class="line_1" position="absolute 0 86 1194 90" style="strokepen:3 solid #33bbbbff;"/>
  189. </Layout>
  190. </Layouts>
  191. <Objects>
  192. <Dataset id="ds_main_mdv_mdvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  193. <ColumnInfo>
  194. <Column id="dumpyn" type="STRING" size="256"/>
  195. <Column id="pid" type="STRING" size="256"/>
  196. <Column id="hngnm" type="STRING" size="256"/>
  197. <Column id="suppdeptnm" type="STRING" size="256"/>
  198. <Column id="excuroomnm" type="STRING" size="256"/>
  199. <Column id="prcpdd" type="STRING" size="256"/>
  200. <Column id="execprcpuniqno" type="STRING" size="256"/>
  201. <Column id="prcpnm" type="STRING" size="256"/>
  202. <Column id="calcscorcd" type="STRING" size="256"/>
  203. <Column id="execprcpstatcd" type="STRING" size="256"/>
  204. <Column id="acptdt" type="STRING" size="256"/>
  205. <Column id="execdt" type="STRING" size="256"/>
  206. <Column id="cnfmdt" type="STRING" size="256"/>
  207. <Column id="ioflag" type="STRING" size="256"/>
  208. <Column id="orddeptnm" type="STRING" size="256"/>
  209. <Column id="rgstrnm" type="STRING" size="256"/>
  210. <Column id="orddeptcd" type="STRING" size="256"/>
  211. <Column id="rgstrid" type="STRING" size="256"/>
  212. <Column id="rsltcomment" type="STRING" size="256"/>
  213. <Column id="rsltrept" type="STRING" size="256"/>
  214. <Column id="rsltrecm" type="STRING" size="256"/>
  215. <Column id="cnfmmanid" type="STRING" size="256"/>
  216. <Column id="readdrid1" type="STRING" size="256"/>
  217. <Column id="readdrid2" type="STRING" size="256"/>
  218. <Column id="readdrid3" type="STRING" size="256"/>
  219. <Column id="cnfmmanidnm" type="STRING" size="256"/>
  220. <Column id="readdrid1nm" type="STRING" size="256"/>
  221. <Column id="readdrid2nm" type="STRING" size="256"/>
  222. <Column id="readdrid3nm" type="STRING" size="256"/>
  223. <Column id="acptidnm" type="STRING" size="256"/>
  224. <Column id="execridnm" type="STRING" size="256"/>
  225. <Column id="prcpdelivefact" type="STRING" size="256"/>
  226. <Column id="execrem" type="STRING" size="256"/>
  227. <Column id="suppdeptcd" type="STRING" size="256"/>
  228. <Column id="excuroomcd" type="STRING" size="256"/>
  229. <Column id="prcpexecdeptcd" type="STRING" size="256"/>
  230. <Column id="prcpexecdeptnm" type="STRING" size="256"/>
  231. <Column id="sna" type="STRING" size="256"/>
  232. <Column id="wardcd" type="STRING" size="256"/>
  233. <Column id="roomcd" type="STRING" size="256"/>
  234. </ColumnInfo>
  235. <Rows>
  236. <Row>
  237. <Col id="dumpyn"/>
  238. <Col id="pid"/>
  239. <Col id="hngnm"/>
  240. <Col id="suppdeptnm"/>
  241. <Col id="excuroomnm"/>
  242. <Col id="prcpdd"/>
  243. <Col id="execprcpuniqno"/>
  244. <Col id="prcpnm"/>
  245. <Col id="calcscorcd"/>
  246. <Col id="execprcpstatcd"/>
  247. <Col id="acptdt"/>
  248. <Col id="execdt"/>
  249. <Col id="cnfmdt"/>
  250. <Col id="ioflag"/>
  251. <Col id="orddeptnm"/>
  252. <Col id="rgstrnm"/>
  253. <Col id="orddeptcd"/>
  254. <Col id="rgstrid"/>
  255. <Col id="rsltcomment"/>
  256. <Col id="rsltrept"/>
  257. <Col id="rsltrecm"/>
  258. <Col id="cnfmmanid"/>
  259. <Col id="readdrid1"/>
  260. <Col id="readdrid2"/>
  261. <Col id="readdrid3"/>
  262. <Col id="cnfmmanidnm"/>
  263. <Col id="readdrid1nm"/>
  264. <Col id="readdrid2nm"/>
  265. <Col id="readdrid3nm"/>
  266. <Col id="acptidnm"/>
  267. <Col id="execridnm"/>
  268. <Col id="prcpdelivefact"/>
  269. <Col id="execrem"/>
  270. <Col id="suppdeptcd"/>
  271. <Col id="excuroomcd"/>
  272. <Col id="prcpexecdeptcd"/>
  273. <Col id="prcpexecdeptnm"/>
  274. <Col id="sna"/>
  275. <Col id="wardcd"/>
  276. <Col id="roomcd"/>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  281. <ColumnInfo>
  282. <Column id="suppdeptcd" type="STRING" size="256"/>
  283. <Column id="excuroomcd" type="STRING" size="256"/>
  284. <Column id="ddflag" type="STRING" size="256"/>
  285. <Column id="fromdd" type="STRING" size="256"/>
  286. <Column id="todd" type="STRING" size="256"/>
  287. <Column id="pid" type="STRING" size="256"/>
  288. <Column id="chkprcp" type="STRING" size="256"/>
  289. <Column id="chktobe" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. <Rows>
  292. <Row>
  293. <Col id="suppdeptcd"/>
  294. <Col id="excuroomcd"/>
  295. <Col id="ddflag"/>
  296. <Col id="fromdd"/>
  297. <Col id="todd"/>
  298. <Col id="pid"/>
  299. <Col id="chkprcp"/>
  300. <Col id="chktobe"/>
  301. </Row>
  302. </Rows>
  303. </Dataset>
  304. <Dataset id="ds_init_cmb_info_suppdeptlist_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  305. <ColumnInfo>
  306. <Column id="suppdeptcd" type="STRING" size="256"/>
  307. <Column id="depthngnm" type="STRING" size="256"/>
  308. </ColumnInfo>
  309. <Rows>
  310. <Row/>
  311. </Rows>
  312. </Dataset>
  313. <Dataset id="ds_init_cmb_info_excuroomcdlist_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  314. <ColumnInfo>
  315. <Column id="basecd" type="STRING" size="256"/>
  316. <Column id="basecdflagdesc" type="STRING" size="256"/>
  317. </ColumnInfo>
  318. <Rows>
  319. <Row/>
  320. </Rows>
  321. </Dataset>
  322. <Dataset id="ds_init1_cmb_info_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  323. <ColumnInfo>
  324. <Column id="excuroomcdid" type="STRING" size="256"/>
  325. <Column id="excuroomcdnm" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. <Rows>
  328. <Row/>
  329. </Rows>
  330. </Dataset>
  331. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  332. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  333. </Objects>
  334. <Bind>
  335. <BindItem id="item0" compid="grp_sea.cmb_ddflag" propid="value" datasetid="ds_send" columnid="ddflag"/>
  336. <BindItem id="item1" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  337. <BindItem id="item2" compid="grp_sea.input1" propid="value" datasetid="ds_send" columnid="todd"/>
  338. <BindItem id="item3" compid="grp_sea.combo1" propid="value" datasetid="ds_send" columnid="suppdeptcd"/>
  339. <BindItem id="item4" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
  340. <BindItem id="item5" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  341. <BindItem id="item6" compid="grp_sea.chk_prcp" propid="value" datasetid="ds_send" columnid="chkprcp"/>
  342. <BindItem id="item7" compid="grp_sea.chk_tobe" propid="value" datasetid="ds_send" columnid="chktobe"/>
  343. </Bind>
  344. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  345. * System Name :
  346. * Job Name :
  347. * Creator :
  348. * Make Date : 2016-10-14
  349. * Description :
  350. *---------------------------------------------------------------------------------------
  351. * Modify Date Modifier Modify Description
  352. *---------------------------------------------------------------------------------------
  353. * 2016-10-14 Live Converter TF->XP
  354. *
  355. *---------------------------------------------------------------------------------------
  356. ****************************************************************************************/
  357. //=======================================================================================
  358. // Lib Include
  359. //---------------------------------------------------------------------------------------
  360. include "com_commonxp::comm_main.xjs";
  361. include "ast_examcurexp::AEZ0001.xjs";
  362. //=======================================================================================
  363. // Global Form Variable
  364. //---------------------------------------------------------------------------------------
  365. var arErrorCode = new HashArray();
  366. var gSuppdeptcd = "";
  367. //=======================================================================================
  368. // Function
  369. //---------------------------------------------------------------------------------------
  370. /****************************************************************************************
  371. * Argument : N/A
  372. * Description : 검사실 조회
  373. ****************************************************************************************/
  374. function call_TRAEA00902() {
  375. dsf_createDsRow("ds_req", [
  376. {col:"basecd", type:"STRING", size:256, val:""}
  377. , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  378. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  379. , {col:"instcd", type:"STRING", size:256, val:""}
  380. ]);
  381. var oParam = {};
  382. oParam.id = "TRAEA00902";
  383. oParam.service = "examcurebaseapp.ExamCureRoom";
  384. oParam.method = "reqGetExamCureRoomGrpList";
  385. oParam.inds = "req=ds_req";
  386. oParam.outds = "ds_init_cmb_info_excuroomcdlist_excuroom=item";
  387. oParam.async = true;
  388. //oParam.callback = "cf_TRAEA00902";
  389. tranf_submit(oParam);
  390. }
  391. /****************************************************************************************
  392. * Argument : N/A
  393. * Description : 지원부서 조회
  394. ****************************************************************************************/
  395. function call_TRAEA00904() {
  396. dsf_createDsRow("ds_req", [
  397. {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  398. , {col:"deptflag", type:"STRING", size:256, val:""}
  399. ]);
  400. var oParam = {};
  401. oParam.id = "TRAEA00904";
  402. oParam.service = "examcurersrvapp.RsrvRef";
  403. oParam.method = "reqGetSuppDeptCdList";
  404. oParam.inds = "req=ds_req";
  405. oParam.outds = "ds_init_cmb_info_suppdeptlist_suppdept=item";
  406. oParam.async = true;
  407. //oParam.callback = "cf_TRAEA00904";
  408. tranf_submit(oParam);
  409. }
  410. /****************************************************************************************
  411. * Argument : N/A
  412. * Description : 검사실 조회
  413. ****************************************************************************************/
  414. function call_TRAEA01301() {
  415. dsf_createDsRow("ds_reqparam", [
  416. {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  417. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  418. , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
  419. , {col:"instcd", type:"STRING", size:256, val:""}
  420. , {col:"initflag", type:"STRING", size:256, val:"1"}
  421. , {col:"alladdyn", type:"STRING", size:256, val:""}
  422. ]);
  423. var oParam = {};
  424. oParam.id = "TRAEA01301";
  425. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  426. oParam.method = "reqGetInitExamCureRoomGrpCodeList";
  427. oParam.inds = "reqparam=ds_reqparam";
  428. oParam.outds = "ds_init1_cmb_info_initexecroom=initexcuroom";
  429. oParam.async = false;
  430. oParam.callback = "cf_TRAEA01301";
  431. tranf_submit(oParam);
  432. }
  433. function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
  434. if(nErrorCode < 0) return;
  435. ds_init1_cmb_info_initexecroom.updateColID("basecd","excuroomcdid");
  436. ds_init1_cmb_info_initexecroom.updateColID("basecdflagdesc","excuroomcdnm");
  437. }
  438. /****************************************************************************************
  439. * Argument : N/A
  440. * Description : 데이타검증 리스트 조회
  441. ****************************************************************************************/
  442. function call_TRAER00001() {
  443. var oParam = {};
  444. oParam.id = "TRAER00001";
  445. oParam.service = "examcureacptexecapp.ExamCurePrcs";
  446. oParam.method = "reqGetExamCureMDVList";
  447. oParam.inds = "req=ds_send";
  448. oParam.outds = "ds_main_mdv_mdvlist=item";
  449. oParam.async = false;
  450. oParam.callback = "cf_TRAER00001";
  451. tranf_submit(oParam);
  452. }
  453. function cf_TRAER00001(sSvcId, nErrorCode, sErrorMsg) {
  454. if(nErrorCode < 0) return;
  455. dsf_setTypeFormat(ds_main_mdv_mdvlist, "execprcpuniqno:INT");
  456. }
  457. //=======================================================================================
  458. // Event
  459. //---------------------------------------------------------------------------------------
  460. /****************************************************************************************
  461. * Components : Form
  462. * Components ID : SMAER00001
  463. * Event : oninit
  464. * Argument : 01.obj : Object Event has occurred
  465. * : 02.e : Event Object
  466. * Description : 화면 처음 초기화시 폼초기화
  467. ****************************************************************************************/
  468. function SMAER00001_oninit(obj:Form, e:InitEventInfo)
  469. {
  470. frmf_initForm(obj); // 폼 초기화
  471. }
  472. /****************************************************************************************
  473. * Components : Form
  474. * Components ID : SMAER00001
  475. * Event : onload
  476. * Argument : 01.obj : Object Event has occurred
  477. * : 02.e : Event Object
  478. * Description : 화면 처음 초기화시 폼초기화
  479. ****************************************************************************************/
  480. function SMAER00001_onload(obj:Form, e:LoadEventInfo)
  481. {
  482. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  483. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  484. grdf_setGridSort(grd_mdvlist); // 그리드 소트만
  485. ds_main_mdv_mdvlist.clearData();
  486. var arrParam = [{dsNm: "ds_init_M0011", cdGrpId: "M0011"} //root/init2/cmb_info/initexecprcpstatcd
  487. ,{dsNm: "ds_init_M0010", cdGrpId: "M0010"} //root/init2/cmb_info/prcpgenrflag
  488. ];
  489. appf_getCodeList(arrParam);
  490. call_TRAEA00902(); //검사실
  491. call_TRAEA00904(); //지원부서
  492. call_TRAEA01301(); //검사실
  493. grp_sea.ipt_pid.setFocus();
  494. grp_sea.cmb_ddflag.index = 0;
  495. ds_send.setColumn(0,"fromdd",utlf_getCurrentDate());
  496. ds_send.setColumn(0,"todd",utlf_getCurrentDate());
  497. }
  498. /****************************************************************************************
  499. * Components : Button
  500. * Components ID : grp_sea.btn_sea
  501. * Event : onclick
  502. * Argument : 01.obj : Object Event has occurred
  503. * : 02.e : Event Object
  504. * Description : 조회실행
  505. ****************************************************************************************/
  506. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  507. {
  508. ds_main_mdv_mdvlist.clearData();
  509. if ( utlf_isNull(ds_send.getColumn(0, "ddflag")) && utlf_isNull(ds_send.getColumn(0, "pid")) ) {
  510. sysf_messageBox("조회기간이 미입력되었으면 등록번호는 필수사항입니다","");
  511. return;
  512. }
  513. call_TRAER00001();
  514. }
  515. /****************************************************************************************
  516. * Components : Combo
  517. * Components ID : grp_sea.combo1
  518. * Event : onitemchanged
  519. * Argument : 01.obj : Object Event has occurred
  520. * : 02.e : Event Object
  521. * Description : 부서변경시 치료실 재조회
  522. ****************************************************************************************/
  523. function grp_sea_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  524. {
  525. gSuppdeptcd = ds_send.getColumn(0, "suppdeptcd");
  526. ds_send.setColumn( 0, "excuroomcd", "");
  527. call_TRAEA00902();
  528. }
  529. /****************************************************************************************
  530. * Components : Edit
  531. * Components ID : grp_sea.ipt_pid
  532. * Event : onkeydown
  533. * Argument : 01.obj : Object Event has occurred
  534. * : 02.e : Event Object
  535. * Description : 등록번호 입력 후 조회실행
  536. ****************************************************************************************/
  537. function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  538. {
  539. if(e.keycode == 13) {
  540. obj.updateToDataset();
  541. grp_sea_btn_sea_onclick();
  542. }
  543. }
  544. /****************************************************************************************
  545. * Components : Button
  546. * Components ID : btn_excel
  547. * Event : onclick
  548. * Argument : 01.obj : Object Event has occurred
  549. * : 02.e : Event Object
  550. * Description : 엑셀저장
  551. ****************************************************************************************/
  552. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  553. {
  554. if( ds_main_mdv_mdvlist.rowcount > 0 ){
  555. grdf_exportExcel(grd_mdvlist, "SheetName", "SheetName", false, "", "user", false);
  556. } else {
  557. sysf_messageBox("조회된 데이터가 ", "I004");
  558. }
  559. }
  560. ]]></Script>
  561. </Form>
  562. </FDL>