SPMMB02700_전달사항.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMB02700" position="absolute 0 0 403 190" titletext="전달사항" oninit="SPMMB02700_oninit" onload="SPMMB02700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="전달사항" position="absolute 0 0 179 20" id="cap_title" class="tit_1"/>
  8. <Button position="absolute 280 166 336 188" id="button1" class="btn4" text="확인" onclick="button1_onclick"/>
  9. <Button position="absolute 340 166 396 188" id="button3" class="btn4" text="취소" onclick="button3_onclick"/>
  10. <Static id="cap_00_part" text="적용부위 (다중선택)" class="tit_2" position="absolute 0 28 179 48"/>
  11. <Edit id="ipt_00_part" taborder="2" enable="false" position="absolute 98 64 373 83"/>
  12. <Static id="cap_00_time1" text="적용시간" class="tit_2" position="absolute 0 90 80 110"/>
  13. <Static id="cap_00_time2" text="지금부터 시간" position="absolute 80 90 220 105"/>
  14. <Edit id="ipt_00_time" taborder="3" position="absolute 135 87 170 106" inputtype="number"/>
  15. <Static id="cap_00_resn1" text="적용사유" class="tit_2" position="absolute 0 122 80 142"/>
  16. <Combo id="sel_00_resn" taborder="4" codecolumn="value" datacolumn="label" position="absolute 80 120 395 139" onitemchanged="sel_00_resn_onitemchanged" innerdataset="@ds_resn"/>
  17. <Static id="cap_00_resn2" text="기타내용" position="absolute 22 144 77 159"/>
  18. <Edit id="ipt_00_resn" taborder="5" enable="false" position="absolute 80 141 395 160"/>
  19. <CheckBox id="chk_partsel1" taborder="6" text="4 Extremities" position="absolute 16 44 109 64" falsevalue="0" truevalue="1"/>
  20. <CheckBox id="chk_partsel2" taborder="7" text="Chest" position="absolute 115 44 176 64" falsevalue="0" truevalue="1"/>
  21. <CheckBox id="chk_partsel3" taborder="8" text="RA" position="absolute 184 44 229 64" falsevalue="0" truevalue="1"/>
  22. <CheckBox id="chk_partsel4" taborder="9" text="RL" position="absolute 232 44 277 64" falsevalue="0" truevalue="1"/>
  23. <CheckBox id="chk_partsel5" taborder="10" text="LA" position="absolute 280 44 325 64" onclick="chk_partsel5_onclick" falsevalue="0" truevalue="1"/>
  24. <CheckBox id="chk_partsel7" taborder="11" text="기타" position="absolute 16 64 91 84" onchanged="chk_partsel7_onchanged" falsevalue="0" truevalue="1"/>
  25. <CheckBox id="chk_partsel6" taborder="12" text="LL" position="absolute 328 44 365 64" falsevalue="0" truevalue="1"/>
  26. <Shape id="line00" class="line_4" position="absolute 1 10 401 31"/>
  27. </Layout>
  28. </Layouts>
  29. <Objects>
  30. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  31. <ColumnInfo>
  32. <Column id="partsel" type="STRING" size="256"/>
  33. <Column id="partrmk" type="STRING" size="256"/>
  34. <Column id="time" type="STRING" size="256"/>
  35. <Column id="resn" type="STRING" size="256"/>
  36. <Column id="resnrmk" type="STRING" size="256"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row/>
  40. </Rows>
  41. </Dataset>
  42. <Dataset id="ds_resn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="label" type="STRING" size="256"/>
  45. <Column id="value" type="STRING" size="256"/>
  46. </ColumnInfo>
  47. <Rows>
  48. <Row>
  49. <Col id="label">의식장애 등으로 안전한 의료를 수행할 수 없는 경우</Col>
  50. <Col id="value">의식장애 등으로 안전한 의료를 수행할 수 없는 경우</Col>
  51. </Row>
  52. <Row>
  53. <Col id="label">치료의 과정에서 활동의 제한이 필요한 경우</Col>
  54. <Col id="value">치료의 과정에서 활동의 제한이 필요한 경우</Col>
  55. </Row>
  56. <Row>
  57. <Col id="label">환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</Col>
  58. <Col id="value">환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</Col>
  59. </Row>
  60. <Row>
  61. <Col id="label">기타</Col>
  62. <Col id="value">기타</Col>
  63. </Row>
  64. </Rows>
  65. </Dataset>
  66. <Dataset id="Dataset02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  67. <Dataset id="Dataset03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  68. <Dataset id="Dataset04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  69. </Objects>
  70. <Bind>
  71. <BindItem id="item0" compid="ipt_00_part" propid="value" datasetid="ds_main" columnid="partrmk"/>
  72. <BindItem id="item1" compid="ipt_00_time" propid="value" datasetid="ds_main" columnid="time"/>
  73. <BindItem id="item2" compid="sel_00_resn" propid="value" datasetid="ds_main" columnid="resn"/>
  74. <BindItem id="item3" compid="ipt_00_resn" propid="value" datasetid="ds_main" columnid="resnrmk"/>
  75. </Bind>
  76. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  77. * System Name :
  78. * Job Name :
  79. * Creator :
  80. * Make Date : 2015-06-24
  81. * Description :
  82. *---------------------------------------------------------------------------------------
  83. * Modify Date Modifier Modify Description
  84. *---------------------------------------------------------------------------------------
  85. * 2015-06-24 Live Converter TF->XP
  86. *
  87. *---------------------------------------------------------------------------------------
  88. ****************************************************************************************/
  89. include "com_commonxp::comm_main.xjs";
  90. include "emr_prcpmngtxp::MMO001.xjs";
  91. function SPMMB02700_oninit(obj:Form, e:InitEventInfo)
  92. {
  93. frmf_initForm(obj);
  94. }
  95. function SPMMB02700_onload(obj:Form, e:LoadEventInfo)
  96. {
  97. // var sCond1 = opener.frmf_getParameter("SPMMB02700_cond1"); //opener.javascript.getParameter("SPMMB02700_cond1");
  98. // if(sCond1 == "00") {
  99. // model.toggle("00");
  100. // } else {
  101. // model.toggle("00");
  102. // }
  103. }
  104. /*
  105. function chb_00_part_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  106. {
  107. var sPartSel = ds_main.getColumn(0, "partsel"); //model.getValue("/root/main/partsel");
  108. if(sPartSel.indexOf("9") >= 0) {
  109. ipt_00_part.enable = true;
  110. } else {
  111. ipt_00_part.enable = false;
  112. ds_main.setColumn(0, "partrmk", ""); //model.setValue("/root/main/partrmk", "");
  113. //ipt_00_part.refresh();
  114. }
  115. }
  116. */
  117. function sel_00_resn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  118. {
  119. var sResn = ds_main.getColumn(0, "resn") //model.getValue("/root/main/resn");
  120. if(sResn == "기타") {
  121. ipt_00_resn.enable = true;
  122. } else {
  123. ipt_00_resn.enable = false;
  124. ds_main.setColumn(0, "resnrmk", ""); //model.setValue("/root/main/resnrmk", "");
  125. //ipt_00_resn.refresh();
  126. }
  127. }
  128. function button1_onclick(obj:Button, e:ClickEventInfo)
  129. {
  130. //var sPartSel = ds_main.getColumn(0, "partsel");
  131. var partsel1 = parseInt(chk_partsel1.value);
  132. var partsel2 = parseInt(chk_partsel2.value);
  133. var partsel3 = parseInt(chk_partsel3.value);
  134. var partsel4 = parseInt(chk_partsel4.value);
  135. var partsel5 = parseInt(chk_partsel5.value);
  136. var partsel6 = parseInt(chk_partsel6.value);
  137. var partsel7 = parseInt(chk_partsel7.value);
  138. var sPartRmk = ds_main.getColumn(0, "partrmk");
  139. var sTime = ds_main.getColumn(0, "time");
  140. var sResn = ds_main.getColumn(0, "resn");
  141. var sResnRmk = ds_main.getColumn(0, "resnrmk");
  142. if( (partsel1+partsel2+partsel3+partsel4+partsel5+partsel6+partsel7) < 1 ) { // sPartSel == ""
  143. sysf_messageBox ( "적용부위를 선택하세요.", "E" );
  144. return;
  145. }
  146. if( partsel7 == 1 ) { // sPartSel.indexOf("9") >= 0
  147. if( utlf_isNull(sPartRmk) ) { // sPartRmk == ""
  148. sysf_messageBox ( "적용부위를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
  149. return;
  150. }
  151. }
  152. if( utlf_isNull(sTime) ) { // sTime == ""
  153. sysf_messageBox ( "적용시간을 입력 하세요.", "E" );
  154. return;
  155. }
  156. if( utlf_isNull(sResn) ) { // sResn == ""
  157. sysf_messageBox ( "적용사유을 입력 하세요.", "E" );
  158. return;
  159. }
  160. if( sResn == "기타" && utlf_isNull(sResnRmk)) { // sResn == "기타" && sResnRmk == ""
  161. sysf_messageBox ( "적용사유를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
  162. return;
  163. }
  164. var arrTextList = new Array();
  165. arrTextList[1] = chk_partsel1.text;
  166. arrTextList[2] = chk_partsel2.text;
  167. arrTextList[3] = chk_partsel3.text;
  168. arrTextList[4] = chk_partsel4.text;
  169. arrTextList[5] = chk_partsel5.text;
  170. arrTextList[6] = chk_partsel6.text;
  171. arrTextList[7] = chk_partsel7.text;
  172. var arrChkList = new Array();
  173. arrChkList[1] = partsel1;
  174. arrChkList[2] = partsel2;
  175. arrChkList[3] = partsel3;
  176. arrChkList[4] = partsel4;
  177. arrChkList[5] = partsel5;
  178. arrChkList[6] = partsel6;
  179. arrChkList[7] = partsel7;
  180. var sPartLable = "";
  181. var tempBool = false;
  182. for( var i = 1; i < 8; i++ ) {
  183. if(arrChkList[i] == 1){
  184. if( tempBool == false ) {
  185. sPartLable = sPartLable + arrTextList[i];
  186. tempBool = true;
  187. } else {
  188. sPartLable = sPartLable + "," + arrTextList[i];
  189. }
  190. }
  191. }
  192. if( partsel7 == 1 ) { // sPartSel.indexOf("9") >= 0
  193. sPartLable = sPartLable + " (" + sPartRmk + ")";
  194. }
  195. var sResnLable = sResn;
  196. if(sResn == "기타") {
  197. sResnLable = sResnLable + "(" +sResnRmk+ ")";
  198. }
  199. var sPrcpDeliveFact = "적용부위 : " + sPartLable + " 적용시간 : 지금부터 " + sTime + "시간 적용사유 : " + sResnLable;
  200. opener.frmf_setParameter("SPMMB02700_rtn", "Y");
  201. opener.frmf_setParameter("SPMMB02700_prcpdelivefact", sPrcpDeliveFact);
  202. close();
  203. }
  204. function button3_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. close();
  207. }
  208. function chk_partsel7_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  209. {
  210. var sPartSel = chk_partsel7.value; //ds_main.getColumn(0, "partsel"); //model.getValue("/root/main/partsel");
  211. if(sPartSel == 1) {
  212. ipt_00_part.enable = true;
  213. } else {
  214. ipt_00_part.enable = false;
  215. ds_main.setColumn(0, "partrmk", ""); //model.setValue("/root/main/partrmk", "");
  216. //ipt_00_part.refresh();
  217. }
  218. }
  219. ]]></Script>
  220. </Form>
  221. </FDL>