SPMNW04702_피부욕창관찰기록기준자료팝업.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNW04702" position="absolute 0 0 605 881" titletext="욕창상처관찰기록" oninit="SPMNW04702_oninit" onload="SPMNW04702_onload" onbeforeclose="SPMNW04702_onbeforeclose" ontimer="SPMNW04702_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 604 849" align="align:center top;" id="grp_sea">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 0 604 825" id="grd_userlist" binddataset="ds_main_detlgrup_getVO" anchor="default" autofittype="col" cellsizingtype="both" extendsizetype="both" autosizingtype="both" oncellclick="grp_sea_grd_userlist_oncellclick" onenteredit="grp_sea_grd_userlist_onenteredit" onlbuttondown="grp_sea_grd_userlist_onlbuttondown" cellclickbound="cell">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="100"/>
  15. <Column size="47"/>
  16. <Column size="161"/>
  17. <Column size="275"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell text="구분"/>
  27. <Cell col="1" text="선택"/>
  28. <Cell col="2" text="평가 및 적용 내용"/>
  29. <Cell col="3" text="세부설명"/>
  30. <Cell col="4" text="그룹코드"/>
  31. <Cell col="5" text="코드"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell text="bind:grupnm" wordwrap="word" suppress="1" suppressalign="middle,over"/>
  35. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == '1' || sel == 1 ? 1 : 0"/>
  36. <Cell col="2" style="align:left;" text="bind:cdnm"/>
  37. <Cell col="3" displaytype="text" edittype="expr:sel == '1' &amp;&amp; cdnm == '기타' ? 'text' : ''" style="padding:2 2 2 2;" text="bind:detlinfo" wordwrap="word" autosizerow="limitmin" autosizecol="default"/>
  38. <Cell col="4" text="bind:grupcd"/>
  39. <Cell col="5" text="bind:cd"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Div position="absolute 5 725 480 755" id="grp_etcarea" visible="false">
  48. <Layouts>
  49. <Layout>
  50. <Static text="기타 입력 :" position="absolute 5 5 70 25" id="caption2"/>
  51. <Edit position="absolute 75 5 465 24" id="input1"/>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Div position="absolute 0 827 560 867" id="grp_dressingarea" visible="false">
  56. <Layouts>
  57. <Layout>
  58. <Static text="Dressing :" position="absolute 0 -2 65 18" id="caption1"/>
  59. <TextArea position="absolute 63 0 560 30" id="textarea1" enable="false" wordwrap="word" style=":disabled {padding:1 1 1 1;}"/>
  60. </Layout>
  61. </Layouts>
  62. </Div>
  63. <Button position="absolute 562 827 604 847" id="button1" class="btn2_letter2" text="확인" onclick="button1_onclick"/>
  64. <ImageViewer position="absolute 150 50 568 317" id="img1" visible="false" image="URL('IMG::emr/MN/dergrd1.png')"/>
  65. <ImageViewer position="absolute 150 50 568 317" id="img2" visible="false" image="URL('IMG::emr/MN/dergrd2.png')"/>
  66. <ImageViewer position="absolute 150 50 568 317" id="img3" visible="false" image="URL('IMG::emr/MN/dergrd3.png')"/>
  67. <ImageViewer position="absolute 150 50 568 317" id="img4" visible="false" image="URL('IMG::emr/MN/dergrd4.png')"/>
  68. <ImageViewer position="absolute 150 50 568 317" id="img5" visible="false" image="URL('IMG::emr/MN/dergrd5.png')"/>
  69. <ImageViewer position="absolute 150 50 568 317" id="img6" visible="false" image="URL('IMG::emr/MN/dergrd6.png')" stretch="fit"/>
  70. <Static text="※ 1~4단계 사정 및 종료 시에는 단계 변경이 불가능 합니다. 재사정 단계를 입력하시기 바랍니다." position="absolute 0 861 540 881" id="caption3"/>
  71. </Layout>
  72. </Layouts>
  73. <Objects>
  74. <Dataset id="ds_main_detlgrup_getVO" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlgrup_getVO_oncolumnchanged">
  75. <ColumnInfo>
  76. <Column id="grupnm" type="STRING"/>
  77. <Column id="sel" type="STRING"/>
  78. <Column id="cdnm" type="STRING"/>
  79. <Column id="detlinfo" type="STRING"/>
  80. <Column id="grupcd" type="STRING"/>
  81. <Column id="cd" type="STRING"/>
  82. <Column id="flag" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. </Dataset>
  85. <Dataset id="ds_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  86. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  87. <Dataset id="ds_param" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  88. </Objects>
  89. <Bind>
  90. <BindItem id="item0" compid="grp_etcarea.input1" propid="value" datasetid="ds_param" columnid="etc"/>
  91. <BindItem id="item1" compid="grp_dressingarea.textarea1" propid="value" datasetid="ds_param" columnid="dressing"/>
  92. </Bind>
  93. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  94. * System Name :
  95. * Job Name :
  96. * Creator :
  97. * Make Date : 2015-11-13
  98. * Description :
  99. *---------------------------------------------------------------------------------------
  100. * Modify Date Modifier Modify Description
  101. *---------------------------------------------------------------------------------------
  102. * 2015-11-13 Live Converter TF->XP
  103. *
  104. *---------------------------------------------------------------------------------------
  105. ****************************************************************************************/
  106. include "com_commonxp::comm_main.xjs";
  107. include "emr_wardcarexp::SPMNW04702.xjs";
  108. var SPMNW04702_oOpener = "";
  109. var xExecDetlListPath = ds_main_detlgrup_getVO;
  110. var wincloseButton = false;
  111. function SPMNW04702_oninit(obj:Form, e:InitEventInfo)
  112. {
  113. frmf_initForm(obj);
  114. SPMRJ00300_oOpener = frmf_getoOpener();
  115. }
  116. function SPMNW04702_onload(obj:Form, e:LoadEventInfo)
  117. {
  118. fInitialize();
  119. //grd_userlist.mergecol(grd_userlist.colRef("sel")) = false;
  120. img1.visible = false;
  121. img2.visible = false;
  122. img3.visible = false;
  123. img4.visible = false;
  124. img5.visible = false;
  125. img6.visible = false;
  126. }
  127. function grp_sea_grd_userlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  128. {
  129. img1.visible = false;
  130. img2.visible = false;
  131. img3.visible = false;
  132. img4.visible = false;
  133. img5.visible = false;
  134. img6.visible = false;
  135. //기타입력영역을 보여준다.
  136. fShowEtcInputArea();
  137. //dressing영역의 str을 변경한다.
  138. var cdNm = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "cdnm");
  139. var isChecked = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "sel");
  140. trace("cdNm : " + cdNm);
  141. trace("isChecked : " + isChecked);
  142. if(grp_sea.grd_userlist.currentcol == "1")
  143. {
  144. fChangeDressingStr(cdNm, isChecked);
  145. setTimer( 0, 1);
  146. }
  147. var grupcd = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "grupcd");
  148. if (grupcd == "00000002" && grp_sea.grd_userlist.currentcol == "3")
  149. {
  150. if (cdNm.substr(0, 1) == "1") {
  151. img1.visible = true;
  152. } else if (cdNm.substr(0, 1) == "2") {
  153. img2.visible = true;
  154. } else if (cdNm.substr(0, 1) == "3") {
  155. img3.visible = true;
  156. } else if (cdNm.substr(0, 1) == "4") {
  157. img4.visible = true;
  158. } else if (cdNm.substr(0, 1) == "5") {
  159. img5.visible = true;
  160. } else if (cdNm.substr(0, 1) == "6") {
  161. img6.visible = true;
  162. } else {
  163. img1.visible = false;
  164. img2.visible = false;
  165. img3.visible = false;
  166. img4.visible = false;
  167. img5.visible = false;
  168. img6.visible = false;
  169. }
  170. }
  171. //190327_AYS_테스트 진행중
  172. fColumnInfoDisable();
  173. //grp_sea.grd_userlist.enableredraw = true;
  174. //grp_sea.grd_userlist.enableevent = true;
  175. }
  176. function button1_onclick(obj:Button, e:ClickEventInfo)
  177. {
  178. wincloseButton = true ;
  179. fPopClose();
  180. }
  181. function ds_main_detlgrup_getVO_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  182. {
  183. var grupcd = ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "grupcd");
  184. if(grp_sea.grd_userlist.currentcol == 3)
  185. {
  186. trace("3 in");
  187. if(ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "sel") == "1")
  188. {
  189. if(ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "cdnm") == "기타")
  190. {
  191. if(grupcd == "00000001") {
  192. ds_param.setColumn(0, "causeEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  193. } else if(grupcd == "00000002") {
  194. ds_param.setColumn(0, "stageEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  195. } else if(grupcd == "00000003") {
  196. ds_param.setColumn(0, "colorEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  197. } else if(grupcd == "00000004") {
  198. ds_param.setColumn(0, "stateEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  199. } else if(grupcd == "00000005") {
  200. ds_param.setColumn(0, "amountEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  201. } else if(grupcd == "00000006") {
  202. ds_param.setColumn(0, "symptomEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  203. } else if(grupcd == "00000008") {
  204. ds_param.setColumn(0, "dressingEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  205. }else if(grupcd == "00000009") { //20090220_SMY추가
  206. ds_param.setColumn(0, "genrplceEtcStr", ds_main_detlgrup_getVO.getColumn(ds_main_detlgrup_getVO.rowposition, "detlinfo"));
  207. }
  208. }
  209. }
  210. }
  211. if( e.columnid == "sel" ){
  212. trace("sel changed");
  213. obj.setColumn(e.row, "sel", (e.newvalue == "1" || e.newvalue == 1) ? "1" : "0");
  214. }
  215. }
  216. function SPMNW04702_onbeforeclose(obj:Form, e:CloseEventInfo)
  217. {
  218. if( !wincloseButton){
  219. opener.frmf_setParameter("returnnull","close");
  220. } else {
  221. opener.frmf_setParameter("returnnull","confirmbutton");
  222. }
  223. }
  224. function SPMNW04702_ontimer(obj:Form, e:TimerEventInfo)
  225. {
  226. if( e.timerid == 0 ){
  227. killTimer( 0 );
  228. var type = opener.frmf_getParameter("type");
  229. var flag = opener.frmf_getParameter("flag");
  230. var stat = opener.frmf_getParameter("stat");
  231. var cdValueStage = opener.frmf_getParameter("stagecdid");
  232. if( type == "2" && frmf_isPopup() ){
  233. for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
  234. {
  235. grupcd = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
  236. if(grupcd == "00000002" && flag != "00") //등록이 아닌 경우 단계 입력을 제어한다.
  237. {
  238. if (cdValueStage == "65" || cdValueStage == "66")
  239. {}
  240. else
  241. {
  242. grp_sea.grd_userlist.setRealRowSize(i, 0);
  243. }
  244. }
  245. if(grupcd == "00000009" && ( flag != "00" || stat != "i" )) //등록이 아닌 경우 발생장소 입력을 제어한다.
  246. {
  247. //grd_userlist.rowHidden (i) = true;
  248. grp_sea.grd_userlist.setRealRowSize(i, 0);
  249. }
  250. if(grupcd == "00000001" && ( flag != "00" || stat != "i" )) //등록이 아닌 경우 발생원인 입력을 제어한다.
  251. {
  252. //grd_userlist.rowHidden (i) = true;
  253. grp_sea.grd_userlist.setRealRowSize(i, 0);
  254. }
  255. }
  256. }
  257. }
  258. }
  259. function grp_sea_grd_userlist_onenteredit(obj:Grid, e:GridEditEventInfo)
  260. {
  261. //alert("11")
  262. }
  263. function grp_sea_grd_userlist_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
  264. {
  265. //grp_sea.grd_userlist.enableredraw = false;
  266. //grp_sea.grd_userlist.enableevent = false;
  267. }
  268. function fColumnInfoDisable()
  269. {
  270. trace("tset in");
  271. var selected;
  272. var cd ;
  273. var grupcd;
  274. var falg;
  275. var iRow = ds_main_detlgrup_getVO.rowposition;
  276. selected = ds_main_detlgrup_getVO.getColumn(iRow, "sel");
  277. cd = ds_main_detlgrup_getVO.getColumn(iRow, "cd");
  278. cdnm = ds_main_detlgrup_getVO.getColumn(iRow, "cdnm");
  279. grupcd = ds_main_detlgrup_getVO.getColumn(iRow, "grupcd");
  280. flag = ds_main_detlgrup_getVO.getColumn(iRow, "flag");
  281. trace("selected : " + selected + " / cd : " + cd + " / cdnm : " + cdnm + " / grupcd : " + grupcd + " / flag : " + flag);
  282. // 190402_AYS_삼출액양(PUSH)_0(없음) 선택시 - 삼출액유형(PUSH) 선택되지 않도록 수정
  283. if(selected == "1" && grupcd == "00000005" && cd == "72" ) {
  284. for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
  285. {
  286. var grup = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
  287. if(grup == "00000004")
  288. {
  289. ds_main_detlgrup_getVO.setColumn(i, "flag", "Y");
  290. ds_main_detlgrup_getVO.setColumn(i, "sel", "");
  291. trace("OK!!");
  292. }
  293. }
  294. } else if( (selected = "1" && grupcd == "00000005" && cd != "72") || (selected != "1" && grupcd == "00000005" && cd == "72") ) {
  295. for(var i = 0; i < ds_main_detlgrup_getVO.rowcount; i++)
  296. {
  297. trace("test !!!00000004");
  298. var grup = ds_main_detlgrup_getVO.getColumn(i, "grupcd");
  299. if(grup == "00000004")
  300. {
  301. //dsf_makeValue(ds_main_detlgrup_getVO, "flag", "string", "");
  302. //ds_main_detlgrup_getVO.setColumn(i, "flag", "N");
  303. ds_main_detlgrup_getVO.setColumn(i, "flag", "");
  304. }
  305. }
  306. }
  307. // 190402_AYS_삼출액양(PUSH)_0(없음) 선택 후 - 삼출액유형(PUSH) 선택되지 않도록 수정
  308. if(grupcd == "00000004" && flag == "Y") {
  309. trace("alert ok!");
  310. alert("삼출액양(PUSH) 0(없음) 선택 시 삼출액유형(PUSH)을 선택할 수 없습니다.");
  311. ds_main_detlgrup_getVO.setColumn(iRow, "sel", "0");
  312. }
  313. }
  314. ]]></Script>
  315. </Form>
  316. </FDL>