SMARC01900_타병원진료의뢰서조회.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMARC01900_타병원진료의뢰서조회" classname="SMARC01900_타병원진료의뢰서조회" inheritanceid="" position="absolute 0 13 1195 757" titletext="타병원진료의뢰서조회" onload="SMARC01900_타병원진료의뢰서조회_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="타병원진료의뢰서조회" class="tit_1" position="absolute 0 0 173 24"/>
  8. <Div id="group1" taborder="1" style="align: top;" position="absolute 0 24 1195 84" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1117 18 1173 40" anchor="top right" onclick="group1_btn_search_onclick"/>
  12. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1094 6 1097 54" anchor="top right"/>
  13. <Static id="caption9" text="조회일자 :" class="search_name" position="absolute 20 9 114 26" anchor="default"/>
  14. <Static id="caption11" text="진료과 :" class="search_name" position="absolute 414 11 508 28" anchor="default"/>
  15. <Static id="caption5" text="~" class="search_no_b" position="absolute 217 10 229 27" anchor="default"/>
  16. <Static id="caption12" text="등록상태 :" class="search_name" position="absolute 734 36 828 53" anchor="default"/>
  17. <Static id="caption4" text="등록번호 :" class="search_name" position="absolute 20 36 114 53" anchor="default"/>
  18. <Calendar id="ipt_fromdd" taborder="3" autoselect="true" class="input_search" position="absolute 110 9 210 28" anchor="default" dateformat="yyyy-MM-dd" value="null" style="align:center middle;" autoskip="true"/>
  19. <Calendar id="ipt_todd" taborder="4" autoselect="true" class="input_search" position="absolute 235 9 335 28" anchor="default" dateformat="yyyy-MM-dd" value="null" style="align:center middle;"/>
  20. <Edit id="ipt_drnm" taborder="7" class="input_search" position="absolute 110 34 210 53" anchor="default" onkeydown="fSearchEnterKey" autoselect="true"/>
  21. <Combo id="cmb_orddeptcd" taborder="8" innerdataset="ds_init_dept_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 496 9 636 28" style="itemheight:15;" columncount="-1" rowcount="-1" anchor="default" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
  22. <Combo id="cmb_repltype" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 824 34 964 53" columncount="-1" rowcount="-1" anchor="default">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn" size="256"/>
  26. <Column id="datacolumn" size="256"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn"/>
  31. <Col id="datacolumn">- 전 체 -</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">Y</Col>
  35. <Col id="datacolumn">등록</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">N</Col>
  39. <Col id="datacolumn">미등록</Col>
  40. </Row>
  41. </Rows>
  42. </Dataset>
  43. </Combo>
  44. <Combo id="cmb_orddrid" taborder="12" innerdataset="ds_init_doctlist_medispcl" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 824 9 964 28" columncount="-1" rowcount="-1" anchor="default"/>
  45. <Static id="caption6" text="진료의사 :" class="search_name" position="absolute 733 11 827 28" anchor="default"/>
  46. <Static id="caption00" text="환자명 :" class="search_name" position="absolute 414 36 508 53" anchor="default"/>
  47. <Edit id="ipt_hngnm" taborder="13" class="input_search" position="absolute 496 34 596 53" onkeydown="fSearchEnterKey" anchor="default" autoselect="true"/>
  48. <Button id="btn_patinfo" taborder="14" class="icon_search" position="absolute 215 35 231 51" onclick="group1_btn_patinfo_onclick" anchor="default"/>
  49. </Layout>
  50. </Layouts>
  51. </Div>
  52. <Grid id="grd_reqlist" taborder="2" useinputpanel="false" position="absolute 0 116 1195 711" binddataset="ds_reqlist" autofittype="col" oncelldblclick="grd_reqlist_oncelldblclick" autoenter="select" cellsizingtype="col" anchor="all">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="30"/>
  57. <Column size="80"/>
  58. <Column size="80"/>
  59. <Column size="80"/>
  60. <Column size="80"/>
  61. <Column size="80"/>
  62. <Column size="80"/>
  63. <Column size="169"/>
  64. <Column size="73"/>
  65. <Column size="160"/>
  66. <Column size="73"/>
  67. <Column size="198"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="24" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell/>
  75. <Cell col="1" displaytype="normal" text="등록상태"/>
  76. <Cell col="2" displaytype="normal" text="진료일자"/>
  77. <Cell col="3" displaytype="normal" text="등록번호"/>
  78. <Cell col="4" displaytype="normal" text="환자명"/>
  79. <Cell col="5" colspan="2" displaytype="normal" text="주민번호" taborder="undefined"/>
  80. <Cell col="7" displaytype="normal" text="진료과"/>
  81. <Cell col="8" displaytype="normal" text="진료의사"/>
  82. <Cell col="9" displaytype="normal" text="출력부서"/>
  83. <Cell col="10" displaytype="normal" text="출력자"/>
  84. <Cell col="11" text="OCR기록지명"/>
  85. </Band>
  86. <Band id="body">
  87. <Cell celltype="head" expr="currow+1"/>
  88. <Cell col="1" displaytype="combo" style="align:center;" text="bind:stat" combodataset="ds_init_stat" combocodecol="value" combodatacol="label"/>
  89. <Cell col="2" displaytype="normal" text="bind:orddd"/>
  90. <Cell col="3" displaytype="normal" text="bind:pid"/>
  91. <Cell col="4" displaytype="normal" text="bind:hngnm"/>
  92. <Cell col="5" displaytype="normal" text="bind:rrgstno1"/>
  93. <Cell col="6" displaytype="normal" text="bind:rrgstno2" mask="#aaaaaa" maskchar="*"/>
  94. <Cell col="7" displaytype="normal" text="bind:orddeptnm"/>
  95. <Cell col="8" displaytype="normal" text="bind:orddrnm"/>
  96. <Cell col="9" displaytype="normal" text="bind:prntdeptnm"/>
  97. <Cell col="10" displaytype="normal" style="align:center;" text="bind:prntusernm"/>
  98. <Cell col="11" text="bind:formnm"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1116 90 1195 111" onclick="btn_excel_onclick" anchor="top right"/>
  104. <Button id="btn_ocrview" taborder="4" text="타병원진료의뢰" position="absolute 0 716 122 738" class="btn3" onclick="btn_ocrview_onclick" anchor="left bottom"/>
  105. <Button id="btn_ocrviewpriv" taborder="5" text="개인정보이용동의서" class="btn3" position="absolute 124 716 269 738" onclick="btn_ocrviewpriv_onclick" anchor="left bottom"/>
  106. <Button id="btn_init" taborder="6" text="초기화" class="btn4" position="absolute 1127 716 1195 738" onclick="btn_init_onclick" anchor="right bottom"/>
  107. <Shape id="line10" class="line_10" position="absolute 0 111 1195 117" anchor="left top right"/>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="fromdd" type="STRING" size="256"/>
  114. <Column id="todd" type="STRING" size="256"/>
  115. <Column id="orddeptcd" type="STRING" size="256"/>
  116. <Column id="orddrid" type="STRING" size="256"/>
  117. <Column id="pid" type="STRING" size="256"/>
  118. <Column id="hngnm" type="STRING" size="256"/>
  119. <Column id="stat" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row/>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_reqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="stat" type="STRING" size="256"/>
  128. <Column id="orddd" type="STRING" size="256"/>
  129. <Column id="pid" type="STRING" size="256"/>
  130. <Column id="hngnm" type="STRING" size="256"/>
  131. <Column id="rrgstno1" type="STRING" size="256"/>
  132. <Column id="rrgstno2" type="STRING" size="256"/>
  133. <Column id="orddeptnm" type="STRING" size="256"/>
  134. <Column id="orddrnm" type="STRING" size="256"/>
  135. <Column id="formnm" type="STRING" size="256"/>
  136. <Column id="cretno" type="STRING" size="256"/>
  137. <Column id="acptseqno" type="STRING" size="256"/>
  138. <Column id="ioflag" type="STRING" size="256"/>
  139. <Column id="orddeptcd" type="STRING" size="256"/>
  140. <Column id="formcd" type="STRING" size="256"/>
  141. <Column id="ordtype" type="STRING" size="256"/>
  142. <Column id="dschdd" type="STRING" size="256"/>
  143. <Column id="indschacptstat" type="STRING" size="256"/>
  144. <Column id="ioclass" type="STRING" size="256"/>
  145. <Column id="ocrtag" type="STRING" size="256"/>
  146. <Column id="prntdeptnm" type="STRING" size="256"/>
  147. <Column id="prntusernm" type="STRING" size="256"/>
  148. </ColumnInfo>
  149. </Dataset>
  150. <Dataset id="ds_init_aformcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  151. <Dataset id="ds_init_bformcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  152. <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_init_doctlist_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  154. <ColumnInfo>
  155. <Column id="doctid" type="STRING" size="256"/>
  156. <Column id="doctnm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="doctid"/>
  161. <Col id="doctnm"/>
  162. </Row>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_send_doctor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  166. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  167. <Dataset id="ds_init_stat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="value" type="STRING" size="256"/>
  170. <Column id="label" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="value">Y</Col>
  175. <Col id="label">등록</Col>
  176. </Row>
  177. <Row>
  178. <Col id="value">N</Col>
  179. <Col id="label">미등록</Col>
  180. </Row>
  181. </Rows>
  182. </Dataset>
  183. <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  184. </Objects>
  185. <Bind>
  186. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="fromdd"/>
  187. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send_search" columnid="todd"/>
  188. <BindItem id="item2" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_search" columnid="orddeptcd"/>
  189. <BindItem id="item3" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_search" columnid="orddrid"/>
  190. <BindItem id="item4" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="pid"/>
  191. <BindItem id="item5" compid="group1.ipt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  192. <BindItem id="item6" compid="group1.cmb_repltype" propid="value" datasetid="ds_send_search" columnid="stat"/>
  193. </Bind>
  194. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  195. include "emr_prcpmngtxp::MMO001.xjs"
  196. include "com_departmentcodexp::ZSD001.xjs";
  197. function SMARC01900_타병원진료의뢰서조회_onload(obj:Form, e:LoadEventInfo)
  198. {
  199. frmf_initForm(obj);
  200. fInit();
  201. }
  202. // 초기값 셋팅
  203. function fInit()
  204. {
  205. lf_getHardCDList("N", 1310, null, ds_init_aformcd);
  206. lf_getHardCDList("N", 5561, null, ds_init_bformcd);
  207. //mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/aformcd", 1310); //타병원
  208. //mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/bformcd", 5561); //개인정보
  209. // 오늘 날짜로 세팅
  210. var CurrentDate = utlf_getCurrentDate();
  211. ds_send_search.setColumn(0, "fromdd", CurrentDate);
  212. ds_send_search.setColumn(0, "todd", CurrentDate);
  213. ds_send_search.setColumn(0, "orddeptcd", "");
  214. ds_send_search.setColumn(0, "orddrid", "");
  215. ds_send_search.setColumn(0, "stat", "");
  216. // 진료과
  217. //var instcd = "012";
  218. var instcd = sysf_getUserInfo("dutplceinstcd");
  219. //var standard_yn = "orduseyn";
  220. var standard_yn = "rcptuseyn";
  221. var ord_deptflag = 'D';
  222. var rslt_ref = "/root/init/dept";
  223. var sort_method = "depthngnm";
  224. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  225. //sort_field = "depthngnm"
  226. //zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  227. lf_mmbfGetDeptCodeComboList(ds_init_dept_dept, "A");
  228. grdf_sortNodeList(ds_init_dept_dept, "depthngnm", "asc"); // 가나다 순으로 정리되도록 수정.
  229. frmf_addComboItem("group1.cmb_orddeptcd", "- 전 체 -", "", "above");
  230. // 공통코드 목록 가져오기
  231. //zbcfGetCodeList(new Array("A0420"), new Array("/root/init/cptype") , true);
  232. fDoctSerach();
  233. }
  234. // 진료의사 조회
  235. function fDoctSerach()
  236. {
  237. // 진료의사
  238. ds_send_doctor.clearData();
  239. dsf_makeValue( ds_send_doctor, "orddd", "string", ds_send_search.getColumn(0, "fromdd"));
  240. dsf_makeValue( ds_send_doctor, "orddeptcd", "string", ds_send_search.getColumn(0, "orddeptcd"));
  241. var oParam = {};
  242. oParam.id = "TRARC01302";
  243. oParam.service = "healcarecoopapp.ReqAgnMngt";
  244. oParam.method = "reqGetDoctList";
  245. oParam.inds = "req=ds_send_doctor";
  246. oParam.outds = "ds_init_doctlist_medispcl=medispcl";
  247. oParam.async = false;
  248. //oParam.callback = "cf_TRARC01302";
  249. tranf_submit(oParam);
  250. group1.cmb_orddrid.index=0;
  251. }
  252. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. if ( !fCheckDate() ) return; //필수 저장여부 체크
  255. fSearch();
  256. }
  257. function fCheckDate()
  258. {
  259. var fromdd = ds_send_search.getColumn(0,"fromdd");
  260. var todd = ds_send_search.getColumn(0,"todd");
  261. var pid = ds_send_search.getColumn(0,"pid");
  262. if (utlf_isNull(pid) == true)
  263. {
  264. if( ! utlf_isValidDateTime( fromdd, 'YYYYMMDD') || ! utlf_isValidDateTime( todd, 'YYYYMMDD') ){
  265. sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  266. return false;
  267. }
  268. /* 기간조건 삭제(20100217)
  269. if( getDateInterval(fromdd, todd) > 31 ){
  270. messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  271. return false;
  272. }
  273. */
  274. if( utlf_getDateInterval(fromdd, todd) < 0 ){
  275. sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  276. return false;
  277. }
  278. // 날짜 계산
  279. var daycnt = utlf_getDateInterval(fromdd, todd);
  280. /* 기간조건 삭제(20100217)
  281. // 1일이 아닌 경우는 조건을 타야 함
  282. if (daycnt != 0)
  283. {
  284. // 진료과 체크
  285. if (model.getValue("/root/send/search/orddeptcd") == "")
  286. {
  287. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  288. //messageBox("진료과를 ","C002");
  289. return false;
  290. }
  291. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  292. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  293. model.setFocus("ipt_hngnm");
  294. return false;
  295. }
  296. }
  297. */
  298. if (group1.ipt_hngnm.text.length > 0 && group1.ipt_hngnm.text.length < 2) {
  299. sysf_messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  300. group1.ipt_hngnm.setFocus();
  301. return false;
  302. }
  303. }
  304. return true;
  305. }
  306. // 조회
  307. function fSearch()
  308. {
  309. /*
  310. // reqGetReqDocuList
  311. // getReqDocuList
  312. if (submit("TRARC01901", false) == true)
  313. {
  314. if (model.getValue("/root/send/search/stat") == "Y")
  315. {
  316. grd_list.nodeset = "/root/main/list/reqlist[stat='Y']";
  317. }
  318. else if (model.getValue("/root/send/search/stat") == "N")
  319. {
  320. grd_list.nodeset ="/root/main/list/reqlist[stat='N']";
  321. }
  322. }
  323. else
  324. {
  325. messageBox("조회를", "E009");
  326. }
  327. model.refresh();
  328. */
  329. var oParam = {};
  330. oParam.id = "TRARC01901";
  331. oParam.service = "healcarecoopapp.ReqMngt";
  332. oParam.method = "reqGetReqDocuList";
  333. oParam.inds = "req=ds_send_search";
  334. oParam.outds = "ds_reqlist=reqlist";
  335. oParam.async = false;
  336. //oParam.callback = "cf_TRARC01302";
  337. tranf_submit(oParam);
  338. }
  339. function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  340. {
  341. fDoctSerach();
  342. }
  343. function group1_btn_patinfo_onclick(obj:Button, e:ClickEventInfo)
  344. {
  345. fPatPopUp();
  346. }
  347. // 등록번호 조회 팝업
  348. function fPatPopUp()
  349. {
  350. ds_patinfolist.clearData();
  351. frmf_modal("SPPMC02500", "SPPMC02500", "", "", "1", "10", "10", "", "", "", "", "", "M");
  352. ds_send_search.setColumn( 0, "pid", ds_patinfolist.getColumn(0, "pid"));
  353. ds_send_search.setColumn( 0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
  354. }
  355. function fSearchEnterKey(obj, e)
  356. {
  357. if (e.keycode == 13)
  358. {
  359. obj.updateToDataset();
  360. // 조회
  361. fSearch();
  362. }
  363. }
  364. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  365. {
  366. fExcel();
  367. }
  368. // 리스트 엑셀 파일로 저장
  369. function fExcel()
  370. {
  371. if (ds_reqlist.rowcount < 1) return;
  372. grdf_exportExcel(grd_reqlist, "타병원진료의뢰리스트", "SheetName",true);
  373. }
  374. function btn_ocrview_onclick(obj:Button, e:ClickEventInfo)
  375. {
  376. fOCRView("A");
  377. }
  378. function btn_ocrviewpriv_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. fOCRView("B");
  381. }
  382. // OCR 기록보기
  383. function fOCRView(flag)
  384. {
  385. var row = ds_reqlist.rowposition;
  386. if(row < 0) return;
  387. var pid = ds_reqlist.getColumn(row, "pid");
  388. var formcd = "";
  389. if ( utlf_isNull(pid) ) {
  390. sysf_messageBox("등록번호가 선택되지 않았습니다","I");
  391. return;
  392. }
  393. if ( flag == "A") {
  394. formcd = ds_init_aformcd.getColumn(0, "hardcd"); //타병원
  395. }
  396. else if ( flag == "B" ) {
  397. formcd = ds_init_bformcd.getColumn(0, "hardcd"); //개인정보
  398. }
  399. ds_send_iemr.clearData(); ds_send_iemr.addRow();
  400. dsf_makeValue( ds_send_iemr, "pid", "string", pid);
  401. dsf_makeValue( ds_send_iemr, "docucd", "string", formcd);
  402. var obj = frmf_findPopup("SSMRC03130");
  403. if(obj == null)
  404. {
  405. //window.load("../../.._emr_imgemrweb_xrw_SSMRC03130.xrw", "modeless", "imgemrviewer", "", "_root_send_iemr", "_root_hidden_temp");
  406. var objArg = {"arg_ds_hidden_temp":ds_send_iemr};
  407. frmf_open("SSMRC03130", "SSMRC03130", objArg, "", "", "", "", "", "", "", "", "", "M");
  408. }
  409. else
  410. {
  411. var iemrNode = ds_send_iemr;
  412. obj.reloadChart(iemrNode);
  413. obj.setFocus();
  414. }
  415. }
  416. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  417. {
  418. fAllClear();
  419. }
  420. function fAllClear()
  421. {
  422. ds_reqlist.clearData();
  423. fInit();
  424. }
  425. function grd_reqlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  426. {
  427. fOpen();
  428. }
  429. // 더블클릭시 상단정보 올리고 의뢰환자등록 팝업 호출
  430. function fOpen()
  431. {
  432. if (ds_reqlist.rowcount < 1) return;
  433. var idxRow = ds_reqlist.rowposition; //그리드에서 해당 환자 선택
  434. var pid = ds_reqlist.getColumn(idxRow, "pid");
  435. var hngnm = ds_reqlist.getColumn(idxRow, "hngnm");
  436. var orddd = ds_reqlist.getColumn(idxRow, "orddd");
  437. var cretno = ds_reqlist.getColumn(idxRow, "cretno");
  438. var acptseqno = ds_reqlist.getColumn(idxRow, "acptseqno");
  439. var ordtype = ds_reqlist.getColumn(idxRow, "ordtype");
  440. var dschdd = ds_reqlist.getColumn(idxRow, "dschdd");
  441. var indschacptstat = ds_reqlist.getColumn(idxRow, "indschacptstat");
  442. var instcd = sysf_getUserInfo("dutplceinstcd");
  443. //var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + acptseqno + "▦" + orddd;
  444. var curdate = utlf_getCurrentDate();
  445. frmf_clearParameter("pid");
  446. if (ordtype == "E")
  447. {
  448. curdate = orddd;
  449. }
  450. else if (ordtype == "I")
  451. {
  452. if (indschacptstat == "D")
  453. {
  454. curdate = dschdd;
  455. }
  456. else if (indschacptstat == "T")
  457. {
  458. if (dschdd != "99991231")
  459. {
  460. curdate = dschdd;
  461. }
  462. }
  463. }
  464. else if (ordtype == "O")
  465. {
  466. curdate = orddd;
  467. }
  468. if (ordtype != "O" && ordtype != "I" && ordtype !="E")
  469. {
  470. if(sysf_getGlobalVariable("paminfo").length > 0){
  471. appf_delPatientInfos();
  472. }
  473. var pid = frmf_setParameter("pid", pid);
  474. }
  475. else
  476. {
  477. var condparam = ordtype + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + '▦' + curdate;
  478. appf_initPatientInfo(condparam); //상단정보 셋팅
  479. }
  480. //curEmrRecObj = getOpenWindow("SPARC00100"); //활성화된 진료기록 화면 object loading
  481. var curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
  482. if(!utlf_isNull(curEmrRecObj))
  483. {
  484. curEmrRecObj.fInit();
  485. }
  486. else
  487. {
  488. frmf_open("SPARC00100", "SPARC00100", "", "", "1", "1", "1", "", "", "", "", "", "M");
  489. }
  490. }
  491. ]]></Script>
  492. </Form>
  493. </FDL>