SMMRD01900_지표관리.xfdl 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRD01900" position="absolute 0 0 615 333" titletext="지표관리(Master관리)" oninit="SMMRD01900_oninit" onload="SMMRD01900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="지표관리(Master관리)" position="absolute 1 33 159 49" id="caption1" class="tit_2"/>
  8. <Shape position="absolute 1 49 611 55" linetype="horizontal" id="line1" class="line_10"/>
  9. <Static text="지표관리" position="absolute 0 0 147 26" id="caption6" class="tit_1"/>
  10. <Shape position="absolute 2 303 612 309" linetype="horizontal" id="line4" class="line_3"/>
  11. <Button position="absolute 555 309 611 331" id="btn_save" class="btn4" visible="true" text="저장" onclick="btn_save_onclick"/>
  12. <Button position="absolute 515 27 568 46" id="button1" class="btn2" text="행추가" onclick="button1_onclick"/>
  13. <Button position="absolute 570 27 612 46" id="button2" class="btn2" text="삭제" onclick="button2_onclick"/>
  14. <Grid position="absolute 2 54 612 303" id="grd_indxlist" binddataset="ds_main_indxlist_rows" ontextchanged="grd_indxlist_ontextchanged">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="25"/>
  23. <Column size="162"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="56"/>
  27. <Column size="149"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell text="KPICD"/>
  35. <Cell col="1" text="기관코드"/>
  36. <Cell col="2" text="INDXID"/>
  37. <Cell col="3" text="순번"/>
  38. <Cell col="4"/>
  39. <Cell col="5" text="항목명"/>
  40. <Cell col="6" text="적용시작일"/>
  41. <Cell col="7" text="적용종료일"/>
  42. <Cell col="8" text="적용여부"/>
  43. <Cell col="9" text="비고"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell text="bind:kpicd"/>
  47. <Cell col="1" text="bind:instcd"/>
  48. <Cell col="2" text="bind:indxid"/>
  49. <Cell col="3" displaytype="text" edittype="text" text="bind:dispseq" mask="999"/>
  50. <Cell col="4" celltype="head"/>
  51. <Cell col="5" displaytype="text" edittype="text" text="bind:itemnm"/>
  52. <Cell col="6" displaytype="date" edittype="date" text="bind:indxfromdd"/>
  53. <Cell col="7" displaytype="date" edittype="date" text="bind:indxtodd"/>
  54. <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:indxappflag"/>
  55. <Cell col="9" displaytype="text" edittype="text" text="bind:rem"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_main_indxlist_rows" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="kpicd" type="STRING"/>
  66. <Column id="instcd" type="STRING"/>
  67. <Column id="indxid" type="STRING"/>
  68. <Column id="dispseq" type="STRING"/>
  69. <Column id="itemnm" type="STRING"/>
  70. <Column id="indxfromdd" type="STRING"/>
  71. <Column id="indxtodd" type="STRING"/>
  72. <Column id="indxappflag" type="STRING"/>
  73. <Column id="rem" type="STRING"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. </Objects>
  77. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  78. * System Name :
  79. * Job Name :
  80. * Creator :
  81. * Make Date : 2015-11-13
  82. * Description :
  83. *---------------------------------------------------------------------------------------
  84. * Modify Date Modifier Modify Description
  85. *---------------------------------------------------------------------------------------
  86. * 2015-11-13 Live Converter TF->XP
  87. *
  88. *---------------------------------------------------------------------------------------
  89. ****************************************************************************************/
  90. include "com_commonxp::comm_main.xjs";
  91. include "emr_dschanalyxp::SMMRD01700.xjs";
  92. function SMMRD01900_oninit(obj:Form, e:InitEventInfo)
  93. {
  94. frmf_initForm(obj);
  95. }
  96. function SMMRD01900_onload(obj:Form, e:LoadEventInfo)
  97. {
  98. grdf_initGrid(grd_indxlist);
  99. grdf_setRowTypeIcon(grd_indxlist, 4);
  100. dsf_createDs("ds_temp");
  101. var oParam = {};
  102. oParam.id = "TRMRD01900";
  103. oParam.service = "dschanalyapp.DschAnaly";
  104. oParam.method = "reqGetIndxList";
  105. oParam.inds = "req=ds_temp";
  106. oParam.outds = "ds_main_indxlist_rows=indxlist";
  107. oParam.transaction = false;
  108. oParam.async = false;
  109. //oParam.callback = "cf_TRMRD01900";
  110. tranf_submit(oParam);
  111. }
  112. //행추가
  113. function button1_onclick(obj:Button, e:ClickEventInfo)
  114. {
  115. ds_main_indxlist_rows.addRow();
  116. var curRow = ds_main_indxlist_rows.rowposition;
  117. ds_main_indxlist_rows.setColumn(curRow, "indxfromdd", utlf_getCurrentDate());
  118. ds_main_indxlist_rows.setColumn(curRow, "indxtodd", "99991231");
  119. ds_main_indxlist_rows.setColumn(curRow, "indxappflag", "Y");
  120. }
  121. //삭제
  122. function button2_onclick(obj:Button, e:ClickEventInfo)
  123. {
  124. var nRow = ds_main_indxlist_rows.rowposition;
  125. var iStatus = ds_main_indxlist_rows.getRowType(nRow);
  126. var msg = sysf_messageBox(" ","Q001");
  127. trace("msg = " + msg);
  128. if(msg == "6")
  129. {
  130. if (iStatus == 1)
  131. {
  132. grdf_setStatus(grd_indxlist, "D", [nRow]);
  133. }
  134. else if (iStatus == 2)
  135. {
  136. ds_main_indxlist_rows.deleteRow(nRow);
  137. }
  138. }
  139. }
  140. //저장
  141. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  142. {
  143. var itemNmSame = ds_main_indxlist_rows.getColumn(ds_main_indxlist_rows.rowposition, "itemnm");
  144. if(utlf_isNull(itemNmSame))
  145. {
  146. sysf_messageBox("항목명","I003");
  147. return;
  148. }
  149. var oParam = {};
  150. oParam.id = "TXMRD01900";
  151. oParam.service = "dschanalyapp.DschAnaly";
  152. oParam.method = "reqSetIndxList";
  153. oParam.inds = "req=ds_main_indxlist_rows:A";
  154. oParam.outds = "ds_main_indxlist_rows=indxlist";
  155. oParam.transaction = false;
  156. oParam.async = false;
  157. //oParam.callback = "cf_TXMRD01900";
  158. tranf_submit(oParam);
  159. }
  160. function grd_indxlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
  161. {
  162. var curRow = ds_main_indxlist_rows.rowcount;
  163. var itemnm = ds_main_indxlist_rows.getColumn(curRow, "itemnm");
  164. var dispseq = ds_main_indxlist_rows.getColumn(curRow, "dispseq");
  165. var indxfromdd = ds_main_indxlist_rows.getColumn(curRow, "indxfromdd");
  166. var indxtodd = ds_main_indxlist_rows.getColumn(curRow, "indxtodd");
  167. if(e.col == 5)
  168. {
  169. if(utlf_isNull(itemnm))
  170. {
  171. sysf_messageBox("","I003");
  172. }
  173. else
  174. {
  175. var bfSameRow = ds_main_indxlist_rows.findRow("itemnm", itemnm);
  176. var aftSameRow = ds_main_indxlist_rows.findRow("itemnm", itemnm, curRow+1);
  177. if(bfSameRow != curRow && bfSameRow > 0)
  178. {
  179. var msg = messageBox(" . ","Q003");
  180. if(msg != "6")
  181. {
  182. ds_main_indxlist_rows.setColumn(curRow, "itemnm", "");
  183. }
  184. }
  185. if(aftSameRow != curRow && aftSameRow > 0)
  186. {
  187. var msg = sysf_messageBox(" . ","Q003");
  188. if(msg != "6")
  189. {
  190. ds_main_indxlist_rows.setColumn(curRow, "itemnm", "");
  191. }
  192. }
  193. }
  194. }
  195. if(e.col == 6 && utlf_isNull(indxfromdd))
  196. {
  197. sysf_messageBox("","I003");
  198. }
  199. if(e.col == 6 && utlf_isNull(indxtodd))
  200. {
  201. sysf_messageBox("","I003");
  202. }
  203. }
  204. ]]></Script>
  205. </Form>
  206. </FDL>