SPMNH04000_회원별 월 약정금액.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNH04000" position="absolute 0 0 551 97" titletext="회원별 월 약정금액" oninit="SPMNH04000_oninit" onload="SPMNH04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 490 9 546 31" id="btn_cancel" class="btn4" taborder="9" text="닫기" onclick="btn_cancel_onclick" anchor="top right"/>
  8. <Grid position="absolute 1 36 545 92" id="grd_monmtlist" taborder="7" binddataset="ds_main_monmtlist" autofittype="col" anchor="all" cellsizingtype="col">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="87"/>
  13. <Column size="90"/>
  14. <Column size="84"/>
  15. <Column size="89"/>
  16. <Column size="92"/>
  17. <Column size="100"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="회원번호"/>
  25. <Cell col="1" text="회원명"/>
  26. <Cell col="2" text="S/A"/>
  27. <Cell col="3" text="입금은행"/>
  28. <Cell col="4" text="약정연도"/>
  29. <Cell col="5" text="월 약정금액"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell text="bind:memno"/>
  33. <Cell col="1" text="bind:membnm"/>
  34. <Cell col="2" text="bind:sexage"/>
  35. <Cell col="3" displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:paybankflag" combodataset="ds_init_A00001" combocodecol="cdid" combodatacol="cdnm"/>
  36. <Cell col="4" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:amtyy" combodataset="ds_cmb_amtyy" combocodecol="value" combodatacol="label" combodisplayrowcount="-1"/>
  37. <Cell col="5" displaytype="number" edittype="normal" style="align:center middle;" text="bind:monamt" editlimit="10"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. <Static text="회원별 월 약정금액" position="absolute 2 15 141 37" id="caption1" class="tit_2"/>
  43. <Shape position="absolute 1 31 545 37" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  44. <Button position="absolute 432 9 488 31" id="button1" class="btn4" taborder="9" text="저장" onclick="button1_onclick" anchor="top right"/>
  45. </Layout>
  46. </Layouts>
  47. <Objects>
  48. <Dataset id="ds_main_monmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_monmtlist_oncolumnchanged">
  49. <ColumnInfo>
  50. <Column id="memno" type="STRING"/>
  51. <Column id="membnm" type="STRING"/>
  52. <Column id="sexage" type="STRING"/>
  53. <Column id="paybankflag" type="STRING"/>
  54. <Column id="amtyy" type="STRING"/>
  55. <Column id="monamt" type="STRING"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row/>
  59. </Rows>
  60. </Dataset>
  61. <Dataset id="ds_init_A00001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="cdnm" type="STRING" size="256"/>
  64. <Column id="cdid" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. </Dataset>
  67. <Dataset id="ds_init_mondetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="monamt" type="STRING" size="256"/>
  70. </ColumnInfo>
  71. </Dataset>
  72. <Dataset id="ds_cmb_amtyy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  73. <ColumnInfo>
  74. <Column id="label" type="STRING" size="256"/>
  75. <Column id="value" type="STRING" size="256"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row>
  79. <Col id="label">2000년</Col>
  80. <Col id="value">2000</Col>
  81. </Row>
  82. <Row>
  83. <Col id="label">2001년</Col>
  84. <Col id="value">2001</Col>
  85. </Row>
  86. <Row>
  87. <Col id="label">2002년</Col>
  88. <Col id="value">2002</Col>
  89. </Row>
  90. <Row>
  91. <Col id="label">2003년</Col>
  92. <Col id="value">2003</Col>
  93. </Row>
  94. <Row>
  95. <Col id="label">2004년</Col>
  96. <Col id="value">2004</Col>
  97. </Row>
  98. <Row>
  99. <Col id="label">2005년</Col>
  100. <Col id="value">2005</Col>
  101. </Row>
  102. <Row>
  103. <Col id="label">2006년</Col>
  104. <Col id="value">2006</Col>
  105. </Row>
  106. <Row>
  107. <Col id="label">2007년</Col>
  108. <Col id="value">2007</Col>
  109. </Row>
  110. <Row>
  111. <Col id="label">2008년</Col>
  112. <Col id="value">2008</Col>
  113. </Row>
  114. <Row>
  115. <Col id="label">2009년</Col>
  116. <Col id="value">2009</Col>
  117. </Row>
  118. <Row>
  119. <Col id="label">2010년</Col>
  120. <Col id="value">2010</Col>
  121. </Row>
  122. <Row>
  123. <Col id="label">2011년</Col>
  124. <Col id="value">2011</Col>
  125. </Row>
  126. <Row>
  127. <Col id="label">2012년</Col>
  128. <Col id="value">2012</Col>
  129. </Row>
  130. <Row>
  131. <Col id="label">2013년</Col>
  132. <Col id="value">2013</Col>
  133. </Row>
  134. <Row>
  135. <Col id="label">2014년</Col>
  136. <Col id="value">2014</Col>
  137. </Row>
  138. <Row>
  139. <Col id="label">2015년</Col>
  140. <Col id="value">2015</Col>
  141. </Row>
  142. <Row>
  143. <Col id="label">2016년</Col>
  144. <Col id="value">2016</Col>
  145. </Row>
  146. <Row>
  147. <Col id="label">2017년</Col>
  148. <Col id="value">2017</Col>
  149. </Row>
  150. <Row>
  151. <Col id="label">2018년</Col>
  152. <Col id="value">2018</Col>
  153. </Row>
  154. <Row>
  155. <Col id="label">2019년</Col>
  156. <Col id="value">2019</Col>
  157. </Row>
  158. <Row>
  159. <Col id="label">2020년</Col>
  160. <Col id="value">2020</Col>
  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 : 2016-10-31
  170. * Description :
  171. *---------------------------------------------------------------------------------------
  172. * Modify Date Modifier Modify Description
  173. *---------------------------------------------------------------------------------------
  174. * 2016-10-31 Live Converter TF->XP
  175. *
  176. *---------------------------------------------------------------------------------------
  177. ****************************************************************************************/
  178. include "com_commonxp::comm_main.xjs";
  179. include "emr_agonalcarexp::SMMNH00001.xjs"
  180. function SPMNH04000_oninit(obj:Form, e:InitEventInfo)
  181. {
  182. frmf_initForm(obj);
  183. }
  184. function SPMNH04000_onload(obj:Form, e:LoadEventInfo)
  185. {
  186. var arrParam = new Array();
  187. arrParam = [{dsNm: "ds_init_A00001", cdGrpId: "A00001", showValue: false}];
  188. fGetCodeList(arrParam, true);
  189. getdate = utlf_getCurrentDate();
  190. var memno = opener.frmf_getParameter("memno");
  191. var membnm = opener.frmf_getParameter("membnm");
  192. var sexage = opener.frmf_getParameter("sexage");
  193. var paybankflag = opener.frmf_getParameter("paybankflag");
  194. var getdate = utlf_getCurrentDate();
  195. ds_main_monmtlist.setColumn(0, "memno", memno);
  196. ds_main_monmtlist.setColumn(0, "membnm", membnm);
  197. ds_main_monmtlist.setColumn(0, "sexage", sexage);
  198. ds_main_monmtlist.setColumn(0, "paybankflag", paybankflag);
  199. ds_main_monmtlist.setColumn(0, "amtyy", getdate.substr(0,4));
  200. // grd_monmtlist.isReadOnly(1, 3) = true;
  201. dsf_createDsRow("ds_send", [{col:"membno", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "memno")}
  202. , {col:"amtyy", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "amtyy")}]);
  203. var oParam = {};
  204. oParam.id = "TRMNH04001";
  205. oParam.service = "hospiceapp.HospiceAidAssocnMngt";
  206. oParam.method = "reqGetMonmtList";
  207. oParam.inds = "req=ds_send";
  208. oParam.outds = "ds_init_mondetl=mondetl";
  209. oParam.async = false;
  210. //oParam.callback = "cf_TRMNH04001";
  211. tranf_submit(oParam);
  212. ds_main_monmtlist.setColumn(0, "monamt", ds_init_mondetl.getColumn(0, "monamt"));
  213. }
  214. function button1_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. if(sysf_messageBox("","Q002") != 6)
  217. {
  218. return;
  219. }
  220. if(utlf_isNull(ds_main_monmtlist.getColumn(0, "monamt")))
  221. {
  222. sysf_messageBox("월 약정금액은", "I003");
  223. return;
  224. }
  225. dsf_createDsRow("ds_send", [{col:"membno", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "memno")}
  226. , {col:"amtyy", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "amtyy")}
  227. , {col:"monamt", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "monamt")}]);
  228. var oParam = {};
  229. oParam.id = "TXMNH04001";
  230. oParam.service = "hospiceapp.HospiceAidAssocnMngt";
  231. oParam.method = "reqSetMonmtList";
  232. oParam.inds = "req=ds_send";
  233. oParam.outds = "";
  234. oParam.async = false;
  235. oParam.callback = "cf_TXMNH04001";
  236. tranf_submit(oParam);
  237. this.close();
  238. }
  239. function cf_TXMNH04001(sSvcId, nErrorCode, sErrorMsg)
  240. {
  241. if(nErrorCode < 0)
  242. {
  243. return;
  244. }
  245. else
  246. {
  247. sysf_messageBox("월 약정금액 저장이", "I001");
  248. }
  249. }
  250. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. this.close();
  253. }
  254. function ds_main_monmtlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  255. {
  256. if(e.columnid == "amtyy")
  257. {
  258. obj.setColumn(0, "monamt", "");
  259. dsf_createDsRow("ds_send", [{col:"membno", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "memno")}
  260. , {col:"amtyy", type:"STRING", size:256 , val : ds_main_monmtlist.getColumn(0, "amtyy")}]);
  261. var oParam = {};
  262. oParam.id = "TRMNH04001";
  263. oParam.service = "hospiceapp.HospiceAidAssocnMngt";
  264. oParam.method = "reqGetMonmtList";
  265. oParam.inds = "req=ds_send";
  266. oParam.outds = "ds_init_mondetl=mondetl";
  267. oParam.async = false;
  268. //oParam.callback = "cf_TRMNH04001";
  269. tranf_submit(oParam);
  270. ds_main_monmtlist.setColumn(0, "monamt", ds_init_mondetl.getColumn(0, "monamt"));
  271. }
  272. }
  273. ]]></Script>
  274. </Form>
  275. </FDL>