SMPIF30130_반송관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIF30130" position="absolute 0 0 1205 700" titletext="반송관리" oninit="SMPIF30130_oninit" onload="SMPIF30130_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1194 669" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="반송관리" position="absolute 1 5 135 27" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 21 1194 27" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  12. <Grid position="absolute 0 26 1194 663" id="grd_pirhrsnd" class="datagrid2" binddataset="ds_main_list00_gridpirhrsnd00" oncellclick="group3_grd_pirhrsnd_oncellclick" onkeydown="group3_grd_pirhrsnd_onkeydown" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="30"/>
  21. <Column size="0"/>
  22. <Column size="39"/>
  23. <Column size="60"/>
  24. <Column size="70"/>
  25. <Column size="45"/>
  26. <Column size="30"/>
  27. <Column size="30"/>
  28. <Column size="70"/>
  29. <Column size="70"/>
  30. <Column size="50"/>
  31. <Column size="80"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. <Column size="80"/>
  37. <Column size="90"/>
  38. <Column size="100"/>
  39. <Column size="56"/>
  40. <Column size="60"/>
  41. <Column size="110"/>
  42. <Column size="80"/>
  43. <Column size="50"/>
  44. <Column size="50"/>
  45. <Column size="0"/>
  46. </Columns>
  47. <Rows>
  48. <Row size="35" band="head"/>
  49. <Row size="24"/>
  50. </Rows>
  51. <Band id="head">
  52. <Cell text="청구월"/>
  53. <Cell col="1" text="미수일련번호"/>
  54. <Cell col="2" text="기관코드"/>
  55. <Cell col="3" text="접수번호"/>
  56. <Cell col="4" text="청구번호"/>
  57. <Cell col="5" text="심사차수"/>
  58. <Cell col="6" text="No"/>
  59. <Cell col="7" text="재청구&#10;생성여부"/>
  60. <Cell col="8" text="재청구일자"/>
  61. <Cell col="9" text="진료과"/>
  62. <Cell col="10" colspan="2" text="반송사유" taborder="undefined"/>
  63. <Cell col="12" text="명일련"/>
  64. <Cell col="13" text="등록번호"/>
  65. <Cell col="14" text="수진자"/>
  66. <Cell col="15" text="총진료비"/>
  67. <Cell col="16" text="청구액"/>
  68. <Cell col="17" text="상한액"/>
  69. <Cell col="18" text="지원금"/>
  70. <Cell col="19" text="장애인"/>
  71. <Cell col="20" text="대불금"/>
  72. <Cell col="21" text="보험유형"/>
  73. <Cell col="22" text="수진자주민번호"/>
  74. <Cell col="23" text="피보험자"/>
  75. <Cell col="24" text="기관기호"/>
  76. <Cell col="25" text="기관명"/>
  77. <Cell col="26" text="부제기사유"/>
  78. <Cell col="27" text="심사자"/>
  79. <Cell col="28" text="진료의"/>
  80. <Cell col="29"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell text="bind:clamym"/>
  84. <Cell col="1" text="bind:decoseq"/>
  85. <Cell col="2" text="bind:instcd"/>
  86. <Cell col="3" text="bind:acptno"/>
  87. <Cell col="4" text="bind:clamno"/>
  88. <Cell col="5" text="bind:judgdg"/>
  89. <Cell col="6" text="bind:rsndseqno"/>
  90. <Cell col="7" displaytype="normal" edittype="none" text="bind:reclamyn"/>
  91. <Cell col="8" displaytype="date" text="bind:reclamym" mask="yyyy-MM"/>
  92. <Cell col="9" text="bind:orddeptcd"/>
  93. <Cell col="10" text="bind:adjtresn1"/>
  94. <Cell col="11" text="bind:adjtresn2"/>
  95. <Cell col="12" text="bind:docuseqno"/>
  96. <Cell col="13" text="bind:pid"/>
  97. <Cell col="14" displaytype="normal" style="align:right middle;" text="bind:patnm"/>
  98. <Cell col="15" displaytype="number" text="bind:clmcstotamt"/>
  99. <Cell col="16" displaytype="number" text="bind:clclamamt"/>
  100. <Cell col="17" displaytype="number" text="bind:clownbmaxexamt"/>
  101. <Cell col="18" displaytype="number" text="bind:clsuppamt"/>
  102. <Cell col="19" displaytype="number" text="bind:clhandicaprfund"/>
  103. <Cell col="20" displaytype="number" text="bind:clsubtamt"/>
  104. <Cell col="21" text="bind:insukind"/>
  105. <Cell col="22" text="bind:patrrgstno"/>
  106. <Cell col="23" text="bind:insdnm"/>
  107. <Cell col="24" text="bind:corpmark"/>
  108. <Cell col="25" style="align:left middle;" text="bind:corpmarknm"/>
  109. <Cell col="26" text="bind:abdresncd"/>
  110. <Cell col="27" style="align:right middle;" text="bind:judgrid"/>
  111. <Cell col="28" text="bind:orddrid"/>
  112. <Cell col="29" text="bind:clamdg"/>
  113. </Band>
  114. </Format>
  115. </Formats>
  116. </Grid>
  117. <Button position="absolute 1114 2 1194 21" id="button12" class="btn7" text="엑셀저장" onclick="group3_button12_onclick"/>
  118. <Button position="absolute 1019 2 1113 21" id="button7" class="btn7" text="Open Excel" onclick="group3_button7_onclick"/>
  119. <Button position="absolute 910 2 963 21" id="button10" class="btn2" text="열카피" onclick="group3_button10_onclick"/>
  120. <Button position="absolute 965 2 1018 21" id="button11" class="btn2" text="행카피" onclick="group3_button11_onclick"/>
  121. <Button position="absolute 855 2 908 21" id="button13" class="btn2" text="셀카피" onclick="group3_button13_onclick"/>
  122. <Button position="absolute 743 2 796 21" id="fixedcolsbtn" class="btn5" text="틀고정" onclick="group3_fixedcolsbtn_onclick"/>
  123. <Button position="absolute 797 2 853 21" id="button3" class="btn5" text="틀해제" onclick="group3_button3_onclick"/>
  124. </Layout>
  125. </Layouts>
  126. </Div>
  127. <Div position="absolute 4 659 1198 686" id="group2" scrollbars="autoboth">
  128. <Layouts>
  129. <Layout width="1194" height="27">
  130. <Button position="absolute 1133 5 1189 27" id="button1" class="btn4" text="닫기" anchor="default" onclick="group2_button1_onclick"/>
  131. </Layout>
  132. </Layouts>
  133. </Div>
  134. </Layout>
  135. </Layouts>
  136. <Objects>
  137. <Dataset id="ds_send_sendlnk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  138. <Dataset id="ds_send_sendlist00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="acptno" type="STRING" size="256"/>
  141. <Column id="clamno" type="STRING" size="256"/>
  142. <Column id="instcd" type="STRING" size="256"/>
  143. <Column id="judgdg" type="STRING" size="256"/>
  144. <Column id="screenflag" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row/>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_main_list00_gridpirhrsnd00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="clamym" type="STRING" size="256" sumtext="청구월"/>
  153. <Column id="decoseq" type="STRING" size="256" sumtext="미수일련번호"/>
  154. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  155. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  156. <Column id="clamno" type="STRING" size="256" sumtext="청구번호"/>
  157. <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
  158. <Column id="rsndseqno" type="STRING" size="256" sumtext="순번"/>
  159. <Column id="reclamyn" type="STRING" size="256" sumtext="재청구여부"/>
  160. <Column id="reclamym" type="STRING" size="256" sumtext="재청구월"/>
  161. <Column id="adjtresn1" type="STRING" size="256" sumtext="반송사유1"/>
  162. <Column id="adjtresn2" type="STRING" size="256" sumtext="반송사유2"/>
  163. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  164. <Column id="docuseqno" type="STRING" size="256" sumtext="명일련"/>
  165. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  166. <Column id="patnm" type="STRING" size="256" sumtext="수진자명"/>
  167. <Column id="clmcstotamt" type="STRING" size="256" sumtext="청구총진료비"/>
  168. <Column id="clclamamt" type="STRING" size="256" sumtext="청구액"/>
  169. <Column id="clownbmaxexamt" type="STRING" size="256" sumtext="청구상한액"/>
  170. <Column id="clsuppamt" type="STRING" size="256" sumtext="청구지원금"/>
  171. <Column id="clhandicaprfund" type="STRING" size="256" sumtext="청구장애인"/>
  172. <Column id="clsubtamt" type="STRING" size="256" sumtext="대불금"/>
  173. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  174. <Column id="patrrgstno" type="STRING" size="256" sumtext="환자주민번호"/>
  175. <Column id="insdnm" type="STRING" size="256" sumtext="피보험자"/>
  176. <Column id="corpmark" type="STRING" size="256" sumtext="기관기호"/>
  177. <Column id="corpmarknm" type="STRING" size="256" sumtext="기관명"/>
  178. <Column id="abdresncd" type="STRING" size="256" sumtext="부제기사유코드"/>
  179. <Column id="judgrid" type="STRING" size="256" sumtext="심사자"/>
  180. <Column id="orddrid" type="STRING" size="256" sumtext="주치의"/>
  181. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  182. <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. </Objects>
  186. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  187. * System Name :
  188. * Job Name :
  189. * Creator :
  190. * Make Date : 2016-05-24
  191. * Description :
  192. *---------------------------------------------------------------------------------------
  193. * Modify Date Modifier Modify Description
  194. *---------------------------------------------------------------------------------------
  195. * 2016-05-24 Live Converter TF->XP
  196. *
  197. *---------------------------------------------------------------------------------------
  198. ****************************************************************************************/
  199. include "com_commonxp::comm_main.xjs";
  200. include "pam_pamcomnxp::PAM001.xjs";
  201. include "pam_pamcomnxp::PAM.xjs";
  202. var col = "N";
  203. function SMPIF30130_oninit(obj:Form, e:InitEventInfo)
  204. {
  205. frmf_initForm(obj);
  206. }
  207. function SMPIF30130_onload(obj:Form, e:LoadEventInfo)
  208. {
  209. grdf_setToolTipBind(group3.grd_pirhrsnd);
  210. if(frmf_checkOpener())
  211. {
  212. ds_send_sendlnk.copyData(arg_ds_send_sendlnk);
  213. }
  214. if(ds_send_sendlnk.getColumn(0, "insukind") == "11")
  215. {
  216. group3.grd_pirhrsnd.setFormatColProperty(20, "size", 0);
  217. }
  218. else
  219. {
  220. group3.grd_pirhrsnd.setFormatColProperty(17, "size", 0);
  221. group3.grd_pirhrsnd.setFormatColProperty(18, "size", 0);
  222. }
  223. ds_send_sendlist00.setColumn(0, "acptno", ds_send_sendlnk.getColumn(0, "acptno"));
  224. ds_send_sendlist00.setColumn(0, "clamno", ds_send_sendlnk.getColumn(0, "clamno"));
  225. ds_send_sendlist00.setColumn(0, "judgdg", ds_send_sendlnk.getColumn(0, "judgdg"));
  226. ds_send_sendlist00.setColumn(0, "instcd", ds_send_sendlnk.getColumn(0, "instcd"));
  227. ds_send_sendlist00.setColumn(0, "screenflag", ds_send_sendlnk.getColumn(0, "screenflag"));
  228. var oParam = {};
  229. oParam.id = "TRPIF30131";
  230. oParam.service = "clamuncoapp.ClamUnco";
  231. oParam.method = "reqGetPirhrsnd01";
  232. oParam.inds = "req=ds_send_sendlist00";
  233. oParam.outds = "ds_main_list00_gridpirhrsnd00=gridpirhrsnd00";
  234. oParam.async = false;
  235. //oParam.callback = "cf_TRPIF30131";
  236. tranf_submit(oParam);
  237. ds_main_list00_gridpirhrsnd00.rowposition = -1;
  238. }
  239. function group3_fixedcolsbtn_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. for(var i = 4; i < 15; i++)
  242. {
  243. group3.grd_pirhrsnd.setCellProperty("Body", i, "celltype", "head");
  244. group3.grd_pirhrsnd.setCellProperty("Body", 14, "align", "center middle");
  245. }
  246. }
  247. function group3_button3_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. for(var i = 4; i < 15; i++)
  250. {
  251. group3.grd_pirhrsnd.setCellProperty("Body", i, "celltype", "body");
  252. group3.grd_pirhrsnd.setCellProperty("Body", 14, "align", "right middle");
  253. }
  254. }
  255. function group3_button13_onclick(obj:Button, e:ClickEventInfo)
  256. {
  257. col = "N";
  258. group3.grd_pirhrsnd.selecttype = "multiarea";
  259. }
  260. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. col = "Y";
  263. group3.grd_pirhrsnd.selecttype = "multiarea";
  264. }
  265. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. col = "N";
  268. group3.grd_pirhrsnd.selecttype = "multirow";
  269. }
  270. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  271. {
  272. system.execShell("excel");
  273. }
  274. function group3_button12_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. var rows = ds_main_list00_gridpirhrsnd00.rowcount;
  277. for(var i = 0; i < rows; i++)
  278. {
  279. var temp1 = ds_main_list00_gridpirhrsnd00.getColumn(i, "clamno");
  280. var temp3 = "'" + temp1
  281. ds_main_list00_gridpirhrsnd00.setColumn(i, "clamno", temp3);
  282. }
  283. var today = new Date();
  284. var yy = today.getYear() + "";
  285. var mm = today.getMonth() + 1;
  286. var dd = today.getDate();
  287. if(mm < 10)
  288. {
  289. mm = "0" + mm;
  290. }
  291. else
  292. {
  293. mm = mm + "";
  294. }
  295. if(dd < 10)
  296. {
  297. dd = "0" + dd;
  298. }
  299. else
  300. {
  301. dd = dd + "";
  302. }
  303. var tmp = yy + mm + dd;
  304. if(ds_main_list00_gridpirhrsnd00.rowcount == 0)
  305. {
  306. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  307. }
  308. else
  309. {
  310. grdf_exportExcel(group3.grd_pirhrsnd, "반송관리_"+tmp, "see");
  311. }
  312. }
  313. function group3_grd_pirhrsnd_oncellclick(obj:Grid, e:GridClickEventInfo)
  314. {
  315. var lv_nAreaStartRow;
  316. var lv_nAreaEndRow;
  317. var lv_nAreaStartCol;
  318. var lv_nAreaEndCol;
  319. if(col == "Y")
  320. {
  321. lv_nAreaStartRow = 0;
  322. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  323. lv_nAreaStartCol = parseInt(obj.currentcol);
  324. lv_nAreaEndCol = parseInt(obj.currentcol);
  325. grdf_initGridStyle(obj);
  326. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  327. {
  328. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  329. {
  330. obj.setCellProperty("body",nCell,"background","#FFE7E5");
  331. obj.setCellProperty("body",nCell,"background2","#FFE7E5");
  332. }
  333. }
  334. }
  335. else
  336. {
  337. grdf_initGridStyle(obj);
  338. }
  339. }
  340. function group3_grd_pirhrsnd_onkeydown(obj:Grid, e:KeyEventInfo)
  341. {
  342. if(col == "Y")
  343. {
  344. var CONST_SEPARATOR = " "; //컬럼별 구분자
  345. var lv_oBindDs = eval(obj.binddataset);
  346. var lv_sColID;
  347. var lv_sVal;
  348. var lv_sClipboard = "";
  349. var lv_nAreaStartRow;
  350. var lv_nAreaEndRow;
  351. var lv_nAreaStartCol;
  352. var lv_nAreaEndCol;
  353. if(obj.selecttype == "multiarea")
  354. {
  355. lv_nAreaStartRow = 0;
  356. lv_nAreaEndRow = parseInt(obj.rowcount-1);
  357. lv_nAreaStartCol = parseInt(obj.currentcol);
  358. lv_nAreaEndCol = parseInt(obj.currentcol);
  359. }
  360. for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
  361. {
  362. for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
  363. {
  364. lv_sColID = obj.getCellProperty("body",nCell,"text");
  365. lv_sVal = obj.getCellValue(nRow,nCell);
  366. lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
  367. }
  368. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  369. lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
  370. }
  371. lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
  372. iv_sClipboard = lv_sClipboard;
  373. system.setClipboard("CF_TEXT",lv_sClipboard);
  374. }
  375. else
  376. {
  377. if (e.ctrlKey == true && e.keycode == 67 )
  378. {
  379. grdf_clipboardCopy(obj, "PAM");
  380. }
  381. }
  382. }
  383. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  384. {
  385. this.close();
  386. }
  387. ]]></Script>
  388. </Form>
  389. </FDL>