SMPAO99902_무인수납기로그조회.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI03600" position="absolute 0 0 1235 800" titletext="무인수납기로그조회" onload="SMPAO99902_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="무인수납기로그조회" class="tit_1" position="absolute 0 0 160 25"/>
  8. <Div id="div" taborder="1" position="absolute 0 25 1207 60" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout width="1194" height="35">
  11. <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1131 6 1187 28" anchor="top right" onclick="div_button1_onclick"/>
  12. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1121 6 1127 28" anchor="top right"/>
  13. <Static id="caption17" text="로그등록 시작일자:" class="search_name" position="absolute 5 9 136 26" anchor="default"/>
  14. <Calendar id="ipt_infromdd" taborder="4" class="input_search" position="absolute 135 8 235 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  15. <Edit id="ipt_pid" taborder="9" class="input_default" position="absolute 530 8 607 27" anchor="default" onkeydown="div_ipt_pid_onkeydown"/>
  16. <Edit id="opt_hngnm" taborder="10" readonly="true" position="absolute 609 8 674 27" anchor="default" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
  17. <Button id="btn_pid" taborder="11" class="icon_search" position="absolute 677 9 693 25" anchor="default" onclick="div_btn_pid_onclick"/>
  18. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 453 9 539 26" anchor="default"/>
  19. <Static id="caption00" text="종료일자:" class="search_name" position="absolute 261 9 392 26" anchor="default"/>
  20. <Calendar id="ipt_intodd" taborder="12" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 328 7 428 26" anchor="default"/>
  21. <CheckBox id="checkbox" taborder="13" position="absolute 816 11 832 27" anchor="default" falsevalue="N" truevalue="Y" value="Y"/>
  22. <Static id="caption02" text="Only Kiosk:" class="search_name" position="absolute 728 11 813 28" anchor="default"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Static id="caption2" text="무인수납기환자로그내역" class="tit_2" position="absolute 3 67 205 83"/>
  27. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 24 80 1207 86" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  28. <Grid id="grd_kiosk" class="datagrid2" taborder="3" binddataset="ds_main_kiosklogs" useinputpanel="false" position="absolute 640 88 1207 757" anchor="all" autosizingtype="none" cellsizingtype="col">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="25" band="left"/>
  33. <Column size="69"/>
  34. <Column size="80"/>
  35. <Column size="78"/>
  36. <Column size="151"/>
  37. <Column size="79"/>
  38. <Column size="84"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="30" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" text="환자번호"/>
  47. <Cell col="2" text="로그날짜"/>
  48. <Cell col="3" text="진료일"/>
  49. <Cell col="4" text="진료과"/>
  50. <Cell col="5" text="에러코드"/>
  51. <Cell col="6" text="등록자"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head" expr="expr:currow + 1"/>
  55. <Cell col="1" style="align:center middle;" text="bind:pid" enable="false"/>
  56. <Cell col="2" displaytype="date" style="align:center middle;" text="bind:rgstdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  57. <Cell col="3" text="bind:orddd"/>
  58. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_basecdlist_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  59. <Cell col="5" style="align:center middle;" text="bind:error" enable="false"/>
  60. <Cell col="6" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Button id="button2" taborder="7" text="초기화" class="btn4" position="absolute 1142 769 1210 791" onclick="button2_onclick" anchor="right bottom"/>
  66. <Shape id="line32" class="line_6" position="absolute -128 756 1207 768" anchor="left right bottom"/>
  67. <Button id="button00" taborder="8" text="무인수납기 조회" class="btn4" position="absolute 992 32 1113 54" anchor="right bottom" onclick="button00_onclick" visible="false"/>
  68. <Grid id="grd_kioskCount" class="datagrid2" taborder="10" useinputpanel="false" position="absolute 3 88 624 757" anchor="all" binddataset="ds_init_code" oncelldblclick="grd_kioskCount_oncelldblclick" cellsizingtype="col">
  69. <Formats>
  70. <Format id="default">
  71. <Columns>
  72. <Column size="25" band="left"/>
  73. <Column size="95"/>
  74. <Column size="409"/>
  75. <Column size="90"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="30" band="head"/>
  79. <Row size="24"/>
  80. </Rows>
  81. <Band id="head">
  82. <Cell/>
  83. <Cell col="1" text="에러코드"/>
  84. <Cell col="2" text="에러메세지"/>
  85. <Cell col="3" text="건수"/>
  86. </Band>
  87. <Band id="body">
  88. <Cell celltype="head" expr="expr:currow + 1"/>
  89. <Cell col="1" style="align:center middle;" text="bind:error" enable="false"/>
  90. <Cell col="2" text="bind:errormsg"/>
  91. <Cell col="3" displaytype="normal" style="align:center middle;" text="bind:count" suppressalign="last" calendardisplaynulltype="none" enable="false"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Button id="btn_kioskexcel" taborder="11" text="로그엑셀저장" onclick="btn_kioskexcel_onclick" class="btn7" position="absolute 1104 63 1208 80" anchor="top right"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="srchcond" type="STRING" size="256"/>
  103. <Column id="fromdd" type="STRING" size="256"/>
  104. <Column id="todd" type="STRING" size="256"/>
  105. <Column id="data1" type="STRING" size="256"/>
  106. <Column id="sess_posinstcd" type="STRING" size="256"/>
  107. <Column id="erexptyn" type="STRING" size="256"/>
  108. <Column id="tdayinexptyn" type="STRING" size="256"/>
  109. <Column id="data2" type="STRING" size="256"/>
  110. <Column id="pid" type="STRING" size="256"/>
  111. <Column id="hngnm" type="STRING" size="256"/>
  112. <Column id="error" type="STRING" size="256"/>
  113. <Column id="kioskyn" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="srchcond"/>
  118. <Col id="fromdd"/>
  119. <Col id="todd"/>
  120. <Col id="data1"/>
  121. <Col id="sess_posinstcd"/>
  122. <Col id="erexptyn"/>
  123. <Col id="tdayinexptyn"/>
  124. <Col id="data2"/>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_init_basecdlist_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="cd" type="STRING" size="256"/>
  131. <Column id="nm" type="STRING" size="256"/>
  132. <Column id="deptengabbr2" type="STRING" size="256"/>
  133. <Column id="deptengabbr" type="STRING" size="256"/>
  134. <Column id="reprdeptcd" type="STRING" size="256"/>
  135. <Column id="reqdeptno" type="STRING" size="256"/>
  136. <Column id="ordsupdeptcd" type="STRING" size="256"/>
  137. <Column id="orddeptflag" type="STRING" size="256"/>
  138. <Column id="clincdeptdispseq" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  142. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="userid" type="STRING" size="256"/>
  145. <Column id="uesrnm" type="STRING" size="256"/>
  146. <Column id="posinstcd" type="STRING" size="256"/>
  147. <Column id="posinstnm" type="STRING" size="256"/>
  148. <Column id="posdeptcd" type="STRING" size="256"/>
  149. <Column id="posdeptnm" type="STRING" size="256"/>
  150. <Column id="dutplceinstcd" type="STRING" size="256"/>
  151. </ColumnInfo>
  152. </Dataset>
  153. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="cd" type="STRING" size="256"/>
  156. <Column id="nm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="cd" type="STRING" size="256"/>
  162. <Column id="nm" type="STRING" size="256"/>
  163. <Column id="up" type="STRING" size="256"/>
  164. <Column id="io" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. </Dataset>
  167. <Dataset id="ds_init_code" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="cdid" type="STRING" size="256"/>
  170. <Column id="count" type="STRING" size="256"/>
  171. <Column id="cdnm" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. </Dataset>
  174. <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="cd" type="STRING" size="256"/>
  177. <Column id="nm" type="STRING" size="256"/>
  178. <Column id="dp" type="STRING" size="256"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="prestdd" type="STRING" size="256"/>
  184. <Column id="mskindflag" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. </Dataset>
  187. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="srchcond" type="STRING" size="256"/>
  190. <Column id="pid" type="STRING" size="256"/>
  191. <Column id="hngnm" type="STRING" size="256"/>
  192. <Column id="rrgstno1" type="STRING" size="256"/>
  193. <Column id="rrgstno2" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="srchcond"/>
  198. <Col id="pid"/>
  199. <Col id="hngnm"/>
  200. <Col id="rrgstno1"/>
  201. <Col id="rrgstno2"/>
  202. </Row>
  203. </Rows>
  204. </Dataset>
  205. <Dataset id="ds_main_kiosklogs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  208. <Column id="rgstdd" type="STRING" size="256" sumtext="로그일자"/>
  209. <Column id="rgstseq" type="STRING" size="256" sumtext="시퀀스번호"/>
  210. <Column id="error" type="STRING" size="256" sumtext="에러코드"/>
  211. <Column id="errormsg" type="STRING" size="256" sumtext="에러메시지"/>
  212. <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자"/>
  213. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
  214. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자"/>
  215. <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일시"/>
  216. <Column id="endyn" type="STRING" size="256" sumtext="종료여부"/>
  217. <Column id="hngnm" type="STRING" size="256"/>
  218. <Column id="orddeptcd" type="STRING" size="256"/>
  219. <Column id="orddeptcdnm" type="STRING" size="256"/>
  220. <Column id="cretno" type="STRING" size="256"/>
  221. <Column id="orddd" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. <Dataset id="ds_hidden_printtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  225. </Objects>
  226. <Bind>
  227. <BindItem id="item0" compid="div.ipt_infromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  228. <BindItem id="item11" compid="div.opt_hngnm" propid="value" datasetid="ds_patinfolist" columnid="hngnm"/>
  229. <BindItem id="item12" compid="div.ipt_pid" propid="value" datasetid="ds_patinfolist" columnid="pid"/>
  230. <BindItem id="item1" compid="div.ipt_intodd" propid="value" datasetid="ds_send" columnid="todd"/>
  231. <BindItem id="item2" compid="div.kioskyn" propid="value" datasetid="ds_send" columnid="kioskyn"/>
  232. <BindItem id="item3" compid="div.checkbox" propid="value" datasetid="ds_send" columnid="kioskyn"/>
  233. </Bind>
  234. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  235. * System Name :
  236. * Job Name :
  237. * Creator : 설승민
  238. * Make Date : 2019-04-09
  239. * Description :
  240. *---------------------------------------------------------------------------------------
  241. * Modify Date Modifier Modify Description
  242. *---------------------------------------------------------------------------------------
  243. * 2016-05-24 Live Converter TF->XP
  244. *
  245. *---------------------------------------------------------------------------------------
  246. ****************************************************************************************/
  247. //=======================================================================================
  248. // Lib Include
  249. //---------------------------------------------------------------------------------------
  250. include 'com_commonxp::comm_main.xjs';
  251. var arErrorCode = new HashArray();
  252. //=======================================================================================
  253. // Local methods
  254. //---------------------------------------------------------------------------------------
  255. /**
  256. * [fSelectRefItem description]
  257. * @param {[type]} refitem [description]
  258. * @return {[type]} [description]
  259. */
  260. /**
  261. * [fInitialize description]
  262. * @return {[type]} [description]
  263. */
  264. function fInitialize() {
  265. // model.resetInstanceNode("/root/main/vipinptlist/vipinddschspec");
  266. ds_send.clearData();
  267. ds_send.addRow();
  268. ds_main_kiosklogs.clearData();
  269. //ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  270. //ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  271. ds_send.setColumn(0, "srchcond", "1");
  272. }
  273. /**
  274. * submit 후 호출 될 공통 콜백
  275. * @param {[type]} sSvcId [description]
  276. * @param {[type]} nErrorCode [description]
  277. * @param {[type]} sErrorMsg [description]
  278. * @return {Function} [description]
  279. */
  280. function callback(sSvcId, nErrorCode, sErrorMsg){
  281. arErrorCode.push(sSvcId, nErrorCode);
  282. }
  283. //=======================================================================================
  284. // Events
  285. //---------------------------------------------------------------------------------------
  286. /**
  287. * onload 이벤트 발생 시 호출
  288. * @param {[type]} obj:Form [description]
  289. * @param {[type]} e:LoadEventInfo [description]
  290. */
  291. function SMPAO99902_onload(obj: Form, e: LoadEventInfo) {
  292. frmf_initForm(obj);
  293. //checkbox.value = "Y";
  294. var SMPAO99902_PID = utlf_transNullToEmpty(opener.frmf_getParameter("SMPAO99902_PID"));
  295. var SMPAO99902_HNGNM = utlf_transNullToEmpty(opener.frmf_getParameter("SMPAO99902_HNGNM"));
  296. ds_send.setColumn(0, "pid", SMPAO99902_PID);
  297. ds_send.setColumn(0, "hngnm", SMPAO99902_HNGNM);
  298. dsf_createDsRow('ds_patinfolist', [
  299. { col: 'pid', type: 'string', size: 256, val: '' },
  300. { col: 'hngnm', type: 'string', size: 256, val: '' }
  301. ], false);
  302. ds_patinfolist.setColumn(0, "pid", SMPAO99902_PID);
  303. ds_patinfolist.setColumn(0, "hngnm", SMPAO99902_HNGNM);
  304. //ipt_pid_keydown();
  305. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  306. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  307. ds_send.setColumn(0, "srchcond", "1");
  308. ds_send.setColumn(0, "kioskyn", "Y");
  309. fsysf_getUserInfosSampling2();
  310. ds_main_kiosklogs.addRow();
  311. fSetCodeList();
  312. var oParam = {};
  313. oParam.id = "TRPMC02500";
  314. oParam.service = "kioskmngtapp.KioskRcpt";
  315. oParam.method = "getErrorCode";
  316. oParam.inds = "req=ds_hidden_session";
  317. oParam.outds = "ds_hidden_init_code=code";
  318. oParam.async = false;
  319. oParam.callback = "callback";
  320. tranf_submit(oParam);
  321. //if(!utlf_isNull(ds_send.getColumn(0,"pid")) && !utlf_isNull(ds_send.getColumn(0,"fromdd")) ){
  322. div_button1_onclick();
  323. //}else{
  324. // sysf_messageBox("환자등록번호가 입력되지", "E007");
  325. //}
  326. }
  327. /**
  328. * ipt_text 키보드 입력 이벤트
  329. * @param {[type]} obj: Edit [description]
  330. * @param {[type]} e: KeyEventInfo [description]
  331. * @return {[type]} [description]
  332. */
  333. function div_ipt_text_onkeydown(obj: Edit, e: KeyEventInfo) {
  334. if (e.keycode == 13) {
  335. obj.updateToDataset();
  336. div.button1.click();
  337. }
  338. }
  339. /**
  340. * 등록번호 ipt_pid 키보드 입력 이벤트
  341. * @param {[type]} obj: Edit [description]
  342. * @param {[type]} e: KeyEventInfo [description]
  343. * @return {[type]} [description]
  344. */
  345. function div_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
  346. if (e.keycode == 8) {
  347. //ds_send.clearData();
  348. // ds_send.addRow();
  349. //fInitialize();
  350. }
  351. if (e.keycode == 13) {
  352. obj.updateToDataset();
  353. vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, 'pid'));
  354. //환자번호 null체크
  355. if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  356. ds_main_kiosklogs.clearData();
  357. dsf_createDsRow('ds_req', [
  358. { col: 'gubun', type: 'string', size: 256, val: '' },
  359. { col: 'kiosktype', type: 'string', size: 256, val: '' },
  360. { col: 'checkyn', type: 'string', size: 256, val: '' },
  361. { col: 'pid', type: 'string', size: 256, val: '' },
  362. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  363. { col: 'kioskioflag', type: 'string', size: 256, val: '' },
  364. { col: 'sessuserid', type: 'string', size: 256, val: '' },
  365. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  366. { col: 'rgstdd', type: 'string', size: 256, val: '' },
  367. { col: 'todd', type: 'string', size: 256, val: '' }
  368. ], false);
  369. ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
  370. ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
  371. ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
  372. ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
  373. var oParam = {};
  374. oParam.id = "TXPAO99901";
  375. oParam.service = "kioskmngtapp.KioskRcpt";
  376. oParam.method = "getKioskLogs";
  377. oParam.inds = "ptbs=ds_req";
  378. oParam.outds = "ds_init_code=kioskCount";
  379. oParam.async = false;
  380. oParam.callback = "callback";
  381. tranf_submit(oParam);
  382. if (ds_init_code.rowcount == 0) {
  383. sysf_messageBox("조회 결과가 없습니다.", "I");
  384. }
  385. }
  386. //환자번호 조건으로 인적정보 조회
  387. ds_source.setColumn(0, "srchcond", "1");
  388. ds_source.setColumn(0, "pid", vcheck_pid);
  389. //환자기본정보 node clear
  390. ds_patinfolist.clearData();
  391. dsf_createDsRow('ds_req', [
  392. { col: 'srchcond', type: 'string', size: 256, val: '' },
  393. { col: 'checkfnexam', type: 'string', size: 256, val: '' },
  394. { col: 'pid', type: 'string', size: 256, val: '' },
  395. { col: 'hngnm', type: 'string', size: 256, val: '' },
  396. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  397. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  398. { col: 'acptdd', type: 'string', size: 256, val: '' },
  399. { col: 'instcd', type: 'string', size: 256, val: '' },
  400. { col: 'insukind', type: 'string', size: 256, val: '' },
  401. { col: 'inhospyn', type: 'string', size: 256, val: '' }
  402. ], false);
  403. ds_req.copyRow(0, ds_source, 0);
  404. dsf_setTypeFormat(ds_req, "srchcond:INT^checkfnexam:INT");
  405. var oParam = {};
  406. oParam.id = "TRPMC02500";
  407. oParam.service = "patinfomngtapp.PatBaseInfo";
  408. oParam.method = "reqGetPatInfo";
  409. oParam.inds = "req=ds_req";
  410. oParam.outds = "ds_patinfolist=patinfolist";
  411. oParam.async = false;
  412. oParam.callback = "callback";
  413. tranf_submit(oParam);
  414. if(ds_patinfolist.rowcount == 0){
  415. ds_patinfolist.addRow();
  416. }
  417. div.button1.click();
  418. //환자등록번호 체크
  419. // if (arErrorCode.pop("TRPMC02500") > -1) {
  420. // var vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "pid"));
  421. // if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  422. // //조회내역 체크
  423. // sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
  424. // fInitialize();
  425. // return;
  426. // }
  427. //
  428. // //조회되는 항목들 clear
  429. // // model.resetInstanceNode("/root/main/baseinfo");
  430. // ds_send.setColumn(0, "data1", ds_patinfolist.getColumn(0, "pid"));
  431. // div.button1.click();
  432. //
  433. // }
  434. // else {
  435. // sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
  436. // div.ipt_pid.setFocus();
  437. // return;
  438. // }
  439. }
  440. }
  441. /**
  442. * 등록번호 검색 아이콘 클릭 이벤트
  443. * @param {[type]} obj: Button [description]
  444. * @param {[type]} e: ClickEventInfo [description]
  445. * @return {[type]} [description]
  446. */
  447. function div_btn_pid_onclick(obj: Button, e: ClickEventInfo) {
  448. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_sed: ds_send }, "", "", "", "", "", "", "", "", "", "M");
  449. if (ds_patinfolist.rowcount > 0) {
  450. ds_main_patinfolist.copyData(ds_patinfolist);
  451. ds_patinfolist.clearData();
  452. }
  453. }
  454. /**
  455. * 조회 버튼 클릭 이벤트
  456. * @param {[type]} obj: Button [description]
  457. * @param {[type]} e: ClickEventInfo [description]
  458. * @return {[type]} [description]
  459. */
  460. function div_button1_onclick(obj: Button, e: ClickEventInfo) {
  461. ds_main_kiosklogs.clearData();
  462. var kioskyn = ds_send.getColumn(0,'kioskyn');
  463. dsf_createDsRow('ds_req', [
  464. { col: 'gubun', type: 'string', size: 256, val: '' },
  465. { col: 'kiosktype', type: 'string', size: 256, val: '' },
  466. { col: 'checkyn', type: 'string', size: 256, val: '' },
  467. { col: 'pid', type: 'string', size: 256, val: '' },
  468. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  469. { col: 'kioskioflag', type: 'string', size: 256, val: '' },
  470. { col: 'sessuserid', type: 'string', size: 256, val: '' },
  471. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  472. { col: 'rgstdd', type: 'string', size: 256, val: '' },
  473. { col: 'kioskyn', type: 'string', size: 256, val: '' },
  474. { col: 'todd', type: 'string', size: 256, val: '' }
  475. ], false);
  476. ds_req.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  477. ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
  478. ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
  479. ds_req.setColumn(0, "kioskyn", ds_send.getColumn(0, "kioskyn"));
  480. ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
  481. ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
  482. var oParam = {};
  483. oParam.id = "TXPAO99901";
  484. oParam.service = "kioskmngtapp.KioskRcpt";
  485. oParam.method = "getKioskLogs";
  486. oParam.inds = "ptbs=ds_req";
  487. oParam.outds = "ds_init_code=kioskCount";
  488. oParam.async = false;
  489. oParam.callback = "callback";
  490. tranf_submit(oParam);
  491. if(ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")){
  492. sysf_messageBox("종료일자가 시작일자보다 작을 수 없습니다.", "I");
  493. }
  494. if (ds_init_code.rowcount == 0) {
  495. sysf_messageBox("조회 결과가 없습니다.", "I");
  496. }
  497. }
  498. /**
  499. * 미리보기 버튼 클릭 이벤트
  500. * @param {[type]} obj:Button [description]
  501. * @param {[type]} e:ClickEventInfo [description]
  502. * @return {[type]} [description]
  503. */
  504. function button5_onclick(obj: Button, e: ClickEventInfo) {
  505. fPrint("PREVIEW");
  506. }
  507. /**
  508. * 초기화 버튼 클릭 이벤트
  509. * @param {[type]} obj: Button [description]
  510. * @param {[type]} e: ClickEventInfo [description]
  511. * @return {[type]} [description]
  512. */
  513. function button2_onclick(obj: Button, e: ClickEventInfo) {
  514. fInitialize();
  515. }
  516. function fsysf_getUserInfosSampling2() {
  517. var sUserInfosS = sysf_getUserInfos();
  518. sUserInfosS = sUserInfosS + "|";
  519. var UserInfosS_Array = sUserInfosS.split("|");
  520. var userid = UserInfosS_Array[0]; // 사용자번호
  521. var usernm = UserInfosS_Array[1]; // 사용자이름
  522. var posinstcd = UserInfosS_Array[2]; // 소속기관코드
  523. var posinstnm = UserInfosS_Array[3]; // 소속기관명
  524. var posdeptcd = UserInfosS_Array[4]; // 소속부서코드
  525. var posdeptnm = UserInfosS_Array[5]; // 소속부서명
  526. var dutplceinstcd = UserInfosS_Array[6]; // 소속부서명
  527. dsf_makeValue(ds_hidden_session, "userid", "string", "");
  528. dsf_makeValue(ds_hidden_session, "usernm", "string", "");
  529. dsf_makeValue(ds_hidden_session, "posinstcd", "string", "");
  530. dsf_makeValue(ds_hidden_session, "posinstnm", "string", "");
  531. dsf_makeValue(ds_hidden_session, "posdeptcd", "string", "");
  532. dsf_makeValue(ds_hidden_session, "posdeptnm", "string", "");
  533. dsf_makeValue(ds_hidden_session, "dutplceinstcd", "string", "");
  534. if (utlf_isNull(userid) || userid == " " || userid == "-") userid = "pam";
  535. if (utlf_isNull(posinstcd) || posinstcd == " " || posinstcd == "-" || dutplceinstcd == "-") posinstcd = "012";
  536. ds_hidden_session.setColumn(0, "userid", userid);
  537. ds_hidden_session.setColumn(0, "usernm", usernm);
  538. ds_hidden_session.setColumn(0, "posinstcd", posinstcd);
  539. ds_hidden_session.setColumn(0, "posinstnm", posinstnm);
  540. ds_hidden_session.setColumn(0, "posdeptcd", posdeptcd);
  541. ds_hidden_session.setColumn(0, "posdeptnm", posdeptnm);
  542. ds_hidden_session.setColumn(0, "dutplceinstcd", dutplceinstcd);
  543. }
  544. function button00_onclick(obj:Button, e:ClickEventInfo)
  545. {
  546. // dsf_createDsRow('ds_req2', [
  547. // { col: 'gubun', type: 'string', size: 256, val: '' },
  548. // { col: 'kiosktype', type: 'string', size: 256, val: '' },
  549. // { col: 'checkyn', type: 'string', size: 256, val: '' },
  550. // { col: 'pid', type: 'string', size: 256, val: '' },
  551. // { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  552. // { col: 'kioskioflag', type: 'string', size: 256, val: '' },
  553. // { col: 'sessuserid', type: 'string', size: 256, val: '' },
  554. // { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  555. // { col: 'rgstdd', type: 'string', size: 256, val: '' }
  556. // ], false);
  557. //
  558. // ds_req2.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  559. // ds_req2.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
  560. // ds_req2.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "posinstcd"));
  561. // ds_req2.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
  562. //
  563. //
  564. //
  565. // var oParam = {};
  566. // oParam.id = "TXPAO99901";
  567. // oParam.service = "kioskmngtapp.KioskRcpt";
  568. // oParam.method = "reqKioskOutOrdAmtCalc";
  569. // oParam.inds = "ptbs=ds_req2 "
  570. // + "kio=ds_main_kiosklogs";
  571. // oParam.outds = "ds_main_kiosklogs=kioskLogs";
  572. // oParam.async = false;
  573. // oParam.callback = "callback";
  574. // tranf_submit(oParam);
  575. //
  576. //
  577. // if (ds_main_kiosklogs.rowcount == 0) {
  578. // sysf_messageBox("조회 결과가 없습니다.", "I");
  579. // }
  580. //
  581. //
  582. // div_button1_onclick();
  583. }
  584. function fSetCodeList(){
  585. var oParam = {};
  586. oParam.id = "TRPAO00102";
  587. oParam.service = "outordamtmngtapp.OutRcpt";
  588. oParam.method = "reqGetPamInitCd";
  589. oParam.inds = "req=ds_hidden_session";
  590. oParam.outds = "ds_init_basecdlist_orddeptcd=orddeptcd "
  591. oParam.async = false;
  592. tranf_submit(oParam);
  593. }
  594. function grd_kioskCount_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  595. {
  596. ds_main_kiosklogs.clearData();
  597. dsf_createDsRow('ds_req', [
  598. { col: 'gubun', type: 'string', size: 256, val: '' },
  599. { col: 'kiosktype', type: 'string', size: 256, val: '' },
  600. { col: 'checkyn', type: 'string', size: 256, val: '' },
  601. { col: 'pid', type: 'string', size: 256, val: '' },
  602. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  603. { col: 'kioskioflag', type: 'string', size: 256, val: '' },
  604. { col: 'sessuserid', type: 'string', size: 256, val: '' },
  605. { col: 'sessinstcd', type: 'string', size: 256, val: '' },
  606. { col: 'rgstdd', type: 'string', size: 256, val: '' },
  607. { col: 'todd', type: 'string', size: 256, val: '' },
  608. { col: 'kioskyn', type: 'string', size: 256, val: '' },
  609. { col: 'error', type: 'string', size: 256, val: '' }
  610. ], false);
  611. ds_req.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  612. ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
  613. ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
  614. ds_req.setColumn(0, "kioskyn", ds_send.getColumn(0, "kioskyn"));
  615. ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
  616. ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
  617. ds_req.setColumn(0, "error", ds_init_code.getColumn(e.row, "error"));
  618. var oParam = {};
  619. oParam.id = "TXPAO99901";
  620. oParam.service = "kioskmngtapp.KioskRcpt";
  621. oParam.method = "getKioskLogs";
  622. oParam.inds = "ptbs=ds_req";
  623. oParam.outds = "ds_main_kiosklogs=kioskLogs";
  624. oParam.async = false;
  625. oParam.callback = "callback";
  626. tranf_submit(oParam);
  627. if (ds_main_kiosklogs.rowcount == 0) {
  628. sysf_messageBox("조회 결과가 없습니다.", "I");
  629. }
  630. }
  631. function btn_kioskexcel_onclick(obj:Button, e:ClickEventInfo)
  632. {
  633. grdf_exportExcel(grd_kioskCount, "excel", "SheetName", "true", "", "open");
  634. }
  635. ]]></Script>
  636. </Form>
  637. </FDL>