SMMNW30001_간병간호KPCS.xfdl 23 KB

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