SPMMO09100_환자수진정보조회.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO09100" position="absolute 0 0 796 208" titletext="환자진료정보" oninit="SPMMO09100_oninit" onload="SPMMO09100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 0 796 182" id="datagrid1" oncelldblclick="datagrid1_oncelldblclick" binddataset="ds_patordinfolist" cellsizingtype="col" anchor="all" autofittype="col" selecttype="multirow">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="75"/>
  12. <Column size="80"/>
  13. <Column size="60"/>
  14. <Column size="74"/>
  15. <Column size="31"/>
  16. <Column size="30"/>
  17. <Column size="0"/>
  18. <Column size="92"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="80"/>
  25. <Column size="71"/>
  26. <Column size="0"/>
  27. <Column size="57"/>
  28. <Column size="0"/>
  29. <Column size="64"/>
  30. <Column size="67"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="환자번호"/>
  40. <Cell col="1" text="이름"/>
  41. <Cell col="2" text="진료구분"/>
  42. <Cell col="3" text="내원일"/>
  43. <Cell col="4" colspan="2" text="성별/나이"/>
  44. <Cell col="6" text="orddeptcd"/>
  45. <Cell col="7" text="진료과"/>
  46. <Cell col="8" text="instcd"/>
  47. <Cell col="9" text="cretno"/>
  48. <Cell col="10" text="insukind"/>
  49. <Cell col="11" text="suppkind"/>
  50. <Cell col="12" text="orddrid"/>
  51. <Cell col="13" text="담당교수"/>
  52. <Cell col="14" text="병실"/>
  53. <Cell col="15" text="caption1"/>
  54. <Cell col="16" text="퇴원구분"/>
  55. <Cell col="17" text="보험유형코드"/>
  56. <Cell col="18" text="보험유형"/>
  57. <Cell col="19" text="예약구분"/>
  58. <Cell col="20" text="퇴직유무"/>
  59. <Cell col="21" text="특진유무"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:pid"/>
  63. <Cell col="1" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:hngnm"/>
  64. <Cell col="2" displaytype="combo" edittype="none" style="align:center middle;background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:ioflag" combodataset="ds_ioflag" combocodecol="value" combodatacol="label"/>
  65. <Cell col="3" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:orddd" mask="####-##-##"/>
  66. <Cell col="4" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:sex"/>
  67. <Cell col="5" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:age"/>
  68. <Cell col="6" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:orddeptcd"/>
  69. <Cell col="7" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:orddeptnm"/>
  70. <Cell col="8" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:instcd"/>
  71. <Cell col="9" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:cretno"/>
  72. <Cell col="10" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:insukind"/>
  73. <Cell col="11" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:suppkind"/>
  74. <Cell col="12" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:orddrid"/>
  75. <Cell col="13" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="expr:expr:bind:orddrnm + ((drvalidyn == &quot;N&quot;) ? &quot;(퇴직)&quot; : ((drvalidyn == &quot;H&quot;) ? &quot;(휴진)&quot; : &quot;&quot;))"/>
  76. <Cell col="14" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:roomcd"/>
  77. <Cell col="15" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:dschdd"/>
  78. <Cell col="16" displaytype="combo" edittype="none" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:indschacptstat" combodataset="ds_P0019" combocodecol="cdid" combodatacol="cdnm"/>
  79. <Cell col="17" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:insukindcd"/>
  80. <Cell col="18" displaytype="text" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:insukind"/>
  81. <Cell col="19" displaytype="combo" edittype="none" style="align:center middle;background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:rsrvflag" combodataset="ds_P0341" combocodecol="cdid" combodatacol="cdnm"/>
  82. <Cell col="20" displaytype="combo" edittype="none" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:drvalidyn" combodataset="ds_drvalid" combocodecol="value" combodatacol="label"/>
  83. <Cell col="21" displaytype="combo" edittype="none" style="background:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));background2:EXPR(fCellColor(indschacptstat, drvalidyn, orddrnm));" text="bind:specordyn" combodataset="ds_specord" combocodecol="value" combodatacol="label"/>
  84. </Band>
  85. </Format>
  86. </Formats>
  87. </Grid>
  88. <CheckBox position="absolute 510 187 555 207" id="checkbox1" text="전체" onchanged="checkbox1_onchanged" anchor="right bottom"/>
  89. <Button position="absolute 566 186 670 208" id="button3" class="btn4" text="과거처방D/C" onclick="button3_onclick" anchor="right bottom"/>
  90. <Button position="absolute 673 186 729 208" id="button1" class="btn4" text="확인" onclick="button1_onclick" anchor="right bottom"/>
  91. <Button position="absolute 733 186 789 208" id="button2" class="btn4" text="취소" onclick="button2_onclick" anchor="right bottom"/>
  92. </Layout>
  93. </Layouts>
  94. <Objects>
  95. <Dataset id="ds_patordinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="pid" type="STRING"/>
  98. <Column id="hngnm" type="STRING"/>
  99. <Column id="ioflag" type="STRING"/>
  100. <Column id="orddd" type="STRING"/>
  101. <Column id="sex" type="STRING"/>
  102. <Column id="age" type="STRING"/>
  103. <Column id="orddeptcd" type="STRING"/>
  104. <Column id="orddeptnm" type="STRING"/>
  105. <Column id="instcd" type="STRING"/>
  106. <Column id="cretno" type="STRING"/>
  107. <Column id="insukind" type="STRING"/>
  108. <Column id="suppkind" type="STRING"/>
  109. <Column id="orddrid" type="STRING"/>
  110. <Column id="orddrnm" type="STRING"/>
  111. <Column id="roomcd" type="STRING"/>
  112. <Column id="dschdd" type="STRING"/>
  113. <Column id="indschacptstat" type="STRING"/>
  114. <Column id="insukindcd" type="STRING"/>
  115. <Column id="insukind" type="STRING"/>
  116. <Column id="rsrvflag" type="STRING"/>
  117. <Column id="drvalidyn" type="STRING"/>
  118. <Column id="specordyn" type="STRING"/>
  119. <Column id="holiinfo" type="STRING"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="cond" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. <Rows>
  127. <Row/>
  128. </Rows>
  129. </Dataset>
  130. <Dataset id="ds_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="label" type="STRING" size="256"/>
  133. <Column id="value" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row>
  137. <Col id="label">입원</Col>
  138. <Col id="value">I</Col>
  139. </Row>
  140. <Row>
  141. <Col id="label">외래</Col>
  142. <Col id="value">O</Col>
  143. </Row>
  144. <Row>
  145. <Col id="label">응급</Col>
  146. <Col id="value">E</Col>
  147. </Row>
  148. <Row>
  149. <Col id="label">건강검진</Col>
  150. <Col id="value">S</Col>
  151. </Row>
  152. <Row>
  153. <Col id="label">DSC</Col>
  154. <Col id="value">D</Col>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_drvalid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="label" type="STRING" size="256"/>
  161. <Column id="value" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="label">퇴직</Col>
  166. <Col id="value">N</Col>
  167. </Row>
  168. <Row>
  169. <Col id="label">근무</Col>
  170. <Col id="value">Y</Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_specord" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="label" type="STRING" size="256"/>
  177. <Column id="value" type="STRING" size="256"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row>
  181. <Col id="label">특진</Col>
  182. <Col id="value">Y</Col>
  183. </Row>
  184. <Row>
  185. <Col id="label">일반진료</Col>
  186. <Col id="value">N</Col>
  187. </Row>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_temp_patordinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  191. <Dataset id="ds_temp_subpatordinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  192. </Objects>
  193. <Bind>
  194. <BindItem id="item0" compid="checkbox1" propid="value" datasetid="ds_cond" columnid="cond"/>
  195. </Bind>
  196. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  197. * System Name :
  198. * Job Name :
  199. * Creator :
  200. * Make Date : 2014-08-29
  201. * Description :
  202. *---------------------------------------------------------------------------------------
  203. * Modify Date Modifier Modify Description
  204. *---------------------------------------------------------------------------------------
  205. * 2014-08-29 Live Converter TF->XP
  206. *
  207. *---------------------------------------------------------------------------------------
  208. ****************************************************************************************/
  209. include "com_commonxp::comm_main.xjs"
  210. function SPMMO09100_oninit(obj:Form, e:InitEventInfo)
  211. {
  212. frmf_initForm(obj);
  213. ds_patordinfolist.copyData(arg_ds_patordinfolist); // opener에서 넘긴 arg
  214. }
  215. function SPMMO09100_onload(obj:Form, e:LoadEventInfo)
  216. {
  217. // 2008.11.20
  218. ds_temp_patordinfo.copyData(ds_patordinfolist); //전체
  219. //ds_temp_patordinfo.filter("orddeptcd == '" + sysf_getUserInfo("dutplcecd")+"'");
  220. ds_temp_subpatordinfo.copyData(ds_temp_patordinfo, true); //로그인과
  221. ds_temp_patordinfo.filter("");
  222. ds_patordinfolist.copyData(ds_temp_subpatordinfo);
  223. appf_getCodeList([{dsNm: "ds_P0019", cdGrpId: "P0019"},
  224. {dsNm: "ds_P0341", cdGrpId: "P0341"}], true);
  225. ds_patordinfolist.keystring.current = "S:-orddd";
  226. ds_patordinfolist.rowposition = -1;
  227. datagrid1.vscrollbar.pos = -1;
  228. }
  229. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  230. {
  231. if(e.row < 0){
  232. return;
  233. }
  234. fSelPatInfo() ;
  235. }
  236. function checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  237. {
  238. var row = ds_patordinfolist.rowposition;
  239. var cond = ds_cond.getColumn(0, "cond");
  240. if(cond == "T") {
  241. ds_patordinfolist.copyData(ds_temp_patordinfo);
  242. } else {
  243. ds_patordinfolist.copyData(ds_temp_subpatordinfo);
  244. }
  245. ds_patordinfolist.keystring.current = "S:-orddd";
  246. ds_patordinfolist.rowposition = row;
  247. }
  248. function button3_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. var currow = ds_patordinfolist.rowposition;
  251. if(currow < 0){
  252. return;
  253. }
  254. var indschacptstat = ds_patordinfolist.getColumn(currow, "indschacptstat");
  255. if ( indschacptstat == "T" ) {
  256. var sDutPlceCd = sysf_getUserInfo("dutplcecd");
  257. if (sDutPlceCd == "4072000000" || sDutPlceCd == "4070700000" ) { // 심사실에서 가퇴원 환자 과거처방DC 사용 불가 처리 2012.12.17 엄영만
  258. sysf_messageBox("가퇴원 이력은 과거처방 D/C 불가합니다.\n확인버튼을 이용하여 누락처방 사유를 반드시 입력 후 진행 하십시오.", "E999");
  259. return
  260. }
  261. }
  262. //fSetTopPatInfo(); // 상단정보 셋팅 2014.06.09 시행부서 처방화면에서 처리 하는것으로 변경
  263. opener.frmf_setParameter ( "SPMMO09100_rtnyn", "Y");
  264. opener.frmf_setParameter ( "SPMMO09100_pid", ds_patordinfolist.getColumn(currow, "pid"));
  265. opener.frmf_setParameter ( "SPMMO09100_orddd", ds_patordinfolist.getColumn(currow, "orddd"));
  266. opener.frmf_setParameter ( "SPMMO09100_cretno", ds_patordinfolist.getColumn(currow, "cretno"));
  267. opener.frmf_setParameter ( "SPMMO09100_instcd", ds_patordinfolist.getColumn(currow, "instcd"));
  268. opener.frmf_setParameter ( "SPMMO09100_ioflag", ds_patordinfolist.getColumn(currow, "ioflag"));
  269. opener.frmf_setParameter ( "SPMMO09100_indschacptstat", ds_patordinfolist.getColumn(currow, "indschacptstat"));
  270. opener.frmf_setParameter ( "SPMMO09100_orddeptcd", ds_patordinfolist.getColumn(currow, "orddeptcd"));
  271. opener.frmf_setParameter ( "SPMMO09100_orddrid", ds_patordinfolist.getColumn(currow, "orddrid"));
  272. opener.frmf_setParameter ( "SPMMO09100_dschdd", ds_patordinfolist.getColumn(currow, "dschdd"));
  273. opener.frmf_setParameter ( "SPMMO09100_srchdd", ds_patordinfolist.getColumn(currow, "orddd"));
  274. opener.frmf_setParameter ( "SPMMO09100_drvalidyn", ds_patordinfolist.getColumn(currow, "drvalidyn"));
  275. opener.frmf_setParameter ( "SPMMO09100_dc", "DC");
  276. var rtnparam = dsf_getDsCSV(ds_patordinfolist, currow);
  277. opener.frmf_setParameter("SPMMO09100_rtn_param", rtnparam);
  278. close();
  279. }
  280. function button1_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. if(ds_patordinfolist.rowposition < 0){
  283. alert("선택된 리스트가 없습니다. 리스트 선택 후 진행해주세요.");
  284. return;
  285. }
  286. fSelPatInfo();
  287. }
  288. function button2_onclick(obj:Button, e:ClickEventInfo)
  289. {
  290. // 구 인스턴스 초기화
  291. //model.resetInstanceNode("/root/formerkey"); // 의미 없는듯 한데
  292. close();
  293. }
  294. function fCellColor(indschacptstat, drvalidyn, orddrnm) {
  295. var color = "default";
  296. if(indschacptstat == "A" || indschacptstat == "T"){
  297. // cccfff - 연한녹색 , ff0000 - 빨간
  298. color = "#ccffff";
  299. }
  300. if (drvalidyn == "N") { // 퇴사
  301. color = "#ff0000";
  302. } else if (drvalidyn == "H") { // 휴직
  303. color = "#ffbb00";
  304. }
  305. return color;
  306. }
  307. function fSelPatInfo() {
  308. var currow = ds_patordinfolist.rowposition;
  309. var paminfoyn = opener.frmf_getParameter ( "SPMMO09100_paminfoyn");
  310. var admininfo = "";
  311. try {
  312. admininfo = opener.ds_root.getColumn(0, "admininfo");
  313. } catch(E) {
  314. }
  315. var drvalidyn = ds_patordinfolist.getColumn(currow, "drvalidyn");
  316. // 2014.06.09 시행부서 처방화면에서 설정 하도록 수정. 엄영만
  317. //if (paminfoyn=="Y"){
  318. // fSetTopPatInfo();
  319. //}else if ( paminfoyn==""){
  320. // var sDutPlceCd = getUserInfo("dutplcecd");
  321. // if (sDutPlceCd != "4072000000" && sDutPlceCd != "4070700000" ) { // 심사실에서 가퇴원 환자 선택시 상단 정보 삭제 되지 않도록 처리 2013.09.25 엄영만
  322. // delPatientInfos();
  323. // }
  324. //}
  325. if (admininfo.substring(0, 6) != "YYYYYY") {
  326. // 진료의가 퇴직한 경우, 대진의사 지정 모달창 처리. 2010-07-21 추가.
  327. if ( drvalidyn == "N" ) { // 테스트 후 "N" 으로 변경적용 해야함.
  328. // 퇴직의사선택 알림창 처리
  329. var rtrnVar = sysf_messageBox("퇴직의사의 수진으로 시행부서 처방 발행이 불가합니다. 새로운 접수이력을", "Q014");
  330. if ( rtrnVar == "6" ) {
  331. // 호출함수에서 대진의사를 선택하게 하고, 선택된 대진의사ID를 설정한다.
  332. if(!fchoseNewDr(currow)) {
  333. return;
  334. }
  335. } else {
  336. return;
  337. }
  338. } else if (drvalidyn == "H") { // 휴진의사
  339. var holiinfo = ds_patordinfolist.getColumn(currow, "holiinfo");
  340. var rtrnVar = sysf_messageBox("선택된 예약의 담당교수는 현재 휴진으로 등록되어 있습니다.\n\n휴진정보\n"+ holiinfo +"\n\n다른 의사로 접수를 등록 하시려면 예(Y), \n현재 의사로 계속 진행하시려면 아니오(N)을 선택하세요.", "Q999");
  341. if ( rtrnVar == "6" ) {
  342. if(!fchoseNewDr(currow)) {
  343. return;
  344. }
  345. }
  346. }
  347. }
  348. var indschacptstat = ds_patordinfolist.getColumn(currow, "indschacptstat");
  349. if ( indschacptstat == "T" ) {
  350. var jobkindcd = sysf_getUserInfo("jobkindcd");
  351. // jobkindcd가 0330, 0332인 경우 의사
  352. if ( jobkindcd == "0330" || jobkindcd == "0332") {
  353. admininfo = "YYYYYYNNNNNNNNNNNNNN";
  354. //opener.ds_root.setColumn(0, "admininfo", admininfo);
  355. }
  356. var adminflag = admininfo.substring(0,6);
  357. if (adminflag != "YYYYYY"){
  358. alert(" 누락처방 입력은 Admin 권한자만 가능합니다. Admin 권한으로 재시도 해주세요.");
  359. } else {
  360. var mon = sysf_getCurrentMonitorNumber();
  361. var xpt = this.getOwnerFrame().position.x + 100;
  362. var ypt = this.getOwnerFrame().position.y + 50;
  363. frmf_clearParameter ( "SPMMO16400_rtn1" );
  364. frmf_clearParameter ( "SPMMO16800_rtn1" );
  365. var objArg = new Object();
  366. //objArg.arg_ds_result = ds_result; // 의미 없는듯
  367. frmf_modal("SPMMO16800", "SPMMO16800", objArg, false, mon, xpt, ypt, null, null, null, null, null, "M");
  368. var SPMMO16800_rtn1 = sysf_getGlobalVariable("SPMMO16800_rtn1");
  369. if ( SPMMO16800_rtn1 == "N" ){
  370. return ;
  371. }
  372. }
  373. }
  374. opener.frmf_setParameter ( "SPMMO09100_rtnyn", "Y");
  375. opener.frmf_setParameter ( "SPMMO09100_pid", ds_patordinfolist.getColumn(currow, "pid"));
  376. opener.frmf_setParameter ( "SPMMO09100_orddd", ds_patordinfolist.getColumn(currow, "orddd"));
  377. opener.frmf_setParameter ( "SPMMO09100_cretno", ds_patordinfolist.getColumn(currow, "cretno"));
  378. opener.frmf_setParameter ( "SPMMO09100_instcd", ds_patordinfolist.getColumn(currow, "instcd"));
  379. opener.frmf_setParameter ( "SPMMO09100_ioflag", ds_patordinfolist.getColumn(currow, "ioflag"));
  380. opener.frmf_setParameter ( "SPMMO09100_indschacptstat", ds_patordinfolist.getColumn(currow, "indschacptstat"));
  381. opener.frmf_setParameter ( "SPMMO09100_orddeptcd", ds_patordinfolist.getColumn(currow, "orddeptcd"));
  382. opener.frmf_setParameter ( "SPMMO09100_orddrid", ds_patordinfolist.getColumn(currow, "orddrid"));
  383. opener.frmf_setParameter ( "SPMMO09100_dschdd", ds_patordinfolist.getColumn(currow, "dschdd"));
  384. opener.frmf_setParameter ( "SPMMO09100_insukind", ds_patordinfolist.getColumn(currow, "insukindcd"));
  385. opener.frmf_setParameter ( "SPMMO09100_suppkind", ds_patordinfolist.getColumn(currow, "suppkind"));
  386. opener.frmf_setParameter ( "SPMMO09100_srchdd", ds_patordinfolist.getColumn(currow, "orddd"));
  387. opener.frmf_setParameter ( "SPMMO09100_drvalidyn", ds_patordinfolist.getColumn(currow, "drvalidyn"));
  388. var rtnparam = dsf_getDsCSV(ds_patordinfolist, currow);
  389. opener.frmf_setParameter("SPMMO09100_rtn_param", rtnparam);
  390. close();
  391. }
  392. // 2010-07-21. 대진의사선택 모달창 ( SMMMO00200.js 쪽으로 이동시켜야 함 )
  393. function fchoseNewDr(curRow) {
  394. bRtn = false;
  395. frmf_clearParameter("SPMMB04200_orddeptcd");
  396. frmf_clearParameter("SPMMB04200_orddrid");
  397. frmf_clearParameter("SPMMB04200_specordyn");
  398. frmf_clearParameter("SPMMB04200_rtrnyn");
  399. var orddeptcd = ds_patordinfolist.getColumn(curRow, "orddeptcd");
  400. var specordyn = ds_patordinfolist.getColumn(curRow, "specordyn"); // 특진의사 유무
  401. frmf_setParameter("SPMMB04200_orddeptcd", orddeptcd);
  402. frmf_setParameter("SPMMB04200_specordyn", specordyn);
  403. frmf_setParameter("SPMMB04200_rtrnyn", "N");
  404. frmf_modal("SPMMB04200", "SPMMB04200", null, null, null, null, null, null, null, null, null, null, "P");
  405. var neworddrid = frmf_getParameter("SPMMB04200_orddrid");
  406. if ( frmf_getParameter("SPMMB04200_rtrnyn") == "Y" && !utlf_isNull(neworddrid) ) {
  407. // 선택한 수진정보의 진료의 아이디를 변경 처리 한다.
  408. ds_patordinfolist.setColumn(curRow, "orddrid", neworddrid);
  409. bRtn = true;
  410. }
  411. return bRtn;
  412. }]]></Script>
  413. </Form>
  414. </FDL>