SMPAO99901_무인수납미반환내역관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAO99901" position="absolute 0 0 1196 770" titletext="무인수납미반환내역관리" onload="SMPAO99901_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 70 1194 737" id="datagrid1" class="datagrid2" binddataset="ds_main_h_klog" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="75"/>
  12. <Column size="72"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="71"/>
  17. <Column size="66"/>
  18. <Column size="68"/>
  19. <Column size="68"/>
  20. <Column size="0"/>
  21. <Column size="59"/>
  22. <Column size="338"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="61"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="30"/>
  33. <Column size="142"/>
  34. <Column size="77"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="30" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell text="환자번호"/>
  42. <Cell col="1" text="진료일자"/>
  43. <Cell col="2" text="생성번호"/>
  44. <Cell col="3" text="기관코드"/>
  45. <Cell col="4" text="일련번호"/>
  46. <Cell col="5" text="본인부담금"/>
  47. <Cell col="6" text="투입금액"/>
  48. <Cell col="7" text="잔돈"/>
  49. <Cell col="8" text="미반환금액"/>
  50. <Cell col="9" text="처리상태"/>
  51. <Cell col="10" text="에러코드"/>
  52. <Cell col="11" text="에러메세지"/>
  53. <Cell col="12" text="영수일자"/>
  54. <Cell col="13" text="영수증번호"/>
  55. <Cell col="14" text="영수일련"/>
  56. <Cell col="15" text="수납시간"/>
  57. <Cell col="16" text="수납자"/>
  58. <Cell col="17" text="최초등록자"/>
  59. <Cell col="18" text="최초등록일시"/>
  60. <Cell col="19" text="최종수정자"/>
  61. <Cell col="20" text="최종수정일시"/>
  62. <Cell col="21" text="확인&#13;&#10;여부"/>
  63. <Cell col="22" text="확인일시"/>
  64. <Cell col="23" text="확인자"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell displaytype="text" text="bind:klog_pid"/>
  68. <Cell col="1" displaytype="text" text="bind:klog_orddd"/>
  69. <Cell col="2" displaytype="text" text="bind:klog_cretno"/>
  70. <Cell col="3" displaytype="text" text="bind:klog_instcd"/>
  71. <Cell col="4" displaytype="text" text="bind:klog_seqno"/>
  72. <Cell col="5" displaytype="text" text="bind:klog_ownbamt"/>
  73. <Cell col="6" displaytype="text" text="bind:klog_inputamt"/>
  74. <Cell col="7" displaytype="text" text="bind:klog_chngamt"/>
  75. <Cell col="8" displaytype="text" text="bind:klog_erramt"/>
  76. <Cell col="9" displaytype="text" text="bind:klog_choiceflag"/>
  77. <Cell col="10" displaytype="text" text="bind:klog_notcode"/>
  78. <Cell col="11" displaytype="text" style="align:left middle;padding:0 0 0 3;" text="bind:klog_notmsg"/>
  79. <Cell col="12" displaytype="text" text="bind:klog_rcptdd"/>
  80. <Cell col="13" displaytype="text" text="bind:klog_rcptno"/>
  81. <Cell col="14" displaytype="text" text="bind:klog_rcptseqno"/>
  82. <Cell col="15" displaytype="text" text="bind:klog_rcpttm"/>
  83. <Cell col="16" displaytype="text" text="bind:klog_rcptid"/>
  84. <Cell col="17" displaytype="text" text="bind:klog_fstrgstrid"/>
  85. <Cell col="18" displaytype="text" text="bind:klog_fstrgstdt"/>
  86. <Cell col="19" displaytype="text" text="bind:klog_lastupdtrid"/>
  87. <Cell col="20" displaytype="text" text="bind:klog_lastupdtdt"/>
  88. <Cell col="21" displaytype="checkbox" edittype="checkbox" text="bind:klog_cfmyn" expr="expr:(klog_cfmyn == 'true' || klog_cfmyn == '1') ? '1' : '0'"/>
  89. <Cell col="22" displaytype="text" text="bind:klog_cfmdt"/>
  90. <Cell col="23" displaytype="text" text="bind:klog_cfmrid"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Button position="absolute 1068 743 1124 765" id="button2" class="btn4" text="저장" onclick="button2_onclick" anchor="right bottom"/>
  96. <Button position="absolute 1126 743 1194 765" id="button3" class="btn4" text="초기화" onclick="button3_onclick" anchor="right bottom"/>
  97. <Static id="caption6" text="무인수납미반환내역관리" class="tit_1" position="absolute 0 0 200 25" anchor="left top"/>
  98. <Div id="grp" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
  99. <Layouts>
  100. <Layout>
  101. <Static id="caption1" text="조회조건" position="absolute 15 11 86 31" class="search_name"/>
  102. <Combo id="combo1" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 91 12 191 31" anchor="default" onitemchanged="grp_combo1_onitemchanged">
  103. <Dataset id="innerdataset">
  104. <ColumnInfo>
  105. <Column id="codecolumn"/>
  106. <Column id="datacolumn"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="codecolumn">1</Col>
  111. <Col id="datacolumn">환자번호</Col>
  112. </Row>
  113. <Row>
  114. <Col id="codecolumn">2</Col>
  115. <Col id="datacolumn">진료일자</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">3</Col>
  119. <Col id="datacolumn">수납일자</Col>
  120. </Row>
  121. <Row>
  122. <Col id="codecolumn">4</Col>
  123. <Col id="datacolumn">발생일자</Col>
  124. </Row>
  125. </Rows>
  126. </Dataset>
  127. </Combo>
  128. <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1120 10 1179 30" anchor="top right" onclick="grp_button1_onclick"/>
  129. <Calendar id="ipt_date" taborder="3" position="absolute 193 12 291 31" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  130. <Edit id="ipt_pid" taborder="4" position="absolute 193 12 293 31" anchor="default"/>
  131. </Layout>
  132. </Layouts>
  133. </Div>
  134. <Shape id="line1" class="line_1" position="absolute 0 65 1194 71" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  135. <Shape id="line32" class="line_6" position="absolute 0 736 1194 742" anchor="left right bottom"/>
  136. </Layout>
  137. </Layouts>
  138. <Objects>
  139. <Dataset id="ds_hidden_con" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="con1" type="STRING" size="256"/>
  142. <Column id="con2" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row/>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_main_h_klog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_h_klog_oncolumnchanged">
  149. <ColumnInfo>
  150. <Column id="klog_pid" type="STRING" size="256" sumtext="환자번호"/>
  151. <Column id="klog_orddd" type="STRING" size="256" sumtext="진료일자"/>
  152. <Column id="klog_cretno" type="STRING" size="256" sumtext="생성번호"/>
  153. <Column id="klog_instcd" type="STRING" size="256" sumtext="기관코드"/>
  154. <Column id="klog_seqno" type="STRING" size="256" sumtext="일련번호"/>
  155. <Column id="klog_ownbamt" type="STRING" size="256" sumtext="본인부담금"/>
  156. <Column id="klog_inputamt" type="STRING" size="256" sumtext="투입금액"/>
  157. <Column id="klog_chngamt" type="STRING" size="256" sumtext="잔돈"/>
  158. <Column id="klog_erramt" type="STRING" size="256" sumtext="미반환금액"/>
  159. <Column id="klog_choiceflag" type="STRING" size="256" sumtext="처리상태"/>
  160. <Column id="klog_notcode" type="STRING" size="256" sumtext="에러코드"/>
  161. <Column id="klog_notmsg" type="STRING" size="256" sumtext="에러메세지"/>
  162. <Column id="klog_rcptdd" type="STRING" size="256" sumtext="영수일자"/>
  163. <Column id="klog_rcptno" type="STRING" size="256" sumtext="영수증번호"/>
  164. <Column id="klog_rcptseqno" type="STRING" size="256" sumtext="영수증일련번호"/>
  165. <Column id="klog_rcpttm" type="STRING" size="256" sumtext="수납시간"/>
  166. <Column id="klog_rcptid" type="STRING" size="256" sumtext="수납자"/>
  167. <Column id="klog_fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  168. <Column id="klog_fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  169. <Column id="klog_lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  170. <Column id="klog_lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  171. <Column id="klog_cfmyn" type="STRING" size="256" sumtext="확인여부"/>
  172. <Column id="klog_cfmdt" type="STRING" size="256" sumtext="확인일시"/>
  173. <Column id="klog_cfmrid" type="STRING" size="256" sumtext="확인자"/>
  174. </ColumnInfo>
  175. </Dataset>
  176. </Objects>
  177. <Bind>
  178. <BindItem id="item0" compid="grp.ipt_date" propid="value" datasetid="ds_hidden_con" columnid="con2"/>
  179. <BindItem id="item1" compid="grp.ipt_pid" propid="value" datasetid="ds_hidden_con" columnid="con2"/>
  180. <BindItem id="item2" compid="grp.combo1" propid="value" datasetid="ds_hidden_con" columnid="con1"/>
  181. </Bind>
  182. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  183. * System Name :
  184. * Job Name :
  185. * Creator :
  186. * Make Date : 2016-05-24
  187. * Description :
  188. *---------------------------------------------------------------------------------------
  189. * Modify Date Modifier Modify Description
  190. *---------------------------------------------------------------------------------------
  191. * 2016-05-24 Live Converter TF->XP
  192. *
  193. *---------------------------------------------------------------------------------------
  194. ****************************************************************************************/
  195. //=======================================================================================
  196. // Lib Include
  197. //---------------------------------------------------------------------------------------
  198. include 'com_commonxp::comm_main.xjs';
  199. var arErrorCode = new HashArray();
  200. //=======================================================================================
  201. // Local methods
  202. //---------------------------------------------------------------------------------------
  203. /**
  204. * fInitialize
  205. * @return {[type]} [description]
  206. */
  207. function fInitialize() {
  208. ds_main_h_klog.clearData();
  209. ds_hidden_con.setColumn(0, "con1", "4");
  210. fConSet();
  211. }
  212. /**
  213. * fConSet
  214. * @return {[type]} [description]
  215. */
  216. function fConSet() {
  217. var con = ds_hidden_con.getColumn(0, "con1");
  218. if (con == "1") {
  219. ds_hidden_con.setColumn(0, "con2", '');
  220. grp.ipt_pid.visible = true;
  221. grp.ipt_date.visible = false;
  222. }
  223. else {
  224. ds_hidden_con.setColumn(0, "con2", utlf_getCurrentDate());
  225. grp.ipt_pid.visible = false;
  226. grp.ipt_date.visible = true;
  227. }
  228. }
  229. /**
  230. * submit 후 호출 될 공통 콜백
  231. * @param {[type]} sSvcId [description]
  232. * @param {[type]} nErrorCode [description]
  233. * @param {[type]} sErrorMsg [description]
  234. * @return {Function} [description]
  235. */
  236. function callback(sSvcId, nErrorCode, sErrorMsg){
  237. arErrorCode.push(sSvcId, nErrorCode);
  238. }
  239. //=======================================================================================
  240. // Events
  241. //---------------------------------------------------------------------------------------
  242. /**
  243. * onload 이벤트 발생 시 호출
  244. * @param {[type]} obj:Form [description]
  245. * @param {[type]} e:LoadEventInfo [description]
  246. */
  247. function SMPAO99901_onload(obj: Form, e: LoadEventInfo) {
  248. frmf_initForm(obj);
  249. fInitialize();
  250. }
  251. /**
  252. * 조회조건 콤보 아이템 변경 후 이벤트
  253. * @param {[type]} obj: Combo [description]
  254. * @param {[type]} e: ItemChangeEventInfo [description]
  255. * @return {[type]} [description]
  256. */
  257. function grp_combo1_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  258. fConSet();
  259. }
  260. /**
  261. * 조회 버튼 클릭 이벤트
  262. * @param {[type]} obj: Button [description]
  263. * @param {[type]} e: ClickEventInfo [description]
  264. * @return {[type]} [description]
  265. */
  266. function grp_button1_onclick(obj: Button, e: ClickEventInfo) {
  267. var con1 = utlf_transNullToEmpty(ds_hidden_con.getColumn(0, "con1"));
  268. var con2 = utlf_transNullToEmpty(ds_hidden_con.getColumn(0, "con2"));
  269. if (con1 == "" || con1 == " " || con1 == "-") {
  270. sysf_messageBox("조회조건을 선택하십시요!", "E999", "");
  271. return;
  272. }
  273. if (con2 == "" || con2 == " " || con2 == "-") {
  274. sysf_messageBox("상세 조회조건을 입력하십시요!", "E999", "");
  275. return;
  276. }
  277. ds_main_h_klog.clearData();
  278. var oParam = {};
  279. oParam.id = "TRPAO99901";
  280. oParam.service = "kioskmngtapp.KioskRcpt";
  281. oParam.method = "reqGetKioskLog";
  282. oParam.inds = "klog=ds_hidden_con";
  283. oParam.outds = "ds_main_h_klog=h_klog";
  284. oParam.async = false;
  285. tranf_submit(oParam);
  286. }
  287. /**
  288. * ds_main_h_klog 컬럼 데이터 변경 후 이벤트
  289. * @param {[type]} obj: Dataset [description]
  290. * @param {[type]} e: DSColChangeEventInfo [description]
  291. * @return {[type]} [description]
  292. */
  293. function ds_main_h_klog_oncolumnchanged(obj: Dataset, e: DSColChangeEventInfo) {
  294. if (e.columnid == 'klog_cfmyn') {
  295. var value = '';
  296. if (e.newvalue == 'true' || e.newvalue == '1') {
  297. value = 'true';
  298. }
  299. obj.setColumn(e.row, e.columnid, value);
  300. }
  301. }
  302. /**
  303. * 저장 버튼 클릭 이벤트
  304. * @param {[type]} obj: Button [description]
  305. * @param {[type]} e: ClickEventInfo [description]
  306. * @return {[type]} [description]
  307. */
  308. function button2_onclick(obj: Button, e: ClickEventInfo) {
  309. var klog_cnt = ds_main_h_klog.rowcount;
  310. if (klog_cnt < 1) {
  311. sysf_messageBox("저장할 내역이 조회되지 않았습니다!", "E999", "");
  312. return;
  313. }
  314. var klog_currow = datagrid1.currentrow;
  315. if (klog_currow < 0) {
  316. sysf_messageBox("저장할 내역이 선택되지 않았습니다!", "E999", "");
  317. return;
  318. }
  319. //2019-01-03 TXPAO99904 submit에 klog_cfmyn 컬럼 값이 null로 지정되어야 오류가 없어짐.
  320. dsf_createDs('ds_req');
  321. dsf_copyColInfo(ds_req, ds_main_h_klog, false);
  322. ds_req.copyRow(ds_req.addRow(), ds_main_h_klog, klog_currow);
  323. ds_req.updatecontrol = false;
  324. ds_req.deleteColumn("klog_cfmyn");
  325. ds_req.updatecontrol = true;
  326. var oParam = {};
  327. oParam.id = "TXPAO99904";
  328. oParam.service = "kioskmngtapp.KioskRcpt";
  329. oParam.method = "reqSetKioskLog";
  330. oParam.inds = "klog=ds_req";
  331. oParam.outds = "";
  332. oParam.async = false;
  333. tranf_submit(oParam);
  334. }
  335. /**
  336. * 초기화 버튼 클릭 이벤트
  337. * @param {[type]} obj: Button [description]
  338. * @param {[type]} e: ClickEventInfo [description]
  339. * @return {[type]} [description]
  340. */
  341. function button3_onclick(obj: Button, e: ClickEventInfo) {
  342. fInitialize();
  343. }
  344. ]]></Script>
  345. </Form>
  346. </FDL>