SPPMI05200_임상각과입원관리담당의사명단.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPMI05200" position="absolute 0 0 1280 1024" titletext="임상각과 입원관리 담당의사 명단" onload="SPPMI05200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1195 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="cap_inmanage" class="tit_1" position="absolute 0 0 212 14" style="" text="임상각과 입원관리 담당의사 명단" />
  11. <Static id="cap_chk" class="tit_1" position="absolute 0 0 212 14" style="" text="중복된 병상조회" />
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Div id="group3" scrollbars="autoboth" position="absolute 0 15 1193 715" style="">
  16. <Layouts>
  17. <Layout>
  18. <Tab id="swt_aipmmngt" position="absolute 5 25 1175 695" style="" anchor="default">
  19. <Tabpages>
  20. <Tabpage id="case_instand" selected="true" position="absolute 0 0 1192 670" style="" anchor="default" function="group3_swt_aipmmngt_case_instand_function">
  21. <Layouts>
  22. <Layout>
  23. <Grid id="grd_instand" binddataset="ds_main_inpatmanage" position="absolute 0 5 1170 670" style="align:center ;">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="120" />
  28. <Column size="100" />
  29. <Column size="100" />
  30. <Column size="100" />
  31. <Column size="100" />
  32. <Column size="100" />
  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="NZone" />
  43. <Cell col="4" text="연구실 or H.P" />
  44. <Cell col="5" text="비고" />
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:orddeptcd" />
  48. <Cell col="1" text="bind:position" />
  49. <Cell col="2" text="bind:hngnm" />
  50. <Cell col="3" text="bind:nzone" />
  51. <Cell col="4" text="bind:officetel" />
  52. <Cell col="5" text="bind:note" />
  53. </Band>
  54. </Format>
  55. </Formats>
  56. </Grid>
  57. </Layout>
  58. </Layouts>
  59. </Tabpage>
  60. <Tabpage id="case_chk" position="absolute 0 0 1192 600" style="" anchor="default">
  61. <Layouts>
  62. <Layout>
  63. <Grid id="datagrid1" binddataset="ds_main_chk" position="absolute 0 5 1170 645" style="">
  64. <Formats>
  65. <Format id="default">
  66. <Columns>
  67. <Column size="120" />
  68. <Column size="100" />
  69. <Column size="100" />
  70. <Column size="100" />
  71. <Column size="100" />
  72. <Column size="100" />
  73. <Column size="100" />
  74. <Column size="100" />
  75. <Column size="100" />
  76. <Column size="100" />
  77. <Column size="100" />
  78. <Column size="100" />
  79. <Column size="100" />
  80. <Column size="100" />
  81. </Columns>
  82. <Rows>
  83. <Row size="24" band="head" />
  84. <Row size="24" />
  85. </Rows>
  86. <Band id="head">
  87. <Cell text="병동" />
  88. <Cell col="1" text="병실" />
  89. <Cell col="2" text="병상" />
  90. <Cell col="3" text="Bed" />
  91. <Cell col="4" text="차트번호" />
  92. <Cell col="5" text="입원일" />
  93. <Cell col="6" text="이름" />
  94. <Cell col="7" text="진료과" />
  95. <Cell col="8" text="전공의" />
  96. <Cell col="9" text="주치의" />
  97. <Cell col="10" text="퇴원일자" />
  98. <Cell col="11" text="분할입원일" />
  99. <Cell col="12" text="유형" />
  100. <Cell col="13" text="WardId" />
  101. </Band>
  102. <Band id="body">
  103. <Cell text="bind:wardnm" />
  104. <Cell col="1" text="bind:roomcd" />
  105. <Cell col="2" text="bind:bedcd" />
  106. <Cell col="3" text="bind:bedcnt" />
  107. <Cell col="4" text="bind:chartnum" />
  108. <Cell col="5" text="bind:indd" />
  109. <Cell col="6" text="bind:hngnm" />
  110. <Cell col="7" text="bind:orddeptnm" />
  111. <Cell col="8" text="bind:atdoctid" />
  112. <Cell col="9" text="bind:medispclid" />
  113. <Cell col="10" text="bind:outdd" />
  114. <Cell col="11" text="bind:partindd" />
  115. <Cell col="12" text="bind:insukind" />
  116. <Cell col="13" text="bind:wardid" />
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. </Layout>
  122. </Layouts>
  123. </Tabpage>
  124. </Tabpages>
  125. </Tab>
  126. <Static id="cap_tinmanage" class="tit_2" position="absolute 10 9 224 22" style="" text="임상각과 입원관리 담당의사 명단" />
  127. <Shape id="line19" class="line_1" linetype="horizontal" position="absolute 5 25 1175 28" style="" anchor="default" />
  128. <Button id="btn_insrow" class="btn2_letter3" position="absolute 1020 5 1073 24" style="" text="행추가" onclick="group3_btn_insrow_onclick" />
  129. <Button id="btn_delrow" class="btn2_letter3" position="absolute 1075 5 1128 24" style="" text="행삭제" onclick="group3_btn_delrow_onclick" />
  130. <Button id="btn_savedb" class="btn2_letter2" position="absolute 1130 5 1172 24" style="" text="저장" onclick="group3_btn_savedb_onclick" />
  131. <Button id="btn_print" class="btn2_letter2" position="absolute 975 5 1017 24" style="" text="출력" onclick="group3_btn_print_onclick" />
  132. <Button id="btn_chanchk" position="absolute 840 5 850 15" style="" text="." />
  133. <Static id="cap_tchk" class="tit_2" position="absolute 225 9 439 23" style="" text="중복된 병상조회" />
  134. <Button id="btn_sijac" position="absolute 850 5 865 25" style="" text="." onclick="group3_btn_sijac_onclick" />
  135. </Layout>
  136. </Layouts>
  137. </Div>
  138. </Layout>
  139. </Layouts>
  140. <Objects>
  141. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  142. <ColumnInfo>
  143. <Column id="cd" type="STRING" size="256" />
  144. <Column id="nm" type="STRING" size="256" />
  145. </ColumnInfo>
  146. <Rows>
  147. <Row>
  148. <Col id="cd"></Col>
  149. <Col id="nm"></Col>
  150. </Row>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  154. <ColumnInfo>
  155. <Column id="sess_posinstcd" type="STRING" size="256" />
  156. <Column id="ioflag" type="STRING" size="256" />
  157. <Column id="orddd" type="STRING" size="256" />
  158. <Column id="idflag" type="STRING" size="256" />
  159. </ColumnInfo>
  160. <Rows>
  161. <Row>
  162. <Col id="sess_posinstcd"></Col>
  163. <Col id="ioflag"></Col>
  164. </Row>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_main_chk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  168. <ColumnInfo>
  169. <Column id="wardnm" type="STRING" size="256" />
  170. <Column id="roomcd" type="STRING" size="256" />
  171. <Column id="bedcd" type="STRING" size="256" />
  172. <Column id="bedcnt" type="STRING" size="256" />
  173. <Column id="chartnum" type="STRING" size="256" />
  174. <Column id="indd" type="STRING" size="256" />
  175. <Column id="hngnm" type="STRING" size="256" />
  176. <Column id="orddeptnm" type="STRING" size="256" />
  177. <Column id="atdoctid" type="STRING" size="256" />
  178. <Column id="medispclid" type="STRING" size="256" />
  179. <Column id="outdd" type="STRING" size="256" />
  180. <Column id="partindd" type="STRING" size="256" />
  181. <Column id="insukind" type="STRING" size="256" />
  182. <Column id="wardid" type="STRING" size="256" />
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="wardnm"></Col>
  187. <Col id="roomcd"></Col>
  188. <Col id="bedcd"></Col>
  189. <Col id="bedcnt"></Col>
  190. <Col id="chartnum"></Col>
  191. <Col id="indd"></Col>
  192. <Col id="hngnm"></Col>
  193. <Col id="orddeptnm"></Col>
  194. <Col id="atdoctid"></Col>
  195. <Col id="medispclid"></Col>
  196. <Col id="outdd"></Col>
  197. <Col id="partindd"></Col>
  198. <Col id="insukind"></Col>
  199. <Col id="wardid"></Col>
  200. </Row>
  201. </Rows>
  202. </Dataset>
  203. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  204. <ColumnInfo />
  205. </Dataset>
  206. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  207. <ColumnInfo>
  208. <Column id="temp" type="STRING" size="256" />
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="temp"></Col>
  213. </Row>
  214. </Rows>
  215. </Dataset>
  216. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  217. <ColumnInfo>
  218. <Column id="hidden" type="STRING" size="256" />
  219. </ColumnInfo>
  220. <Rows>
  221. <Row>
  222. <Col id="hidden"></Col>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. <Dataset id="ds_main_inpatmanage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  227. <ColumnInfo>
  228. <Column id="orddeptcd" type="STRING" size="256" />
  229. <Column id="position" type="STRING" size="256" />
  230. <Column id="hngnm" type="STRING" size="256" />
  231. <Column id="nzone" type="STRING" size="256" />
  232. <Column id="officetel" type="STRING" size="256" />
  233. <Column id="note" type="STRING" size="256" />
  234. </ColumnInfo>
  235. <Rows>
  236. <Row>
  237. <Col id="orddeptcd"></Col>
  238. <Col id="position"></Col>
  239. <Col id="hngnm"></Col>
  240. <Col id="nzone"></Col>
  241. <Col id="officetel"></Col>
  242. <Col id="note"></Col>
  243. </Row>
  244. </Rows>
  245. </Dataset>
  246. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  247. <ColumnInfo>
  248. <Column id="flag" type="STRING" size="256" />
  249. </ColumnInfo>
  250. </Dataset>
  251. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  252. <ColumnInfo>
  253. <Column id="grd_pdtt" type="STRING" size="256" />
  254. </ColumnInfo>
  255. <Rows>
  256. <Row>
  257. <Col id="grd_pdtt"></Col>
  258. </Row>
  259. </Rows>
  260. </Dataset>
  261. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  262. <ColumnInfo />
  263. </Dataset>
  264. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  265. <ColumnInfo>
  266. <Column id="orddeptcd" type="STRING" size="256" />
  267. <Column id="position" type="STRING" size="256" />
  268. <Column id="hngnm" type="STRING" size="256" />
  269. <Column id="nzone" type="STRING" size="256" />
  270. <Column id="officetel" type="STRING" size="256" />
  271. <Column id="note" type="STRING" size="256" />
  272. </ColumnInfo>
  273. <Rows>
  274. <Row>
  275. <Col id="orddeptcd"></Col>
  276. <Col id="position"></Col>
  277. <Col id="hngnm"></Col>
  278. <Col id="nzone"></Col>
  279. <Col id="officetel"></Col>
  280. <Col id="note"></Col>
  281. </Row>
  282. </Rows>
  283. </Dataset>
  284. </Objects>
  285. <Bind />
  286. <Script type="xscript4.0"><![CDATA[include '../../.._com_commonweb_js_common.js'
  287. include '../../.._com_commonweb_js_tfHelper.js'
  288. include '../../.._com_commonweb_js_utilHelper.js'
  289. include '../../.._com_commonweb_js_dateHelper.js'
  290. include '../../.._com_commonweb_js_stringHelper.js'
  291. include '../../.._com_basiccodeweb_js_ZBC001.js'
  292. include '../../.._pam_opatmngtweb_js_PMOCOM.js'
  293. function SPPMI05200_onload(obj:Form, e:LoadEventInfo) {
  294. frmf_initForm(obj);
  295. //grdf_initGrid(grd_XXX);
  296. //grdf_setGridSort(grd_XXX);
  297. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  298. ds_send.setColumn( 0, "orddd","20100101");
  299. if(ds_source.getColumn(0, "flag") == "chk") {
  300. group3.btn_chanchk.dispatch("onclick");
  301. }
  302. fShowBox();
  303. fGetUserInfosSampling();//세션정보
  304. ds_send.setColumn( 0, "sess_posinstcd",ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  305. ds_send.setColumn( 0, "ioflag","I");
  306. //model.refresh();
  307. // submit("TRPMI00106");
  308. var oParam = {};
  309. oParam.id = "TRPMI00106";
  310. oParam.service = "pamcomnapp.PamComn";
  311. oParam.method = "reqGetComCD";
  312. oParam.inds = "req=ds_";
  313. oParam.outds = "ds_=disccd ds_=insukind ds_=suppkind ds_=suppkindhist ds_=orddeptcd ds_=orddrid ds_=wardcd ds_=roomcd ds_=bedcd ds_=roomgrdecd ds_=roomgrdelist ds_=roomtypecd ds_=flag ds_=proccd ds_=centcd ds_=hospgrde ds_=naticd ds_=erorddrid ds_=insucd ds_=uncocd";
  314. oParam.async = false;
  315. oParam.callback = "cf_TRPMI00106";
  316. tranf_submit(oParam);
  317. /*
  318. function cf_TRPMI00106(sSvcId, nErrorCode, sErrorMsg) {
  319. if(nErrorCode < 0) return;
  320. }
  321. function cf_TRPMI00106(sSvcId, nErrorCode, sErrorMsg) {
  322. arErrorCode.push(sSvcId, nErrorCode);
  323. }
  324. arErrorCode.pop("TRPMI00106") > -1
  325. arErrorCode.pop("TRPMI00106") < 0
  326. */
  327. var arrParam = [ {dsNm: "ds_init1_P0101list","ds_init1_P0028list","ds_init1_P0038list",
  328. cdGrpId: "P0101","P0028","P0038" } ];
  329. appf_getCodeList(arrParam, );
  330. group3.btn_sijac.dispatch("onclick");
  331. //model.refresh();
  332. }
  333. function fShowBox() {
  334. if(ds_source.getColumn(0, "flag") == "inmanage") {
  335. group1.cap_inmanage.visible = true;
  336. group1.cap_chk.visible = false;
  337. group3.cap_tinmanage.visible = true;
  338. group3.cap_tchk.visible = false;
  339. group3.btn_print.visible = true;
  340. group3.btn_insrow.visible = true;
  341. group3.btn_delrow.visible = true;
  342. group3.btn_savedb.visible = true;
  343. }else if(ds_source.getColumn(0, "flag") == "chk") {
  344. group1.cap_inmanage.visible = false;
  345. group1.cap_chk.visible = true;
  346. group3.cap_tinmanage.visible = false;
  347. group3.cap_tchk.attribute("left") = "10px";
  348. group3.cap_tchk.visible = true;
  349. group3.btn_print.visible = false;
  350. group3.btn_insrow.visible = false;
  351. group3.btn_delrow.visible = false;
  352. group3.btn_savedb.visible = false;
  353. }
  354. }
  355. function group3_swt_aipmmngt_case_instand_function {
  356. group3.swt_aipmmngt.case_instand.grd_instand.isSelected(1) = true;
  357. }
  358. function group3_btn_insrow_onclick(obj:Button, e:ClickEventInfo) {
  359. group3.swt_aipmmngt.case_instand.grd_instand.insertRow(group3.swt_aipmmngt.case_instand.grd_instand.row , "below");
  360. if(group3.swt_aipmmngt.case_instand.grd_instand.rows <= 1) {
  361. group3.swt_aipmmngt.case_instand.grd_instand.addRow();
  362. }
  363. //model.refresh();
  364. ds_send.setColumn( 0, "idflag" , "I");
  365. //group3.swt_aipmmngt.case_instand.grd_instand.addRow();
  366. }
  367. function group3_btn_delrow_onclick(obj:Button, e:ClickEventInfo) {
  368. if(group3.swt_aipmmngt.case_instand.grd_instand.rows >=1) {
  369. group3.swt_aipmmngt.case_instand.grd_instand.deleteRow(group3.swt_aipmmngt.case_instand.grd_instand.row);
  370. //model.refresh();
  371. }
  372. ds_send.setColumn( 0, "idflag" , "D");
  373. }
  374. function group3_btn_savedb_onclick(obj:Button, e:ClickEventInfo) {
  375. var cur_row = group3.swt_aipmmngt.case_instand.grd_instand.row;
  376. if (cur_row > 0) {
  377. // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
  378. var updtdata = getGridUpdateData(group3.swt_aipmmngt.case_instand.grd_instand);
  379. ds_send_data2.setColumn( 0, "grd_pdtt",updtdata);
  380. var updchk = ds_send_data2.getColumn(0, "grd_pdtt");
  381. // alert(updchk);
  382. if (updchk == null || updchk == "" || updchk == " ") {
  383. sysf_messageBox("변경사항이","I004");
  384. return false;
  385. } else {
  386. ds_send_data2.setColumn( 0, "grd_pdtt",grd_patinfolist.getUpdateData());
  387. // submit("TRPMI05230");
  388. var oParam = {};
  389. oParam.id = "TRPMI05230";
  390. oParam.service = "ipatmngtapp.OrddInpat";
  391. oParam.method = "reqInpatManage";
  392. oParam.inds = "req=ds_ grd_pdtt=ds_";
  393. oParam.outds = "ds_=inpatmanage ds_=chk";
  394. oParam.async = false;
  395. oParam.callback = "cf_TRPMI05230";
  396. tranf_submit(oParam);
  397. /*
  398. function cf_TRPMI05230(sSvcId, nErrorCode, sErrorMsg) {
  399. if(nErrorCode < 0) return;
  400. }
  401. function cf_TRPMI05230(sSvcId, nErrorCode, sErrorMsg) {
  402. arErrorCode.push(sSvcId, nErrorCode);
  403. }
  404. arErrorCode.pop("TRPMI05230") > -1
  405. arErrorCode.pop("TRPMI05230") < 0
  406. */
  407. //model.refresh();
  408. }
  409. }
  410. }
  411. function group3_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  412. exeReportPreview("RPPMI05290", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  413. }
  414. function group3_btn_sijac_onclick(obj:Button, e:ClickEventInfo) {
  415. // submit("TRPMI05230");
  416. var oParam = {};
  417. oParam.id = "TRPMI05230";
  418. oParam.service = "ipatmngtapp.OrddInpat";
  419. oParam.method = "reqInpatManage";
  420. oParam.inds = "req=ds_ grd_pdtt=ds_";
  421. oParam.outds = "ds_=inpatmanage ds_=chk";
  422. oParam.async = false;
  423. oParam.callback = "cf_TRPMI05230";
  424. tranf_submit(oParam);
  425. /*
  426. function cf_TRPMI05230(sSvcId, nErrorCode, sErrorMsg) {
  427. if(nErrorCode < 0) return;
  428. }
  429. function cf_TRPMI05230(sSvcId, nErrorCode, sErrorMsg) {
  430. arErrorCode.push(sSvcId, nErrorCode);
  431. }
  432. arErrorCode.pop("TRPMI05230") > -1
  433. arErrorCode.pop("TRPMI05230") < 0
  434. */
  435. }
  436. ]]></Script>
  437. </Form>
  438. </FDL>