SPPMC01701_장애유형및등급별중증관리.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC01701" position="absolute 0 0 800 600" titletext="장애 유형 및 등급별 중증 관리" onload="SPPMC01701_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" position="absolute 0 12 784 574" style="buttonbackground:stretch 10,10;background:stretch 10,26;border:0 solid #808080ff ;" anchor="default" tabindex="0">
  8. <Tabpages>
  9. <Tabpage id="sprd" selected="true" anchor="default">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_sprd" taborder="0" binddataset="ds_main_sprdlist_sprdinfo" useinputpanel="false" position="absolute 0 6 784 549" style="align:center ;">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="40"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. </Band>
  25. <Band id="body">
  26. <Cell celltype="head"/>
  27. </Band>
  28. </Format>
  29. </Formats>
  30. </Grid>
  31. <Shape id="line1" class="line_10" position="absolute 0 1 784 5"/>
  32. </Layout>
  33. </Layouts>
  34. </Tabpage>
  35. <Tabpage id="hist" anchor="default">
  36. <Layouts>
  37. <Layout>
  38. <Shape id="line9" class="line_10" linetype="horizontal" position="absolute 0 1 784 5" style="" anchor="default"/>
  39. <Grid id="grd_hist" binddataset="ds_main_histlist_histinfo" position="absolute 0 5 784 549" style="align:center ;" autofittype="col">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="24"/>
  44. <Column size="110"/>
  45. <Column size="55"/>
  46. <Column size="90"/>
  47. <Column size="90"/>
  48. <Column size="0"/>
  49. <Column size="65"/>
  50. <Column size="0"/>
  51. <Column size="50"/>
  52. <Column size="120"/>
  53. <Column size="0"/>
  54. <Column size="50"/>
  55. <Column size="120"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1" text="장애유형"/>
  64. <Cell col="2" text="장애등급"/>
  65. <Cell col="3" text="시작일자"/>
  66. <Cell col="4" text="종료일자"/>
  67. <Cell col="5" text="이전종료일자"/>
  68. <Cell col="6" text="중증/경증"/>
  69. <Cell col="7" text="최초등록자ID"/>
  70. <Cell col="8" text="등록자"/>
  71. <Cell col="9" text="등록일시"/>
  72. <Cell col="10" text="최종수정자ID"/>
  73. <Cell col="11" text="수정자"/>
  74. <Cell col="12" text="수정일시"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head"/>
  78. <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:handcapflag" combodataset="ds_init_P0307list_P0307" combocodecol="cdid" combodatacol="cdnm"/>
  79. <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:handcapgrde" combodataset="ds_init_P0308list_P0308" combocodecol="cdid" combodatacol="cdnm"/>
  80. <Cell col="3" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  81. <Cell col="4" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  82. <Cell col="5" style="align:left middle;" text="bind:bftodd"/>
  83. <Cell col="6" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:slflag" combodataset="ds_init_sllist_slinfo" combocodecol="value" combodatacol="label"/>
  84. <Cell col="7" style="align:left middle;" text="bind:fstrgstrid"/>
  85. <Cell col="8" style="align:left middle;" text="bind:fstrgstrnm"/>
  86. <Cell col="9" displaytype="date" style="align:left middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  87. <Cell col="10" style="align:left middle;" text="bind:lastupdtrid"/>
  88. <Cell col="11" style="align:left middle;" text="bind:lastupdtrnm"/>
  89. <Cell col="12" displaytype="date" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. </Layout>
  95. </Layouts>
  96. </Tabpage>
  97. </Tabpages>
  98. </Tab>
  99. <Static id="caption6" class="tit_1" position="absolute 0 0 260 25" style="" text="치과영역 중증 및 경증 장애 분류 기준"/>
  100. <Button id="btn_save" class="btn4" position="absolute 670 575 726 597" style="" text="저장" onclick="btn_save_onclick"/>
  101. <Button id="btn_close" class="btn4" position="absolute 728 575 784 597" style="" text="닫기" onclick="btn_close_onclick"/>
  102. <CheckBox datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="chk_hist" position="absolute 710 7 784 25" style="align:left ;" titletext="CheckBox List" text="이력 관리" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100" truevalue="Y" falsevalue="N">
  103. <Dataset id="innerdataset">
  104. <ColumnInfo>
  105. <Column id="codecolumn"/>
  106. <Column id="datacolumn"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="codecolumn">Y</Col>
  111. <Col id="datacolumn">이력 관리</Col>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. </CheckBox>
  116. </Layout>
  117. </Layouts>
  118. <Objects>
  119. <Dataset id="ds_main_sprdlist_sprdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  120. <ColumnInfo/>
  121. </Dataset>
  122. <Dataset id="ds_main_histlist_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  123. <ColumnInfo>
  124. <Column id="handcapflag" type="STRING" size="256"/>
  125. <Column id="handcapgrde" type="STRING" size="256"/>
  126. <Column id="fromdd" type="STRING" size="256"/>
  127. <Column id="todd" type="STRING" size="256"/>
  128. <Column id="bftodd" type="STRING" size="256"/>
  129. <Column id="slflag" type="STRING" size="256"/>
  130. <Column id="fstrgstrid" type="STRING" size="256"/>
  131. <Column id="fstrgstrnm" type="STRING" size="256"/>
  132. <Column id="fstrgstdt" type="STRING" size="256"/>
  133. <Column id="lastupdtrid" type="STRING" size="256"/>
  134. <Column id="lastupdtrnm" type="STRING" size="256"/>
  135. <Column id="lastupdtdt" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="handcapflag"/>
  140. <Col id="handcapgrde"/>
  141. <Col id="fromdd"/>
  142. <Col id="todd"/>
  143. <Col id="bftodd"/>
  144. <Col id="slflag"/>
  145. <Col id="fstrgstrid"/>
  146. <Col id="fstrgstrnm"/>
  147. <Col id="fstrgstdt"/>
  148. <Col id="lastupdtrid"/>
  149. <Col id="lastupdtrnm"/>
  150. <Col id="lastupdtdt"/>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  155. <ColumnInfo/>
  156. </Dataset>
  157. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  158. <ColumnInfo/>
  159. </Dataset>
  160. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  161. <ColumnInfo>
  162. <Column id="temp" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  166. <ColumnInfo>
  167. <Column id="histflag" type="STRING" size="256"/>
  168. <Column id="updtstr" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="histflag"/>
  173. <Col id="updtstr"/>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_init_P0308list_P0308" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  178. <ColumnInfo>
  179. <Column id="cdnm" type="STRING" size="256"/>
  180. <Column id="cdid" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="cdnm"/>
  185. <Col id="cdid"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_init_sllist_slinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  190. <ColumnInfo>
  191. <Column id="label" type="STRING" size="256"/>
  192. <Column id="value" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row>
  196. <Col id="label">-</Col>
  197. <Col id="value">N</Col>
  198. </Row>
  199. <Row>
  200. <Col id="label">중증</Col>
  201. <Col id="value">S</Col>
  202. </Row>
  203. <Row>
  204. <Col id="label">경증</Col>
  205. <Col id="value">L</Col>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_init_P0307list_P0307" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  210. <ColumnInfo>
  211. <Column id="cdnm" type="STRING" size="256"/>
  212. <Column id="cdid" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row>
  216. <Col id="cdnm"/>
  217. <Col id="cdid"/>
  218. </Row>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_temp_headinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  222. <Dataset id="ds_temp_sprdlist_sprdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  223. <Dataset id="ds_temp_histlist_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  224. </Objects>
  225. <Bind>
  226. <BindItem id="item0" compid="chk_hist" propid="value" datasetid="ds_send" columnid="histflag"/>
  227. </Bind>
  228. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  229. include "com_basiccodexp::ZBC001.xjs";
  230. var arErrorCode = new HashArray();
  231. var ON_LOAD = true;
  232. function fSearch() {
  233. ds_main_sprdlist_sprdinfo.clearData(); ds_main_sprdlist_sprdinfo.addRow();
  234. //switch1.sprd.grd_sprd.refresh();
  235. var cols = switch1.sprd.grd_sprd.getFormatColCount();
  236. for (var i = cols - 1; i >= 1; i--) {
  237. switch1.sprd.grd_sprd.deleteContentsCol(i); //.de.removeColumn(false);
  238. }
  239. //switch1.sprd.grd_sprd.refresh();
  240. ds_main_histlist_histinfo.clearData(); ds_main_histlist_histinfo.addRow();
  241. //grd_switch1.hist.refresh();
  242. // if (!submit("TRPMC01702", false)) {
  243. var oParam = {};
  244. oParam.id = "TRPMC01702";
  245. oParam.service = "patinfomngtapp.HandcapPat";
  246. oParam.method = "reqGetHandcapClass";
  247. oParam.outds = "ds_temp_headinfo=head ds_temp_sprdlist_sprdinfo=sprd ds_temp_histlist_histinfo=hist";
  248. oParam.async = false;
  249. oParam.callback = "cf_TRPMC01702";
  250. tranf_submit(oParam);
  251. if(arErrorCode.pop("TRPMC01702") < 0) {
  252. return;
  253. }
  254. // 이력 그리드 세팅
  255. ds_main_histlist_histinfo.clearData();
  256. ds_main_histlist_histinfo.copyData(ds_temp_histlist_histinfo);
  257. //grd_switch1.hist.refresh();
  258. var attr = ds_temp_headinfo.getColumn(0, "attr");
  259. if (attr == null || attr.length < 1) {
  260. return;
  261. }
  262. var attrArr = attr.split("^");
  263. var width = ds_temp_headinfo.getColumn(0, "width");
  264. var widthArr = width.split("^");
  265. var hIdx = switch1.sprd.grd_sprd.rowheader != "" ? 1 : 0;
  266. var caption = ds_temp_headinfo.getColumn(0, "caption");
  267. var captionArr = caption.split("^");
  268. for (var i = 0; i < attrArr.length; i++) {
  269. var icol = switch1.sprd.grd_sprd.appendContentsCol("body", false); // .addColumn(attrArr[i], false);
  270. var propertyArr = attrArr[i].split(";");
  271. for(var j = 0; j < propertyArr.length; j++) {
  272. var subPropertyArr = propertyArr[j].split(":");
  273. var strKey = String(subPropertyArr[0]).trim();
  274. var strValue = String(subPropertyArr[1]).trim();
  275. if(subPropertyArr.length > 1) {
  276. if( strKey == "ref") {
  277. switch1.sprd.grd_sprd.setCellProperty("body", icol, "text", "bind:" + strValue);
  278. }
  279. if(strKey == "type") {
  280. if(strValue == "combo") {
  281. switch1.sprd.grd_sprd.setCellProperty("body", icol, "displaytype", "combo");
  282. switch1.sprd.grd_sprd.setCellProperty("body", icol, "edittype", "combo");
  283. switch1.sprd.grd_sprd.setCellProperty("body", icol, "combodataset", "ds_init_sllist_slinfo");
  284. switch1.sprd.grd_sprd.setCellProperty("body", icol, "combocodecol", "value");
  285. switch1.sprd.grd_sprd.setCellProperty("body", icol, "combodatacol", "label");
  286. }
  287. else if(strValue == "output") {
  288. switch1.sprd.grd_sprd.setCellProperty("body", icol, "displaytype", "normal");
  289. switch1.sprd.grd_sprd.setCellProperty("body", icol, "editype", "none");
  290. }
  291. }
  292. if(strKey == "text-align") {
  293. if(strValue == "center") {
  294. switch1.sprd.grd_sprd.setCellProperty("body", icol, "align", "center middle");
  295. }
  296. else {
  297. switch1.sprd.grd_sprd.setCellProperty("body", icol, "align", "left middel");
  298. }
  299. }
  300. // if(strKey == "id") {
  301. // switch1.sprd.grd_sprd.setCellProperty("body", icol, "text", "bind:" + strValue);
  302. // }
  303. }
  304. else {
  305. subPropertyArr = propertyArr[j].split("=");
  306. if(subPropertyArr[0] == "visibility" && subPropertyArr[0] == "hidden") {
  307. switch1.sprd.grd_sprd.setFormatColProperty(icol, "size", "0");
  308. }
  309. }
  310. }
  311. }
  312. switch1.sprd.grd_sprd.setFormatColProperty(0, "size", 24);
  313. for (var i = 1; i <= widthArr.length; i++) {
  314. switch1.sprd.grd_sprd.setFormatColProperty(i, "size", widthArr[i - 1]);
  315. }
  316. for (var i = 1; i <= captionArr.length; i++) {
  317. switch1.sprd.grd_sprd.setCellProperty("head", i, "text", captionArr[i - 1]);
  318. }
  319. //switch1.sprd.grd_sprd.caption = ds_temp_headinfo.getColumn(0, "caption");
  320. //switch1.sprd.grd_sprd.refresh();
  321. // if (ON_LOAD) {
  322. // for (var i = 3; i < switch1.sprd.grd_sprd.cols; i++) {
  323. // var id = eval(switch1.sprd.grd_sprd.colAttribute(i, "ref"));
  324. //
  325. // var choices = id.createChild("xforms:choices", "");
  326. //
  327. // var itemset = choices.createChild("xforms:itemset", "nodeset:ds_init_sllist_slinfo");
  328. // itemset.createChild("xforms:label", "ref:label");
  329. // itemset.createChild("xforms:value", "ref:value");
  330. // }
  331. // }
  332. //
  333. // for (var i = 1; i <= cnt; i++) {
  334. // for (var j = 3; j < switch1.sprd.grd_sprd.cols; j++) {
  335. // switch1.sprd.grd_sprd.cellComboNodeset(i, j) = "ds_init_sllist_slinfo";
  336. // }
  337. // }
  338. ds_main_sprdlist_sprdinfo.clearData();
  339. ds_main_sprdlist_sprdinfo.copyData(ds_temp_sprdlist_sprdinfo);
  340. //switch1.sprd.grd_sprd.refresh();
  341. var cnt = ds_main_sprdlist_sprdinfo.rowcount;
  342. //switch1.sprd.grd_sprd.insertContentsCol("body", 0);
  343. switch1.sprd.grd_sprd.redraw();
  344. //switch1.sprd.grd_sprd.refresh();
  345. }
  346. function cf_TRPMC01702(sSvcId, nErrorCode, sErrorMsg) {
  347. arErrorCode.push(sSvcId, nErrorCode);
  348. }
  349. function SPPMC01701_onload(obj:Form, e:LoadEventInfo) {
  350. frmf_initForm(obj);
  351. grdf_initGrid(switch1.sprd.grd_sprd);
  352. grdf_initGrid(switch1.hist.grd_hist);
  353. //grdf_setGridSort(grd_XXX);
  354. grdf_setRowTypeIcon(switch1.sprd.grd_sprd, 0);
  355. grdf_setRowTypeIcon(switch1.hist.grd_hist, 0);
  356. var arrParam = [
  357. {dsNm: "ds_init_P0307list_P0307", cdGrpId: "P0307"}
  358. ,{dsNm: "ds_init_P0308list_P0308", cdGrpId: "P0308"}
  359. ];
  360. appf_getCodeList(arrParam );
  361. fSearch();
  362. ON_LOAD = false;
  363. }
  364. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  365. var str = "";
  366. if (ds_send.getColumn(0, "histflag") == "Y") {
  367. //str = grd_switch1.hist.getUpdateData();
  368. var updateDs = grdf_getGridUpdateData(switch1.hist.grd_hist, "all");
  369. grdf_setStatusColumn(updateDs, "m");
  370. str = dsf_getDsCSV(updateDs);
  371. } else {
  372. //str = switch1.sprd.grd_sprd.getUpdateData();
  373. var updateDs = grdf_getGridUpdateData(switch1.sprd.grd_sprd, "all");
  374. grdf_setStatusColumn(updateDs, "m");
  375. str = dsf_getDsCSV(updateDs);
  376. }
  377. str = str.replace(/\▦/g, "▥").replace(/\▩/g, "▤");
  378. ds_send.setColumn( 0, "updtstr", str);
  379. //submit("TXPMC01703");
  380. var oParam = {};
  381. oParam.id = "TXPMC01703";
  382. oParam.service = "patinfomngtapp.HandcapPat";
  383. oParam.method = "reqExeSetHandcapClass";
  384. oParam.inds = "req=ds_send";
  385. oParam.async = false;
  386. tranf_submit(oParam);
  387. fSearch();
  388. }
  389. function btn_close_onclick(obj:Button, e:ClickEventInfo) {
  390. this.close();
  391. }
  392. function chk_hist_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
  393. if (ds_send.getColumn(0, "histflag") == "Y") {
  394. //model.toggle("switch1.hist");
  395. switch1.tabindex = 1;
  396. } else {
  397. //model.toggle("switch1.sprd");
  398. switch1.tabindex = 0;
  399. }
  400. }
  401. ]]></Script>
  402. </Form>
  403. </FDL>