SMMNP00204_수술 전처치 및 간호상태 확인 도움말 기준자료관리.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP00204" position="absolute 0 0 1100 788" titletext="환자 수술전 처치 및 간호상태 확인 도움말 기준자료" oninit="SMMNP00204_oninit" onload="SMMNP00204_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cpt_title" text="환자 수술/시술 전 처치 및 간호상태 확인 도움말 기준자료" class="tit_1" position="absolute 0 0 395 25"/>
  8. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1095 65">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption1" text="코드 :" class="search_name" position="absolute 15 11 80 28"/>
  12. <Edit id="input1" taborder="12" autoselect="true" position="absolute 80 10 195 29"/>
  13. <Button id="btn_ref" taborder="13" text="조회" class="btn1" position="absolute 1010 10 1066 32" anchor="top right" onclick="grp_sea_btn_ref_onclick"/>
  14. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 997 9 1003 35" anchor="top right"/>
  15. <Static id="caption3" text="수술상태 확인 내역 :" class="search_name" position="absolute 260 12 408 29"/>
  16. <Edit id="input2" taborder="14" autoselect="true" position="absolute 414 11 734 30"/>
  17. <CheckBox id="checkbox1" taborder="15" text="삭제포함" truevalue="Y" position="absolute 750 13 835 28" onclick="grp_sea_checkbox1_onclick"/>
  18. <Combo id="Combo00" taborder="16" text="수술" position="absolute 863 10 976 32" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="OP" onitemchanged="grp_sea_Combo00_onitemchanged">
  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">OP</Col>
  27. <Col id="datacolumn">수술</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">PR</Col>
  31. <Col id="datacolumn">시술</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Button id="btn_save" taborder="2" text="저장" class="btn5" position="absolute 1052 76 1094 95" anchor="top right" onclick="btn_save_onclick"/>
  40. <Button id="button6" taborder="3" text="행삭제" class="btn2" position="absolute 997 76 1050 95" anchor="top right" onclick="button6_onclick"/>
  41. <Button id="button7" taborder="4" text="행추가" class="btn2" position="absolute 942 76 995 95" anchor="top right" onclick="button7_onclick"/>
  42. <Static id="caption10" text="환자 수술/시술 전 처치 및 간호상태 확인 도움말 리스트" class="tit_2" position="absolute 0 79 410 93"/>
  43. <Grid id="grd_opchklist" taborder="5" binddataset="ds_main_opchkinfo_opchklist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="none" position="absolute -1 109 1086 773" anchor="all" extendsizetype="row" autosizingtype="row" selecttype="row">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="18"/>
  48. <Column size="0"/>
  49. <Column size="50"/>
  50. <Column size="30"/>
  51. <Column size="115"/>
  52. <Column size="225"/>
  53. <Column size="225"/>
  54. <Column size="225"/>
  55. <Column size="90"/>
  56. <Column size="90"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell/>
  64. <Cell col="1"/>
  65. <Cell col="2" text="코드ID"/>
  66. <Cell col="3" text="정렬"/>
  67. <Cell col="4" text="수술상태 확인 내역"/>
  68. <Cell col="5" text="예"/>
  69. <Cell col="6" text="아니요"/>
  70. <Cell col="7" text="해당무"/>
  71. <Cell col="8" text="시작일자"/>
  72. <Cell col="9" text="종료일자"/>
  73. </Band>
  74. <Band id="body">
  75. <Cell celltype="head"/>
  76. <Cell col="1" displaytype="text" edittype="text" text="bind:seqno"/>
  77. <Cell col="2" displaytype="text" edittype="text" text="bind:cdid"/>
  78. <Cell col="3" displaytype="text" edittype="text" text="bind:sortseq"/>
  79. <Cell col="4" displaytype="text" edittype="text" text="bind:opreadychk"/>
  80. <Cell col="5" displaytype="text" edittype="textarea" text="bind:readyyes"/>
  81. <Cell col="6" displaytype="text" edittype="textarea" text="bind:readyno"/>
  82. <Cell col="7" displaytype="text" edittype="textarea" text="bind:readynothing" editacceptsenter="true" autosizerow="limitmin"/>
  83. <Cell col="8" displaytype="date" edittype="date" text="bind:valifromdd" calendardisplaynulltype="nulltext"/>
  84. <Cell col="9" displaytype="date" edittype="date" text="bind:valitodd" calendardisplaynulltype="nulltext"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Shape id="line4" class="line_10" position="absolute 0 95 1095 101" anchor="left top right"/>
  90. </Layout>
  91. </Layouts>
  92. <Objects>
  93. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="instcd" type="STRING" size="256"/>
  96. <Column id="cdid" type="STRING" size="256"/>
  97. <Column id="opreadychk" type="STRING" size="256"/>
  98. <Column id="delyn" type="STRING" size="256"/>
  99. <Column id="cdtype" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="instcd"/>
  104. <Col id="cdid"/>
  105. <Col id="opreadychk"/>
  106. <Col id="delyn"/>
  107. </Row>
  108. </Rows>
  109. </Dataset>
  110. <Dataset id="ds_main_opchkinfo_opchklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="seqno" type="STRING" size="256" sumtext="이력일련번호"/>
  113. <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
  114. <Column id="sortseq" type="STRING" size="256" sumtext="정렬순서"/>
  115. <Column id="opreadychk" type="STRING" size="256" sumtext="수술상태확인내역"/>
  116. <Column id="readyyes" type="STRING" size="256" sumtext="수술준비체크(YES)"/>
  117. <Column id="readyno" type="STRING" size="256" sumtext="수술준비체크(NO)"/>
  118. <Column id="readynothing" type="STRING" size="256" sumtext="수술준비체크(해당무)"/>
  119. <Column id="valifromdd" type="STRING" size="256" sumtext="시작일시"/>
  120. <Column id="valitodd" type="STRING" size="256" sumtext="종료일시"/>
  121. <Column id="cdtype" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. </Dataset>
  124. </Objects>
  125. <Bind>
  126. <BindItem id="item0" compid="grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="cdid"/>
  127. <BindItem id="item1" compid="grp_sea.input2" propid="value" datasetid="ds_main_cond" columnid="opreadychk"/>
  128. <BindItem id="item2" compid="grp_sea.checkbox1" propid="value" datasetid="ds_main_cond" columnid="delyn"/>
  129. <BindItem id="item3" compid="grp_sea.Combo00" propid="value" datasetid="ds_main_cond" columnid="cdtype"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2016-10-12
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2016-10-12 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. include "com_commonxp::comm_main.xjs";
  145. function SMMNP00204_oninit(obj:Form, e:InitEventInfo)
  146. {
  147. frmf_initForm(obj);
  148. }
  149. function SMMNP00204_onload(obj:Form, e:LoadEventInfo)
  150. {
  151. grdf_initGrid(grd_opchklist);
  152. grdf_setRowTypeIcon(grd_opchklist, 0);
  153. var instcd = sysf_getUserInfo("dutplceinstcd");
  154. ds_main_cond.setColumn(0, "instcd",instcd);
  155. ds_main_cond.setColumn(0, "cdtype", "OP");
  156. fSearch();
  157. }
  158. function fSearch()
  159. {
  160. if(String(ds_main_cond.getColumn(0, "opreadychk")).length > 0 )
  161. {
  162. if(String(ds_main_cond.getColumn(0, "opreadychk")).length < 2 )
  163. {
  164. sysf_messageBox("검색어는 2자 이상","C001");
  165. return;
  166. }
  167. }
  168. var oParam = {};
  169. oParam.id = "TRMNP00229";
  170. oParam.service = "opanstapp.OpAnstRec";
  171. oParam.method = "reqGetOpChkList";
  172. oParam.inds = "req=ds_main_cond";
  173. oParam.outds = "ds_main_opchkinfo_opchklist=opchklist";
  174. oParam.async = false;
  175. //oParam.callback = "cf_TRMNP00229";
  176. tranf_submit(oParam);
  177. }
  178. function grp_sea_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  179. {
  180. if(obj.value == "Y")
  181. {
  182. }
  183. else
  184. {
  185. ds_main_cond.setColumn(0, "delyn", "");
  186. }
  187. }
  188. function grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. fSearch();
  191. }
  192. function button7_onclick(obj:Button, e:ClickEventInfo)
  193. {
  194. var dt = utlf_getCurrentDate();
  195. trace("ds_main_opchkinfo_opchklist.rowcount : " + ds_main_opchkinfo_opchklist.rowcount);
  196. if (ds_main_opchkinfo_opchklist.rowcount > 0)
  197. {
  198. trace("insert");
  199. ds_main_opchkinfo_opchklist.insertRow(0);
  200. }
  201. else if (ds_main_opchkinfo_opchklist.rowcount == 0)
  202. {
  203. trace("add");
  204. ds_main_opchkinfo_opchklist.addRow();
  205. }
  206. ds_main_opchkinfo_opchklist.setColumn(ds_main_opchkinfo_opchklist.rowposition, "valifromdd", dt);
  207. ds_main_opchkinfo_opchklist.setColumn(ds_main_opchkinfo_opchklist.rowposition, "valitodd", "99991231");
  208. }
  209. function button6_onclick(obj:Button, e:ClickEventInfo)
  210. {
  211. if (!utlf_isNull(ds_main_opchkinfo_opchklist.getColumn(ds_main_opchkinfo_opchklist.rowposition, "sortseq")))
  212. {
  213. ds_main_opchkinfo_opchklist.updatecontrol = false;
  214. ds_main_opchkinfo_opchklist.setRowType(ds_main_opchkinfo_opchklist.rowposition, "d");
  215. ds_main_opchkinfo_opchklist.updatecontrol = true;
  216. }
  217. else
  218. {
  219. ds_main_opchkinfo_opchklist.deleteRow(ds_main_opchkinfo_opchklist.rowposition);
  220. }
  221. }
  222. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  223. {
  224. var cdidcnt= 0;
  225. var cdid;
  226. for(var i = 0; i < ds_main_opchkinfo_opchklist.rowcount; i++)
  227. {
  228. // 20190403 김현석, 도움말을 수술/시술로 구분을 함.
  229. ds_main_opchkinfo_opchklist.setColumn(i, "cdtype", ds_main_cond.getColumn(0, "cdtype") );
  230. if(ds_main_opchkinfo_opchklist.getRowType(i) == 2 || ds_main_opchkinfo_opchklist.getRowType(i) == 4)
  231. {
  232. cdid = ds_main_opchkinfo_opchklist.getColumn(i, "cdid");
  233. valifromdd = ds_main_opchkinfo_opchklist.getColumn(i, "valifromdd");
  234. if(utlf_isNull(cdid))
  235. {
  236. cdidcnt++;
  237. }
  238. }
  239. }
  240. if(cdidcnt > 0)
  241. {
  242. sysf_messageBox("코드ID는 필수 입력사항입니다.", "E");
  243. return;
  244. }
  245. else
  246. {
  247. var data = grdf_getGridUpdateData(grd_opchklist).rowcount;
  248. if(data == 0)
  249. {
  250. sysf_messageBox("저장 할 내역이", "I004");
  251. return;
  252. }
  253. var oParam = {};
  254. oParam.id = "TXMNP00209";
  255. oParam.service = "opanstapp.OpAnstRec";
  256. oParam.method = "reqSetOpChkList";
  257. oParam.inds = "opchklist=ds_main_opchkinfo_opchklist:u";
  258. oParam.outds = "";
  259. oParam.async = false;
  260. //oParam.callback = "cf_TXMNP00209";
  261. tranf_submit(oParam);
  262. fSearch() ;
  263. }
  264. }
  265. // 20190403 김현석, 도움말을 수술/시술로 구분을 함.
  266. function grp_sea_Combo00_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  267. {
  268. fSearch();
  269. }
  270. ]]></Script>
  271. </Form>
  272. </FDL>