SPMNW17300_입원업무 체크리스트 조회기준 팝업.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNW17300" position="absolute 0 0 330 400" titletext="입원업무 체크리스트 조회기준" oninit="SPMNW17300_oninit" onload="SPMNW17300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 210 370 266 392" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick"/>
  8. <Static text="입원업무 체크리스트 조회기준" position="absolute 0 0 211 15" id="caption21" class="tit_2"/>
  9. <Grid position="absolute 0 45 325 360" id="grd_inchklist" binddataset="ds_main_inchkinfo_inchklist" cellsizingtype="col" scrollpixel="all" cellsizebandtype="allband">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="20" band="left"/>
  14. <Column size="220"/>
  15. <Column size="60"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1" text="체크 항목"/>
  26. <Cell col="2" text="체크여부"/>
  27. <Cell col="3" text="체크항목코드"/>
  28. <Cell col="4" text="chkward"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell celltype="head" expr="expr:currow + 1"/>
  32. <Cell col="1" style="align:left;" text="bind:chknm"/>
  33. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
  34. <Cell col="3" text="bind:chkcd"/>
  35. <Cell col="4" text="bind:chkward"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. <Button position="absolute 270 370 326 392" id="button1" class="btn4" text="닫기" onclick="button1_onclick"/>
  41. <Shape position="absolute 0 40 325 46" linetype="horizontal" id="line4" class="line_10"/>
  42. <Shape position="absolute 0 15 325 21" linetype="horizontal" id="line1" class="line_10"/>
  43. <Static text="병 동" position="absolute 0 20 85 39" align="align:center middle;" id="caption7" class="cell_1"/>
  44. <Edit readonly="true" position="absolute 90 20 325 39" id="output1"/>
  45. </Layout>
  46. </Layouts>
  47. <Objects>
  48. <Dataset id="ds_main_inchkinfo_inchklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  49. <ColumnInfo>
  50. <Column id="chknm" type="STRING"/>
  51. <Column id="chkyn" type="STRING"/>
  52. <Column id="chkcd" type="STRING"/>
  53. <Column id="chkward" type="STRING"/>
  54. </ColumnInfo>
  55. </Dataset>
  56. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="instcd" type="STRING" size="256"/>
  59. <Column id="wardcd" type="STRING" size="256"/>
  60. <Column id="wardnm" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. </Dataset>
  63. <Dataset id="ds_send_save_inchklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="chknm" type="STRING"/>
  66. <Column id="chkyn" type="STRING"/>
  67. <Column id="chkcd" type="STRING"/>
  68. <Column id="chkward" type="STRING"/>
  69. </ColumnInfo>
  70. </Dataset>
  71. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  72. <ColumnInfo>
  73. <Column id="instcd" type="STRING" size="256"/>
  74. <Column id="wardcd" type="STRING" size="256"/>
  75. <Column id="wardnm" type="STRING" size="256"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row/>
  79. </Rows>
  80. </Dataset>
  81. </Objects>
  82. <Bind>
  83. <BindItem id="item0" compid="output1" propid="value" datasetid="ds_main_cond" columnid="wardnm"/>
  84. </Bind>
  85. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  86. * System Name : 경대 의료정보시스템
  87. * Job Name : emr_wardcarexp -> SPMNW17300
  88. * Creator : yjh
  89. * Make Date : 2017-01-10
  90. * Description :
  91. *---------------------------------------------------------------------------------------
  92. * Modify Date Modifier Modify Description
  93. *---------------------------------------------------------------------------------------
  94. * 2017-01-10 yjh TF->XP
  95. *
  96. *---------------------------------------------------------------------------------------
  97. ****************************************************************************************/
  98. //=======================================================================================
  99. // Lib Include
  100. //---------------------------------------------------------------------------------------
  101. include "com_commonxp::comm_main.xjs";
  102. //=======================================================================================
  103. // Global Form Variable
  104. //---------------------------------------------------------------------------------------
  105. //=======================================================================================
  106. // Function
  107. //---------------------------------------------------------------------------------------
  108. function fSearch() {
  109. ds_send_req.copyData(ds_main_cond);
  110. var oParam = {};
  111. oParam.id = "TRMNW17300";
  112. oParam.service = "wardcareapp.WardCareMngt";
  113. oParam.method = "reqGetInChkList";
  114. oParam.inds = "req=ds_send_req";
  115. oParam.outds = "ds_main_inchkinfo_inchklist=inchklist";
  116. oParam.async = false;
  117. //oParam.callback = "cf_TRMNW17300";
  118. tranf_submit(oParam);
  119. ds_main_inchkinfo_inchklist.rowposition = -1;
  120. ds_main_inchkinfo_inchklist.enableevent = false;
  121. ds_main_inchkinfo_inchklist.updatecontrol = false;
  122. for( var i=0 ; i<ds_main_inchkinfo_inchklist.rowcount ; i++ ){
  123. if( ds_main_inchkinfo_inchklist.getColumn(i, "chkyn") == "Y" ){
  124. ds_main_inchkinfo_inchklist.setColumn(i, "chkyn", "1");
  125. }else{
  126. ds_main_inchkinfo_inchklist.setColumn(i, "chkyn", "0");
  127. }
  128. }
  129. ds_main_inchkinfo_inchklist.updatecontrol = true;
  130. ds_main_inchkinfo_inchklist.enableevent = true;
  131. }
  132. function fSave() {
  133. ds_main_inchkinfo_inchklist.enableevent = false;
  134. ds_main_inchkinfo_inchklist.updatecontrol = false;
  135. for (var i = 0 ; i < grd_inchklist.rowcount; i++) {
  136. ds_main_inchkinfo_inchklist.setColumn(i, "chkward", ds_main_inchkinfo_inchklist.getColumn(i, "chkcd")+ds_main_cond.getColumn(0, "wardcd"));
  137. }
  138. ds_main_inchkinfo_inchklist.updatecontrol = true;
  139. ds_main_inchkinfo_inchklist.enableevent = true;
  140. var data = grdf_getGridUpdateData(grd_inchklist, "all") ;
  141. if(utlf_isNull(data) || data.rowcount == 0) {
  142. sysf_messageBox("저장 할 내용이", "I004");
  143. return;
  144. }
  145. ds_send_save_inchklist.copyData(data);
  146. for( var i=0 ; i<ds_send_save_inchklist.rowcount ; i++ ){
  147. if( ds_send_save_inchklist.getColumn(i, "chkyn") == "1" ){
  148. ds_send_save_inchklist.setColumn(i, "chkyn", "Y");
  149. }else{
  150. ds_send_save_inchklist.setColumn(i, "chkyn", "N");
  151. }
  152. }
  153. var oParam = {};
  154. oParam.id = "TXMNW17300";
  155. oParam.service = "wardcareapp.WardCareMngt";
  156. oParam.method = "reqSetInChkInfo";
  157. oParam.inds = "inchklist=ds_send_save_inchklist";
  158. oParam.outds = "";
  159. oParam.async = false;
  160. //oParam.callback = "cf_TXMNW17300";
  161. tranf_submit(oParam);
  162. fSearch();
  163. }
  164. //=======================================================================================
  165. // Event
  166. //---------------------------------------------------------------------------------------
  167. /****************************************************************************************
  168. * Components : Form
  169. * Components ID : SPMNW17300
  170. * Event : oninit
  171. * Argument : 01.obj : Object Event has occurred
  172. * : 02.e : Event Object
  173. * Description : 화면 처음 초기화시
  174. ****************************************************************************************/
  175. function SPMNW17300_oninit(obj:Form, e:InitEventInfo)
  176. {
  177. frmf_initForm(obj); //폼 초기화
  178. }
  179. /****************************************************************************************
  180. * Components : Form
  181. * Components ID : SPMNW17300
  182. * Event : onload
  183. * Argument : 01.obj : Object Event has occurred
  184. * : 02.e : Event Object
  185. * Description : 화면 로딩 완료시
  186. ****************************************************************************************/
  187. function SPMNW17300_onload(obj:Form, e:LoadEventInfo)
  188. {
  189. if(frmf_checkOpener() ) {
  190. var instcd = sysf_getUserInfo("dutplceinstcd");
  191. var wardcd = opener.frmf_getParameter("PARAM1");
  192. var wardnm = opener.frmf_getParameter("PARAM2");
  193. ds_main_cond.setColumn(0, "instcd",instcd);
  194. ds_main_cond.setColumn(0, "wardcd",wardcd);
  195. ds_main_cond.setColumn(0, "wardnm",wardnm);
  196. }
  197. fSearch();
  198. }
  199. /****************************************************************************************
  200. * Components : Button
  201. * Components ID : btn_save
  202. * Event : onclick
  203. * Argument : 01.obj : Object Event has occurred
  204. * : 02.e : Event Object
  205. * Description : 저장버튼 클릭시
  206. ****************************************************************************************/
  207. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  208. {
  209. fSave();
  210. }
  211. /****************************************************************************************
  212. * Components : Button
  213. * Components ID : button1
  214. * Event : onclick
  215. * Argument : 01.obj : Object Event has occurred
  216. * : 02.e : Event Object
  217. * Description : 닫기버튼 클릭시
  218. ****************************************************************************************/
  219. function button1_onclick(obj:Button, e:ClickEventInfo)
  220. {
  221. this.close();
  222. }
  223. ]]></Script>
  224. </Form>
  225. </FDL>