SPMMB03600_수술예약장부컬럼설정.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMB03600" position="absolute 0 0 1123 264" titletext="수술예약장부LIST 컬럼설정" oninit="SPMMB03600_oninit" onload="SPMMB03600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 934 239 1002 261" id="button1" class="btn4" text="초기화" onclick="button1_onclick"/>
  8. <Button position="absolute 1005 239 1061 261" id="button2" class="btn4" text="저장" onclick="button2_onclick"/>
  9. <Button position="absolute 1064 239 1120 261" id="button3" class="btn4" text="취소" onclick="button3_onclick"/>
  10. <Grid position="absolute 0 21 1120 114" id="grd_opschelist" binddataset="ds_main_out" onrbuttondown="grd_opschelist_onrbuttondown" selecttype="multiarea" scrollpixel="all" cellsizingtype="col" ondrag="grd_opschelist_ondrag">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. <Column size="65"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="69"/>
  23. <Column size="82"/>
  24. <Column size="58"/>
  25. <Column size="0"/>
  26. <Column size="70"/>
  27. <Column size="185"/>
  28. <Column size="190"/>
  29. <Column size="68"/>
  30. <Column size="70"/>
  31. <Column size="76"/>
  32. <Column size="90"/>
  33. <Column size="125"/>
  34. <Column size="105"/>
  35. <Column size="94"/>
  36. <Column size="150"/>
  37. <Column size="150"/>
  38. <Column size="100"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell text="opregstno"/>
  46. <Cell col="1" text="opregshitno"/>
  47. <Cell col="2" text="opschehistcd"/>
  48. <Cell col="3" text="deptinnropflag"/>
  49. <Cell col="4" text="구분"/>
  50. <Cell col="5" text="sex"/>
  51. <Cell col="6" text="age"/>
  52. <Cell col="7" text="status"/>
  53. <Cell col="8" text="수술방"/>
  54. <Cell col="9" text="수술일"/>
  55. <Cell col="10" text="수술시간"/>
  56. <Cell col="11" text="순서"/>
  57. <Cell col="12" text="집도의"/>
  58. <Cell col="13" text="수술명"/>
  59. <Cell col="14" text="진단명"/>
  60. <Cell col="15" text="등록번호"/>
  61. <Cell col="16" text="성명"/>
  62. <Cell col="17" text="생년월일"/>
  63. <Cell col="18" text="전화번호"/>
  64. <Cell col="19" text="비고"/>
  65. <Cell col="20" text="외래초진기록"/>
  66. <Cell col="21" text="저장시간"/>
  67. <Cell col="22" text="추가전화번호"/>
  68. <Cell col="23" text="과거력/Medication"/>
  69. <Cell col="24" text="Lab/Consult"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell text="bind:opregstno"/>
  73. <Cell col="1" text="bind:opregshitno"/>
  74. <Cell col="2" text="bind:opschehistcd"/>
  75. <Cell col="3" text="bind:deptinnropflag"/>
  76. <Cell col="4" displaytype="combo" edittype="combo" text="bind:oppatflagcd"/>
  77. <Cell col="5" text="bind:sex"/>
  78. <Cell col="6" text="bind:age"/>
  79. <Cell col="7" text="bind:status"/>
  80. <Cell col="8" text="bind:oproomnm"/>
  81. <Cell col="9" text="bind:opschedd"/>
  82. <Cell col="10" text="bind:opusetm"/>
  83. <Cell col="11" text="bind:refseq"/>
  84. <Cell col="12" text="bind:perfdrnm"/>
  85. <Cell col="13" text="bind:opnm"/>
  86. <Cell col="14" text="bind:diagnm"/>
  87. <Cell col="15" text="bind:pid"/>
  88. <Cell col="16" text="bind:hngnm"/>
  89. <Cell col="17" text="bind:brthdd"/>
  90. <Cell col="18" text="bind:mpphontel"/>
  91. <Cell col="19" text="bind:opregstremfact"/>
  92. <Cell col="20" displaytype="text" edittype="text" text="bind:chojinyn"/>
  93. <Cell col="21" text="bind:fstrgstdt"/>
  94. <Cell col="22" text="bind:addtelno"/>
  95. <Cell col="23" text="bind:histmedicatn"/>
  96. <Cell col="24" text="bind:labconsult"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Grid position="absolute 0 141 1120 234" id="grd_opschelist_resize" binddataset="ds_main_out" onrbuttondown="grd_opschelist_resize_onrbuttondown" selecttype="multiarea" scrollpixel="all" cellsizingtype="col" cellmovingtype="col" ondrop="grd_opschelist_resize_ondrop" ondragmove="grd_opschelist_resize_ondragmove">
  102. <Formats>
  103. <Format id="default">
  104. <Columns>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="65"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="69"/>
  114. <Column size="82"/>
  115. <Column size="58"/>
  116. <Column size="0"/>
  117. <Column size="70"/>
  118. <Column size="185"/>
  119. <Column size="190"/>
  120. <Column size="68"/>
  121. <Column size="70"/>
  122. <Column size="76"/>
  123. <Column size="90"/>
  124. <Column size="125"/>
  125. <Column size="105"/>
  126. <Column size="94"/>
  127. <Column size="150"/>
  128. <Column size="150"/>
  129. <Column size="100"/>
  130. </Columns>
  131. <Rows>
  132. <Row size="24" band="head"/>
  133. <Row size="24"/>
  134. </Rows>
  135. <Band id="head">
  136. <Cell text="opregstno"/>
  137. <Cell col="1" text="opregshitno"/>
  138. <Cell col="2" text="opschehistcd"/>
  139. <Cell col="3" text="deptinnropflag"/>
  140. <Cell col="4" text="구분"/>
  141. <Cell col="5" text="sex"/>
  142. <Cell col="6" text="age"/>
  143. <Cell col="7" text="status"/>
  144. <Cell col="8" text="수술방"/>
  145. <Cell col="9" text="수술일"/>
  146. <Cell col="10" text="수술시간"/>
  147. <Cell col="11" text="순서"/>
  148. <Cell col="12" text="집도의"/>
  149. <Cell col="13" text="수술명"/>
  150. <Cell col="14" text="진단명"/>
  151. <Cell col="15" text="등록번호"/>
  152. <Cell col="16" text="성명"/>
  153. <Cell col="17" text="생년월일"/>
  154. <Cell col="18" text="전화번호"/>
  155. <Cell col="19" text="비고"/>
  156. <Cell col="20" text="외래초진기록"/>
  157. <Cell col="21" text="저장시간"/>
  158. <Cell col="22" text="추가 전화번호"/>
  159. <Cell col="23" text="과거력/Medication"/>
  160. <Cell col="24" text="Lab/Consult"/>
  161. </Band>
  162. <Band id="body">
  163. <Cell text="bind:opregstno"/>
  164. <Cell col="1" text="bind:opregshitno"/>
  165. <Cell col="2" text="bind:opschehistcd"/>
  166. <Cell col="3" text="bind:deptinnropflag"/>
  167. <Cell col="4" displaytype="combo" edittype="combo" text="bind:oppatflagcd"/>
  168. <Cell col="5" text="bind:sex"/>
  169. <Cell col="6" text="bind:age"/>
  170. <Cell col="7" text="bind:status"/>
  171. <Cell col="8" text="bind:oproomnm"/>
  172. <Cell col="9" text="bind:opschedd"/>
  173. <Cell col="10" text="bind:opusetm"/>
  174. <Cell col="11" text="bind:refseq"/>
  175. <Cell col="12" text="bind:perfdrnm"/>
  176. <Cell col="13" text="bind:opnm"/>
  177. <Cell col="14" text="bind:diagnm"/>
  178. <Cell col="15" text="bind:pid"/>
  179. <Cell col="16" text="bind:hngnm"/>
  180. <Cell col="17" text="bind:brthdd"/>
  181. <Cell col="18" text="bind:mpphontel"/>
  182. <Cell col="19" text="bind:opregstremfact"/>
  183. <Cell col="20" displaytype="text" edittype="text" text="bind:chojinyn"/>
  184. <Cell col="21" text="bind:fstrgstdt"/>
  185. <Cell col="22" text="bind:addtelno"/>
  186. <Cell col="23" text="bind:histmedicatn"/>
  187. <Cell col="24" text="bind:labconsult"/>
  188. </Band>
  189. </Format>
  190. </Formats>
  191. </Grid>
  192. <Static text="기본설정" position="absolute 0 3 126 19" align="align:center middle;" id="caption11" class="tit_2"/>
  193. <Static text="사용자설정" position="absolute 0 123 126 140" align="align:center middle;" id="caption1" class="tit_2"/>
  194. </Layout>
  195. </Layouts>
  196. <Objects>
  197. <Dataset id="ds_main_out" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="opregstno" type="STRING"/>
  200. <Column id="opregshitno" type="STRING"/>
  201. <Column id="opschehistcd" type="STRING"/>
  202. <Column id="deptinnropflag" type="STRING"/>
  203. <Column id="oppatflagcd" type="STRING"/>
  204. <Column id="sex" type="STRING"/>
  205. <Column id="age" type="STRING"/>
  206. <Column id="status" type="STRING"/>
  207. <Column id="oproomnm" type="STRING"/>
  208. <Column id="opschedd" type="STRING"/>
  209. <Column id="opusetm" type="STRING"/>
  210. <Column id="refseq" type="STRING"/>
  211. <Column id="perfdrnm" type="STRING"/>
  212. <Column id="opnm" type="STRING"/>
  213. <Column id="diagnm" type="STRING"/>
  214. <Column id="pid" type="STRING"/>
  215. <Column id="hngnm" type="STRING"/>
  216. <Column id="brthdd" type="STRING"/>
  217. <Column id="mpphontel" type="STRING"/>
  218. <Column id="opregstremfact" type="STRING"/>
  219. <Column id="chojinyn" type="STRING"/>
  220. <Column id="fstrgstdt" type="STRING"/>
  221. <Column id="addtelno" type="STRING"/>
  222. <Column id="histmedicatn" type="STRING"/>
  223. <Column id="labconsult" type="STRING"/>
  224. </ColumnInfo>
  225. <Rows>
  226. <Row/>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="scrnid" type="STRING" size="256"/>
  232. <Column id="grdid" type="STRING" size="256"/>
  233. <Column id="caseid" type="STRING" size="256"/>
  234. </ColumnInfo>
  235. <Rows>
  236. <Row/>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="userid" type="STRING" size="256"/>
  242. <Column id="scrnid" type="STRING" size="256"/>
  243. <Column id="compscd" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. </Dataset>
  246. <Dataset id="ds_init_gridseq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  247. <Dataset id="ds_listval" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  248. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  249. <Dataset id="ds_init_gridseq_resize" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  250. </Objects>
  251. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  252. * System Name :
  253. * Job Name :
  254. * Creator :
  255. * Make Date : 2015-02-03
  256. * Description :
  257. *---------------------------------------------------------------------------------------
  258. * Modify Date Modifier Modify Description
  259. *---------------------------------------------------------------------------------------
  260. * 2015-02-03 Live Converter TF->XP
  261. *
  262. *---------------------------------------------------------------------------------------
  263. ****************************************************************************************/
  264. //=======================================================================================
  265. // Lib Include
  266. //---------------------------------------------------------------------------------------
  267. include "com_commonxp::comm_main.xjs"
  268. include "emr_prcpmngtxp::MMOCommon.xjs"
  269. // include "emr_prcpmngtxp::SPMMB01100.xjs"
  270. include "emr_prcpmngtxp::SMMMO04100.xjs"
  271. include "emr_prcpmngtxp::SPMMB03600.xjs"
  272. var arErrorCode = new HashArray();
  273. //=======================================================================================
  274. // Event
  275. //---------------------------------------------------------------------------------------
  276. /****************************************************************************************
  277. * Components : Form
  278. * Components ID : SPMMB03600
  279. * Event : oninit
  280. * Argument : 01.obj : Object Event has occurred
  281. * : 02.e : Event Object
  282. * Description : 화면 처음 초기화시 폼초기화
  283. ****************************************************************************************/
  284. function SPMMB03600_oninit(obj:Form, e:InitEventInfo)
  285. {
  286. frmf_initForm(obj); // 폼 초기화
  287. }
  288. /****************************************************************************************
  289. * Components : Form
  290. * Components ID : SPMMB03600
  291. * Event : onload
  292. * Argument : 01.obj : Object Event has occurred
  293. * : 02.e : Event Object
  294. * Description : 화면 로드시 초기화 함수 실행
  295. ****************************************************************************************/
  296. function SPMMB03600_onload(obj:Form, e:LoadEventInfo)
  297. {
  298. fInitialize_SPMMB03600();
  299. }
  300. /****************************************************************************************
  301. * Components : Button
  302. * Components ID : button1
  303. * Event : onclick
  304. * Argument : 01.obj : Object Event has occurred
  305. * : 02.e : Event Object
  306. * Description : 초기화 버튼클릭
  307. ****************************************************************************************/
  308. function button1_onclick(obj:Button, e:ClickEventInfo)
  309. {
  310. fInitOrderOfCol();
  311. }
  312. /****************************************************************************************
  313. * Components : Button
  314. * Components ID : button2
  315. * Event : onclick
  316. * Argument : 01.obj : Object Event has occurred
  317. * : 02.e : Event Object
  318. * Description : 저장 버튼클릭
  319. ****************************************************************************************/
  320. function button2_onclick(obj:Button, e:ClickEventInfo)
  321. {
  322. fSaveOrderInfoCol();
  323. opener.frmf_setParameter("SPMMB03600_rtn_useyn", "Y");
  324. this.close();
  325. }
  326. /****************************************************************************************
  327. * Components : Button
  328. * Components ID : button3
  329. * Event : onclick
  330. * Argument : 01.obj : Object Event has occurred
  331. * : 02.e : Event Object
  332. * Description : 취소 버튼클릭
  333. ****************************************************************************************/
  334. function button3_onclick(obj:Button, e:ClickEventInfo)
  335. {
  336. opener.frmf_setParameter("SPMMB03600_rtn_useyn", "N");
  337. this.close();
  338. }
  339. /****************************************************************************************
  340. * Components : Grid
  341. * Components ID : grd_opschelist
  342. * Event : onrbuttondown
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description : 기본 그리드 설정에서 마우스 우클릭시
  346. ****************************************************************************************/
  347. function grd_opschelist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  348. {
  349. if(e.row > -1){
  350. popmenu2.trackPopup(e.screenX,e.screenY);
  351. }
  352. }
  353. /****************************************************************************************
  354. * Components : Grid
  355. * Components ID : grd_opschelist_resize
  356. * Event : onrbuttondown
  357. * Argument : 01.obj : Object Event has occurred
  358. * : 02.e : Event Object
  359. * Description : 사용자 그리드 설정에서 마우스 우클릭시
  360. ****************************************************************************************/
  361. function grd_opschelist_resize_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  362. {
  363. if(e.row > -1){
  364. popmenu1.trackPopup(e.screenX,e.screenY);
  365. }
  366. }
  367. /****************************************************************************************
  368. * Components : Grid
  369. * Components ID : grd_opschelist
  370. * Event : ondrag
  371. * Argument : 01.obj : Object Event has occurred
  372. * : 02.e : Event Object
  373. * Description : 기본 그리드 설정에서 마우스 드래그시
  374. ****************************************************************************************/
  375. function grd_opschelist_ondrag(obj:Grid, e:GridDragEventInfo)
  376. {
  377. if(e.row < 0 || e.col < 0) return false;
  378. fAddColDragStart(obj, e);
  379. return true;
  380. }
  381. /****************************************************************************************
  382. * Components : Grid
  383. * Components ID : grd_opschelist_resize
  384. * Event : ondrag
  385. * Argument : 01.obj : Object Event has occurred
  386. * : 02.e : Event Object
  387. * Description : 사용자 그리드 설정에서 마우스 드래그아웃시
  388. ****************************************************************************************/
  389. function grd_opschelist_resize_ondrop(obj:Grid, e:GridDragEventInfo)
  390. {
  391. e.sourceobject.style.cursor = obj.style.cursor = "auto";
  392. fAddColDrop(obj, e);
  393. }
  394. /****************************************************************************************
  395. * Components : Grid
  396. * Components ID : grd_opschelist_resize
  397. * Event : ondragmove
  398. * Argument : 01.obj : Object Event has occurred
  399. * : 02.e : Event Object
  400. * Description : 사용자 그리드 설정에서 드래그 종료시
  401. ****************************************************************************************/
  402. function grd_opschelist_resize_ondragmove(obj:Grid, e:GridDragEventInfo)
  403. {
  404. fAddColDragOver(obj, e);
  405. }
  406. //=======================================================================================
  407. // Function
  408. //---------------------------------------------------------------------------------------
  409. /****************************************************************************************
  410. * Function : fInitialize_SPMMB03600
  411. * Description : 수술예약장부컬럼설정 화면 초기화
  412. * Argument :
  413. * return type :
  414. * Creator :
  415. ****************************************************************************************/
  416. function fInitialize_SPMMB03600(){
  417. var scrnid = opener.frmf_getParameter("SMMMO05700_param_scrnid");
  418. var grdid = opener.frmf_getParameter("SMMMO05700_param_grdid");
  419. var caseid = opener.frmf_getParameter("SMMMO05700_param_caseid");
  420. ds_main_cond.setColumn(0,"scrnid" , scrnid);
  421. ds_main_cond.setColumn(0,"grdid" , grdid);
  422. ds_main_cond.setColumn(0,"caseid" , caseid);
  423. fReqOrderInfoOfCol(grdid);
  424. fReqBasicOrderInfoOfCol(grdid);
  425. frmf_createPopupMenu("popmenu1"
  426. ,"fDelColOfGrd"
  427. ,[{id: "D", level: "0", title: "컬럼 삭제"}]
  428. );
  429. frmf_createPopupMenu("popmenu2"
  430. ,"fAddColOfGrd"
  431. ,[{id: "A", level: "0", title: "컬럼 추가"}]
  432. );
  433. }
  434. ]]></Script>
  435. </Form>
  436. </FDL>