SPADC02800_다학제간교육회신내용.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADC02800" position="absolute 0 0 874 198" titletext="다학제간 환자 교육정보 입력" oninit="SPADC02800_oninit" onload="SPADC02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 18 123 93" id="grd_datagrid10" binddataset="ds_grd_datagrid10" autofittype="col">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="40"/>
  12. <Column size="80"/>
  13. </Columns>
  14. <Rows>
  15. <Row size="24" band="head"/>
  16. <Row size="24"/>
  17. </Rows>
  18. <Band id="head">
  19. <Cell text="선택"/>
  20. <Cell col="1" text="학습준비도"/>
  21. </Band>
  22. <Band id="body">
  23. <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
  24. <Cell col="1" text="bind:cdnm"/>
  25. </Band>
  26. </Format>
  27. </Formats>
  28. </Grid>
  29. <Grid position="absolute 0 93 123 193" id="grd_datagrid11" binddataset="ds_grd_datagrid11" autofittype="col">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="40"/>
  34. <Column size="80"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell text="선택"/>
  43. <Cell col="1" text="교육대상자"/>
  44. <Cell col="2"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
  48. <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
  49. <Cell col="2" text="bind:cdno"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Grid position="absolute 129 17 364 193" id="grd_datagrid12" binddataset="ds_grd_datagrid12" autofittype="col">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="40"/>
  59. <Column size="192"/>
  60. <Column size="0"/>
  61. </Columns>
  62. <Rows>
  63. <Row size="24" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell text="선택"/>
  68. <Cell col="1" text="교육방법"/>
  69. <Cell col="2"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
  73. <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
  74. <Cell col="2" text="bind:cdno"/>
  75. </Band>
  76. </Format>
  77. </Formats>
  78. </Grid>
  79. <Grid position="absolute 369 17 692 193" id="grd_datagrid13" binddataset="ds_grd_datagrid13" autofittype="col">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="40"/>
  84. <Column size="280"/>
  85. <Column size="0"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="24" band="head"/>
  89. <Row size="24"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell text="선택"/>
  93. <Cell col="1" text="교육결과"/>
  94. <Cell col="2"/>
  95. </Band>
  96. <Band id="body">
  97. <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
  98. <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
  99. <Cell col="2" text="bind:cdno"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Calendar position="absolute 782 15 872 34" id="ipt_edudd" mask="yyyy-mm-dd"/>
  105. <Static text="* 교육일자 :" position="absolute 697 15 782 35" id="caption2"/>
  106. <MaskEdit position="absolute 782 39 847 58" id="ipt_edutm" mask="hh:nn"/>
  107. <Static text="* 교육시간 :" position="absolute 697 39 782 59" id="caption3"/>
  108. <Button position="absolute 814 170 870 192" id="btn_save" class="btn3" text="확인"/>
  109. <Button position="absolute 756 169 812 191" id="button5" class="btn4" visible="false" text="닫기"/>
  110. <Static text="다학제간 환자 교육정보 입력" position="absolute 0 0 617 27" id="caption17" class="tit_2"/>
  111. <Shape position="absolute 10 17 702 23" linetype="vertical" id="line12" class="line_1"/>
  112. <Shape position="absolute 0 193 692 199" linetype="horizontal" id="line1" class="line_3"/>
  113. </Layout>
  114. </Layouts>
  115. <Objects>
  116. <Dataset id="ds_grd_datagrid10" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="selected" type="STRING"/>
  119. <Column id="cdnm" type="STRING"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_grd_datagrid11" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="selected" type="STRING"/>
  125. <Column id="cdnm" type="STRING"/>
  126. <Column id="cdno" type="STRING"/>
  127. </ColumnInfo>
  128. </Dataset>
  129. <Dataset id="ds_grd_datagrid12" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="selected" type="STRING"/>
  132. <Column id="cdnm" type="STRING"/>
  133. <Column id="cdno" type="STRING"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. <Dataset id="ds_grd_datagrid13" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="selected" type="STRING"/>
  139. <Column id="cdnm" type="STRING"/>
  140. <Column id="cdno" type="STRING"/>
  141. </ColumnInfo>
  142. </Dataset>
  143. <Dataset id="ds_init_opnerdatanstinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  144. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="eduprepyn" type="STRING" size="256"/>
  147. <Column id="eduwho" type="STRING" size="256"/>
  148. <Column id="eduway" type="STRING" size="256"/>
  149. <Column id="edurslt" type="STRING" size="256"/>
  150. <Column id="edudd" type="STRING" size="256"/>
  151. <Column id="edutm" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row>
  155. <Col id="eduprepyn"/>
  156. <Col id="eduwho"/>
  157. <Col id="eduway"/>
  158. <Col id="edurslt"/>
  159. <Col id="edudd"/>
  160. <Col id="edutm"/>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. </Objects>
  165. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  166. * System Name :
  167. * Job Name :
  168. * Creator :
  169. * Make Date : 2015-11-13
  170. * Description :
  171. *---------------------------------------------------------------------------------------
  172. * Modify Date Modifier Modify Description
  173. *---------------------------------------------------------------------------------------
  174. * 2015-11-13 Live Converter TF->XP
  175. *
  176. *---------------------------------------------------------------------------------------
  177. ****************************************************************************************/
  178. include "com_commonxp::comm_main.xjs";
  179. include "emr_jcimngtxp::SMMRJ099.xjs";
  180. /******************************************************************
  181. * Argument :
  182. * Description : 초기화
  183. ******************************************************************/
  184. function SPADC02800_oninit(obj:Form, e:InitEventInfo)
  185. {
  186. frmf_initForm(obj);
  187. }
  188. function SPADC02800_onload(obj:Form, e:LoadEventInfo)
  189. {
  190. fInit();
  191. }
  192. function fInit(){
  193. fSelectCodeList();
  194. fSetEducTrgtMans();
  195. try{
  196. ds_init_opnerdatanstinfo.copyData(arg_ds_init_opnerdatanstinfo);
  197. }catch(e){
  198. }
  199. var vGridRows10 = ds_grd_datagrid10.getRowCount();
  200. var vGridRows11 = ds_grd_datagrid11.getRowCount();
  201. var vGridRows12 = ds_grd_datagrid12.getRowCount();
  202. var vGridRows13 = ds_grd_datagrid13.getRowCount();
  203. var vGridCheckValue10 = "";
  204. var vGridCheckValue11 = "";
  205. var vGridCheckValue12 = "";
  206. var vGridCheckValue13 = "";
  207. var etcCheckNum12 = 0;
  208. var etcCheckNum13 = 0;
  209. var nstflag = ds_init_opnerdatanstinfo.getColumn(0, "nstflag"); // 의뢰구분
  210. var NstNodepathMain = ds_init_opnerdatanstinfo.getColumn(0, "nodepath"); //opner Node Path - root/main/ennstinfo/
  211. // 수행시간을 현재 시간으로 세팅
  212. var curDt = utlf_getCurrentDateTime().split(" ");
  213. var NstNodepathMainDS = opener.objects[NstNodepathMain + "_enreduinfo"];
  214. // 교육일자, 교육시간 세팅
  215. if( utlf_isNull(NstNodepathMainDS.getColumn(0, "edudd")) ||
  216. utlf_isNull(NstNodepathMainDS.getColumn(0, "edutm")) ||
  217. NstNodepathMainDS.getColumn(0, "edudd") == "99991231" ||
  218. NstNodepathMainDS.getColumn(0, "edutm") == "235959") {
  219. ds_hidden.setColumn(0, "edudd", curDt[0]);
  220. ds_hidden.setColumn(0, "edutm", curDt[1]);
  221. } else {
  222. ds_hidden.setColumn(0, "edudd", NstNodepathMainDS.getColumn(0, "edudd"));
  223. ds_hidden.setColumn(0, "edutm", NstNodepathMainDS.getColumn(0, "edutm"));
  224. }
  225. var eduprepyn = NstNodepathMainDS.getColumn(0, "eduprepyn"); // 학습준비도
  226. var eduwho = NstNodepathMainDS.getColumn(0, "eduwho"); // 교육대상자
  227. var eduway = NstNodepathMainDS.getColumn(0, "eduway"); // 교육방법
  228. var edurslt = NstNodepathMainDS.getColumn(0, "edurslt"); // 교육결과
  229. // 학습준비도 그리드 데이터 세팅
  230. var initCheck10 = "Y";
  231. for( var i10 = 0; i10 < vGridRows10; i10++ ){
  232. if( datagrid10 == eduprepyn ){
  233. ds_grd_datagrid10.setColumn(i10, 0, "true");
  234. initCheck10 = "N";
  235. }
  236. }
  237. // 학습준비도 초기 값 세팅
  238. if( initCheck10 == "Y" ) {
  239. ds_grd_datagrid10.setColumn(1, 0, "true");
  240. }
  241. // 교육대상자 그리드 데이터 세팅
  242. var initCheck11 = "Y";
  243. eduwho = eduwho.split(", ");
  244. for( var i11 = 0; i11 < vGridRows11; i11++ ){
  245. for( var i = 0; i < eduwho.length; ++i ){
  246. if( ds_grd_datagrid11.getColumn(i11, 0) == eduwho[i] ){
  247. ds_grd_datagrid11.setColumn(i11, 0, "true");
  248. initCheck11 = "N";
  249. }
  250. }
  251. }
  252. // 교육대상자 초기 값 세팅
  253. if( initCheck11 == "Y" ) {
  254. ds_grd_datagrid11.setColumn(1, 0, "true");
  255. }
  256. // 교육방법 그리드 데이터 세팅
  257. var initCheck12 = "Y";
  258. eduway = eduway.split(", ");
  259. for( var i12 = 0; i12 < vGridRows12; i12++ ){
  260. for( var i = 0; i < eduway.length; ++i ) {
  261. if( ds_grd_datagrid12.getColumn(i12, 1) == eduway[i] ){
  262. ds_grd_datagrid12.setColumn(i12, 0, "true");
  263. ++etcCheckNum12;
  264. initCheck12 = "N";
  265. }
  266. }
  267. // 기타 항목 체크1( 값이 '기타' 일 경우 )
  268. if( i12 == (vGridRows12-1) && ds_grd_datagrid12.getColumn(i12, 0) == eduway[eduway.length-1] ){
  269. datagrid12.cellAttribute("disabled", i12, 1 ) = "false";
  270. datagrid12.cellstyle("background-color", i12, 1) = "#DDDDDD";
  271. initCheck12 = "N";
  272. }
  273. // 기타 항목 체크2( 값이 '기타' 가 아닐 경우 )
  274. if(i12 == (vGridRows12-1) && etcCheckNum12 != eduway.length) {
  275. if(eduway[eduway.length-1] != "") {
  276. datagrid12.valueMatrix(i12,0) = "true";
  277. datagrid12.valueMatrix(i12,1) = eduway[eduway.length-1];
  278. datagrid12.cellAttribute("disabled", (vGridRows12-1), 1 ) = "false";
  279. datagrid12.cellstyle("background-color", (vGridRows12-1), 1) = "#DDDDDD";
  280. initCheck12 = "N";
  281. }
  282. }
  283. }
  284. }]]></Script>
  285. </Form>
  286. </FDL>