SMPMC05300_입원약정서조회.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC05300" position="absolute 0 0 1196 787" titletext="입원약정서조회" onload="SMPMC05300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1195 25" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 140 25" style="" text="입원약정서조회" anchor="left top"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group3" position="absolute 0 13 1195 757" style="" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group2" position="absolute 0 12 1194 52" style="" class="div_SA" anchor="left top right">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1108 9 1111 31" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
  21. <Static id="caption17" class="search_name" position="absolute 5 13 91 30" style="" text="조회조건 :" anchor="left top"/>
  22. <Button id="btn_ref" class="btn1" position="absolute 1123 10 1179 32" style="" text="조회" onclick="group3_group2_btn_ref_onclick" anchor="top right"/>
  23. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_condition" position="absolute 95 11 195 30" style="" onitemclick="group3_group2_cmb_condition_onitemclick" anchor="left top">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">0</Col>
  32. <Col id="datacolumn">전체(재원)</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">1</Col>
  36. <Col id="datacolumn">환자번호</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">2</Col>
  40. <Col id="datacolumn">환자성명</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">4</Col>
  44. <Col id="datacolumn">입원일자</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">5</Col>
  48. <Col id="datacolumn">퇴원일자</Col>
  49. </Row>
  50. <Row>
  51. <Col id="codecolumn">3</Col>
  52. <Col id="datacolumn">주민번호</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">6</Col>
  56. <Col id="datacolumn">진료과</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">7</Col>
  60. <Col id="datacolumn">보험유형</Col>
  61. </Row>
  62. </Rows>
  63. </Dataset>
  64. </Combo>
  65. <Edit id="ipt_cond1" visible="false" position="absolute 212 11 312 30" style="" anchor="default" onkeypress="group3_group2_ipt_cond1_onkeypress"/>
  66. <Edit id="ipt_cond2" visible="false" position="absolute 321 11 421 30" style="" anchor="left top" onkeypress="group3_group2_ipt_cond2_onkeypress"/>
  67. <Calendar id="ipt_date" visible="false" position="absolute 212 11 312 30" style="" anchor="default"/>
  68. <Combo innerdataset="" datacolumn="nm" codecolumn="cd" columncount="-1" rowcount="-1" id="cmb_cond" visible="false" position="absolute 212 11 312 30" style="" onitemclick="group3_group2_cmb_cond_onitemclick" anchor="left top"/>
  69. </Layout>
  70. </Layouts>
  71. </Div>
  72. <Static id="caption2" class="tit_2" position="absolute 0 60 75 76" style="align:left middle;font:Dotum,9,bold;" text="환자목록" anchor="left top"/>
  73. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 77 1194 81" style="" anchor="left top right"/>
  74. <Div id="grp_report" position="absolute 865 50 930 65" style="" anchor="default"/>
  75. <Button id="btn_print" class="btn6" visible="false" position="absolute 987 54 1037 76" style="" text="출력" onclick="group3_btn_print_onclick" anchor="top right"/>
  76. <Button id="btn_excel" class="btn7" position="absolute 1116 54 1194 76" style="" text="엑셀저장" onclick="group3_btn_excel_onclick" anchor="top right"/>
  77. <Grid id="grd_inpatientlist" binddataset="ds_main_inpatientlist" class="datagrid2" position="absolute 0 81 1194 743" style="" oncelldblclick="group3_grd_inpatientlist_oncelldblclick" autofittype="col" anchor="all">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="24"/>
  82. <Column size="38"/>
  83. <Column size="100"/>
  84. <Column size="100"/>
  85. <Column size="110"/>
  86. <Column size="35"/>
  87. <Column size="35"/>
  88. <Column size="80"/>
  89. <Column size="100"/>
  90. <Column size="100"/>
  91. <Column size="120"/>
  92. <Column size="80"/>
  93. <Column size="120"/>
  94. <Column size="90"/>
  95. <Column size="0"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="26" band="head"/>
  102. <Row size="23"/>
  103. </Rows>
  104. <Band id="head">
  105. <Cell/>
  106. <Cell col="1" text="스캔&#10;여부"/>
  107. <Cell col="2" text="환자번호"/>
  108. <Cell col="3" text="환자성명"/>
  109. <Cell col="4" text="주민번호"/>
  110. <Cell col="5" text="성별"/>
  111. <Cell col="6" text="나이"/>
  112. <Cell col="7" text="보험유형"/>
  113. <Cell col="8" text="입원일자"/>
  114. <Cell col="9" text="퇴원일자"/>
  115. <Cell col="10" text="진료과"/>
  116. <Cell col="11" text="전문의"/>
  117. <Cell col="12" text="병동"/>
  118. <Cell col="13" text="병실"/>
  119. <Cell col="14" text="스캔여부"/>
  120. <Cell col="15" text="h_treatno"/>
  121. <Cell col="16" text="h_indd"/>
  122. <Cell col="17" text="h_cretno"/>
  123. </Band>
  124. <Band id="body">
  125. <Cell celltype="head" expr="currow + 1"/>
  126. <Cell col="1" text="bind:scanyn"/>
  127. <Cell col="2" displaytype="text" edittype="text" text="bind:pid"/>
  128. <Cell col="3" style="align:left middle;" text="bind:hngnm"/>
  129. <Cell col="4" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
  130. <Cell col="5" text="bind:sex"/>
  131. <Cell col="6" text="bind:age"/>
  132. <Cell col="7" displaytype="combo" style="align:left middle;" text="bind:insukind" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm"/>
  133. <Cell col="8" displaytype="date" style="align:left middle;" text="bind:pamindd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  134. <Cell col="9" displaytype="date" style="align:left middle;" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  135. <Cell col="10" style="align:left middle;" text="bind:orddeptnm"/>
  136. <Cell col="11" style="align:left middle;" text="bind:medispclnm"/>
  137. <Cell col="12" displaytype="combo" text="bind:wardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm"/>
  138. <Cell col="13" style="align:left middle;" text="bind:roomcd"/>
  139. <Cell col="14" text="bind:scanyn"/>
  140. <Cell col="15" text="bind:treatno"/>
  141. <Cell col="16" text="bind:indd"/>
  142. <Cell col="17" text="bind:cretno"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. <Button id="btn_view" class="btn2" position="absolute 1039 54 1114 76" style="" text="약정서보기" onclick="group3_btn_view_onclick" anchor="top right"/>
  148. </Layout>
  149. </Layouts>
  150. </Div>
  151. <Div id="group5" position="absolute 0 757 1195 784" style="" anchor="left right bottom">
  152. <Layouts>
  153. <Layout>
  154. <Button id="button2" class="btn4" position="absolute 1126 4 1194 26" style="" text="초기화" onclick="group5_button2_onclick" anchor="right bottom"/>
  155. <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="left right bottom"/>
  156. </Layout>
  157. </Layouts>
  158. </Div>
  159. </Layout>
  160. </Layouts>
  161. <Objects>
  162. <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  163. <ColumnInfo/>
  164. </Dataset>
  165. <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  166. <ColumnInfo>
  167. <Column id="pid" type="STRING" size="256"/>
  168. <Column id="treatno" type="STRING" size="256"/>
  169. <Column id="orddeptcd" type="STRING" size="256"/>
  170. <Column id="indd" type="STRING" size="256"/>
  171. <Column id="docucd" type="STRING" size="256"/>
  172. <Column id="ioflag" type="STRING" size="256"/>
  173. <Column id="cmc_cretno" type="STRING" size="256"/>
  174. <Column id="cmc_spcid" type="STRING" size="256"/>
  175. <Column id="cmc_orddate" type="STRING" size="256"/>
  176. <Column id="cmc_orderseqno" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. <Rows>
  179. <Row>
  180. <Col id="pid"/>
  181. <Col id="treatno"/>
  182. <Col id="orddeptcd"/>
  183. <Col id="indd"/>
  184. <Col id="docucd"/>
  185. <Col id="ioflag"/>
  186. <Col id="cmc_cretno"/>
  187. <Col id="cmc_spcid"/>
  188. <Col id="cmc_orddate"/>
  189. <Col id="cmc_orderseqno"/>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_main_inpatientlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  194. <ColumnInfo/>
  195. </Dataset>
  196. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  197. <ColumnInfo/>
  198. </Dataset>
  199. <Dataset id="ds_init_P0016list_P0016" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  200. <ColumnInfo>
  201. <Column id="cdid" type="STRING" size="256"/>
  202. <Column id="cdnm" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="cdid"/>
  207. <Col id="cdnm"/>
  208. </Row>
  209. </Rows>
  210. </Dataset>
  211. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  212. <ColumnInfo/>
  213. </Dataset>
  214. <Dataset id="ds_send_data0" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  215. <ColumnInfo>
  216. <Column id="ioflag" type="STRING" size="256"/>
  217. <Column id="sess_posinstcd" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. <Rows>
  220. <Row>
  221. <Col id="ioflag"/>
  222. </Row>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  226. <ColumnInfo>
  227. <Column id="refcond" type="STRING" size="256"/>
  228. <Column id="cond1" type="STRING" size="256"/>
  229. <Column id="cond2" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="refcond">0</Col>
  234. <Col id="cond1"/>
  235. <Col id="cond2"/>
  236. </Row>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_init_P0149list_P0149" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  240. <ColumnInfo>
  241. <Column id="cdid" type="STRING" size="256"/>
  242. <Column id="cdnm" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="cdid"/>
  247. <Col id="cdnm"/>
  248. </Row>
  249. </Rows>
  250. </Dataset>
  251. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  252. <ColumnInfo>
  253. <Column id="init" type="STRING" size="256"/>
  254. </ColumnInfo>
  255. </Dataset>
  256. <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  257. <ColumnInfo/>
  258. </Dataset>
  259. <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  260. <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  261. <Dataset id="ds_hidden_printtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  262. <Dataset id="ds_main_vipinpatlist_vipinpatspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  263. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  264. </Objects>
  265. <Bind>
  266. <BindItem id="item0" compid="group3.group2.cmb_condition" propid="value" datasetid="ds_send_data1" columnid="refcond"/>
  267. <BindItem id="item1" compid="group3.group2.ipt_cond1" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
  268. <BindItem id="item2" compid="group3.group2.ipt_cond2" propid="value" datasetid="ds_send_data1" columnid="cond2"/>
  269. <BindItem id="item3" compid="group3.group2.ipt_date" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
  270. <BindItem id="item4" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send_data1" columnid="cond1"/>
  271. </Bind>
  272. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  273. include "com_basiccodexp::ZBC001.xjs"
  274. var arErrorCode = new HashArray();
  275. function SMPMC05300_onload(obj:Form, e:LoadEventInfo) {
  276. frmf_initForm(obj);
  277. grdf_initGrid(group3.grd_inpatientlist);
  278. //grdf_setGridSort(grd_XXX);
  279. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  280. var arrParam = [
  281. {dsNm: "ds_init_P0149list_P0149", cdGrpId: "P0149"},
  282. {dsNm: "ds_init_P0016list_P0016", cdGrpId: "P0016"}
  283. ];
  284. appf_getCodeList(arrParam );
  285. ds_send_data0.setColumn( 0, "ioflag", "I"); // 입원진료과명을 가져오기 위함
  286. ds_send_data0.setColumn(0, "sess_posinstcd", sysf_getUserInfo("dutplceinstcd"));
  287. //submit("TRPMI00106");
  288. var oParam = {};
  289. oParam.id = "TRPMI00106";
  290. oParam.service = "pamcomnapp.PamComn";
  291. oParam.method = "reqGetComCD";
  292. oParam.inds = "req=ds_send_data0";
  293. oParam.outds = "ds_hidden_init_disccd=disccd " +
  294. "ds_hidden_init_insukind=insukind " +
  295. "ds_hidden_init_suppkind=suppkind " +
  296. "ds_hidden_init_suppkindhist=suppkindhist " +
  297. "ds_hidden_init_orddeptcd=orddeptcd " +
  298. "ds_hidden_init_orddrid=orddrid " +
  299. "ds_hidden_init_wardcd=wardcd " +
  300. "ds_hidden_init_roomcd=roomcd " +
  301. "ds_hidden_init_bedcd=bedcd " +
  302. "ds_hidden_init_roomgrdecd=roomgrdecd " +
  303. "ds_hidden_init_roomgrdelist=roomgrdelist " +
  304. "ds_hidden_init_roomtypecd=roomtypecd " +
  305. "ds_hidden_init_flag=flag " +
  306. "ds_hidden_init_proccd=proccd " +
  307. "ds_hidden_init_centcd=centcd " +
  308. "ds_hidden_init_hospgrde=hospgrde " +
  309. "ds_hidden_init_naticd=naticd " +
  310. "ds_hidden_init_erorddrid=erorddrid " +
  311. "ds_hidden_init_insucd=insucd " +
  312. "ds_hidden_init_uncocd=uncocd";
  313. oParam.async = false;
  314. tranf_submit(oParam);
  315. //makeReportPreview(0, 0, 10, 10, "group3.grp_report");
  316. fInitialize();
  317. //model.refresh();
  318. }
  319. function fInitialize() {
  320. ds_main_inpatientlist.clearData(); ds_main_inpatientlist.addRow();
  321. ds_send.clearData(); ds_send.addRow();
  322. ds_send_data1.setColumn( 0, "refcond","0");
  323. //fSelectRefItem();
  324. //model.refresh();
  325. }
  326. function fSelectRefItem()
  327. {
  328. // 0. 전체 1.환자번호 2.환자성명 3.주민번호 4.입원일자 5.퇴원일자 6.진료과 7.보험유형
  329. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  330. ds_send_data1.setColumn( 0, "cond1", "");
  331. ds_send_data1.setColumn( 0, "cond2", "");
  332. switch(sRefCond) {
  333. case '0' :
  334. group3.group2.ipt_cond1.visible = false;
  335. group3.group2.ipt_cond2.visible = false;
  336. group3.group2.ipt_date.visible = false;
  337. group3.group2.cmb_cond.visible = false;
  338. group3.group2.btn_ref.click();
  339. break;
  340. case '1' :
  341. group3.group2.ipt_cond1.maxlength = 10;
  342. group3.group2.ipt_cond1.visible = true;
  343. group3.group2.ipt_cond2.visible = false;
  344. group3.group2.ipt_date.visible = false;
  345. group3.group2.cmb_cond.visible = false;
  346. group3.group2.ipt_cond1.setFocus();
  347. break;
  348. case '2' :
  349. group3.group2.ipt_cond1.maxlength = 50;
  350. group3.group2.ipt_cond1.visible = true;
  351. group3.group2.ipt_cond2.visible = false;
  352. group3.group2.ipt_date.visible = false;
  353. group3.group2.cmb_cond.visible = false;
  354. group3.group2.ipt_cond1.setFocus();
  355. break;
  356. case '3' :
  357. group3.group2.ipt_cond1.maxlength = 6;
  358. group3.group2.ipt_cond1.visible = true;
  359. group3.group2.ipt_cond2.visible = true;
  360. group3.group2.ipt_date.visible = false;
  361. group3.group2.cmb_cond.visible = false;
  362. group3.group2.ipt_cond1.setFocus();
  363. break;
  364. case '4' :
  365. ds_send_data1.setColumn( 0, "cond1", utlf_getCurrentDate());
  366. group3.group2.ipt_cond1.visible = false;
  367. group3.group2.ipt_cond2.visible = false;
  368. group3.group2.ipt_date.visible = true;
  369. group3.group2.cmb_cond.visible = false;
  370. group3.group2.ipt_date.setFocus();
  371. break;
  372. case '5' :
  373. ds_send_data1.setColumn( 0, "cond1", utlf_getCurrentDate());
  374. group3.group2.ipt_cond1.visible = false;
  375. group3.group2.ipt_cond2.visible = false;
  376. group3.group2.ipt_date.visible = true;
  377. group3.group2.cmb_cond.visible = false;
  378. group3.group2.ipt_date.setFocus();
  379. break;
  380. case '6' :
  381. group3.group2.cmb_cond.innerdataset = "ds_hidden_init_orddeptcd";
  382. group3.group2.ipt_cond1.visible = false;
  383. group3.group2.ipt_cond2.visible = false;
  384. group3.group2.ipt_date.visible = false;
  385. group3.group2.cmb_cond.visible = true;
  386. group3.group2.cmb_cond.setFocus();
  387. break;
  388. case '7' :
  389. group3.group2.cmb_cond.innerdataset = "ds_hidden_init_insukind";
  390. group3.group2.ipt_cond1.visible = false;
  391. group3.group2.ipt_cond2.visible = false;
  392. group3.group2.ipt_date.visible = false;
  393. group3.group2.cmb_cond.visible = true;
  394. group3.group2.cmb_cond.setFocus();
  395. break;
  396. default :
  397. group3.group2.ipt_cond1.visible = false;
  398. group3.group2.ipt_cond2.visible = false;
  399. group3.group2.ipt_date.visible = false;
  400. group3.group2.cmb_cond.visible = false;
  401. break;
  402. }
  403. //model.refresh();
  404. }
  405. // 조회조건에 따른 값 체크
  406. function fCheckRefCondition() {
  407. // 1. 전체 2.환자번호 4.진료과 5.병동
  408. var sRefCond = String(ds_send_data1.getColumn(0, "refcond"));
  409. var sCond1 = ds_send_data1.getColumn(0, "cond1");
  410. var sCond2 = ds_send_data1.getColumn(0, "cond2");
  411. var bResult = false;
  412. switch(sRefCond) {
  413. case '0' :
  414. bResult = true;
  415. break;
  416. case '1' :
  417. if (utlf_isNull(sCond1)) {
  418. sysf_messageBox("환자번호를 입력 후 조회하십시오!!", "I");
  419. bResult = false;
  420. } else {
  421. bResult = true;
  422. }
  423. break;
  424. case '2' :
  425. if (utlf_isNull(sCond1)) {
  426. sysf_messageBox("환자번호를 입력 후 조회하십시오!!", "I");
  427. bResult = false;
  428. } else if (!utlf_isNull(sCond1) && sCond1.length < 2) {
  429. sysf_messageBox("성명은 2자 이상 입력하십시오!!", "I");
  430. bResult = false;
  431. } else {
  432. bResult = true;
  433. }
  434. break;
  435. case '3' :
  436. if (utlf_isNull(sCond1)) {
  437. sysf_messageBox("주민번호 앞자리를 입력하십시오!!", "I");
  438. bResult = false;
  439. } else if (!utlf_isNull(sCond1) && sCond1.length != 6) {
  440. sysf_messageBox("주민번호 앞자리는 6자리를 입력하십시오!!", "I");
  441. bResult = false;
  442. } else {
  443. bResult = true;
  444. }
  445. break;
  446. case '4' :
  447. if (utlf_isNull(sCond1)) {
  448. sysf_messageBox("입원일자를 입력하십시오!!", "I");
  449. bResult = false;
  450. } else {
  451. bResult = true;
  452. }
  453. break;
  454. case '5' :
  455. if (utlf_isNull(sCond1)) {
  456. sysf_messageBox("퇴원일자를 입력하십시오!!", "I");
  457. bResult = false;
  458. } else {
  459. bResult = true;
  460. }
  461. break;
  462. case '6' :
  463. if (utlf_isNull(sCond1)) {
  464. sysf_messageBox("진료과를 선택하십시오!!", "I");
  465. bResult = false;
  466. } else {
  467. bResult = true;
  468. }
  469. break;
  470. case '7' :
  471. if (utlf_isNull(sCond1)) {
  472. sysf_messageBox("보험유형을 선택하십시오!!", "I");
  473. bResult = false;
  474. } else {
  475. bResult = true;
  476. }
  477. break;
  478. default :
  479. break;
  480. }
  481. return bResult;
  482. }
  483. function fPrint(pCond) {
  484. var sPrintYN = "false";
  485. var sAutoCloseYN = "false";
  486. var sViewYN = "";
  487. if (pCond == "PREVIEW") {
  488. sPrintYN = "false";
  489. sAutoCloseYN = "false";
  490. sViewYN = "";
  491. }
  492. if (pCond == "PRINT") {
  493. sPrintYN = "true";
  494. sAutoCloseYN = "false";
  495. sViewYN = "group3.grp_report";
  496. }
  497. var iCount = ds_main_vipinpatlist_vipinpatspec.rowcount;
  498. if (iCount > 0) {
  499. var sPrintFromdd = ds_send.getColumn(0, "fromdd");
  500. var sPrinttodd = ds_send.getColumn(0, "todd");
  501. sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
  502. dsf_makeValue( ds_hidden_printtype, "printkind", "string", "VIP재원");
  503. dsf_makeValue( ds_hidden_printtype, "printfromdd", "string", sPrintFromdd);
  504. dsf_makeValue( ds_hidden_printtype, "printtodd", "string", sPrinttodd);
  505. var objDOM = rptf_createDOM();
  506. var objParam = new Object();
  507. rptf_setNodeListToDOM(objDOM, "root/main/vipinpatlist/vipinpatspec" , ds_main_vipinpatlist_vipinpatspec);
  508. rptf_setNodeListToDOM(objDOM, "root/hidden/printtype" , ds_hidden_printtype);
  509. objParam.xml_data_XML1 = objDOM.documentElement.source;
  510. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  511. rptf_exeReportPreview30(["RPPMI03601"],[objParam], option);
  512. } else {
  513. sysf_messageBox("출력할 내용이 없습니다!!", "I");
  514. }
  515. }
  516. function group3_group2_btn_ref_onclick(obj:Button, e:ClickEventInfo) {
  517. // 조회 구분별로 체크 로직 추가....
  518. var bOK = fCheckRefCondition();
  519. if (bOK == true) {
  520. //submit("TRPMC05301");
  521. var oParam = {};
  522. oParam.id = "TRPMC05301";
  523. oParam.service = "patinfomngtapp.InPatScan";
  524. oParam.method = "reqGetInPatScanList";
  525. oParam.inds = "req=ds_send_data1";
  526. oParam.outds = "ds_main_inpatientlist=list";
  527. oParam.async = false;
  528. tranf_submit(oParam);
  529. var iCount = ds_main_inpatientlist.rowcount;
  530. if (iCount == 0) {
  531. sysf_messageBox("조회 결과가 없습니다.", "I");
  532. }
  533. }
  534. }
  535. function group3_group2_cmb_condition_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  536. fSelectRefItem();
  537. }
  538. function group3_group2_ipt_cond1_onkeydown(obj:Edit, e:KeyEventInfo) {
  539. // enter key
  540. frmf_inputEnterKey("group3.group2.btn_ref", "onclick", new ClickEventInfo);
  541. }
  542. function group3_group2_ipt_cond2_onkeydown(obj:Edit, e:KeyEventInfo) {
  543. // enter key
  544. frmf_inputEnterKey("group3.group2.btn_ref", "onclick", new ClickEventInfo);
  545. }
  546. function group3_group2_cmb_cond_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  547. // 콤보 선택 시 자동 조회
  548. group3.group2.btn_ref.click();
  549. }
  550. function group3_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  551. fPrint("PRINT");
  552. }
  553. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  554. // var fileName = window.fileDialog("save", ",", false, utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  555. //
  556. // if (fileName != "")
  557. // {
  558. grdf_exportExcel(group3.grd_inpatientlist, "Sheet1", "입원약정서조회", false, "" , 'user' , true);
  559. // }
  560. }
  561. function group3_grd_inpatientlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  562. if(e.row >= 0 && e.col >= 0 && e.col != 2) {
  563. group3.btn_view.click();
  564. }
  565. }
  566. function group3_btn_view_onclick(obj:Button, e:ClickEventInfo) {
  567. //================================================================================================
  568. //pid : 환자번호
  569. //orddeptcd : 진료과 코드
  570. //indd : 입(내)원일
  571. //docucd : 서식코드
  572. //ioflag : 입원_외래
  573. //================================================================================================
  574. var iIndex = ds_main_inpatientlist.rowposition;
  575. var sPid = ds_main_inpatientlist.getColumn(iIndex, "pid");
  576. var sTreatNo = ds_main_inpatientlist.getColumn(iIndex, "treatno");
  577. //var sTreatNo = ds_main_inpatientlist.getColumn(0, "treatno");
  578. if (utlf_isNull(sPid)) {
  579. sysf_messageBox("환자를 선택하십시오!!", "I");
  580. return;
  581. }
  582. if (utlf_isNull(sTreatNo)) {
  583. sysf_messageBox("스캔된 약정서가 없습니다!!", "I");
  584. return;
  585. }
  586. ds_send_iemr.clearData(); ds_send_iemr.addRow();
  587. ds_send_iemr.setColumn( 0, "pid", sPid);
  588. ds_send_iemr.setColumn( 0, "treatno", sTreatNo);
  589. // ds_send_iemr.setColumn( 0, "pid", "3844");
  590. // ds_send_iemr.setColumn( 0, "orddeptcd", "2230000000");
  591. // ds_send_iemr.setColumn( 0, "indd", "20071004");
  592. // ds_send_iemr.setColumn( 0, "docucd", "0000002015");
  593. // ds_send_iemr.setColumn( 0, "ioflag", "O");
  594. // ds_send_iemr.setColumn( 0, "cmc_cretno", "1");
  595. // ds_send_iemr.setColumn( 0, "prcpdd", "");
  596. // ds_send_iemr.setColumn( 0, "execprcpuniqno", "");
  597. // ds_send_iemr.setColumn( 0, "instcd", "");searchChart("ds_hidden_temp");
  598. var objForm = frmf_findChildWindow("SSMRC03130");
  599. if(utlf_isNull(objForm))
  600. {
  601. //window.load("SSMRC03130.xrw", "modeless", "imgemrviewer", "", "ds_send_iemr", "ds_hidden_temp");
  602. var objArg = new Object();
  603. objArg.arg_ds_hidden_temp = ds_send_iemr;
  604. frmf_open("SSMRC03130","SSMRC03130", objArg, "", "", "", "", "", "", "", "", "", "M");
  605. //중요!!!!!!!!!!!!!!! 3차 리허설 이후 주석
  606. // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
  607. // window.children.item("imgemrviewer").javaScript.searchChart("ds_hidden_temp");
  608. // window.children.item("imgemrviewer").javaScript.downloadChart();
  609. // window.children.item("imgemrviewer").javaScript.setupChart("ChartView");
  610. }
  611. else
  612. {
  613. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  614. // var iemrNode = instance1.selectSingleNode("ds_send_iemr");
  615. // window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  616. // // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  617. // window.children.item("imgemrviewer").modelesstopmost = true;
  618. // window.children.item("imgemrviewer").modelesstopmost = false;
  619. var iemrNode = ds_send_iemr;
  620. objForm.reloadChart(iemrNode);
  621. }
  622. }
  623. function group5_button2_onclick(obj:Button, e:ClickEventInfo) {
  624. fInitialize();
  625. }
  626. ]]></Script>
  627. </Form>
  628. </FDL>