SPAER01000_환자별입원촬영현황조회.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAER01000" position="absolute 0 0 1196 732" titletext="환자별 입원촬영 현황조회" oninit="SPAER01000_oninit" onload="SPAER01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1195 731" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 52 1195 58" linetype="horizontal" id="line2" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  11. <Grid position="absolute 0 57 1195 718" align="align:center middle;" id="grd_mainordlist" class="datagrid2" binddataset="ds_main_subordlist_subordlist1" anchor="all" cellsizingtype="col" onrbuttonup="group3_grd_mainordlist_onrbuttonup">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="25"/>
  16. <Column size="65"/>
  17. <Column size="60"/>
  18. <Column size="38"/>
  19. <Column size="65"/>
  20. <Column size="65"/>
  21. <Column size="65"/>
  22. <Column size="65"/>
  23. <Column size="65"/>
  24. <Column size="190"/>
  25. <Column size="67"/>
  26. <Column size="73"/>
  27. <Column size="60"/>
  28. <Column size="60"/>
  29. <Column size="55"/>
  30. <Column size="55"/>
  31. <Column size="40"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="80"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="35" band="head"/>
  41. <Row size="25"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="등록번호"/>
  46. <Cell col="2" text="환자명"/>
  47. <Cell col="3" text="구분"/>
  48. <Cell col="4" text="처방일시"/>
  49. <Cell col="5" text="접수일시"/>
  50. <Cell col="6" text="촬영시작"/>
  51. <Cell col="7" text="촬영일시"/>
  52. <Cell col="8" text="판독일시"/>
  53. <Cell col="9" text="처방명"/>
  54. <Cell col="10" text="촬영실"/>
  55. <Cell col="11" text="처방과"/>
  56. <Cell col="12" text="처방의"/>
  57. <Cell col="13" text="판독기간"/>
  58. <Cell col="14" text="검사&#10;대기시간"/>
  59. <Cell col="15" text="검사시간"/>
  60. <Cell col="16" text="일수"/>
  61. <Cell col="17" text="입원일자"/>
  62. <Cell col="18" text="퇴원일자"/>
  63. <Cell col="19" text="퇴원통보일자"/>
  64. <Cell col="20" text="실시자"/>
  65. <Cell col="21" text="execprcpuniqno_h"/>
  66. <Cell col="22" text="hisorderid_h"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head" text="expr:currow+1"/>
  70. <Cell col="1" text="bind:pid"/>
  71. <Cell col="2" text="bind:patnm"/>
  72. <Cell col="3" displaytype="combo" edittype="combo" text="bind:prcpgenrflag" combodataset="ds_init_M0010" combocodecol="cdid" combodatacol="cdnm"/>
  73. <Cell col="4" style="align:center;padding:0 0 0 2;" text="bind:prcpdt" wordwrap="char" mask="@@@@-@@-@@ @@:@@:@@"/>
  74. <Cell col="5" style="align:center;padding:0 0 0 2;" text="bind:acptdt" wordwrap="char" mask="@@@@-@@-@@ @@:@@:@@"/>
  75. <Cell col="6" style="align:center;padding:0 0 0 2;" text="bind:arvdt" wordwrap="char" mask="@@@@-@@-@@ @@:@@:@@"/>
  76. <Cell col="7" style="align:center;padding:0 0 0 2;" text="bind:excuexectodt" wordwrap="char" mask="@@@@-@@-@@ @@:@@:@@"/>
  77. <Cell col="8" style="align:center;padding:0 0 0 2;" text="bind:cnfmdt" wordwrap="char" mask="@@@@-@@-@@ @@:@@:@@"/>
  78. <Cell col="9" style="align:left;padding:0 0 0 2;" text="bind:prcpnm"/>
  79. <Cell col="10" text="bind:examroomnm"/>
  80. <Cell col="11" text="bind:rgstdepthngnm"/>
  81. <Cell col="12" text="bind:rgstridnm"/>
  82. <Cell col="13" text="bind:cnfmwait"/>
  83. <Cell col="14" text="bind:execwait" mask="@@:@@:@@"/>
  84. <Cell col="15" text="bind:phowait" mask="@@:@@:@@"/>
  85. <Cell col="16" text="bind:inddcnt"/>
  86. <Cell col="17" text="bind:indd"/>
  87. <Cell col="18" text="bind:dschdd"/>
  88. <Cell col="19" text="bind:dschnotidt"/>
  89. <Cell col="20" text="bind:execrid1"/>
  90. <Cell col="21" text="bind:execprcpuniqno"/>
  91. <Cell col="22" text="bind:hisorderid"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. </Layout>
  97. </Layouts>
  98. </Div>
  99. <Static id="caption6" text="개인별 입원촬영 현황조회" class="tit_1" position="absolute 0 0 200 25"/>
  100. <Div id="group2" taborder="1" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
  101. <Layouts>
  102. <Layout>
  103. <Static id="caption7" text="등록번호 :" class="search_name" position="absolute 10 14 102 31" anchor="default"/>
  104. <Edit id="input6" taborder="1" class="input_search" position="absolute 99 12 179 31" anchor="default" onkeydown="group2_input6_onkeydown"/>
  105. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1058 10 1114 32" anchor="top right" onclick="group2_btn_sea_onclick"/>
  106. <Button id="button2" taborder="3" text="Excel" class="btn4" position="absolute 1118 10 1186 32" anchor="top right" onclick="group2_button2_onclick"/>
  107. </Layout>
  108. </Layouts>
  109. </Div>
  110. </Layout>
  111. </Layouts>
  112. <Objects>
  113. <Dataset id="ds_main_subordlist_subordlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="pid" type="STRING" size="256"/>
  116. <Column id="patnm" type="STRING" size="256"/>
  117. <Column id="prcpgenrflag" type="STRING" size="256"/>
  118. <Column id="prcpdt" type="STRING" size="256"/>
  119. <Column id="acptdt" type="STRING" size="256"/>
  120. <Column id="arvdt" type="STRING" size="256"/>
  121. <Column id="excuexectodt" type="STRING" size="256"/>
  122. <Column id="cnfmdt" type="STRING" size="256"/>
  123. <Column id="prcpnm" type="STRING" size="256"/>
  124. <Column id="examroomnm" type="STRING" size="256"/>
  125. <Column id="rgstdepthngnm" type="STRING" size="256"/>
  126. <Column id="rgstridnm" type="STRING" size="256"/>
  127. <Column id="cnfmwait" type="STRING" size="256"/>
  128. <Column id="execwait" type="STRING" size="256"/>
  129. <Column id="inddcnt" type="STRING" size="256"/>
  130. <Column id="indd" type="STRING" size="256"/>
  131. <Column id="dschdd" type="STRING" size="256"/>
  132. <Column id="dschnotidt" type="STRING" size="256"/>
  133. <Column id="execrid1" type="STRING" size="256"/>
  134. <Column id="execprcpuniqno" type="STRING" size="256"/>
  135. <Column id="hisorderid" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="pid"/>
  140. <Col id="patnm"/>
  141. <Col id="prcpgenrflag"/>
  142. <Col id="prcpdt"/>
  143. <Col id="acptdt"/>
  144. <Col id="arvdt"/>
  145. <Col id="excuexectodt"/>
  146. <Col id="cnfmdt"/>
  147. <Col id="prcpnm"/>
  148. <Col id="examroomnm"/>
  149. <Col id="rgstdepthngnm"/>
  150. <Col id="rgstridnm"/>
  151. <Col id="cnfmwait"/>
  152. <Col id="execwait"/>
  153. <Col id="inddcnt"/>
  154. <Col id="indd"/>
  155. <Col id="dschdd"/>
  156. <Col id="dschnotidt"/>
  157. <Col id="execrid1"/>
  158. <Col id="execprcpuniqno"/>
  159. <Col id="hisorderid"/>
  160. </Row>
  161. </Rows>
  162. </Dataset>
  163. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="pid" type="STRING" size="256"/>
  166. <Column id="cdgrupid" type="STRING" size="256"/>
  167. <Column id="offset" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row>
  171. <Col id="pid"/>
  172. <Col id="cdgrupid"/>
  173. <Col id="offset"/>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_init_cmb_info2_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="excuroomcdid" type="STRING" size="256"/>
  180. <Column id="excuroomcdnm" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="excuroomcdid"/>
  185. <Col id="excuroomcdnm"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_init_cmb_lrgcd_lrgcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="cdid" type="STRING" size="256"/>
  192. <Column id="cdnm" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row>
  196. <Col id="cdid"/>
  197. <Col id="cdnm"/>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_init_cmb_mdlcd_mdlcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="mdlcdid" type="STRING" size="256"/>
  204. <Column id="mdlcdnm" type="STRING" size="256"/>
  205. </ColumnInfo>
  206. <Rows>
  207. <Row>
  208. <Col id="mdlcdid"/>
  209. <Col id="mdlcdnm"/>
  210. </Row>
  211. </Rows>
  212. </Dataset>
  213. <Dataset id="ds_init_cmb_smlcd_smlcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="smlcdid" type="STRING" size="256"/>
  216. <Column id="smlcdnm" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. <Rows>
  219. <Row>
  220. <Col id="smlcdid"/>
  221. <Col id="smlcdnm"/>
  222. </Row>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_hidden_comcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  226. <Dataset id="ds_hidden_comcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  227. <Dataset id="ds_hidden_comcd3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  228. <Dataset id="ds_temp_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  229. <Dataset id="ds_temp_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="param" type="STRING" size="256"/>
  232. <Column id="flag" type="STRING" size="256"/>
  233. <Column id="searchitem" type="STRING" size="256"/>
  234. </ColumnInfo>
  235. <Rows>
  236. <Row>
  237. <Col id="param"/>
  238. <Col id="flag"/>
  239. <Col id="searchitem"/>
  240. </Row>
  241. </Rows>
  242. </Dataset>
  243. <Dataset id="ds_init_M0011" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="cdid" type="STRING" size="256"/>
  246. <Column id="cdnm" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. </Dataset>
  249. <Dataset id="ds_init_M0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="cdid" type="STRING" size="256"/>
  252. <Column id="cdnm" type="STRING" size="256"/>
  253. </ColumnInfo>
  254. </Dataset>
  255. </Objects>
  256. <Bind>
  257. <BindItem id="item0" compid="group2.input6" propid="value" datasetid="ds_send" columnid="pid"/>
  258. </Bind>
  259. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  260. * System Name :
  261. * Job Name :
  262. * Creator :
  263. * Make Date : 2015-11-13
  264. * Description :
  265. *---------------------------------------------------------------------------------------
  266. * Modify Date Modifier Modify Description
  267. *---------------------------------------------------------------------------------------
  268. * 2015-11-13 Live Converter TF->XP
  269. *
  270. *---------------------------------------------------------------------------------------
  271. ****************************************************************************************/
  272. //=======================================================================================
  273. // Lib Include
  274. //---------------------------------------------------------------------------------------
  275. include "com_commonxp::comm_main.xjs"
  276. include "ast_examcurexp::AEZ0001.xjs"
  277. include "com_pacsxp::ZEP001.xjs"
  278. //=======================================================================================
  279. // Global Form Variable
  280. //---------------------------------------------------------------------------------------
  281. var arErrorCode = new HashArray();
  282. var gSuppdeptcd = "";
  283. //=======================================================================================
  284. // Function
  285. //---------------------------------------------------------------------------------------
  286. /****************************************************************************************
  287. * Argument : N/A
  288. * Description :
  289. ****************************************************************************************/
  290. // /* @group : 촬영현황조회
  291. // * @ver : 2007.06.14
  292. // * @by : 장준원
  293. // * @-----------------------------------
  294. // * @type : function
  295. // * @access : public
  296. // * @desc : 대량조회를 위한 Grid Scroll 제어 Function
  297. // */
  298. // function fSubmitOnScroll() {
  299. // if(grd_mainordlist.vscroll.attribute("max") == grd_mainordlist.vscroll.attribute("pos")) {
  300. // // end of scroll
  301. // model.setValue("/root/send/offset", grd_mainordlist.rows-1); // grid의 header row는 제외
  302. // //alert('offset->'+model.getValue("/root/send/offset"));
  303. // //if ( messageBox("미조회된 건수가 존재합니다. 추가 조회를 하시겠습니까?","Q001")==6 ) {
  304. // submit("TRAER01005");
  305. // grd_mainordlist.dispatch("onmouseup");
  306. // //}else {
  307. // //}
  308. // }
  309. // }
  310. /****************************************************************************************
  311. * Argument : N/A
  312. * Description : 실시와 결과상태 PACS 결과 조회 Function (등록번호 사용)
  313. ****************************************************************************************/
  314. function fPACSInfo() {
  315. if ( ds_main_subordlist_subordlist1.rowposition < 0 ) return;
  316. fClickPACSPatResultList(ds_main_subordlist_subordlist1);
  317. }
  318. /****************************************************************************************
  319. * Argument : N/A
  320. * Description : 실시와 결과상태 PACS 결과 조회 Function (PRCPDD + EXECPRCPUNIQNO = HISORDERID 사용)
  321. ****************************************************************************************/
  322. function fPACSPrcpInfo() {
  323. var cRow = ds_main_subordlist_subordlist1.rowposition;
  324. if ( cRow < 0 ) return;
  325. if ( utlf_isNull(ds_main_subordlist_subordlist1.getColumn(cRow,"excuexectodt")) || ds_main_subordlist_subordlist1.getColumn(cRow,"excuexectodt") == "-") {
  326. sysf_messageBox("미실시된 검사 " , "E008");
  327. return;
  328. }
  329. fClickPACSPrcpResultList(ds_main_subordlist_subordlist1);
  330. }
  331. /****************************************************************************************
  332. * Argument : N/A
  333. * Description : 실시와 결과상태 PACS 결과 조회 Function (등록번호 사용 구현부분)
  334. ****************************************************************************************/
  335. function fClickPACSPatResultList(dsObj) {
  336. var rowidx = dsObj.rowposition;
  337. if ( rowidx >= 0 ) {
  338. var pid = dsObj.getColumn(rowidx,"pid");
  339. zepfpacsPatientID(pid);
  340. }
  341. }
  342. /****************************************************************************************
  343. * Argument : N/A
  344. * Description : 실시와 결과상태 PACS 결과 조회 Function (PRCPDD + EXECPRCPUNIQNO = HISORDERID 사용 구현부분)
  345. ****************************************************************************************/
  346. function fClickPACSPrcpResultList(dsObj) {
  347. var rowidx = dsObj.rowposition;
  348. if ( rowidx >= 0 ) {
  349. var pid = dsObj.getColumn(rowidx,"pid");
  350. var pacsorderid = dsObj.getColumn(rowidx,"prcpdt") + dsObj.getColumn(rowidx,"execprcpuniqno");
  351. zepfpacsAll(pacsorderid, pid);
  352. }
  353. }
  354. /****************************************************************************************
  355. * Argument : N/A
  356. * Description : 대분류 조회
  357. ****************************************************************************************/
  358. function call_TRAER01002(){
  359. var oParam = {};
  360. oParam.id = "TRAER01002";
  361. oParam.service = "examcurebaseapp.ComCode";
  362. oParam.method = "reqGetSubstrComCdList";
  363. oParam.inds = "req=ds_send";
  364. oParam.outds = "ds_init_cmb_lrgcd_lrgcdlist=item";
  365. oParam.async = false;
  366. oParam.callback = "cf_TRAER01002";
  367. tranf_submit(oParam);
  368. }
  369. function cf_TRAER01002(sSvcId, nErrorCode, sErrorMsg) {
  370. if(nErrorCode < 0) return;
  371. ds_init_cmb_lrgcd_lrgcdlist.updateColID("comcdid","cdid");
  372. ds_init_cmb_lrgcd_lrgcdlist.updateColID("comcdnm","cdnm");
  373. }
  374. //=======================================================================================
  375. // Event
  376. //---------------------------------------------------------------------------------------
  377. /****************************************************************************************
  378. * Components : Form
  379. * Components ID : SPAER01000
  380. * Event : oninit
  381. * Argument : 01.obj : Object Event has occurred
  382. * : 02.e : Event Object
  383. * Description : 화면 처음 초기화시 폼초기화
  384. ****************************************************************************************/
  385. function SPAER01000_oninit(obj:Form, e:InitEventInfo)
  386. {
  387. frmf_initForm(obj); // 폼 초기화
  388. }
  389. /****************************************************************************************
  390. * Components : Form
  391. * Components ID : SPAER01000
  392. * Event : onload
  393. * Argument : 01.obj : Object Event has occurred
  394. * : 02.e : Event Object
  395. * Description : 화면 처음 초기화시 폼초기화
  396. ****************************************************************************************/
  397. function SPAER01000_onload(obj:Form, e:LoadEventInfo)
  398. {
  399. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  400. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  401. // zbcfGetCodeList( new Array("M0011","M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
  402. // submit("TRZBC00101");
  403. var arrParam = [{dsNm: "ds_init_M0011", cdGrpId: "M0011"}
  404. ,{dsNm: "ds_init_M0010", cdGrpId: "M0010"}
  405. ]
  406. appf_getCodeList(arrParam);
  407. aezfInsertInstance2("ds_hidden_comcd2", "M0011", "전체", "", ds_init_M0011);
  408. aezfInsertInstance2("ds_hidden_comcd" , "M0010", "전체", "", ds_init_M0010);
  409. ds_hidden_comcd.deleteRow(ds_hidden_comcd.findRow("cdid","-")); // 외래,입원구분 : 공통
  410. ds_hidden_comcd.deleteRow(ds_hidden_comcd.findRow("cdnm","전체")); // 외래,입원구분 : 공통
  411. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","150")); // 상태구분 : 처방전출력
  412. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","160")); // 상태구분 : 처방전미출력
  413. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","170")); // 상태구분 : 검수완료
  414. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","180")); // 상태구분 : 처방보류
  415. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","200")); // 상태구분 : 부분계산
  416. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","210")); // 상태구분 : 수납대기
  417. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","220")); // 상태구분 : 계산(입원용)
  418. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","300")); // 상태구분 : 조제보류
  419. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","310")); // 상태구분 : 조제완료
  420. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","320")); // 상태구분 : 불출
  421. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","330")); // 상태구분 : 미불출
  422. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","400")); // 상태구분 : 바코드발행
  423. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","410")); // 상태구분 : 채취/채혈
  424. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","420")); // 상태구분 : 전달/확인
  425. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","430")); // 상태구분 : 검체접수
  426. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","500")); // 상태구분 : 접수
  427. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","510")); // 상태구분 : 검사중
  428. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","505")); // 상태구분 : 준비
  429. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","520")); // 상태구분 : 검사완료
  430. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","530")); // 상태구분 : 출고
  431. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","525")); // 상태구분 : 불출요청
  432. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","540")); // 상태구분 : 반납의뢰
  433. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","550")); // 상태구분 : 반납완료
  434. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","560")); // 상태구분 : 폐기의뢰
  435. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","570")); // 상태구분 : 폐기완료
  436. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","700")); // 상태구분 : 판독중
  437. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","720")); // 상태구분 : 중간결과
  438. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","305")); // 상태구분 : 조제중
  439. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","315")); // 상태구분 : 특조완료
  440. ds_hidden_comcd2.deleteRow(ds_hidden_comcd2.findRow("cdid","725")); // 상태구분 : Confirm확인
  441. //공통코드 테이블에서 영상구분정보 가져오기
  442. ds_send.setColumn(0,"cdgrupid", "A0463");
  443. call_TRAER01002();
  444. aezfInsertInstance2("ds_hidden_comcd3", "lrgcdlist", "전체", "", ds_init_cmb_lrgcd_lrgcdlist);
  445. if (frmf_checkOpener()) { //opener 검사
  446. var param = opener.frmf_getParameter("opener_parameter_id"); //opener parameter value를 get
  447. if(!utlf_isNull(param)) { // opener parameter value가 있는 경우
  448. //두번째 방법 parameter value를 이용하여 프로그램 수행
  449. condarray = param.split("▦");
  450. ds_send.setColumn(0,"pid", condarray[0]);
  451. }
  452. }
  453. // 부모창에서 등록번호 받아서 바로 조회하기
  454. frmf_inputEnterKey("group2.btn_sea", "onclick", new ClickEventInfo);
  455. frmf_createPopupMenu("popupmenu","popupmenu_onmenuclick"
  456. ,[{id: "fPACSInfo" , level: "0", title: "PACS조회(등록번호)"}
  457. ,{id: "fPACSPrcpInfo" , level: "0", title: "PACS조회(처방기준)"}]
  458. );
  459. }
  460. // ds에 생성된 id별 함수 실행
  461. function popupmenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  462. {
  463. eval(e.id + "()");
  464. }
  465. /****************************************************************************************
  466. * Components : Edit
  467. * Components ID : group2.input6
  468. * Event : onkeydown
  469. * Argument : 01.obj : Object Event has occurred
  470. * : 02.e : Event Object
  471. * Description : 등록번호 입력후 조회
  472. ****************************************************************************************/
  473. function group2_input6_onkeydown(obj:Edit, e:KeyEventInfo)
  474. {
  475. if(e.keycode == 13) {
  476. obj.updateToDataset();
  477. frmf_inputEnterKey("group2.btn_sea", "onclick", new ClickEventInfo);
  478. }
  479. }
  480. /****************************************************************************************
  481. * Components : Button
  482. * Components ID : group2.btn_sea
  483. * Event : onclick
  484. * Argument : 01.obj : Object Event has occurred
  485. * : 02.e : Event Object
  486. * Description : 조회
  487. ****************************************************************************************/
  488. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  489. {
  490. // 대량조회-offset초기화
  491. ds_main_subordlist_subordlist1.clearData();
  492. ds_send.setColumn(0,"offset","0");
  493. dsf_createDsRow("ds_reqparam", [
  494. {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  495. , {col:"pid", type:"STRING", size:256, val:ds_send.getColumn(0,"pid")}
  496. ]);
  497. var oParam = {};
  498. oParam.id = "TRAER01005";
  499. oParam.service = "examcureacptexecapp.ExamCurePrcs";
  500. oParam.method = "reqGetPhotoInExamPrcsList";
  501. oParam.inds = "reqparam=ds_reqparam";
  502. oParam.outds = "ds_main_subordlist_subordlist1=item";
  503. oParam.async = false;
  504. oParam.callback = "cf_TRAER01005";
  505. tranf_submit(oParam);
  506. }
  507. function cf_TRAER01005(sSvcId, nErrorCode, sErrorMsg) {
  508. if(nErrorCode < 0) return;
  509. dsf_setTypeFormat(ds_main_subordlist_subordlist1, "inddcnt:INT");
  510. }
  511. /****************************************************************************************
  512. * Components : Grid
  513. * Components ID : group3.grd_mainordlist
  514. * Event : onrbuttonup
  515. * Argument : 01.obj : Object Event has occurred
  516. * : 02.e : Event Object
  517. * Description : 그리드 우클릭 팝업메뉴 띄움
  518. ****************************************************************************************/
  519. function group3_grd_mainordlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  520. {
  521. if(e.row > -1){
  522. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  523. popupmenu.trackPopup(e.screenX,e.screenY);
  524. }
  525. return true;
  526. }
  527. /****************************************************************************************
  528. * Components : Button
  529. * Components ID : group2.button2
  530. * Event : onclick
  531. * Argument : 01.obj : Object Event has occurred
  532. * : 02.e : Event Object
  533. * Description : 엑셀저장
  534. ****************************************************************************************/
  535. function group2_button2_onclick(obj:Button, e:ClickEventInfo)
  536. {
  537. if( ds_main_subordlist_subordlist1.rowcount > 0 ){
  538. grdf_exportExcel(group3.grd_mainordlist, "개인별입원촬영현황", "개인별입원촬영현황", false, "", "user", false);
  539. } else {
  540. sysf_messageBox("조회된 데이터가 ", "I004");
  541. }
  542. }
  543. ]]></Script>
  544. </Form>
  545. </FDL>