SMMNE00102_희망병실등급변경.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE00102" position="absolute 0 0 1066 244" titletext="희망 병실 등급 변경" oninit="SMMNE00102_oninit" onload="SMMNE00102_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 5 13 1064 239" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 9 1050 10" linetype="vertical" id="line12" class="line_1" anchor="default"/>
  11. <Grid position="absolute 0 15 1050 194" id="grd_adrvinfolist" binddataset="ds_main_adrvinfo" anchor="default">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="20"/>
  16. <Column size="69"/>
  17. <Column size="69"/>
  18. <Column size="50"/>
  19. <Column size="75"/>
  20. <Column size="109"/>
  21. <Column size="70"/>
  22. <Column size="70"/>
  23. <Column size="90"/>
  24. <Column size="45"/>
  25. <Column size="75"/>
  26. <Column size="145"/>
  27. <Column size="145"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="환자번호"/>
  36. <Cell col="2" text="이름"/>
  37. <Cell col="3" text="S/A"/>
  38. <Cell col="4" text="내원일"/>
  39. <Cell col="5" text="진료과"/>
  40. <Cell col="6" text="주치의"/>
  41. <Cell col="7" text="담당의"/>
  42. <Cell col="8" text="의사결정"/>
  43. <Cell col="9" text="등급"/>
  44. <Cell col="10" text="입원예정일"/>
  45. <Cell col="11" text="희망병상 종류(from)"/>
  46. <Cell col="12" text="희망병상 종류(to)"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell/>
  50. <Cell col="1" text="bind:pid"/>
  51. <Cell col="2" text="bind:patnm"/>
  52. <Cell col="3" text="bind:sexage"/>
  53. <Cell col="4" displaytype="date" text="bind:indd"/>
  54. <Cell col="5" text="bind:orddeptnm"/>
  55. <Cell col="6" text="bind:drname"/>
  56. <Cell col="7" text="bind:resiname"/>
  57. <Cell col="8" displaytype="combo" edittype="none" text="bind:adflag" combodataset="ds_M0720" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  58. <Cell col="9" text="bind:patgrade"/>
  59. <Cell col="10" displaytype="date" text="bind:inrsrvacptdd"/>
  60. <Cell col="11" displaytype="combo" edittype="combo" text="bind:bedkindfrom" combodataset="ds_M0710" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
  61. <Cell col="12" displaytype="combo" edittype="combo" text="bind:bedkindto" combodataset="ds_M0710" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button position="absolute 963 200 1005 219" id="button1" class="btn5" text="저장" anchor="default" onclick="group5_button1_onclick"/>
  67. <Button position="absolute 1008 200 1050 219" id="button2" class="btn5" text="닫기" anchor="default" onclick="group5_button2_onclick"/>
  68. </Layout>
  69. </Layouts>
  70. </Div>
  71. <Static text="입원 의사결정 정보" position="absolute 5 0 153 24" id="caption6" class="tit_1"/>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_grd_adrvinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="pid" type="STRING"/>
  78. <Column id="patnm" type="STRING"/>
  79. <Column id="sexage" type="STRING"/>
  80. <Column id="indd" type="STRING"/>
  81. <Column id="orddeptnm" type="STRING"/>
  82. <Column id="drname" type="STRING"/>
  83. <Column id="resiname" type="STRING"/>
  84. <Column id="adflag" type="STRING"/>
  85. <Column id="patgrade" type="STRING"/>
  86. <Column id="inrsrvacptdd" type="STRING"/>
  87. <Column id="bedkindfrom" type="STRING"/>
  88. <Column id="bedkindto" type="STRING"/>
  89. </ColumnInfo>
  90. </Dataset>
  91. <Dataset id="ds_M0720" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  92. <Dataset id="ds_M0710" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  93. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="pid" type="STRING" size="256"/>
  96. <Column id="indd" type="STRING" size="256"/>
  97. <Column id="cretno" type="STRING" size="256"/>
  98. <Column id="instcd" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row/>
  102. </Rows>
  103. </Dataset>
  104. <Dataset id="ds_main_adrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="pid" type="STRING" size="256"/>
  107. <Column id="patnm" type="STRING" size="256"/>
  108. <Column id="sexage" type="STRING" size="256"/>
  109. <Column id="orddeptnm" type="STRING" size="256"/>
  110. <Column id="drname" type="STRING" size="256"/>
  111. <Column id="resiname" type="STRING" size="256"/>
  112. <Column id="indd" type="STRING" size="256"/>
  113. <Column id="adflag" type="STRING" size="256"/>
  114. <Column id="patgrade" type="STRING" size="256"/>
  115. <Column id="bedkindfrom" type="STRING" size="256"/>
  116. <Column id="bedkindto" type="STRING" size="256"/>
  117. <Column id="inrsrvacptdd" type="STRING" size="256"/>
  118. <Column id="inrsrvacptseqno" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. </Dataset>
  121. <Dataset id="ds_send_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  122. <Dataset id="Dataset05" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  123. </Objects>
  124. <Bind/>
  125. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  126. * System Name :
  127. * Job Name :
  128. * Creator :
  129. * Make Date : 2015-11-13
  130. * Description :
  131. *---------------------------------------------------------------------------------------
  132. * Modify Date Modifier Modify Description
  133. *---------------------------------------------------------------------------------------
  134. * 2015-11-13 Live Converter TF->XP
  135. *
  136. *---------------------------------------------------------------------------------------
  137. ****************************************************************************************/
  138. include "com_commonxp::comm_main.xjs";
  139. function SMMNE00102_oninit(obj:Form, e:InitEventInfo)
  140. {
  141. frmf_initForm(obj);
  142. }
  143. function SMMNE00102_onload(obj:Form, e:LoadEventInfo)
  144. {
  145. fInitialize();
  146. }
  147. // 초기화 작업을 합니다.
  148. function fInitialize(){
  149. appf_getCodeList([ {dsNm: "ds_M0720", cdGrpId: "M0720"}, {dsNm: "ds_M0710", cdGrpId: "M0710"}], true);
  150. // 빈값 추가
  151. ds_M0710.insertRow(0);
  152. ds_M0710.setColumn(0, "cdid", "");
  153. ds_M0710.setColumn(0, "cdnm", "");
  154. //zbcfGetCodeList( new Array("M0720", "M0710"), new Array("/root/init/M0720list", "/root/init/M0710list") );
  155. condparam = opener.frmf_getParameter("condparam"); //opener.javascript.getParameter("condparam");
  156. condarray = condparam.split("▦");
  157. var pid = condarray[0];
  158. var indd = condarray[1];
  159. var cretno = condarray[2];
  160. var instcd = condarray[3];
  161. ds_send.clearData(); //model.removenode("/root/send");
  162. ds_send.addRow();
  163. ds_send.setColumn(0, "pid", pid);
  164. ds_send.setColumn(0, "indd", indd);
  165. ds_send.setColumn(0, "cretno", cretno);
  166. ds_send.setColumn(0, "instcd", instcd);
  167. // model.makeValue("/root/send/pid", pid);버팀목 전세자금대출 한도
  168. // model.makeValue("/root/send/indd", indd);
  169. // model.makeValue("/root/send/cretno", cretno);
  170. // model.makeValue("/root/send/instcd", instcd);
  171. var oParam = {};
  172. oParam.id = "TRMNE00111";
  173. oParam.service = "ercareapp.ERPatMngt";
  174. oParam.method = "reqGetAdrvHopeRoomInfo";
  175. oParam.inds = "req=ds_send";
  176. oParam.outds = "ds_main_adrvinfo=adrvinfo";
  177. oParam.async = false;
  178. //oParam.callback = "cf_TRMNE00111";
  179. tranf_submit(oParam);
  180. //submit("TRMNE00111");
  181. var adflag = ds_main_adrvinfo.getColumn(0, "adflag"); //model.getValue("/root/main/adrvinfo/adrvinfo/adflag");
  182. if ( utlf_isNull(adflag) || adflag != "A" ) { // adflag == "" || adflag != "A"
  183. sysf_messageBox("입원의사결정이 [입원]인 환자만 희망병상 종류를 변경하실 수 있습니다.","E");
  184. close();
  185. }
  186. grdf_setRowTypeIcon(group5.grd_adrvinfolist, 0);
  187. }
  188. function fSaveBedKind(){
  189. var pid = ds_main_adrvinfo.getColumn(0, "pid"); //model.getValue("/root/main/adrvinfo/adrvinfo/pid");
  190. var inrsrvacptdd = ds_main_adrvinfo.getColumn(0, "inrsrvacptdd"); //model.getValue("/root/main/adrvinfo/adrvinfo/inrsrvacptdd");
  191. var orddeptcd = ds_main_adrvinfo.getColumn(0, "orddeptcd");
  192. var inrsrvacptseqno = ds_main_adrvinfo.getColumn(0, "inrsrvacptseqno");
  193. var bedkindfrom = ds_main_adrvinfo.getColumn(0, "bedkindfrom");
  194. var bedkindto = ds_main_adrvinfo.getColumn(0, "bedkindto");
  195. ds_send_saveinfo.clearData();
  196. ds_send_saveinfo.addColumn("pid", "string");
  197. ds_send_saveinfo.addColumn("inrsrvacptdd", "string");
  198. ds_send_saveinfo.addColumn("orddeptcd", "string");
  199. ds_send_saveinfo.addColumn("inrsrvacptseqno", "string");
  200. ds_send_saveinfo.addColumn("bedkindfrom", "string");
  201. ds_send_saveinfo.addColumn("bedkindto", "string");
  202. ds_send_saveinfo.addRow();
  203. ds_send_saveinfo.setColumn(0, "pid", pid);
  204. ds_send_saveinfo.setColumn(0, "inrsrvacptdd", inrsrvacptdd);
  205. ds_send_saveinfo.setColumn(0, "orddeptcd", orddeptcd);
  206. ds_send_saveinfo.setColumn(0, "inrsrvacptseqno", inrsrvacptseqno);
  207. ds_send_saveinfo.setColumn(0, "bedkindfrom", bedkindfrom);
  208. ds_send_saveinfo.setColumn(0, "bedkindto", bedkindto);
  209. // model.removenode("/root/send/saveinfo");
  210. // model.makeValue("/root/send/saveinfo/pid", pid);
  211. // model.makeValue("/root/send/saveinfo/inrsrvacptdd", inrsrvacptdd);
  212. // model.makeValue("/root/send/saveinfo/orddeptcd", orddeptcd);
  213. // model.makeValue("/root/send/saveinfo/inrsrvacptseqno", inrsrvacptseqno);
  214. // model.makeValue("/root/send/saveinfo/bedkindfrom", bedkindfrom);
  215. // model.makeValue("/root/send/saveinfo/bedkindto", bedkindto);
  216. var oParam = {};
  217. oParam.id = "TXMNE00111";
  218. oParam.service = "ercareapp.ERPatMngt";
  219. oParam.method = "reqExeAdrvBedKind";
  220. oParam.inds = "saveinfo=ds_send_saveinfo";
  221. oParam.outds = "ds_main_adrvinfo=adrvinfo";
  222. oParam.async = false;
  223. oParam.callback = "cf_TXMNE00111";
  224. tranf_submit(oParam);
  225. // if (submit("TXMNE00111")) {
  226. // submit("TRMNE00111");
  227. // }
  228. }
  229. function cf_TXMNE00111(sSvcId, nErrorCode, sErrorMsg) {
  230. if(nErrorCode < 0) return;
  231. var oParam = {};
  232. oParam.id = "TRMNE00111";
  233. oParam.service = "ercareapp.ERPatMngt";
  234. oParam.method = "reqGetAdrvHopeRoomInfo";
  235. oParam.inds = "req=ds_send";
  236. oParam.outds = "ds_main_adrvinfo=adrvinfo";
  237. oParam.async = false;
  238. //oParam.callback = "cf_TRMNE00111";
  239. tranf_submit(oParam);
  240. }
  241. function group5_button1_onclick(obj:Button, e:ClickEventInfo)
  242. {
  243. fSaveBedKind();
  244. }
  245. function group5_button2_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. this.close();
  248. }
  249. ]]></Script>
  250. </Form>
  251. </FDL>