SPMMP02500_평가입력.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMP02500" position="absolute 0 0 517 333" titletext="평가입력" onload="SPMMP02500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 501 306" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="평가입력" position="absolute 5 10 100 31" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 22 500 28" linetype="vertical" id="line1" class="line_1"/>
  12. <Grid position="absolute 0 30 500 170" id="grd_masterinfo" binddataset="ds_grd_masterinfo">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="20"/>
  17. <Column size="38"/>
  18. <Column size="440"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="24"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell/>
  30. <Cell col="1" text="선택"/>
  31. <Cell col="2" text="내용"/>
  32. <Cell col="3"/>
  33. <Cell col="4"/>
  34. <Cell col="5"/>
  35. <Cell col="6"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell text="expr:currow+1"/>
  39. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:getColumn(currow,&quot;check&quot;)==&quot;true&quot;?&quot;1&quot;:&quot;0&quot;"/>
  40. <Cell col="2" text="bind:valunm"/>
  41. <Cell col="3" text="bind:valuno"/>
  42. <Cell col="4" text="bind:valuflag"/>
  43. <Cell col="5" text="bind:histseq"/>
  44. <Cell col="6" text="bind:cpgappno"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. </Grid>
  49. <Static text="비고" position="absolute 5 176 55 197" id="caption2" class="tit_2"/>
  50. <TextArea position="absolute 0 195 500 305" id="txt_valurem"/>
  51. <Shape position="absolute 0 187 500 193" linetype="vertical" id="line2" class="line_1"/>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Div position="absolute 0 306 501 333" id="grp_btn" scrollbars="autoboth">
  56. <Layouts>
  57. <Layout>
  58. <Button position="absolute 385 5 441 27" id="button4" class="btn4" text="저장" onclick="grp_btn_button4_onclick"/>
  59. <Button position="absolute 444 5 500 27" id="button9" class="btn4" text="취소" onclick="grp_btn_button9_onclick"/>
  60. <Shape position="absolute 0 0 501 6" linetype="vertical" id="line32" class="line_6"/>
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. </Layout>
  65. </Layouts>
  66. <Objects>
  67. <Dataset id="ds_grd_masterinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_masterinfo_oncolumnchanged">
  68. <ColumnInfo>
  69. <Column id="valuno" type="STRING" size="256" sumtext="평가번호"/>
  70. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  71. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  72. <Column id="histseq" type="STRING" size="256" sumtext="이력순번"/>
  73. <Column id="cpgappno" type="INT" size="256" sumtext="cpg적용번호"/>
  74. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  75. <Column id="orddd" type="STRING" size="256" sumtext="진료일/입원일"/>
  76. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  77. <Column id="ordtype" type="STRING" size="256" sumtext="외래입원구분"/>
  78. <Column id="check" type="STRING" size="256" sumtext="체크"/>
  79. </ColumnInfo>
  80. <Rows>
  81. <Row>
  82. <Col id="check">true</Col>
  83. </Row>
  84. <Row>
  85. <Col id="check">false</Col>
  86. </Row>
  87. <Row/>
  88. </Rows>
  89. </Dataset>
  90. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="cpgappno" type="STRING" size="256"/>
  93. <Column id="pid" type="STRING" size="256"/>
  94. <Column id="orddd" type="STRING" size="256"/>
  95. <Column id="cretno" type="STRING" size="256"/>
  96. <Column id="ordtype" type="STRING" size="256"/>
  97. <Column id="valuflag" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row/>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="valuflag" type="STRING" size="256" sumtext="-구분1:평가2:Drop사유3:Exclusion사유"/>
  106. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  107. <Column id="orddd" type="STRING" size="256" sumtext="진료일/입원일"/>
  108. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  109. <Column id="ordtype" type="STRING" size="256" sumtext="외래입원구분"/>
  110. <Column id="cpgappno" type="INT" size="256" sumtext="cpg적용번호"/>
  111. <Column id="cpgno" type="INT" size="256" sumtext="cpg적용번호"/>
  112. <Column id="cpghistseq" type="INT" size="256" sumtext="cpg적용번호"/>
  113. </ColumnInfo>
  114. </Dataset>
  115. <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  116. </Objects>
  117. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  118. * System Name :
  119. * Job Name :
  120. * Creator :
  121. * Make Date : 2014-09-26
  122. * Description :
  123. *---------------------------------------------------------------------------------------
  124. * Modify Date Modifier Modify Description
  125. *---------------------------------------------------------------------------------------
  126. * 2014-09-26 Live Converter TF->XP
  127. *
  128. *---------------------------------------------------------------------------------------
  129. ****************************************************************************************/
  130. //=======================================================================================
  131. // Lib Include
  132. //---------------------------------------------------------------------------------------
  133. include "com_commonxp::comm_main.xjs"
  134. //=======================================================================================
  135. // Event
  136. //---------------------------------------------------------------------------------------
  137. /****************************************************************************************
  138. * Components : Form
  139. * Components ID : SPMMP02500
  140. * Event : onload
  141. * Argument : 01.obj : Object Event has occurred
  142. * : 02.e : Event Object
  143. * Description : 화면 로드시 화면 초기화 실행
  144. ****************************************************************************************/
  145. function SPMMP02500_onload(obj:Form, e:LoadEventInfo)
  146. {
  147. var srchWindow = frmf_findPopup("SMMMP00800");
  148. if( srchWindow != null ){
  149. //2008-02-11 손주연 수정 시작 endsetp 처방 발행 후 평가 없이 퇴원예고를 할경우...parameter처리없이 통으로 넘김.
  150. //parameter값이 null이 아닐 경우만 hidden에 copy되도록 처리.
  151. if( srchWindow.frmf_getParameter("cpgappno") != "" ) {
  152. //model.setValue("/root/hidden/cpgappno", srchWindow.javascript.getParameter("cpgappno"));
  153. ds_hidden.setColumn(0,"cpgappno",srchWindow.frmf_getParameter("cpgappno"));
  154. }
  155. //2008-02-11 손주연 수정 종료
  156. //model.copyNode("/root/send/reqdata", "/root/hidden");
  157. dsf_copyDs(da_reqdata,ds_hidden,"replace");
  158. //submit("TRMMP02501");
  159. var oParam = {};
  160. oParam.id = "TRMMP02501";
  161. oParam.service = "prcpmngtapp.CPPrcpMngt";
  162. oParam.method = "reqGetValuDropExclu";
  163. oParam.inds = "req=ds_reqdata";
  164. oParam.outds = "ds_grd_masterinfo=info";
  165. oParam.async = false;
  166. oParam.callback = "";
  167. tranf_submit(oParam);
  168. }
  169. }
  170. /****************************************************************************************
  171. * Components : Button
  172. * Components ID : grp_btn.button4
  173. * Event : onclick
  174. * Argument : 01.obj : Object Event has occurred
  175. * : 02.e : Event Object
  176. * Description : 저장버튼 실행
  177. ****************************************************************************************/
  178. function grp_btn_button4_onclick(obj:Button, e:ClickEventInfo)
  179. {
  180. // 2007-12-05 (전지은)
  181. // 그리드의 rowheader를 update -> seq, 그에 따라 보낼 데이터를 체크 여부에 따라 재구성하여 보낸다
  182. //model.copyNode("/root/send/savedata", "/root/hidden");
  183. dsf_copyDs(ds_savedata,ds_hidden,"replace");
  184. var header = "valuno▦valunm▦valuflag▦histseq▦cpgappno▦pid▦orddd▦cretno▦ordtype▦check";
  185. var data = "";
  186. //var nodeList = instance1.selectNodes("/root/main/masterinfo/info" + "[check = 'true']");
  187. var nodeCnt = ds_grd_masterinfo.findRow("check", "true");
  188. if(nodeCnt < 0){
  189. sysf_messageBox("사유를", "C002");
  190. return;
  191. }
  192. for(var i=0; i<ds_grd_masterinfo.rowcount; i++){
  193. // var node = nodeList.item(i);
  194. // var valuno = node.selectSingleNode("valuno");
  195. // var valunm = node.selectSingleNode("valunm");
  196. // var valuflag = node.selectSingleNode("valuflag");
  197. // var histseq = node.selectSingleNode("histseq");
  198. // var cpgappno = node.selectSingleNode("cpgappno");
  199. // var pid = node.selectSingleNode("pid");
  200. // var orddd = node.selectSingleNode("orddd");
  201. // var cretno = node.selectSingleNode("cretno");
  202. // var ordtype = node.selectSingleNode("ordtype");
  203. // var check = node.selectSingleNode("check");
  204. var valuno = ds_grd_masterinfo.getColumn(i,"valuno");
  205. var valunm = ds_grd_masterinfo.getColumn(i,"valunm");
  206. var valuflag = ds_grd_masterinfo.getColumn(i,"valuflag");
  207. var histseq = ds_grd_masterinfo.getColumn(i,"histseq");
  208. var cpgappno = ds_grd_masterinfo.getColumn(i,"cpgappno");
  209. var pid = ds_grd_masterinfo.getColumn(i,"pid");
  210. var orddd = ds_grd_masterinfo.getColumn(i,"orddd");
  211. var cretno = ds_grd_masterinfo.getColumn(i,"cretno");
  212. var ordtype = ds_grd_masterinfo.getColumn(i,"ordtype");
  213. var check = ds_grd_masterinfo.getColumn(i,"check");
  214. data = data + "▩" + valuno.text + "▦" + valunm.text + "▦" + valuflag.text + "▦" + histseq.text + "▦" + cpgappno.text + "▦" + pid.text + "▦" + orddd.text + "▦" + cretno.text + "▦" + ordtype.text + "▦" + check.text;
  215. }
  216. model.makeValue("/root/send/savedata/info", header + data + "▩");
  217. model.makeValue("/root/send/savedata/valurem", model.getValue("/root/main/valurem"));
  218. if(submit("TXMMP02501")){
  219. var srchWindow = getOpenWindow("SMMMP00800");
  220. if( srchWindow != null ){
  221. srchWindow.model.setValue("/root/temp1/getdata/appstat", "40");
  222. srchWindow.btn_allInfoSave.disabled = true;
  223. srchWindow.btn_drop.disabled = true;
  224. srchWindow.btn_val.disabled = true;
  225. }
  226. this.close();
  227. }
  228. }
  229. /****************************************************************************************
  230. * Components : Button
  231. * Components ID : grp_btn.button9
  232. * Event : onclick
  233. * Argument : 01.obj : Object Event has occurred
  234. * : 02.e : Event Object
  235. * Description : 취소버튼 실행
  236. ****************************************************************************************/
  237. function grp_btn_button9_onclick(obj:Button, e:ClickEventInfo)
  238. {
  239. this.close();
  240. }
  241. /****************************************************************************************
  242. * Components : Dataset
  243. * Components ID : ds_grd_masterinfo
  244. * Event : oncolumnchanged
  245. * Argument : 01.obj : Object Event has occurred
  246. * : 02.e : Event Object
  247. * Description : check버튼 클릭시 check컬럼값 설정
  248. ****************************************************************************************/
  249. function ds_grd_masterinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  250. {
  251. if(e.columnid=="check") {
  252. obj.setColumn(e.row,"check",e.newvalue=="1"?"true":"");
  253. }
  254. }
  255. ]]></Script>
  256. </Form>
  257. </FDL>