SMSDT06100_사회사업마감이력.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT06100" position="absolute 0 0 1199 771" titletext="사회사업마감이력" oninit="SMSDT06100_oninit" onload="SMSDT06100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사회사업마감이력" class="tit_1" position="absolute 0 0 225 25"/>
  8. <Static id="caption21" text="마감작업 LIST" class="tit_2" position="absolute 0 84 209 105"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 98 1195 109" anchor="left top right"/>
  10. <Grid id="grd_fthendlist" taborder="0" binddataset="ds_main_fthendlist_fthendlistinfo" useinputpanel="false" position="absolute 0 105 1195 745" autoenter="select" cellsizingtype="col" anchor="all">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="31"/>
  15. <Column size="111"/>
  16. <Column size="115"/>
  17. <Column size="100"/>
  18. <Column size="140"/>
  19. <Column size="117"/>
  20. <Column size="311"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1" text="마감년월"/>
  29. <Cell col="2" text="마감차수"/>
  30. <Cell col="3" text="상태"/>
  31. <Cell col="4" text="마감일시"/>
  32. <Cell col="5" text="마감자"/>
  33. <Cell col="6" text="비고"/>
  34. </Band>
  35. <Band id="body">
  36. <Cell celltype="head" expr="currow+1"/>
  37. <Cell col="1" displaytype="date" text="bind:endym" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
  38. <Cell col="2" text="bind:enddg"/>
  39. <Cell col="3" text="bind:workstat"/>
  40. <Cell col="4" displaytype="date" style="align:center middle;" text="bind:enddt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  41. <Cell col="5" text="bind:endpsn"/>
  42. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:endrem"/>
  43. </Band>
  44. </Format>
  45. </Formats>
  46. </Grid>
  47. <Div id="group4" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
  48. <Layouts>
  49. <Layout>
  50. <Static id="caption26" text="작업월 :" class="search_name" position="absolute 10 12 95 29"/>
  51. <Edit id="ipt_medicntrtrsmpsn" taborder="2" enable="false" position="absolute 303 11 403 30"/>
  52. <Static id="caption1" text="마감자 :" class="search_name" position="absolute 225 12 310 29"/>
  53. <Calendar id="ipt_endyy" taborder="4" class="input_search" visible="false" position="absolute 405 11 460 30" mask="yyyy" dateformat="yyyy" value="null" editformat="yyyy" autoselect="true"/>
  54. <Calendar id="ipt_endmm" taborder="5" class="input_search" visible="false" position="absolute 460 11 510 30" mask="mm" dateformat="MM" value="null" editformat="MM" autoselect="true"/>
  55. <cp_monthCal id="ipt_endym" titletext="monthCalendar" taborder="6" text="cp_monthCal00" scrollbars="none" position="absolute 80 10 177 31"/>
  56. </Layout>
  57. </Layouts>
  58. </Div>
  59. <Button id="button3" taborder="2" text="조회" class="btn5" position="absolute 1153 81 1195 100" anchor="top right" onclick="button3_onclick"/>
  60. <Static id="caption2" text="~" class="search_no_b" position="absolute 1035 82 1047 99" anchor="top right"/>
  61. <Static id="caption29" text="마감월" class="cell_1" position="absolute 849 79 928 100" anchor="top right" style="padding:0 0 0 0;align:center middle;"/>
  62. <Button id="btn_end" taborder="5" text="마감" class="btn4" position="absolute 1115 34 1171 56" anchor="top right" onclick="btn_end_onclick"/>
  63. <Button id="button1" taborder="6" text="마감로그조회" class="btn3" position="absolute 1091 746 1195 768" anchor="right bottom" onclick="button1_onclick"/>
  64. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="7" text="cp_monthCal00" scrollbars="none" position="absolute 931 80 1032 100" anchor="top right" style="align:center middle;"/>
  65. <cp_monthCal id="input1" titletext="monthCalendar" taborder="8" text="cp_monthCal00" scrollbars="none" position="absolute 1050 80 1150 100" anchor="top right" style="align:center middle;"/>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="endym" type="STRING" size="256"/>
  72. <Column id="medicntrtrsmpsn" type="STRING" size="256"/>
  73. <Column id="from" type="STRING" size="256"/>
  74. <Column id="to" type="STRING" size="256"/>
  75. <Column id="endyy" type="STRING" size="256"/>
  76. <Column id="endmm" type="STRING" size="256"/>
  77. <Column id="entryy" type="STRING" size="256"/>
  78. <Column id="qurtyy" type="STRING" size="256"/>
  79. <Column id="enddd" type="STRING" size="256"/>
  80. <Column id="enddg" type="STRING" size="256"/>
  81. <Column id="btnflag" type="STRING" size="256"/>
  82. <Column id="batchflag" type="STRING" size="256"/>
  83. <Column id="fromdd" type="STRING" size="256"/>
  84. <Column id="todd" type="STRING" size="256"/>
  85. <Column id="bizflag" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="endym"/>
  90. <Col id="medicntrtrsmpsn"/>
  91. <Col id="from"/>
  92. <Col id="to"/>
  93. <Col id="endyy"/>
  94. <Col id="endmm"/>
  95. <Col id="entryy"/>
  96. <Col id="qurtyy"/>
  97. <Col id="enddd"/>
  98. <Col id="enddg"/>
  99. <Col id="btnflag"/>
  100. <Col id="batchflag"/>
  101. <Col id="fromdd"/>
  102. <Col id="todd"/>
  103. <Col id="bizflag"/>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_main_fthendlist_fthendlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="endyy" type="STRING" size="256" sumtext="마감년도"/>
  110. <Column id="endmm" type="STRING" size="256" sumtext="마감월"/>
  111. <Column id="endym" type="STRING" size="256" sumtext="마감"/>
  112. <Column id="workstat" type="STRING" size="256" sumtext="상태"/>
  113. <Column id="enddg" type="STRING" size="256" sumtext="마감차수"/>
  114. <Column id="enddt" type="STRING" size="256" sumtext="마감일시"/>
  115. <Column id="endpsn" type="STRING" size="256" sumtext="마감자"/>
  116. <Column id="medicntrtrsmdt" type="STRING" size="256" sumtext="송신일"/>
  117. <Column id="medicntrtrsmpsn" type="STRING" size="256" sumtext="송신자"/>
  118. <Column id="endrem" type="STRING" size="256" sumtext="비고"/>
  119. </ColumnInfo>
  120. </Dataset>
  121. <Dataset id="ds_temp_rtninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  122. <ColumnInfo>
  123. <Column id="rtnflag" type="STRING" size="256" sumtext="마감상태"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item1" compid="group4.ipt_medicntrtrsmpsn" propid="value" datasetid="ds_main_cond" columnid="medicntrtrsmpsn"/>
  129. <BindItem id="item2" compid="group4.ipt_endyy" propid="value" datasetid="ds_main_cond" columnid="endyy"/>
  130. <BindItem id="item3" compid="group4.ipt_endmm" propid="value" datasetid="ds_main_cond" columnid=""/>
  131. <BindItem id="item6" compid="group4.ipt_endym" propid="text" datasetid="ds_main_cond" columnid="endym"/>
  132. <BindItem id="item0" compid="ipt_fromdd" propid="text" datasetid="ds_main_cond" columnid="endym"/>
  133. <BindItem id="item7" compid="input1" propid="text" datasetid="ds_main_cond" columnid="endym"/>
  134. </Bind>
  135. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  136. * System Name :
  137. * Job Name :
  138. * Creator :
  139. * Make Date : 2016-05-24
  140. * Description :
  141. *---------------------------------------------------------------------------------------
  142. * Modify Date Modifier Modify Description
  143. *---------------------------------------------------------------------------------------
  144. * 2016-05-24 Live Converter TF->XP
  145. *
  146. *---------------------------------------------------------------------------------------
  147. ****************************************************************************************/
  148. include "com_commonxp::comm_main.xjs";
  149. function SMSDT06100_oninit(obj:Form, e:InitEventInfo)
  150. {
  151. frmf_initForm(obj);
  152. }
  153. function SMSDT06100_onload(obj:Form, e:LoadEventInfo)
  154. {
  155. grdf_initGrid(grd_fthendlist);
  156. fInit();
  157. }
  158. function fInit()
  159. {
  160. group4.ipt_endym.setCallEvent("fn_Cal_endym");
  161. ipt_fromdd.setCallEvent("fn_Cal_fromdd");
  162. input1.setCallEvent("fn_Cal_todd");
  163. var menuparam = frmf_getMenuParam();
  164. if (menuparam == "03")
  165. {
  166. this.text = "의료협력마감이력";
  167. caption6.text = "의료협력마감이력";
  168. ds_main_cond.setColumn(0, "bizflag", menuparam);
  169. }
  170. else
  171. {
  172. this.title = "사회사업마감이력";
  173. caption6.text = "사회사업마감이력";
  174. ds_main_cond.setColumn(0, "bizflag", "02");
  175. }
  176. ds_main_fthendlist_fthendlistinfo.clearData();
  177. var usernm = sysf_getUserInfo("usernm");
  178. group4.ipt_medicntrtrsmpsn.value = usernm;
  179. var CurrentDate = utlf_getCurrentDate();
  180. var lstDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  181. var LastDate = String(lstDate).substr(0,6);
  182. group4.ipt_endym.setData(LastDate);
  183. ipt_fromdd.setData(LastDate);
  184. input1.setData(LastDate);
  185. ds_main_cond.setColumn(0, "endym", LastDate);
  186. ds_main_cond.setColumn(0, "from", LastDate );
  187. ds_main_cond.setColumn(0, "to", LastDate );
  188. }
  189. function fn_Cal_endym()
  190. {
  191. var endym = group4.ipt_endym.getData();
  192. ds_main_cond.setColumn(0, "endym", endym);
  193. }
  194. function fn_Cal_fromdd()
  195. {
  196. var fromdd = ipt_fromdd.getData();
  197. ds_main_cond.setColumn(0, "from", fromdd);
  198. }
  199. function fn_Cal_todd()
  200. {
  201. var to = input1.getData();
  202. ds_main_cond.setColumn(0, "to", to);
  203. }
  204. function btn_end_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. fEnd();
  207. }
  208. function fEnd()
  209. {
  210. var endym = ds_main_cond.getColumn(0, "endym");
  211. var endyy = ds_main_cond.getColumn(0, "endyy");
  212. var endmm = ds_main_cond.getColumn(0, "endmm");
  213. ds_main_cond.setColumn(0, "endym",String(endym).substr(0, 6) );
  214. ds_main_cond.setColumn(0, "endyy",String(endym).substr(0, 4) );
  215. ds_main_cond.setColumn(0, "endmm",String(endym).substr(4, 2) );
  216. var oParam = {};
  217. oParam.id = "TRSDT06103";
  218. oParam.service = "stscmcnwapp.SoclEndStats";
  219. oParam.method = "reqGetSoclWorkStat";
  220. oParam.inds = "req=ds_main_cond";
  221. oParam.outds = "ds_temp_rtninfo=rtninfo";
  222. oParam.async = false;
  223. //oParam.callback = "cf_TRSDT06103";
  224. tranf_submit(oParam);
  225. rtnflag = ds_temp_rtninfo.getColumn(0, "rtnflag");
  226. if(rtnflag == "00")
  227. {
  228. sysf_messageBox("마감중입니다.","E");
  229. return;
  230. }
  231. else if(rtnflag =="01")
  232. {
  233. sysf_messageBox("마감에러 상태입니다.","E");
  234. return;
  235. }
  236. else if(rtnflag =="02")
  237. {
  238. var vbYes = sysf_messageBox("마감 완료된 상태입니다.마감을", "Q004");
  239. if(vbYes == 6)
  240. {
  241. }
  242. else
  243. {
  244. return;
  245. }
  246. }
  247. else if(rtnflag =="03")
  248. {
  249. var vbYes = sysf_messageBox("마감 완료된 상태입니다.마감을", "Q004");
  250. if(vbYes == 6)
  251. {
  252. }
  253. else
  254. {
  255. return;
  256. }
  257. }
  258. else if(rtnflag =="04")
  259. {
  260. var vbYes = sysf_messageBox("의료원송신 완료된 상태입니다.마감을", "Q004");
  261. if(vbYes == 6)
  262. {
  263. }
  264. else
  265. {
  266. return;
  267. }
  268. }
  269. var oParam = {};
  270. oParam.id = "TRSDT06101";
  271. oParam.service = "stscmcnwapp.SoclEndStats";
  272. oParam.method = "reqSetSoclEndStats";
  273. oParam.inds = "req=ds_main_cond";
  274. oParam.outds = "ds_temp_rtninfo=rtninfo";
  275. oParam.async = false;
  276. oParam.callback = "cf_TRSDT06101";
  277. tranf_submit(oParam);
  278. }
  279. function cf_TRSDT06101(sSvcId, nErrorCode, sErrorMsg)
  280. {
  281. if(nErrorCode < 0) return;
  282. else
  283. {
  284. rtnflag = ds_temp_rtninfo.getColumn(0, "rtnflag");
  285. if (rtnflag =="99")
  286. {
  287. sysf_messageBox("마감이 정상적으로 실행되었습니다.","I");
  288. }
  289. }
  290. }
  291. function button3_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. fGetFthEndYM();
  294. }
  295. function fGetFthEndYM()
  296. {
  297. var oParam = {};
  298. oParam.id = "TRSDT06102";
  299. oParam.service = "stscmcnwapp.SoclEndStats";
  300. oParam.method = "reqGetSoclEndStatsSeqInfo";
  301. oParam.inds = "req=ds_main_cond";
  302. oParam.outds = "ds_main_fthendlist_fthendlistinfo=fthendlistinfo";
  303. oParam.async = false;
  304. //oParam.callback = "cf_TRSDT06102";
  305. tranf_submit(oParam);
  306. }
  307. function button1_onclick(obj:Button, e:ClickEventInfo)
  308. {
  309. frmf_modal("SMZSB00201", "SMZSB00201", "", "", "", "", "", "", "", "", "", "", "M");
  310. }
  311. ]]></Script>
  312. </Form>
  313. </FDL>