SPMRI10010_증례기록관리.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRI10010" position="absolute 0 0 1217 766" titletext="COVID19 증례조사표" oninit="SPMRI10010_oninit" onload="SPMRI10010_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 18 491 86" align="align:center top;" id="grp_sea" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="병동 :" position="absolute 8 42 56 59" id="caption2" class="search_name" anchor="default"/>
  11. <Button position="absolute 425 15 481 37" id="button1" class="btn1" taborder="4" text="조회" onclick="grp_sea_button1_onclick" anchor="default"/>
  12. <Combo position="absolute 58 41 162 60" id="cmb_wardcd" enable="true" innerdataset="@ds_orddept2" datacolumn="depthngnm" codecolumn="deptcd" anchor="default"/>
  13. <Calendar position="absolute 103 15 200 34" id="ipt_fromdd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
  14. <Calendar id="ipt_todd" taborder="7" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 206 15 303 34" anchor="default"/>
  15. <Combo id="cmb_dd" taborder="8" innerdataset="@ds_init_dd" codecolumn="daykind" datacolumn="daynm" class="combo_essential" position="absolute 5 15 101 34" anchor="default" onitemchanged="grp_sea_cmb_dd_onitemchanged"/>
  16. <Static id="caption00" text="진료과 :" class="search_name" position="absolute 176 42 238 59"/>
  17. <Combo id="cmb_orddept" taborder="9" innerdataset="@ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 243 40 347 59"/>
  18. <Combo id="Combo00" taborder="10" text="Combo00" position="absolute 314 13 414 33" codecolumn="codecolumn" datacolumn="datacolumn">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn" size="256"/>
  22. <Column id="datacolumn" size="256"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">A</Col>
  27. <Col id="datacolumn">전체</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">B</Col>
  31. <Col id="datacolumn">재원</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">C</Col>
  35. <Col id="datacolumn">퇴원</Col>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. </Combo>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Grid position="absolute 0 91 491 736" id="grd_wardpatlist" class="datagrid2" binddataset="ds_main_list" cellsizingtype="col" cellsizebandtype="allband" scrollpixel="all" selecttype="multirow" anchor="left top bottom" oncelldblclick="grd_wardpatlist_oncelldblclick">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="20" band="left"/>
  48. <Column size="42"/>
  49. <Column size="55"/>
  50. <Column size="54"/>
  51. <Column size="40"/>
  52. <Column size="50"/>
  53. <Column size="42"/>
  54. <Column size="72"/>
  55. <Column size="70"/>
  56. <Column size="70"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="26" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="병실"/>
  70. <Cell col="2" text="등록번호"/>
  71. <Cell col="3" text="환자명"/>
  72. <Cell col="4" text="기록&#10;여부"/>
  73. <Cell col="5" text="완료&#10;여부"/>
  74. <Cell col="6" text="S/A"/>
  75. <Cell col="7" text="진료과"/>
  76. <Cell col="8" text="입원일자"/>
  77. <Cell col="9" text="퇴원일자"/>
  78. <Cell col="10" text="cretno"/>
  79. <Cell col="11" text="instcd"/>
  80. <Cell col="12" text="ordtype"/>
  81. <Cell col="13" text="orddeptcd"/>
  82. <Cell col="14" text="hd"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell celltype="head" expr="expr:currow + 1"/>
  86. <Cell col="1" style="align:left;" text="bind:roomcd"/>
  87. <Cell col="2" style="align:left;" text="bind:pid"/>
  88. <Cell col="3" style="align:left;" text="bind:hngnm"/>
  89. <Cell col="4" style="align:center;" text="bind:recyn"/>
  90. <Cell col="5" text="bind:cnfmyn"/>
  91. <Cell col="6" style="align:left;" text="bind:sa"/>
  92. <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:deptnm" wordwrap="word"/>
  93. <Cell col="8" displaytype="date" style="align:left;" text="bind:indd" calendardisplaynulltype="none"/>
  94. <Cell col="9" displaytype="date" style="align:left;" text="bind:dschdd" calendardisplaynulltype="none"/>
  95. <Cell col="10" text="bind:cretno"/>
  96. <Cell col="11" text="bind:instcd"/>
  97. <Cell col="12" text="bind:ordtype"/>
  98. <Cell col="13" text="bind:orddeptcd"/>
  99. <Cell col="14" text="bind:hd"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Shape position="absolute 0 86 491 92" linetype="horizontal" id="line1" class="line_10"/>
  105. <Div position="absolute 495 32 1200 764" id="ivw_loader" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" anchor="all"/>
  106. <Button position="absolute 1155 4 1199 23" id="btn_save" class="btn5" text="저장" onclick="btn_signsave_onclick" anchor="top right"/>
  107. <Button position="absolute 1087 4 1151 23" id="button2" class="btn2" text="기록삭제" onclick="button2_onclick" anchor="top right"/>
  108. <Shape position="absolute 495 24 1200 30" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  109. <Static text="기록작성" position="absolute 495 8 606 24" id="caption7" class="tit_2"/>
  110. <Static text="COVID19 증례조사표" position="absolute 0 0 163 20" id="cpt_title" class="tit_1"/>
  111. <Edit id="opt_patinfo" taborder="1" readonly="true" class="edt_transbg" position="absolute 569 6 829 24" anchor="left top" style="font:Dotum,9,bold;"/>
  112. <Button id="btn_allrec" taborder="2" text="기록일괄조회" position="absolute 390 -2 490 20" class="btn1" onclick="btn_allrec_onclick"/>
  113. </Layout>
  114. </Layouts>
  115. <Objects>
  116. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  119. <Column id="orddeptcd" type="STRING" size="256" sumtext="병동리스트조회옵션"/>
  120. <Column id="fromdd" type="STRING" size="256"/>
  121. <Column id="todd" type="STRING" size="256"/>
  122. <Column id="daykind" type="STRING" size="256"/>
  123. <Column id="formcd" type="STRING" size="256"/>
  124. <Column id="patgbn" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. <Rows>
  127. <Row/>
  128. </Rows>
  129. </Dataset>
  130. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  133. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  139. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  140. </ColumnInfo>
  141. </Dataset>
  142. <Dataset id="ds_init_settingrn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="settingrnid" type="STRING" size="256" sumtext="세팅간호사ID"/>
  145. <Column id="settingrnnm" type="STRING" size="256" sumtext="세팅간호사명"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="roomcd" type="STRING" size="256" sumtext="병실번호"/>
  151. <Column id="bedcd" type="STRING" size="256" sumtext="병상번호"/>
  152. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  153. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  154. <Column id="sa" type="STRING" size="256" sumtext="성별나이"/>
  155. <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
  156. <Column id="hd" type="STRING" size="256" sumtext="재원일"/>
  157. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  158. <Column id="dschdd" type="STRING" size="256" sumtext="퇴실일"/>
  159. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  160. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  161. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  162. <Column id="formrecseq" type="STRING" size="256" sumtext="기록정보"/>
  163. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  164. <Column id="recyn" type="STRING" size="256"/>
  165. <Column id="cnfmyn" type="STRING" size="256"/>
  166. </ColumnInfo>
  167. </Dataset>
  168. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="wardcd" type="STRING" size="256"/>
  171. <Column id="fromdd" type="STRING" size="256"/>
  172. <Column id="todd" type="STRING" size="256"/>
  173. <Column id="indschacptstat" type="STRING" size="256"/>
  174. <Column id="recflag" type="STRING" size="256"/>
  175. <Column id="daykind" type="STRING" size="256"/>
  176. <Column id="orddeptcd" type="STRING" size="256"/>
  177. <Column id="patgbn" type="STRING" size="256"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row/>
  181. </Rows>
  182. </Dataset>
  183. <Dataset id="ds_cond_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  184. <ColumnInfo>
  185. <Column id="formcd" type="STRING" size="256"/>
  186. <Column id="formkind" type="STRING" size="256"/>
  187. <Column id="pid" type="STRING" size="256"/>
  188. <Column id="orddd" type="STRING" size="256"/>
  189. <Column id="cretno" type="STRING" size="256"/>
  190. <Column id="btnvisible" type="STRING" size="256"/>
  191. <Column id="btnenable" type="STRING" size="256"/>
  192. <Column id="unpreprec" type="STRING" size="256"/>
  193. <Column id="modalyn" type="STRING" size="256"/>
  194. <Column id="orddeptcd" type="STRING" size="256"/>
  195. <Column id="ioflag" type="STRING" size="256"/>
  196. <Column id="topyn" type="STRING" size="256"/>
  197. <Column id="formrecddenable" type="STRING" size="256"/>
  198. <Column id="formrecdd" type="STRING" size="256"/>
  199. <Column id="wardcd" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="formkind"/>
  204. <Col id="formcd"/>
  205. <Col id="pid"/>
  206. <Col id="orddd"/>
  207. <Col id="cretno"/>
  208. <Col id="btnvisible"/>
  209. <Col id="orddeptcd"/>
  210. <Col id="modalyn"/>
  211. <Col id="unpreprec"/>
  212. <Col id="btnenable"/>
  213. <Col id="ioflag"/>
  214. <Col id="topyn"/>
  215. <Col id="formrecdd"/>
  216. <Col id="formrecddenable"/>
  217. </Row>
  218. </Rows>
  219. </Dataset>
  220. <Dataset id="ds_init_dd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="daykind" type="STRING" size="256" sumtext="일자구분"/>
  223. <Column id="daynm" type="STRING" size="256" sumtext="일자명"/>
  224. </ColumnInfo>
  225. <Rows>
  226. <Row>
  227. <Col id="daykind">A</Col>
  228. <Col id="daynm">입원일</Col>
  229. </Row>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="deptcd" type="STRING" size="256"/>
  235. <Column id="depthngnm" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. </Dataset>
  238. <Dataset id="ds_orddept2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="deptcd" type="STRING" size="256"/>
  241. <Column id="depthngnm" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. </Objects>
  245. <Bind>
  246. <BindItem id="item0" compid="grp_sea.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  247. <BindItem id="item1" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  248. <BindItem id="item4" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  249. <BindItem id="item2" compid="grp_sea.cmb_dd" propid="value" datasetid="ds_main_cond" columnid="daykind"/>
  250. <BindItem id="item3" compid="grp_sea.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  251. <BindItem id="item5" compid="grp_sea.Combo00" propid="value" datasetid="ds_main_cond" columnid="patgbn"/>
  252. </Bind>
  253. <InitValue/>
  254. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  255. * System Name : 경대 의료정보시스템
  256. * Job Name : emr_wardcarexp -> SPMRI10010
  257. * Creator : yjh
  258. * Make Date : 2017-02-14
  259. * Description :
  260. *---------------------------------------------------------------------------------------
  261. * Modify Date Modifier Modify Description
  262. *---------------------------------------------------------------------------------------
  263. * 2017-02-14 yjh TF->XP
  264. *
  265. *---------------------------------------------------------------------------------------
  266. ****************************************************************************************/
  267. //=======================================================================================
  268. // Lib Include
  269. //---------------------------------------------------------------------------------------
  270. include "com_commonxp::comm_main.xjs";
  271. include "emr_medirecxp::MMR01100.xjs";
  272. include "emr_prcpmngtxp::MMO001.xjs";
  273. //=======================================================================================
  274. // Global Form Variable
  275. //---------------------------------------------------------------------------------------
  276. function fSearch() {
  277. var wardcd = ds_main_cond.getColumn(0, "wardcd");
  278. var orddeptcd = ds_main_cond.getColumn(0, "orddeptcd");
  279. var daykind = ds_main_cond.getColumn(0, "daykind");
  280. var patgbn = ds_main_cond.getColumn(0, "patgbn");
  281. // if ( daykind != "C" && wardcd == "-" && orddeptcd == "-" ) {
  282. // sysf_messageBox("병동 또는 진료과는 선택되어야 합니다","I");
  283. // return;
  284. // }
  285. ds_send.setColumn(0, "wardcd", wardcd);
  286. ds_send.setColumn(0, "orddeptcd", orddeptcd);
  287. ds_send.setColumn(0, "daykind", daykind);
  288. ds_send.setColumn(0, "patgbn", patgbn);
  289. ds_send.setColumn(0, "fromdd", ds_main_cond.getColumn(0, "fromdd"));
  290. ds_send.setColumn(0, "todd", ds_main_cond.getColumn(0, "todd"));
  291. ds_send.setColumn(0, "formcd", "2000025864"); // KCRF 서식( 코로나19 증례서식)
  292. var oParam = {};
  293. oParam.id = "reqGetKCRFList_1";
  294. oParam.service = "recmngtapp.IntegrityRec";
  295. oParam.method = "reqGetKCRFList";
  296. oParam.inds = "req=ds_send";
  297. oParam.outds = "ds_main_list=list";
  298. oParam.async = false;
  299. //oParam.callback = "cf_TRMNW30001";
  300. tranf_submit(oParam);
  301. // ds_main_wardpatinfo_wardpatlist.rowposition = -1;
  302. //
  303. // if( utlf_isNull(nFlag) ){
  304. // ivw_loader.ivw_base.url = "";
  305. // lf_SetPatInfo(-1);
  306. // }
  307. }
  308. function fRecordsearch() {
  309. // 16.12.07_프로그램 내에서 환자 기본정보에 대한 Parameter을 넘기더라도 우선적으로 상단정보를 가져가는 것을 막기위함.
  310. var nRow = ds_main_list.rowposition;
  311. var instcd = ds_main_list.getColumn(nRow, "instcd");
  312. var pid = ds_main_list.getColumn(nRow, "pid");
  313. var indd = ds_main_list.getColumn(nRow, "indd");
  314. var cretno = ds_main_list.getColumn(nRow, "cretno");
  315. var orddeptcd = ds_main_list.getColumn(nRow, "orddeptcd");
  316. var ordtype = ds_main_list.getColumn(nRow, "ordtype");
  317. var wardcd = ds_main_list.getColumn(nRow, "wardcd");
  318. var recyn = ds_main_list.getColumn(nRow, "recyn");
  319. var formrecseq = ds_main_list.getColumn(nRow, "formrecseq");
  320. var formcd = "2000025864";
  321. if( utlf_isNull(pid) || utlf_isNull(indd) || utlf_isNull(cretno) ){
  322. sysf_messageBox("환자가 선택되지 " , "E007");
  323. return;
  324. }
  325. ivw_loader.ivw_base.url = "";
  326. var objArg = new Object();
  327. var vFormKind = "new";
  328. if(recyn == "Y"){
  329. vFormKind = "rec";
  330. formcd = formrecseq;
  331. searchdd = "";
  332. }
  333. ds_cond_formdata.clearData();
  334. ds_cond_formdata.addRow();
  335. ds_cond_formdata.setColumn(0, "formcd", formcd); // 서식목록 - linkcd, 기록목록 - formrecseq 컬럼값.
  336. ds_cond_formdata.setColumn(0, "formkind", vFormKind); // 서식목록 탭 - new , 기록목록 - rec
  337. ds_cond_formdata.setColumn(0, "btnvisible", false);
  338. ds_cond_formdata.setColumn(0, "pid", pid);
  339. ds_cond_formdata.setColumn(0, "orddd", indd);
  340. ds_cond_formdata.setColumn(0, "cretno", cretno);
  341. ds_cond_formdata.setColumn(0, "orddeptcd", orddeptcd);
  342. ds_cond_formdata.setColumn(0, "ioflag", ordtype); //인증서 관련 처리 필요
  343. ds_cond_formdata.setColumn(0, "topyn", "N");
  344. ds_cond_formdata.setColumn(0, "formrecddenable", "N");
  345. ds_cond_formdata.setColumn(0, "wardcd", wardcd);
  346. objArg.ds_cond_formdata = ds_cond_formdata;
  347. lf_loadSMMMR01100(false, objArg);
  348. lf_SetPatInfo(nRow);
  349. }
  350. //=======================================================================================
  351. // Event
  352. //---------------------------------------------------------------------------------------
  353. /****************************************************************************************
  354. * Components : Form
  355. * Components ID : SPMRI10010
  356. * Event : oninit
  357. * Argument : 01.obj : Object Event has occurred
  358. * : 02.e : Event Object
  359. * Description : 화면 처음 초기화시
  360. ****************************************************************************************/
  361. function SPMRI10010_oninit(obj:Form, e:InitEventInfo)
  362. {
  363. frmf_initForm(obj); //폼 초기화
  364. grdf_initGrid(grd_wardpatlist);
  365. }
  366. /****************************************************************************************
  367. * Components : Form
  368. * Components ID : SPMRI10010
  369. * Event : onload
  370. * Argument : 01.obj : Object Event has occurred
  371. * : 02.e : Event Object
  372. * Description : 화면 로딩 완료시
  373. ****************************************************************************************/
  374. function SPMRI10010_onload(obj:Form, e:LoadEventInfo)
  375. {
  376. lf_mmbfGetDeptCodeComboList(ds_orddept, "D", utlf_getCurrentDate()); //부서코드 콤보
  377. lf_mmbfGetDeptCodeComboList(ds_orddept2, "W", utlf_getCurrentDate()); //병동코드 콤보
  378. frmf_addComboItem("grp_sea.cmb_orddept"); //부서콤보 Item '전체'추가
  379. frmf_addComboItem("grp_sea.cmb_wardcd"); //병동콤보 전체항목 추가
  380. ds_main_cond.setColumn(0,"orddeptcd","-");
  381. ds_main_cond.setColumn(0,"wardcd","-");
  382. ds_main_cond.setColumn(0,"daykind","A"); //입원일
  383. ds_main_cond.setColumn(0,"patgbn","A"); // 전체
  384. ds_main_cond.setColumn(0,"fromdd",utlf_getCurrentDate());
  385. ds_main_cond.setColumn(0,"todd",utlf_getCurrentDate());
  386. //fSearch();
  387. }
  388. /****************************************************************************************
  389. * Components : Button
  390. * Components ID : button1
  391. * Event : onclick
  392. * Argument : 01.obj : Object Event has occurred
  393. * : 02.e : Event Object
  394. * Description : 조회버튼 클릭시
  395. ****************************************************************************************/
  396. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  397. {
  398. fSearch();
  399. }
  400. /****************************************************************************************
  401. * Components : Combo
  402. * Components ID : cmb_wardcd
  403. * Event : onitemchanged
  404. * Argument : 01.obj : Object Event has occurred
  405. * : 02.e : Event Object
  406. * Description : 콤보 값 변경시
  407. ****************************************************************************************/
  408. function grp_sea_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  409. {
  410. fSearch();
  411. }
  412. /****************************************************************************************
  413. * Components : Calendar
  414. * Components ID : ipt_orddd
  415. * Event : onchanged
  416. * Argument : 01.obj : Object Event has occurred
  417. * : 02.e : Event Object
  418. * Description : 달력 값 변경시
  419. ****************************************************************************************/
  420. function grp_sea_ipt_orddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  421. {
  422. fSearch();
  423. }
  424. /****************************************************************************************
  425. * Components : Grid
  426. * Components ID : grd_wardpatlist
  427. * Event : oncelldblclick
  428. * Argument : 01.obj : Object Event has occurred
  429. * : 02.e : Event Object
  430. * Description : 그리드 셀 더블클릭시
  431. ****************************************************************************************/
  432. function grd_wardpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  433. {
  434. fRecordsearch();
  435. }
  436. /****************************************************************************************
  437. * Components : Button
  438. * Components ID : btn_signsave
  439. * Event : onclick
  440. * Argument : 01.obj : Object Event has occurred
  441. * : 02.e : Event Object
  442. * Description : 인증저장버튼 클릭시
  443. ****************************************************************************************/
  444. function btn_signsave_onclick(obj:Button, e:ClickEventInfo)
  445. {
  446. var grd_row = grd_wardpatlist.currentrow;
  447. if (grd_row >= 0) {
  448. if( utlf_isNull(ivw_loader.ivw_base.url) ){
  449. sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
  450. return;
  451. }
  452. if( ivw_loader.fClickSave("N") ) {
  453. fSearch(true);
  454. ds_main_list.selectRow(grd_row);
  455. ds_main_list.rowposition = grd_row;
  456. fRecordsearch();
  457. }
  458. } else {
  459. sysf_messageBox("환자를 선택하지" , "E007");
  460. return;
  461. }
  462. }
  463. /****************************************************************************************
  464. * Components : Button
  465. * Components ID : button2
  466. * Event : onclick
  467. * Argument : 01.obj : Object Event has occurred
  468. * : 02.e : Event Object
  469. * Description : 기록삭제버튼 클릭시
  470. ****************************************************************************************/
  471. function button2_onclick(obj:Button, e:ClickEventInfo)
  472. {
  473. if( utlf_isNull(ivw_loader.ivw_base.url) ){
  474. sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
  475. return;
  476. }
  477. ivw_loader.grup_btn.btn_del.click();
  478. fSearch();
  479. }
  480. /****************************************************************************************
  481. * Argument : 01.nRow : Grid rowposition
  482. * Description : 선택한 기록에 대한 환자정보
  483. ****************************************************************************************/
  484. function lf_SetPatInfo(nRow){
  485. if( !utlf_isNull(nRow) ){
  486. if( nRow == -1 ){
  487. opt_patinfo.value = "";
  488. return;
  489. }
  490. var grdDs = this.objects["ds_main_list"];
  491. var nPid = grdDs.getColumn(nRow, "pid");
  492. var nPatnm = grdDs.getColumn(nRow, "hngnm");
  493. var nSa = grdDs.getColumn(nRow, "sa");
  494. var nRoomcd = grdDs.getColumn(nRow, "roomcd");
  495. opt_patinfo.value = "- " + nPid + " " + nPatnm + "(" + nSa + ") " + nRoomcd;
  496. }
  497. }
  498. function button00_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. frmf_open("SMMNW21000","SMMNW21000","","","","","","","","","","","M");
  501. }
  502. function grp_sea_cmb_dd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  503. {
  504. }
  505. function btn_allrec_onclick(obj:Button, e:ClickEventInfo)
  506. {
  507. frmf_open("SPMRI10011", "SPMRI10011", null, null, null, null, null, null, null, null, null, null, "M");
  508. }
  509. ]]></Script>
  510. </Form>
  511. </FDL>