SPMRI09002_연명관리(칠곡).xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMR04000" position="absolute 0 0 1230 815" titletext="연명진료대상" oninit="SPMRI09000_oninit" onload="SPMRI09000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="roundrect1" type="roundrectangle" position="absolute 0 25 1230 60" class="div_SA" anchor="left top right"/>
  8. <Static text="연명진료대상" position="absolute 0 0 118 25" id="caption6" class="tit_1"/>
  9. <Shape position="absolute 0 62 1230 68" linetype="horizontal" id="line12" class="line_10" anchor="left top right"/>
  10. <Combo position="absolute 636 35 758 54" id="cmb_orddeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_orddeptcd_onitemchanged" taborder="5" visible="true"/>
  11. <Button position="absolute 1161 32 1217 54" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick" taborder="6" anchor="top right"/>
  12. <Static text="진료부서" position="absolute 557 37 622 54" id="caption3" class="search_name" visible="true"/>
  13. <Button position="absolute 1103 32 1159 54" id="button1" class="btn1" text="조회" onclick="button1_onclick" taborder="7" anchor="top right"/>
  14. <Grid id="grd_list" taborder="8" binddataset="ds_main_list" useinputpanel="false" selecttype="multirow" oncelldblclick="grd_list_oncelldblclick" position="absolute 0 67 1230 815" cellsizebandtype="allband" cellsizingtype="col" oncellclick="grd_list_oncellclick" onrbuttondown="grd_list_onrbuttondown" anchor="all">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="20"/>
  19. <Column size="64"/>
  20. <Column size="59"/>
  21. <Column size="39"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="106"/>
  26. <Column size="84"/>
  27. <Column size="108"/>
  28. <Column size="136"/>
  29. <Column size="186"/>
  30. <Column size="93"/>
  31. <Column size="117"/>
  32. <Column size="95"/>
  33. <Column size="137"/>
  34. <Column size="117"/>
  35. <Column size="80"/>
  36. <Column size="128"/>
  37. <Column size="61"/>
  38. <Column size="96"/>
  39. <Column size="125"/>
  40. <Column size="40"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell/>
  48. <Cell col="1" text="등록번호"/>
  49. <Cell col="2" text="성 명"/>
  50. <Cell col="3" text="성별"/>
  51. <Cell col="4" text="입원일"/>
  52. <Cell col="5" text="입실일"/>
  53. <Cell col="6" text="cretno"/>
  54. <Cell col="7" text="주민번호"/>
  55. <Cell col="8" text="진료일"/>
  56. <Cell col="9" text="등록서식(국가)"/>
  57. <Cell col="10" text="처방정보"/>
  58. <Cell col="11" text="OCR서식"/>
  59. <Cell col="12" text="진료부서"/>
  60. <Cell col="13" text="비고"/>
  61. <Cell col="14" text="병동"/>
  62. <Cell col="15" text="출력일시"/>
  63. <Cell col="16" text="출력부서"/>
  64. <Cell col="17" text="출력자"/>
  65. <Cell col="18" text="반납확인일자"/>
  66. <Cell col="19" text="스캔여부"/>
  67. <Cell col="20" text="출력자 연락처"/>
  68. <Cell col="21" text="OCR번호"/>
  69. <Cell col="22" text="cretno"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head" expr="expr:currow + 1"/>
  73. <Cell col="1" text="bind:pid"/>
  74. <Cell col="2" style="align:left;" text="bind:hngnm"/>
  75. <Cell col="3" text="bind:sex"/>
  76. <Cell col="4" text="bind:orddd"/>
  77. <Cell col="5" text="bind:fromdd"/>
  78. <Cell col="6" text="bind:cretno"/>
  79. <Cell col="7" style="align:left;" text="bind:rrgstno"/>
  80. <Cell col="8" text="bind:orddd" mask="####-##-##"/>
  81. <Cell col="9" displaytype="combo" style="align:center;color:blue;" text="bind:doccode" combodataset="ds_doctype" combocodecol="value" combodatacol="label"/>
  82. <Cell col="10" style="align:left;" text="bind:ordlist"/>
  83. <Cell col="11" style="align:left;" text="bind:formnm"/>
  84. <Cell col="12" style="align:left;" text="bind:orddeptnm"/>
  85. <Cell col="13" style="align:left;" text="bind:bigo"/>
  86. <Cell col="14" style="align:left;" text="bind:ward"/>
  87. <Cell col="15" text="bind:fstprntdt" mask="####-##-## ##:##:##"/>
  88. <Cell col="16" style="align:left;" text="bind:fstprntdept"/>
  89. <Cell col="17" text="bind:fstprntnm"/>
  90. <Cell col="18" text="bind:updtdt" mask="####-##-## ##:##:##"/>
  91. <Cell col="19" text="bind:scanyn"/>
  92. <Cell col="20" text="bind:pdano"/>
  93. <Cell col="21" style="align:left;" text="bind:ocrtag"/>
  94. <Cell col="22" text="bind:cretno"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. <Static id="caption00" text="등록번호" class="search_name" position="absolute 342 37 407 54"/>
  100. <Edit id="Edit00" taborder="9" position="absolute 417 35 517 55" autoselect="true"/>
  101. <Static id="caption01" text="반납확인일" class="search_name" position="absolute 6 37 100 54"/>
  102. <Calendar id="ipt_infromdd" taborder="10" class="input_essential" position="absolute 108 35 201 54" mask="yyyy-mm-dd" autoselect="true"/>
  103. <Calendar id="ipt_intodd" taborder="11" class="input_essential" position="absolute 209 35 302 54" mask="yyyy-mm-dd" autoselect="true"/>
  104. <Button id="btn_new" taborder="12" text="신규" class="btn4" position="absolute 935 33 991 55" onclick="btn_new_onclick" visible="false"/>
  105. <PopupMenu id="comn_menu" innerdataset="ds_ocrmsrght" idcolumn="hardcd" captioncolumn="hardcdnm" levelcolumn="level" position="absolute 1232 0 1333 22" onmenuclick="comn_menu_onmenuclick"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_init_ward_icudept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="deptnm" type="STRING"/>
  112. <Column id="deptcd" type="STRING"/>
  113. </ColumnInfo>
  114. </Dataset>
  115. <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="depthngnm" type="STRING"/>
  118. <Column id="deptcd" type="STRING"/>
  119. </ColumnInfo>
  120. </Dataset>
  121. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  122. <ColumnInfo>
  123. <Column id="ward" type="STRING" size="256"/>
  124. <Column id="orddept" type="STRING" size="256"/>
  125. <Column id="pid" type="STRING" size="256"/>
  126. <Column id="infromdd" type="STRING" size="256"/>
  127. <Column id="intodd" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. <Rows>
  130. <Row/>
  131. </Rows>
  132. </Dataset>
  133. <Dataset id="ds_temp_initlist_icudept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  136. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="instcd" type="STRING" size="256" sumtext=""/>
  142. <Column id="pid" type="STRING" size="256" sumtext=""/>
  143. <Column id="hngnm" type="STRING" size="256" sumtext=""/>
  144. <Column id="sex" type="STRING" size="256" sumtext=""/>
  145. <Column id="age" type="STRING" size="256" sumtext=""/>
  146. <Column id="fstprntdt" type="STRING" size="256" sumtext=""/>
  147. <Column id="fstprntdept" type="STRING" size="256" sumtext=""/>
  148. <Column id="fstprntnm" type="STRING" size="256"/>
  149. <Column id="pdano" type="STRING" size="256"/>
  150. <Column id="formnm" type="STRING" size="256"/>
  151. <Column id="rgstyn" type="STRING" size="256" sumtext="등록여부"/>
  152. <Column id="scanyn" type="STRING" size="256"/>
  153. <Column id="updtdt" type="STRING" size="256"/>
  154. <Column id="ocrtag" type="STRING" size="256"/>
  155. <Column id="orddeptnm" type="STRING" size="256"/>
  156. <Column id="jinyn" type="STRING" size="256"/>
  157. <Column id="doccode" type="STRING" size="256"/>
  158. <Column id="docsn" type="STRING" size="256"/>
  159. <Column id="ward" type="STRING" size="256"/>
  160. <Column id="bigo" type="STRING" size="256"/>
  161. <Column id="ordlist" type="STRING" size="256"/>
  162. <Column id="orddd" type="STRING" size="256"/>
  163. <Column id="cretno" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. <Rows>
  166. <Row/>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_doctype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="label" type="STRING" size="256"/>
  172. <Column id="value" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="label">계획서</Col>
  177. <Col id="value">01</Col>
  178. </Row>
  179. <Row>
  180. <Col id="label">의향서</Col>
  181. <Col id="value">02</Col>
  182. </Row>
  183. <Row>
  184. <Col id="label">이행서</Col>
  185. <Col id="value">07</Col>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_ocrmsrght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="hardcd" type="STRING" size="256"/>
  192. <Column id="hardcdnm" type="STRING" size="256"/>
  193. <Column id="level" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="hardcd">lf_RecViewPrint</Col>
  198. <Col id="hardcdnm">기록보기</Col>
  199. <Col id="level">0</Col>
  200. </Row>
  201. </Rows>
  202. </Dataset>
  203. <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  206. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  207. <Column id="docucd" type="STRING" size="256" sumtext="서식코드"/>
  208. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  209. <Column id="ioflag" type="STRING" size="256" sumtext="입원/외래구분"/>
  210. <Column id="treatno" type="STRING" size="256" sumtext="TREAT번호"/>
  211. <Column id="cmc_cretno" type="STRING" size="256" sumtext="EMR연동_원무순번"/>
  212. <Column id="cmc_spcid" type="STRING" size="256" sumtext="CDIS연동_기관코드"/>
  213. <Column id="cmc_orddate" type="STRING" size="256" sumtext="CDIS연동_검사일"/>
  214. <Column id="cmc_orderseqno" type="STRING" size="256" sumtext="CDIS연동_처방번호"/>
  215. <Column id="ocmnum" type="STRING" size="256" sumtext="진단서키값"/>
  216. <Column id="pageno" type="STRING" size="256" sumtext="진단서키값"/>
  217. <Column id="instcd" type="STRING" size="256" sumtext="병원구분"/>
  218. <Column id="ocrcode" type="STRING" size="256" sumtext="ocrtag"/>
  219. <Column id="screenid" type="STRING" size="256" sumtext="openerscreenid"/>
  220. <Column id="itemindxseq" type="STRING" size="256" sumtext="itemindxseq"/>
  221. <Column id="hardcdno" type="STRING" size="256" sumtext="hardcdno"/>
  222. <!--
  223. <Column id="dtpube" type="STRING" size="256" sumtext="시행일"/>
  224. <Column id="dtpuen" type="STRING" size="256" sumtext="시행일"/>
  225. <Column id="puclcd" type="STRING" size="256" sumtext="시행과코드"/>
  226. <Column id="teno" type="STRING" size="256" sumtext="검사번호"/>
  227. <Colmn id="rcvno" type="STRING" size="256" sumtext="접수번호"/>
  228. -->
  229. <Column id="ocrcodes" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. </Dataset>
  232. </Objects>
  233. <Bind>
  234. <BindItem id="item4" compid="cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddept"/>
  235. <BindItem id="item0" compid="Edit00" propid="value" datasetid="ds_cond" columnid="pid"/>
  236. <BindItem id="item5" compid="ipt_infromdd" propid="value" datasetid="ds_cond" columnid="infromdd"/>
  237. <BindItem id="item6" compid="ipt_intodd" propid="value" datasetid="ds_cond" columnid="intodd"/>
  238. </Bind>
  239. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  240. * System Name : 경대 의료정보시스템
  241. * Job Name : emr_anstrecxp -> SMMMR04000
  242. * Creator : yjh
  243. * Make Date : 2016-10-31
  244. * Description :
  245. *---------------------------------------------------------------------------------------
  246. * Modify Date Modifier Modify Description
  247. *---------------------------------------------------------------------------------------
  248. * 2016-10-31 yjh TF->XP
  249. *
  250. *---------------------------------------------------------------------------------------
  251. ****************************************************************************************/
  252. //=======================================================================================
  253. // Lib Include
  254. //---------------------------------------------------------------------------------------
  255. include "com_commonxp::comm_main.xjs";
  256. include "emr_prcpmngtxp::MMOCommon.xjs";
  257. //=======================================================================================
  258. // Global Form Variable
  259. //---------------------------------------------------------------------------------------
  260. var arErrorCode = new HashArray();
  261. //=======================================================================================
  262. // Function
  263. //---------------------------------------------------------------------------------------
  264. //=======================================================================================
  265. // Event
  266. //---------------------------------------------------------------------------------------
  267. /****************************************************************************************
  268. * Components : Form
  269. * Components ID : SMMMR04000
  270. * Event : oninit
  271. * Argument : 01.obj : Object Event has occurred
  272. * : 02.e : Event Object
  273. * Description : 화면 처음 초기화시
  274. ****************************************************************************************/
  275. function SPMRI09000_oninit(obj:Form, e:InitEventInfo)
  276. {
  277. frmf_initForm(obj); //폼 초기화
  278. }
  279. /****************************************************************************************
  280. * Components : Form
  281. * Components ID : SMMMR04000
  282. * Event : onload
  283. * Argument : 01.obj : Object Event has occurred
  284. * : 02.e : Event Object
  285. * Description : 화면 로딩 완료시
  286. ****************************************************************************************/
  287. function SPMRI09000_onload(obj:Form, e:LoadEventInfo)
  288. {
  289. fIni();
  290. }
  291. /****************************************************************************************
  292. * Components : Grid
  293. * Components ID : grd_list
  294. * Event : oncelldblclick
  295. * Argument : 01.obj : Object Event has occurred
  296. * : 02.e : Event Object
  297. * Description : 그리드 셀 더블클릭시
  298. ****************************************************************************************/
  299. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  300. {
  301. var row = ds_main_list.rowposition;
  302. var pid = ds_main_list.getColumn(row,"pid");
  303. var orddd = ds_main_list.getColumn(row,"orddd");
  304. var cretno = ds_main_list.getColumn(row,"cretno");
  305. var hngnm = ds_main_list.getColumn(row,"hngnm");
  306. frmf_setParameter("SPMRI09001_param_pid", pid);
  307. frmf_setParameter("SPMRI09001_param_orddd", orddd);
  308. frmf_setParameter("SPMRI09001_param_cretno", cretno);
  309. frmf_setParameter("SPMRI09001_param_hngnm", hngnm);
  310. frmf_setParameter("SPMRI09001_param_edityn", "Y");
  311. frmf_setParameter("SPMRI09001_param_jinyn", "Y");
  312. frmf_modal("SPMRI09001", "SPMRI09001", null, null, null, null, null, null, null, null, null, null, "M");
  313. //fSearch();
  314. }
  315. /****************************************************************************************
  316. * Components : Calendar
  317. * Components ID : ipt_reqstnddd
  318. * Event : onchanged
  319. * Argument : 01.obj : Object Event has occurred
  320. * : 02.e : Event Object
  321. * Description : 달력 값 변경시
  322. ****************************************************************************************/
  323. function ipt_reqstnddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  324. {
  325. ds_cond.setColumn(0, "stnddd", ds_cond.getColumn(0, "stnddd"));
  326. }
  327. /****************************************************************************************
  328. * Components : Calendar
  329. * Components ID : ipt_reqenddd
  330. * Event : onchanged
  331. * Argument : 01.obj : Object Event has occurred
  332. * : 02.e : Event Object
  333. * Description : 달력 값 변경시
  334. ****************************************************************************************/
  335. function ipt_reqenddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  336. {
  337. ds_cond.setColumn(0, "enddd", ds_cond.getColumn(0, "enddd"));
  338. }
  339. /****************************************************************************************
  340. * Components : Combo
  341. * Components ID : cmb_term
  342. * Event : onitemchanged
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description : 콤보 값 변경시
  346. ****************************************************************************************/
  347. function cmb_term_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  348. {
  349. var date2 = ipt_reqenddd.value;
  350. var term = cmb_term.value;
  351. ipt_reqstnddd.value = (date2+"").toDate().getAddDate(-term, "D").getDateFormat("YYYYMMDD");
  352. }
  353. /****************************************************************************************
  354. * Components : Combo
  355. * Components ID : cmb_icu
  356. * Event : onitemchanged
  357. * Argument : 01.obj : Object Event has occurred
  358. * : 02.e : Event Object
  359. * Description : 콤보 값 변경시
  360. ****************************************************************************************/
  361. function cmb_icu_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  362. {
  363. ds_cond.setColumn(0, "ward", ds_cond.getColumn(0, "ward"));
  364. }
  365. /****************************************************************************************
  366. * Components : Combo
  367. * Components ID : cmb_orddeptcd
  368. * Event : onitemchanged
  369. * Argument : 01.obj : Object Event has occurred
  370. * : 02.e : Event Object
  371. * Description : 콤보 값 변경시
  372. ****************************************************************************************/
  373. function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  374. {
  375. ds_cond.setColumn(0, "orddept", ds_cond.getColumn(0, "orddept"));
  376. }
  377. /****************************************************************************************
  378. * Components : Button
  379. * Components ID : btn_excel
  380. * Event : onclick
  381. * Argument : 01.obj : Object Event has occurred
  382. * : 02.e : Event Object
  383. * Description : 엑셀버튼 클릭시
  384. ****************************************************************************************/
  385. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  386. {
  387. if( grd_list.rowcount > 0 ){
  388. grdf_exportExcel(grd_list, "YEON", "YEON", false, "", "user", false);
  389. } else {
  390. sysf_messageBox("조회된 데이터가 ", "I004");
  391. return;
  392. }
  393. }
  394. /****************************************************************************************
  395. * Components : Button
  396. * Components ID : button1
  397. * Event : onclick
  398. * Argument : 01.obj : Object Event has occurred
  399. * : 02.e : Event Object
  400. * Description : 조회버튼 클릭시
  401. ****************************************************************************************/
  402. function button1_onclick(obj:Button, e:ClickEventInfo)
  403. {
  404. fSearch();
  405. }
  406. function fSearch()
  407. {
  408. var oParam = {};
  409. oParam.id = "SPMRI09002_1";
  410. oParam.service = "recmngtapp.IntegrityRec";
  411. oParam.method = "reqGetYeonOCRList";
  412. oParam.inds = "req=ds_cond";
  413. oParam.outds = "ds_main_list=list";
  414. oParam.async = false;
  415. //oParam.callback = "cf_TRMMR04001";
  416. tranf_submit(oParam);
  417. }
  418. function fIni()
  419. {
  420. grdf_initGrid(grd_list);
  421. var vNowDD = utlf_getCurrentDate();
  422. ds_cond.setColumn(0, "infromdd", vNowDD.toDate().getAddDate(-1, "M").getDateFormat());
  423. ds_cond.setColumn(0, "intodd", vNowDD);
  424. lf_mmbfGetDeptCodeComboList(ds_init_orddept_dept, "A", vNowDD);
  425. frmf_addComboItem("cmb_orddeptcd", "전체", "-", "above");
  426. cmb_orddeptcd.index = 0;
  427. }
  428. function btn_new_onclick(obj:Button, e:ClickEventInfo)
  429. {
  430. frmf_setParameter("SPMRI09001_param_pid", "");
  431. frmf_setParameter("SPMRI09001_param_hngnm", "");
  432. frmf_setParameter("SPMRI09001_param_edityn", "Y");
  433. frmf_setParameter("SPMRI09001_param_newyn", "Y");
  434. frmf_modal("SPMRI09001", "SPMRI09001", null, null, null, null, null, null, null, null, null, null, "M");
  435. }
  436. function grd_list_oncellclick(obj:Grid, e:GridClickEventInfo)
  437. {
  438. if(e.col != obj.getBindCellIndex("body", "doccode")) return;
  439. var row = e.row;
  440. var doccode = ds_main_list.getColumn(row, "doccode");
  441. var docsn = ds_main_list.getColumn(row, "docsn");
  442. if(utlf_isNull(doccode) || utlf_isNull(docsn)) return;
  443. frmf_setParameter("SPMRI09004_PARAM1", doccode );
  444. frmf_setParameter("SPMRI09004_PARAM2", docsn );
  445. frmf_modal("SPMRI09004", "SPMRI09004", null, null, null, null, null, null, null, null, null, null, "M");
  446. }
  447. /****************************************************************************************
  448. * Components : Grid
  449. * Components ID : grd_list
  450. * Event : onrbuttondown
  451. * Argument : 01.obj : Object Event has occurred
  452. * : 02.e : Event Object
  453. * Description : 그리드 우클릭 이벤트
  454. ****************************************************************************************/
  455. function grd_list_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  456. {
  457. grdf_setSelectedCell(obj, e);
  458. if(e.col > -1 && e.row > -1)
  459. {
  460. comn_menu.trackPopup(e.screenX,e.screenY);
  461. }
  462. }
  463. /****************************************************************************************
  464. * Argument : N/A
  465. * Description : OCR 기록 조회
  466. ****************************************************************************************/
  467. function lf_RecViewPrint(){
  468. var aSelRows = grdf_getSelectedRows(grd_list);
  469. if( aSelRows.length < 1 ){
  470. return;
  471. }
  472. ds_send_iemr.clearData();
  473. var ocrcodes = null;
  474. for(var i = 0; i < aSelRows.length; i++){
  475. var ocrcode = ds_main_list.getColumn(aSelRows[i], "ocrtag");
  476. if( !utlf_isNull(ocrcode) ){
  477. if( ocrcodes == null ){
  478. ocrcodes = ocrcode;
  479. }else{
  480. ocrcodes = ocrcodes + "|" + ocrcode;
  481. }
  482. }
  483. }
  484. if( ocrcodes != null ){
  485. var nRow = ds_send_iemr.addRow();
  486. ds_send_iemr.setColumn(nRow, "ocrcodes", ocrcodes);
  487. }
  488. var objArg = new Object();
  489. objArg.arg_ds_hidden_temp = ds_send_iemr;
  490. frmf_modal("SSMRC03130", "SSMRC03130", objArg, null, null, null, null, null, null, null, null, null, "M");
  491. }
  492. /****************************************************************************************
  493. * Components : PopupMenu
  494. * Components ID : comn_menu
  495. * Event : onmenuclick
  496. * Argument : 01.obj : Object Event has occurred
  497. * : 02.e : Event Object
  498. * Description : 그리드 팝업메뉴 실행
  499. ****************************************************************************************/
  500. function comn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  501. {
  502. eval(e.id + "()");
  503. }
  504. ]]></Script>
  505. </Form>
  506. </FDL>