SMSTP00800_선택진료료배분관리.xfdl 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMSTP00800" position="absolute 0 0 1280 1024" titletext="선택진료료배분관리" onload="SMSTP00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" position="absolute 0 15 1180 50" style="align: top;">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1180 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
  11. <Static id="caption2" class="search_name" position="absolute 16 9 102 26" style="" text="기준년월 :" />
  12. <Button id="button1" class="btn1_letter2" position="absolute 1111 7 1167 29" style="" text="조회" onclick="group2_button1_onclick" />
  13. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1096 7 1099 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  14. <Calendar id="ipt_pid" class="input_s_essential" enable="False" position="absolute 245 8 335 27" style="" anchor="default" onkeypress="group2_ipt_pid_onkeypress" />
  15. <Static id="caption1" class="search_name" position="absolute 464 9 525 26" style="" text="구분 :" />
  16. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 523 8 745 28" style="" onitemchanged="group2_radio1_onitemchanged">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn" />
  20. <Column id="datacolumn" />
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">G</Col>
  25. <Col id="datacolumn">선택진료료 집계</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">D</Col>
  29. <Col id="datacolumn">선택진료료 배분</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Radio>
  34. <Calendar id="input1" class="input_s_essential" enable="False" position="absolute 351 8 441 27" style="" anchor="default" onkeypress="group2_input1_onkeypress" />
  35. <Static id="caption3" position="absolute 337 9 362 24" style="" text="~" />
  36. <Button id="btn_totaling" class="btn4_letter2" position="absolute 755 7 811 29" style="" text="집계" onclick="group2_btn_totaling_onclick" />
  37. <Button id="btn_distributing" class="btn4_letter2" position="absolute 755 7 811 29" style="" text="배분" onclick="group2_btn_distributing_onclick" />
  38. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_month" class="combo_s_essential" position="absolute 168 8 238 27" style="" onitemclick="group2_cmb_month_onitemclick">
  39. <Dataset id="innerdataset">
  40. <ColumnInfo>
  41. <Column id="codecolumn" />
  42. <Column id="datacolumn" />
  43. </ColumnInfo>
  44. <Rows>
  45. <Row>
  46. <Col id="codecolumn">01</Col>
  47. <Col id="datacolumn">1월</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">02</Col>
  51. <Col id="datacolumn">2월</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">03</Col>
  55. <Col id="datacolumn">3월</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">04</Col>
  59. <Col id="datacolumn">4월</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">05</Col>
  63. <Col id="datacolumn">5월</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">06</Col>
  67. <Col id="datacolumn">6월</Col>
  68. </Row>
  69. <Row>
  70. <Col id="codecolumn">07</Col>
  71. <Col id="datacolumn">7월</Col>
  72. </Row>
  73. <Row>
  74. <Col id="codecolumn">08</Col>
  75. <Col id="datacolumn">8월</Col>
  76. </Row>
  77. <Row>
  78. <Col id="codecolumn">09</Col>
  79. <Col id="datacolumn">9월</Col>
  80. </Row>
  81. <Row>
  82. <Col id="codecolumn">10</Col>
  83. <Col id="datacolumn">10월</Col>
  84. </Row>
  85. <Row>
  86. <Col id="codecolumn">11</Col>
  87. <Col id="datacolumn">11월</Col>
  88. </Row>
  89. <Row>
  90. <Col id="codecolumn">12</Col>
  91. <Col id="datacolumn">12월</Col>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. </Combo>
  96. <Edit id="ipt_year" class="input_s_essential" position="absolute 105 8 165 27" style="" anchor="default" onkillfocus="group2_ipt_year_onkillfocus" />
  97. <Static id="caption9" class="search_name" position="absolute 825 9 886 26" style="" text="마감 :" />
  98. <Button id="button6" class="btn4_letter4" position="absolute 995 7 1075 29" style="" text="마감적용" onclick="group2_button6_onclick" />
  99. <Button id="button7" class="btn4_letter4" position="absolute 995 7 1075 29" style="" text="마감취소" onclick="group2_button7_onclick" />
  100. </Layout>
  101. </Layouts>
  102. </Div>
  103. <Div id="grp_tle" position="absolute 0 0 1180 13" style="">
  104. <Layouts>
  105. <Layout>
  106. <Static id="caption6" class="tit_1" position="absolute 0 0 311 14" style="" text="선택진료료배분관리" />
  107. </Layout>
  108. </Layouts>
  109. </Div>
  110. <Div id="group1" position="absolute 0 50 1180 790" style="">
  111. <Layouts>
  112. <Layout>
  113. <Tab id="switch1" position="absolute 0 0 1180 730" style="border: solid #ffffff #ffffff;" anchor="default">
  114. <Tabpages>
  115. <Tabpage id="case_g" position="absolute 0 0 200 200" style="" anchor="default">
  116. <Layouts>
  117. <Layout>
  118. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 5 28 1172 31" style="" anchor="default" />
  119. <Grid id="grd_d" binddataset="ds_main_speccd_speccdlist" position="absolute 5 33 1172 725" style="align:center ;">
  120. <Formats>
  121. <Format id="default">
  122. <Columns>
  123. <Column size="160" />
  124. <Column size="100" />
  125. <Column size="120" />
  126. <Column size="80" />
  127. <Column size="80" />
  128. <Column size="100" />
  129. <Column size="100" />
  130. <Column size="100" />
  131. <Column size="100" />
  132. <Column size="100" />
  133. <Column size="100" />
  134. <Column size="100" />
  135. <Column size="100" />
  136. <Column size="100" />
  137. <Column size="100" />
  138. <Column size="100" />
  139. <Column size="100" />
  140. <Column size="100" />
  141. </Columns>
  142. <Rows>
  143. <Row size="23" band="head" />
  144. <Row size="23" />
  145. </Rows>
  146. <Band id="head">
  147. <Cell text="분류" />
  148. <Cell col="1" text="진료과" />
  149. <Cell col="2" text="진료과명" />
  150. <Cell col="3" text="진료의" />
  151. <Cell col="4" text="진료의명" />
  152. <Cell col="5" text="cd1" />
  153. <Cell col="6" text="cd2" />
  154. <Cell col="7" text="cd3" />
  155. <Cell col="8" text="cd4" />
  156. <Cell col="9" text="cd5" />
  157. <Cell col="10" text="cd6" />
  158. <Cell col="11" text="cd7" />
  159. <Cell col="12" text="cd8" />
  160. <Cell col="13" text="cd9" />
  161. <Cell col="14" text="cd10" />
  162. <Cell col="15" text="cdflagold" />
  163. <Cell col="16" text="orddeptcdold" />
  164. <Cell col="17" text="orddridold" />
  165. <Cell col="18" text="최종수정일시" />
  166. </Band>
  167. <Band id="body">
  168. <Cell text="bind:cdflag" />
  169. <Cell col="1" text="bind:orddeptcd" />
  170. <Cell col="2" text="bind:orddeptnm" />
  171. <Cell col="3" text="bind:orddrid" />
  172. <Cell col="4" text="bind:orddrnm" />
  173. <Cell col="5" text="bind:cd1" />
  174. <Cell col="6" text="bind:cd2" />
  175. <Cell col="7" text="bind:cd3" />
  176. <Cell col="8" text="bind:cd4" />
  177. <Cell col="9" text="bind:cd5" />
  178. <Cell col="10" text="bind:cd6" />
  179. <Cell col="11" text="bind:cd7" />
  180. <Cell col="12" text="bind:cd8" />
  181. <Cell col="13" text="bind:cd9" />
  182. <Cell col="14" text="bind:cd10" />
  183. <Cell col="15" text="bind:cdflagold" />
  184. <Cell col="16" text="bind:orddeptcdold" />
  185. <Cell col="17" text="bind:orddridold" />
  186. </Band>
  187. </Format>
  188. </Formats>
  189. </Grid>
  190. <Static id="caption7" class="tit_2" position="absolute 10 13 180 26" style="" text="선택진료료 배분 공통코드" />
  191. <Button id="btn_delete" class="btn5_letter2" position="absolute 1128 6 1170 25" style="" text="삭제" onclick="group1_switch1_case_g_btn_delete_onclick" />
  192. <Button id="btn_add" class="btn2_letter2" position="absolute 1038 6 1080 25" style="" text="추가" onclick="group1_switch1_case_g_btn_add_onclick" />
  193. <Button id="btn_save" class="btn5_letter2" position="absolute 1083 6 1125 25" style="" text="저장" onclick="group1_switch1_case_g_btn_save_onclick" />
  194. <Combo innerdataset="ds_init_code_P0488list_P0488" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="combo1" position="absolute 200 7 355 26" style="" onitemchanged="group1_switch1_case_g_combo1_onitemchanged" />
  195. <Button id="button8" class="btn2_letter4" position="absolute 972 6 1036 25" style="" text="엑셀저장" onclick="group1_switch1_case_g_button8_onclick" />
  196. </Layout>
  197. </Layouts>
  198. </Tabpage>
  199. <Tabpage id="case_d" selected="true" position="absolute 0 0 1178 738" style="" anchor="default">
  200. <Layouts>
  201. <Layout>
  202. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 5 28 845 31" style="" anchor="default" />
  203. <Static id="caption4" class="tit_2" position="absolute 10 12 185 26" style="" text="선택진료 배분 결과 리스트" />
  204. <Grid id="datagrid1" binddataset="ds_main_specamtreport_specamtreportlist" position="absolute 5 33 845 380" style="align:center ;">
  205. <Formats>
  206. <Format id="default">
  207. <Columns>
  208. <Column size="110" />
  209. <Column size="65" />
  210. <Column size="60" />
  211. <Column size="65" />
  212. <Column size="65" />
  213. <Column size="65" />
  214. <Column size="65" />
  215. <Column size="65" />
  216. <Column size="65" />
  217. <Column size="65" />
  218. <Column size="65" />
  219. <Column size="65" />
  220. </Columns>
  221. <Rows>
  222. <Row size="23" band="head" />
  223. <Row size="23" />
  224. </Rows>
  225. <Band id="head">
  226. <Cell text="진료과" />
  227. <Cell col="1" text="진료의사" />
  228. <Cell col="2" text="직위" />
  229. <Cell col="3" text="개인실적" />
  230. <Cell col="4" text="신개인실적" />
  231. <Cell col="5" text="전스텝" />
  232. <Cell col="6" text="과개인" />
  233. <Cell col="7" text="개인계" />
  234. <Cell col="8" text="소득세" />
  235. <Cell col="9" text="주민세" />
  236. <Cell col="10" text="실지급액" />
  237. <Cell col="11" text="의국비" />
  238. <Cell col="12" text="최종수정일시" />
  239. </Band>
  240. <Band id="body">
  241. <Cell text="bind:orddeptnm" />
  242. <Cell col="1" text="bind:orddrnm" />
  243. <Cell col="2" text="bind:jobposnm" />
  244. <Cell col="3" text="bind:ownspamt" />
  245. <Cell col="4" text="bind:newownspamt" />
  246. <Cell col="5" text="bind:baseamt" />
  247. <Cell col="6" text="bind:deptpamt" />
  248. <Cell col="7" text="bind:psumamt" />
  249. <Cell col="8" text="bind:inctax" />
  250. <Cell col="9" text="bind:restax" />
  251. <Cell col="10" text="bind:realamt" />
  252. <Cell col="11" text="bind:deptrealamt" />
  253. </Band>
  254. </Format>
  255. </Formats>
  256. </Grid>
  257. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 850 28 1177 31" style="" anchor="default" />
  258. <Grid id="datagrid2" binddataset="ds_main_specamtdeptreport_specamtdeptreportlist" position="absolute 850 33 1177 725" style="align:center ;">
  259. <Formats>
  260. <Format id="default">
  261. <Columns>
  262. <Column size="34" />
  263. <Column size="140" />
  264. <Column size="90" />
  265. <Column size="50" />
  266. </Columns>
  267. <Rows>
  268. <Row size="23" band="head" />
  269. <Row size="23" />
  270. </Rows>
  271. <Band id="head">
  272. <Cell text="순번" />
  273. <Cell col="1" text="진료과" />
  274. <Cell col="2" text="지급액" />
  275. <Cell col="3" text="sign" />
  276. <Cell col="4" text="최종수정일시" />
  277. </Band>
  278. <Band id="body">
  279. <Cell text="bind:seq" />
  280. <Cell col="1" text="bind:orddeptnm" />
  281. <Cell col="2" text="bind:realamt" />
  282. <Cell col="3" text="bind:sign" />
  283. </Band>
  284. </Format>
  285. </Formats>
  286. </Grid>
  287. <Static id="caption5" class="tit_2" position="absolute 855 12 1017 26" style="" text="의국비 배분 결과 리스트" />
  288. <Grid id="datagrid3" binddataset="ds_main_specamtpcntreport_specamtpcntreportlist" position="absolute 5 408 845 725" style="align:center ;">
  289. <Formats>
  290. <Format id="default">
  291. <Columns>
  292. <Column size="126" />
  293. <Column size="65" />
  294. <Column size="105" />
  295. <Column size="105" />
  296. <Column size="105" />
  297. <Column size="105" />
  298. <Column size="105" />
  299. <Column size="105" />
  300. </Columns>
  301. <Rows>
  302. <Row size="23" band="head" />
  303. <Row size="23" />
  304. </Rows>
  305. <Band id="head">
  306. <Cell text="진료과" />
  307. <Cell col="1" text="진료의사" />
  308. <Cell col="2" text="외래" />
  309. <Cell col="3" text="외래" />
  310. <Cell col="4" text="입원" />
  311. <Cell col="5" text="입원" />
  312. <Cell col="6" text="합계" />
  313. <Cell col="7" text="합계" />
  314. <Cell col="8" text="최종수정일시|진료과" />
  315. <Cell col="9" text="진료의사" />
  316. <Cell col="10" text="환자수" />
  317. <Cell col="11" text="수입" />
  318. <Cell col="12" text="환자수" />
  319. <Cell col="13" text="수입" />
  320. <Cell col="14" text="과개인" />
  321. <Cell col="15" text="개인계" />
  322. <Cell col="16" text="최종수정일시" />
  323. </Band>
  324. <Band id="body">
  325. <Cell text="bind:orddeptnm" />
  326. <Cell col="1" text="bind:orddrnm" />
  327. <Cell col="2" text="bind:opatcnt" />
  328. <Cell col="3" text="bind:ospcamt" />
  329. <Cell col="4" text="bind:ipatcnt" />
  330. <Cell col="5" text="bind:ispcamt" />
  331. <Cell col="6" text="bind:tpatcnt" />
  332. <Cell col="7" text="bind:tspcamt" />
  333. </Band>
  334. </Format>
  335. </Formats>
  336. </Grid>
  337. <Static id="caption8" class="tit_2" position="absolute 10 389 255 403" style="" text="선택진료 임상과별 환자수 및 수입현황" />
  338. <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 5 403 845 406" style="" anchor="default" />
  339. <Button id="button3" class="btn2_letter4" position="absolute 783 383 847 402" style="" text="엑셀저장" onclick="group1_switch1_case_d_button3_onclick" />
  340. <Button id="button2" class="btn2_letter4" position="absolute 783 7 847 26" style="" text="엑셀저장" onclick="group1_switch1_case_d_button2_onclick" />
  341. <Button id="btn_updtexcel" class="btn2_letter4" position="absolute 1113 7 1177 26" style="" text="엑셀저장" onclick="group1_switch1_case_d_btn_updtexcel_onclick" />
  342. <Button id="btn_print" class="btn6_letter2" position="absolute 726 6 782 28" style="" text="출력" onclick="group1_switch1_case_d_btn_print_onclick" />
  343. <Button id="button4" class="btn6_letter2" position="absolute 1056 6 1112 28" style="" text="출력" onclick="group1_switch1_case_d_button4_onclick" />
  344. <Button id="button5" class="btn6_letter2" position="absolute 726 381 782 403" style="" text="출력" onclick="group1_switch1_case_d_button5_onclick" />
  345. </Layout>
  346. </Layouts>
  347. </Tabpage>
  348. </Tabpages>
  349. </Tab>
  350. </Layout>
  351. </Layouts>
  352. </Div>
  353. </Layout>
  354. </Layouts>
  355. <Objects>
  356. <Dataset id="ds_init_code_P0488list_P0488" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  357. <ColumnInfo>
  358. <Column id="cdid" type="STRING" size="256" />
  359. <Column id="cdnm" type="STRING" size="256" />
  360. </ColumnInfo>
  361. </Dataset>
  362. <Dataset id="ds_main_specamtreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  363. <ColumnInfo />
  364. </Dataset>
  365. <Dataset id="ds_main_specamtpcntreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  366. <ColumnInfo />
  367. </Dataset>
  368. <Dataset id="ds_main_specamtpcntreport_specamtpcntreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  369. <ColumnInfo>
  370. <Column id="orddeptnm" type="STRING" size="256" />
  371. <Column id="orddrnm" type="STRING" size="256" />
  372. <Column id="opatcnt" type="STRING" size="256" />
  373. <Column id="ospcamt" type="STRING" size="256" />
  374. <Column id="ipatcnt" type="STRING" size="256" />
  375. <Column id="ispcamt" type="STRING" size="256" />
  376. <Column id="tpatcnt" type="STRING" size="256" />
  377. <Column id="tspcamt" type="STRING" size="256" />
  378. </ColumnInfo>
  379. <Rows>
  380. <Row>
  381. <Col id="orddeptnm"></Col>
  382. <Col id="orddrnm"></Col>
  383. <Col id="opatcnt"></Col>
  384. <Col id="ospcamt"></Col>
  385. <Col id="ipatcnt"></Col>
  386. <Col id="ispcamt"></Col>
  387. <Col id="tpatcnt"></Col>
  388. <Col id="tspcamt"></Col>
  389. </Row>
  390. </Rows>
  391. </Dataset>
  392. <Dataset id="ds_main_specamtdeptreport_specamtdeptreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  393. <ColumnInfo>
  394. <Column id="seq" type="STRING" size="256" />
  395. <Column id="orddeptnm" type="STRING" size="256" />
  396. <Column id="realamt" type="STRING" size="256" />
  397. <Column id="sign" type="STRING" size="256" />
  398. </ColumnInfo>
  399. <Rows>
  400. <Row>
  401. <Col id="seq"></Col>
  402. <Col id="orddeptnm"></Col>
  403. <Col id="realamt"></Col>
  404. <Col id="sign"></Col>
  405. </Row>
  406. </Rows>
  407. </Dataset>
  408. <Dataset id="ds_init_code" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  409. <ColumnInfo />
  410. </Dataset>
  411. <Dataset id="ds_main_speccd_speccdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  412. <ColumnInfo>
  413. <Column id="cdflag" type="STRING" size="256" />
  414. <Column id="orddeptcd" type="STRING" size="256" />
  415. <Column id="orddrid" type="STRING" size="256" />
  416. <Column id="cd1" type="STRING" size="256" />
  417. <Column id="cd2" type="STRING" size="256" />
  418. <Column id="cd3" type="STRING" size="256" />
  419. <Column id="cd4" type="STRING" size="256" />
  420. <Column id="cd5" type="STRING" size="256" />
  421. <Column id="cd6" type="STRING" size="256" />
  422. <Column id="cd7" type="STRING" size="256" />
  423. <Column id="cd8" type="STRING" size="256" />
  424. <Column id="cd9" type="STRING" size="256" />
  425. <Column id="cd10" type="STRING" size="256" />
  426. <Column id="cdflagold" type="STRING" size="256" />
  427. <Column id="orddeptcdold" type="STRING" size="256" />
  428. <Column id="orddridold" type="STRING" size="256" />
  429. </ColumnInfo>
  430. <Rows>
  431. <Row>
  432. <Col id="cdflag"></Col>
  433. <Col id="orddeptcd"></Col>
  434. <Col id="orddrid"></Col>
  435. <Col id="cd1"></Col>
  436. <Col id="cd2"></Col>
  437. <Col id="cd3"></Col>
  438. <Col id="cd4"></Col>
  439. <Col id="cd5"></Col>
  440. <Col id="cd6"></Col>
  441. <Col id="cd7"></Col>
  442. <Col id="cd8"></Col>
  443. <Col id="cd9"></Col>
  444. <Col id="cd10"></Col>
  445. <Col id="cdflagold"></Col>
  446. <Col id="orddeptcdold"></Col>
  447. <Col id="orddridold"></Col>
  448. </Row>
  449. </Rows>
  450. </Dataset>
  451. <Dataset id="ds_main_speccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  452. <ColumnInfo />
  453. </Dataset>
  454. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  455. <ColumnInfo />
  456. </Dataset>
  457. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  458. <ColumnInfo />
  459. </Dataset>
  460. <Dataset id="ds_init_code_P0488list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  461. <ColumnInfo />
  462. </Dataset>
  463. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  464. <ColumnInfo>
  465. <Column id="orddridlist" type="STRING" size="256" />
  466. </ColumnInfo>
  467. <Rows>
  468. <Row>
  469. <Col id="orddridlist"></Col>
  470. </Row>
  471. </Rows>
  472. </Dataset>
  473. <Dataset id="ds_main_specamtreport_specamtreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  474. <ColumnInfo>
  475. <Column id="orddeptnm" type="STRING" size="256" />
  476. <Column id="orddrnm" type="STRING" size="256" />
  477. <Column id="jobposnm" type="STRING" size="256" />
  478. <Column id="ownspamt" type="STRING" size="256" />
  479. <Column id="newownspamt" type="STRING" size="256" />
  480. <Column id="baseamt" type="STRING" size="256" />
  481. <Column id="deptpamt" type="STRING" size="256" />
  482. <Column id="psumamt" type="STRING" size="256" />
  483. <Column id="inctax" type="STRING" size="256" />
  484. <Column id="restax" type="STRING" size="256" />
  485. <Column id="realamt" type="STRING" size="256" />
  486. <Column id="deptrealamt" type="STRING" size="256" />
  487. </ColumnInfo>
  488. <Rows>
  489. <Row>
  490. <Col id="orddeptnm"></Col>
  491. <Col id="orddrnm"></Col>
  492. <Col id="jobposnm"></Col>
  493. <Col id="ownspamt"></Col>
  494. <Col id="newownspamt"></Col>
  495. <Col id="baseamt"></Col>
  496. <Col id="deptpamt"></Col>
  497. <Col id="psumamt"></Col>
  498. <Col id="inctax"></Col>
  499. <Col id="restax"></Col>
  500. <Col id="realamt"></Col>
  501. <Col id="deptrealamt"></Col>
  502. </Row>
  503. </Rows>
  504. </Dataset>
  505. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  506. <ColumnInfo>
  507. <Column id="statisticflag" type="STRING" size="256" />
  508. <Column id="fromdd" type="STRING" size="256" />
  509. <Column id="todd" type="STRING" size="256" />
  510. <Column id="month" type="STRING" size="256" />
  511. <Column id="year" type="STRING" size="256" />
  512. <Column id="cdflag" type="STRING" size="256" />
  513. <Column id="endyn" type="STRING" size="256" />
  514. <Column id="passwd" type="STRING" size="256" />
  515. </ColumnInfo>
  516. <Rows>
  517. <Row>
  518. <Col id="statisticflag"></Col>
  519. <Col id="fromdd"></Col>
  520. <Col id="todd"></Col>
  521. <Col id="month"></Col>
  522. <Col id="year"></Col>
  523. <Col id="cdflag"></Col>
  524. <Col id="endyn"></Col>
  525. <Col id="passwd"></Col>
  526. </Row>
  527. </Rows>
  528. </Dataset>
  529. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  530. <ColumnInfo>
  531. <Column id="orddeptcdlist" type="STRING" size="256" />
  532. </ColumnInfo>
  533. <Rows>
  534. <Row>
  535. <Col id="orddeptcdlist"></Col>
  536. </Row>
  537. </Rows>
  538. </Dataset>
  539. <Dataset id="ds_main_specamtdeptreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  540. <ColumnInfo />
  541. </Dataset>
  542. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  543. <ColumnInfo>
  544. <Column id="rcv" type="STRING" size="256" />
  545. <Column id="fromtodd" type="STRING" size="256" />
  546. </ColumnInfo>
  547. <Rows>
  548. <Row>
  549. <Col id="rcv"></Col>
  550. <Col id="fromtodd"></Col>
  551. </Row>
  552. </Rows>
  553. </Dataset>
  554. </Objects>
  555. <Bind>
  556. <BindItem id="item0" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="fromdd" />
  557. <BindItem id="item1" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="statisticflag" />
  558. <BindItem id="item2" compid="group2.input1" propid="value" datasetid="ds_send" columnid="todd" />
  559. <BindItem id="item3" compid="group2.cmb_month" propid="value" datasetid="ds_send" columnid="month" />
  560. <BindItem id="item4" compid="group2.ipt_year" propid="value" datasetid="ds_send" columnid="year" />
  561. <BindItem id="item5" compid="group1.switch1.case_g.combo1" propid="value" datasetid="ds_send" columnid="cdflag" />
  562. </Bind>
  563. <Script type="xscript4.0"><![CDATA[function SMSTP00800_onload(obj:Form, e:LoadEventInfo) {
  564. frmf_initForm(obj);
  565. //grdf_initGrid(grd_XXX);
  566. //grdf_setGridSort(grd_XXX);
  567. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  568. var arrParam = [ {dsNm: "ds_init_code_P0488list",
  569. cdGrpId: "P0488" } ];
  570. appf_getCodeList(arrParam, );
  571. //
  572. // //진료과코드 진료의사ID 조회
  573. pamGetDeptCDDrIDList();
  574. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  575. fInitialize();
  576. }
  577. include '../../.._com_commonweb_js_common.js'
  578. include '../../.._com_commonweb_js_tfHelper.js'
  579. include '../../.._com_commonweb_js_utilHelper.js'
  580. include '../../.._com_commonweb_js_dateHelper.js'
  581. include '../../.._com_basiccodeweb_js_ZBC001.js'
  582. include '../../.._pam_pamcomnweb_js_PAM.js'
  583. include '../../.._pam_opatmngtweb_js_PMOCOM.js'
  584. var Authority = 'N'; //권한설정 'S' 모든권한, 'N' 조회권한
  585. var psswd = '';
  586. function fCheckSearchValues(){
  587. if( ds_send.getColumn(0, "pid") != '' || ds_send.getColumn(0, "hngnm") != '' || ds_send.getColumn(0, "rrgstno1") != '' ||
  588. ds_send.getColumn(0, "rrgstno2") != '' || ds_send.getColumn(0, "fromdd") != '' || ds_send.getColumn(0, "todd") != '' ||
  589. ds_send.getColumn(0, "orddept") != '' || ds_send.getColumn(0, "orddr") != '' || ds_send.getColumn(0, "statisticgooboon") != '' ||
  590. ds_send.getColumn(0, "department") != '' ){
  591. return true;
  592. }else{
  593. return false;
  594. }
  595. }
  596. function fInitialize() {
  597. Authority = String(frmf_getMenuParam()).;
  598. ds_send.clearData(); ds_send.addRow();
  599. ds_main.clearData(); ds_main.addRow();
  600. //날자 입력 항목에 오늘 날자 세팅
  601. var curDate = utlf_getCurrentDate();
  602. // ds_send.setColumn( 0, "fromdd", curDate-1);
  603. // ds_send.setColumn( 0, "todd", curDate-1);
  604. ds_send.setColumn( 0, "year", curDate.substr(0, 4));
  605. ds_send.setColumn( 0, "month", curDate.substr(4, 2));
  606. group2.cmb_month.dispatch("xforms-select");
  607. ds_send.setColumn( 0, "statisticflag", 'D');
  608. if( Authority != 'S' ){
  609. group2.btn_totaling.visible = false;
  610. group2.btn_distributing.visible = false;
  611. group2.button6.visible = false;
  612. group2.button7.visible = false;
  613. group1.switch1.case_g.btn_add.visible = false;
  614. group1.switch1.case_g.btn_save.visible = false;
  615. group1.switch1.case_g.btn_delete.visible = false;
  616. group2.secret1.visible = false;
  617. group2.caption9.visible = false;
  618. }else{
  619. group2.btn_totaling.visible = false;
  620. group2.btn_distributing.visible = true;
  621. }
  622. //model.refresh();
  623. }
  624. function fSearch(){
  625. if( ds_main.getColumn(0, "popupendflag") == "ok" ){
  626. //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
  627. dsf_makeValue( ds_hidden, "tmpnode", "string", "" );
  628. ds_hidden_tmpnode.copyData(ds_main_patinfo);
  629. //보험_감면_진료기록_신생하*산모내역 조회
  630. ds_send.setColumn( 0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  631. // submit("TRPMC01401");
  632. var oParam = {};
  633. oParam.id = "TRPMC01401";
  634. oParam.service = "patinfomngtapp.PatBaseInfo";
  635. oParam.method = "reqGetPatBaseInfo";
  636. oParam.inds = "req=ds_";
  637. oParam.outds = "ds_=patinsuinfolist ds_=patdiscinfolist ds_=patordrecinfolist ds_=nbabyinfolist";
  638. oParam.async = false;
  639. oParam.callback = "cf_TRPMC01401";
  640. tranf_submit(oParam);
  641. /*
  642. function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
  643. if(nErrorCode < 0) return;
  644. }
  645. function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
  646. arErrorCode.push(sSvcId, nErrorCode);
  647. }
  648. arErrorCode.pop("TRPMC01401") > -1
  649. arErrorCode.pop("TRPMC01401") < 0
  650. */
  651. //dsf_makeValue( ds_main, "popupendflag", "string", "" );
  652. }
  653. }
  654. function searchdepart(){
  655. for(var i=1; i<grd_reservationstatistic.rows ; i++){
  656. var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
  657. var index =0;
  658. while(tmpdepart != (ds_init_orddeptcd_orddeptcdlist.getColumn(index, "cd")) ) ){
  659. index++;
  660. if(index > 300) break;
  661. }
  662. if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) ==""){
  663. sysf_messageBox("부서명과 " +ds_main_reservationstatistic_reservationstatisticlist.getColumn(i, "orddeptcd") +"이", "E004")
  664. }else if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) !="") {
  665. ds_main_reservationstatistic.setColumn( i , "orddeptcd",
  666. ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) );
  667. }
  668. }
  669. }
  670. function GetGetRsrvDeptCD(){
  671. // submit("TRPMO01504");
  672. var oParam = {};
  673. oParam.id = "TRPMO00209";
  674. oParam.service = "opatmngtapp.TelStatistic";
  675. oParam.method = "reqGetRsrvDeptcd";
  676. oParam.inds = "";
  677. oParam.outds = "ds_=rsrvdeptcdlist";
  678. oParam.async = false;
  679. oParam.callback = "cf_TRPMO00209";
  680. tranf_submit(oParam);
  681. /*
  682. function cf_TRPMO00209(sSvcId, nErrorCode, sErrorMsg) {
  683. if(nErrorCode < 0) return;
  684. }
  685. function cf_TRPMO00209(sSvcId, nErrorCode, sErrorMsg) {
  686. arErrorCode.push(sSvcId, nErrorCode);
  687. }
  688. arErrorCode.pop("TRPMO00209") > -1
  689. arErrorCode.pop("TRPMO00209") < 0
  690. */
  691. }
  692. function fRsrvInfolistPrint(){
  693. ds_temp_rsrvlist.clearData();
  694. dsf_makeValue( ds_temp_rsrvlist, "otpt_histstat", "string", "" );
  695. dsf_makeValue( ds_temp_rsrvlist, "otpt_pid", "string", "" );
  696. dsf_makeValue( ds_temp_rsrvlist, "otpt_orddd", "string", "" );
  697. dsf_makeValue( ds_temp_rsrvlist, "otpt_rsrvflag", "string", "" );
  698. dsf_makeValue( ds_temp_rsrvlist, "otpt_remfact", "string", "" );
  699. dsf_makeValue( ds_temp_rsrvlist, "otpt_telnum", "string", "" );
  700. dsf_makeValue( ds_temp_rsrvlist, "otpt_telrsrvrem", "string", "" );
  701. dsf_makeValue( ds_temp_rsrvlist, "ptbs_hngnm", "string", "" );
  702. dsf_makeValue( ds_temp_rsrvlist, "otpt_updtcnclresn", "string", "" );
  703. dsf_makeValue( ds_temp_rsrvlist, "otpt_ordtm", "string", "" );
  704. dsf_makeValue( ds_temp_rsrvlist, "otpt_orddeptcd", "string", "" );
  705. dsf_makeValue( ds_temp_rsrvlist, "otpt_orddrid", "string", "" );
  706. //var orddd = model.getValue("");
  707. dsf_makeValue( ds_temp_rsrvlist, "otpt_orddeptcd", "string", cmb_orddeptcd.label);
  708. dsf_makeValue( ds_temp_rsrvlist, "otpt_orddrid", "string", cmb_orddrid.label);
  709. ds_temp_rsrvlist.setColumn( 0, "otpt_orddd", orddd);
  710. // model.copyNode("ds_temp_rsrvlist", "ds_main_h_otpt3_otpt[" + datagrid6.row + "]");
  711. for (i = 1; i <= ds_main_h_otpt3_otpt.rowcount; i++) {
  712. var aa = ds_main_h_otpt3_otpt.getColumn(0, "otpt_ordtm");
  713. ds_temp_rsrvlist.setColumn( i, "otpt_ordtm", datagrid6.labelmatrix(i, 1));
  714. ds_temp_rsrvlist.setColumn( i, "otpt_pid", datagrid6.labelmatrix(i, 2));
  715. ds_temp_rsrvlist.setColumn( i, "ptbs_hngnm", datagrid6.labelmatrix(i, 3));
  716. ds_temp_rsrvlist.setColumn( i, "otpt_histstat", datagrid6.labelmatrix(i, 7));
  717. ds_temp_rsrvlist.setColumn( i, "otpt_rsrvflag", datagrid6.labelmatrix(i, 8));
  718. ds_temp_rsrvlist.setColumn( i, "otpt_telnum", ds_main_h_otpt3_otpt.getColumn(i, "otpt_telnum"));
  719. ds_temp_rsrvlist.setColumn( i, "otpt_remfact", ds_main_h_otpt3_otpt.getColumn(i, "otpt_remfact"));
  720. ds_temp_rsrvlist.setColumn( i, "otpt_telrsrvrem", ds_main_h_otpt3_otpt.getColumn(i, "otpt_telrsrvrem"));
  721. ds_temp_rsrvlist.setColumn( i, "otpt_updtcnclresn", ds_main_h_otpt3_otpt.getColumn(i, "otpt_updtcnclresn"));
  722. }
  723. var objDOM = rptf_createDOM();
  724. var objParam = new Object();
  725. rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
  726. objParam.xml_data_XML1 = objDOM.documentElement.source;
  727. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  728. rptf_exeReportPreview30(["RPPMO00301"],[objParam], option);
  729. }
  730. function group2_button1_onclick(obj:Button, e:ClickEventInfo) {
  731. ds_main.clearData(); ds_main.addRow();
  732. // if( model.getValue("") == 'D' ){
  733. // submit("TRSTP00803");
  734. var oParam = {};
  735. oParam.id = "TRSTP00803";
  736. oParam.service = "stspamapp.StsPam";
  737. oParam.method = "reqGetSpecAmtReport";
  738. oParam.inds = "req=ds_";
  739. oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
  740. oParam.async = false;
  741. oParam.callback = "cf_TRSTP00803";
  742. tranf_submit(oParam);
  743. /*
  744. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  745. if(nErrorCode < 0) return;
  746. }
  747. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  748. arErrorCode.push(sSvcId, nErrorCode);
  749. }
  750. arErrorCode.pop("TRSTP00803") > -1
  751. arErrorCode.pop("TRSTP00803") < 0
  752. */
  753. ds_main.copyData(ds_hidden_rcv);
  754. ds_hidden_rcv.clearData();
  755. dsf_makeValue( ds_hidden, "rcv", "string", "" );
  756. //model.refresh();
  757. }
  758. function group2_ipt_pid_onkeydown(obj:Calendar, e:KeyEventInfo) {
  759. if (event.keyCode == "13")
  760. {
  761. obj.updateToDataset();
  762. fOutHistRef();
  763. }
  764. }
  765. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  766. //ds_send.clearData(); ds_send.addRow();
  767. ds_main.clearData();
  768. dsf_makeValue( ds, "main", "string", "" );
  769. //날자 입력 항목에 오늘 날자 세팅
  770. // var curDate = utlf_getCurrentDate();
  771. // ds_send.setColumn( 0, "year", curDate.substr(0, 4));
  772. // ds_send.setColumn( 0, "month", curDate.substr(4, 2));
  773. //fInitialize();
  774. var rsrvgubn = ds_send.getColumn(0, "statisticflag");
  775. if (rsrvgubn == "G"){
  776. if( Authority == 'S' ){
  777. group2.btn_totaling.visible = true;
  778. group2.btn_distributing.visible = false;
  779. }
  780. model.toggle("group1.switch1.case_g");
  781. }else if (rsrvgubn == "D"){
  782. if( Authority == 'S' ){
  783. group2.btn_totaling.visible = false;
  784. group2.btn_distributing.visible = true;
  785. }
  786. model.toggle("group1.switch1.case_d");
  787. }
  788. group2.cmb_month.dispatch("xforms-select");
  789. //model.refresh();
  790. }
  791. function group2_input1_onkeydown(obj:Calendar, e:KeyEventInfo) {
  792. if (event.keyCode == "13")
  793. {
  794. obj.updateToDataset();
  795. fOutHistRef();
  796. }
  797. }
  798. function group2_btn_totaling_onclick(obj:Button, e:ClickEventInfo) {
  799. if(sysf_messageBox("선택진료배분자료 집계하시겠습니까? 이전 집계된 자료는 삭제됩니다. 계속하시겠습니까?", "Q999", "") != 6) return;
  800. var orgfromdd = ds_send.getColumn(0, "fromdd");
  801. var orgtodd = ds_send.getColumn(0, "todd");
  802. var addedfromdd = orgfromdd;
  803. //var addedfromdd = orgfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
  804. //var notaddedfromdd = orgfromdd;
  805. while( addedfromdd <= orgtodd ){
  806. ds_send.setColumn( 0, "fromdd", addedfromdd);
  807. ds_send.setColumn( 0, "todd", addedfromdd);
  808. // if(submit("TXSTP00801")){
  809. var oParam = {};
  810. oParam.id = "TXSTP00801";
  811. oParam.service = "stspamapp.StsPam";
  812. oParam.method = "reqSetSpecAmtTotaling";
  813. oParam.inds = "req=ds_";
  814. oParam.outds = "";
  815. oParam.async = false;
  816. oParam.callback = "cf_TXSTP00801";
  817. tranf_submit(oParam);
  818. /*
  819. function cf_TXSTP00801(sSvcId, nErrorCode, sErrorMsg) {
  820. if(nErrorCode < 0) return;
  821. }
  822. function cf_TXSTP00801(sSvcId, nErrorCode, sErrorMsg) {
  823. arErrorCode.push(sSvcId, nErrorCode);
  824. }
  825. arErrorCode.pop("TXSTP00801") > -1
  826. arErrorCode.pop("TXSTP00801") < 0
  827. */
  828. //notaddedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
  829. // if( addedfromdd > orgtodd ){
  830. // addedfromdd = orgtodd;
  831. // ds_send.setColumn( 0, "fromdd", notaddedfromdd);
  832. // ds_send.setColumn( 0, "todd", addedfromdd);
  833. // if(submit("TXSTP00801")){
  834. // return true;
  835. // }else{
  836. // sysf_messageBox("자료집계 실패했습니다. 확인 후 다시 시도하세요", "E999", "");
  837. // }
  838. // }
  839. }else{
  840. sysf_messageBox(addedfromdd + "일자 자료집계를 실패했습니다. 확인 후 해당 일자부터 다시 집계하세요", "E999", "");
  841. return false;
  842. }
  843. addedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate(1, 'D').getDateFormat("YYYYMMDD");
  844. //alert(addedfromdd);
  845. }
  846. }
  847. function group2_btn_distributing_onclick(obj:Button, e:ClickEventInfo) {
  848. // submit("TXSTP00802");
  849. var oParam = {};
  850. oParam.id = "TXSTP00802";
  851. oParam.service = "stspamapp.StsPam";
  852. oParam.method = "reqSetSpecAmtDistribute";
  853. oParam.inds = "req=ds_";
  854. oParam.outds = "";
  855. oParam.async = false;
  856. oParam.callback = "cf_TXSTP00802";
  857. tranf_submit(oParam);
  858. /*
  859. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  860. if(nErrorCode < 0) return;
  861. }
  862. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  863. arErrorCode.push(sSvcId, nErrorCode);
  864. }
  865. arErrorCode.pop("TXSTP00802") > -1
  866. arErrorCode.pop("TXSTP00802") < 0
  867. */
  868. }
  869. function group2_cmb_month_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  870. var selectedMonth = ds_send.getColumn(0, "month");
  871. // ds_send.setColumn( 0, "month", selectedMonth);
  872. var selectedYear = ds_send.getColumn(0, "year");
  873. // ds_send.setColumn( 0, "year", selectedYear);
  874. var fromdd = selectedYear + selectedMonth + '01';
  875. var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
  876. ds_send.setColumn( 0, "fromdd", fromdd);
  877. ds_send.setColumn( 0, "todd", todd);
  878. //배분확정여부 체크
  879. var flag = ds_send.getColumn(0, "statisticflag");
  880. ds_send.setColumn( 0, "statisticflag", "G");
  881. ds_send.setColumn( 0, "cdflag", '00');
  882. // submit("TRSTP00803");
  883. var oParam = {};
  884. oParam.id = "TRSTP00803";
  885. oParam.service = "stspamapp.StsPam";
  886. oParam.method = "reqGetSpecAmtReport";
  887. oParam.inds = "req=ds_";
  888. oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
  889. oParam.async = false;
  890. oParam.callback = "cf_TRSTP00803";
  891. tranf_submit(oParam);
  892. /*
  893. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  894. if(nErrorCode < 0) return;
  895. }
  896. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  897. arErrorCode.push(sSvcId, nErrorCode);
  898. }
  899. arErrorCode.pop("TRSTP00803") > -1
  900. arErrorCode.pop("TRSTP00803") < 0
  901. */
  902. ds_send.setColumn( 0, "cdflag", '');
  903. ds_send.setColumn( 0, "statisticflag", flag);
  904. ds_send.setColumn( 0, "passwd", '');
  905. psswd = '-';
  906. if( Authority == 'S' ){
  907. //해당월의 선택진료배분마감
  908. if( ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd3") == 'Y' ){
  909. psswd = ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd10");
  910. group2.btn_totaling.enable = false;
  911. group2.btn_distributing.enable = false;
  912. group2.button6.visible = false;
  913. group2.button7.visible = true;
  914. group2.button6.enable = false;
  915. group2.button7.enable = false;
  916. }else{
  917. group2.btn_totaling.enable = true;
  918. group2.btn_distributing.enable = true;
  919. group2.button6.visible = true;
  920. group2.button7.visible = false;
  921. group2.button6.enable = false;
  922. group2.button7.enable = false;
  923. }
  924. }
  925. //model.refresh();
  926. }
  927. function group2_ipt_year_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  928. var selectedMonth = ds_send.getColumn(0, "month");
  929. // ds_send.setColumn( 0, "month", selectedMonth);
  930. var selectedYear = ds_send.getColumn(0, "year");
  931. // ds_send.setColumn( 0, "year", selectedYear);
  932. var fromdd = selectedYear + selectedMonth + '01';
  933. var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
  934. ds_send.setColumn( 0, "fromdd", fromdd);
  935. ds_send.setColumn( 0, "todd", todd);
  936. //배분확정여부 체크
  937. var flag = ds_send.getColumn(0, "statisticflag");
  938. ds_send.setColumn( 0, "statisticflag", "G");
  939. ds_send.setColumn( 0, "cdflag", '00');
  940. // submit("TRSTP00803");
  941. var oParam = {};
  942. oParam.id = "TRSTP00803";
  943. oParam.service = "stspamapp.StsPam";
  944. oParam.method = "reqGetSpecAmtReport";
  945. oParam.inds = "req=ds_";
  946. oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
  947. oParam.async = false;
  948. oParam.callback = "cf_TRSTP00803";
  949. tranf_submit(oParam);
  950. /*
  951. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  952. if(nErrorCode < 0) return;
  953. }
  954. function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
  955. arErrorCode.push(sSvcId, nErrorCode);
  956. }
  957. arErrorCode.pop("TRSTP00803") > -1
  958. arErrorCode.pop("TRSTP00803") < 0
  959. */
  960. ds_send.setColumn( 0, "cdflag", '');
  961. ds_send.setColumn( 0, "statisticflag", flag);
  962. ds_send.setColumn( 0, "passwd", '');
  963. psswd = '-';
  964. if( Authority == 'S' ){
  965. //해당월의 선택진료배분마감
  966. if( ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd3") == 'Y' ){
  967. psswd = ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd10");
  968. group2.btn_totaling.enable = false;
  969. group2.btn_distributing.enable = false;
  970. group2.button6.visible = false;
  971. group2.button7.visible = true;
  972. group2.button6.enable = false;
  973. group2.button7.enable = false;
  974. }else{
  975. group2.btn_totaling.enable = true;
  976. group2.btn_distributing.enable = true;
  977. group2.button6.visible = true;
  978. group2.button7.visible = false;
  979. group2.button6.enable = false;
  980. group2.button7.enable = false;
  981. }
  982. }
  983. //model.refresh();
  984. }
  985. function group2_button6_onclick(obj:Button, e:ClickEventInfo) {
  986. var secretValue = ds_send.getColumn(0, "passwd");
  987. if( secretValue == '' || secretValue.length < 4 ){
  988. sysf_messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
  989. return false;
  990. }
  991. if(sysf_messageBox("선택진료배분을 마감 하시겠습니까? 마감된 기간에는 집계_배분이 되지 않습니다. 계속하시겠습니까?", "Q999", "") != 6) return;
  992. ds_send.setColumn( 0, "endyn", "I");
  993. // if(submit("TXSTP00805")){
  994. var oParam = {};
  995. oParam.id = "TXSTP00805";
  996. oParam.service = "stspamapp.StsPam";
  997. oParam.method = "reqSetSpecAmtEnd";
  998. oParam.inds = "req=ds_";
  999. oParam.outds = "";
  1000. oParam.async = false;
  1001. oParam.callback = "cf_TXSTP00805";
  1002. tranf_submit(oParam);
  1003. /*
  1004. function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
  1005. if(nErrorCode < 0) return;
  1006. }
  1007. function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
  1008. arErrorCode.push(sSvcId, nErrorCode);
  1009. }
  1010. arErrorCode.pop("TXSTP00805") > -1
  1011. arErrorCode.pop("TXSTP00805") < 0
  1012. */
  1013. group2.cmb_month.dispatch("xforms-select");
  1014. }else{
  1015. sysf_messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
  1016. return false;
  1017. }
  1018. }
  1019. function group2_button7_onclick(obj:Button, e:ClickEventInfo) {
  1020. if(psswd != ds_send.getColumn(0, "passwd") ){
  1021. sysf_messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
  1022. return false;
  1023. }
  1024. if(sysf_messageBox("마감을 취소 하시겠습니까? 마감취소 후에는 집계_배분이 가능합니다. 계속하시겠습니까?", "Q999", "") != 6) return;
  1025. ds_send.setColumn( 0, "endyn", "D");
  1026. // if(submit("TXSTP00805")){
  1027. var oParam = {};
  1028. oParam.id = "TXSTP00805";
  1029. oParam.service = "stspamapp.StsPam";
  1030. oParam.method = "reqSetSpecAmtEnd";
  1031. oParam.inds = "req=ds_";
  1032. oParam.outds = "";
  1033. oParam.async = false;
  1034. oParam.callback = "cf_TXSTP00805";
  1035. tranf_submit(oParam);
  1036. /*
  1037. function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
  1038. if(nErrorCode < 0) return;
  1039. }
  1040. function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
  1041. arErrorCode.push(sSvcId, nErrorCode);
  1042. }
  1043. arErrorCode.pop("TXSTP00805") > -1
  1044. arErrorCode.pop("TXSTP00805") < 0
  1045. */
  1046. group2.cmb_month.dispatch("xforms-select");
  1047. }else{
  1048. sysf_messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
  1049. return false;
  1050. }
  1051. }
  1052. function group2_secret1_onkeydown(obj:, e:KeyEventInfo) {
  1053. if (event.keyCode == "13"){
  1054. group2.button6.setFocus();
  1055. }
  1056. }
  1057. function group2_secret1_onkillfocus(obj:, e:KillFocusEventInfo) {
  1058. //마감취소
  1059. if( group2.button7.visible == true ){
  1060. //패스워드 체크후 같으면 사용가능
  1061. if(psswd == group2.secret1.value ){
  1062. group2.button7.enable = true;
  1063. }else{
  1064. sysf_messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
  1065. return false;
  1066. }
  1067. }else{
  1068. if( group2.secret1.value == '' || group2.secret1.value.length < 4 ){
  1069. sysf_messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
  1070. return false;
  1071. }else{
  1072. group2.button6.enable = true;
  1073. }
  1074. }
  1075. }
  1076. function group1_switch1_case_g_btn_delete_onclick(obj:Button, e:ClickEventInfo) {
  1077. if(sysf_messageBox("선택된 행을", "Q001") != 6) return;
  1078. var cur_row = group1.switch1.case_g.grd_d.row;
  1079. if( cur_row > 0 ){
  1080. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  1081. if (group1.switch1.case_g.grd_d.rowStatus(cur_row) == "1" || group1.switch1.case_g.grd_d.rowStatus(cur_row) == "3"){
  1082. group1.switch1.case_g.grd_d.deleteItem(cur_row);
  1083. return;
  1084. }
  1085. group1.switch1.case_g.grd_d.addStatus(cur_row, "delete");
  1086. //삭제할 행의 정보를 send에 넣는다.
  1087. dsf_makeValue( ds_send_updtdata, "datalist", "string", "" );
  1088. ds_send_updtdata.setColumn( 0, "datalist", group1.switch1.case_g.grd_d.getUpdateData("delete"));
  1089. // if ( submit("TXSTP00804") ) {
  1090. var oParam = {};
  1091. oParam.id = "TXSTP00802";
  1092. oParam.service = "stspamapp.StsPam";
  1093. oParam.method = "reqSetSpecAmtCodeData";
  1094. oParam.inds = "req=ds_";
  1095. oParam.outds = "";
  1096. oParam.async = false;
  1097. oParam.callback = "cf_TXSTP00802";
  1098. tranf_submit(oParam);
  1099. /*
  1100. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  1101. if(nErrorCode < 0) return;
  1102. }
  1103. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  1104. arErrorCode.push(sSvcId, nErrorCode);
  1105. }
  1106. arErrorCode.pop("TXSTP00802") > -1
  1107. arErrorCode.pop("TXSTP00802") < 0
  1108. */
  1109. group1.switch1.case_g.grd_d.removeStatus(cur_row, "delete");
  1110. group1.switch1.case_g.grd_d.deleteItem( cur_row);
  1111. ds_send_updtdata.clearData();
  1112. }
  1113. }
  1114. }
  1115. function group1_switch1_case_g_btn_add_onclick(obj:Button, e:ClickEventInfo) {
  1116. group1.switch1.case_g.grd_d.addRow(false);
  1117. //group1.switch1.case_g.grd_d.refresh();
  1118. }
  1119. function group1_switch1_case_g_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  1120. var cur_row = group1.switch1.case_g.grd_d.rows - group1.switch1.case_g.grd_d.fixedRows;
  1121. if( cur_row > 0 ){
  1122. if(sysf_messageBox("공통코드자료를 저장 하시겠습니까?", "Q999") != 6) return;
  1123. dsf_makeValue( ds_send_updtdata, "datalist", "string", "" );
  1124. ds_send_updtdata.setColumn( 0, "datalist",group1.switch1.case_g.grd_d.getUpdateData());
  1125. // if ( submit("TXSTP00804") ) {
  1126. var oParam = {};
  1127. oParam.id = "TXSTP00802";
  1128. oParam.service = "stspamapp.StsPam";
  1129. oParam.method = "reqSetSpecAmtCodeData";
  1130. oParam.inds = "req=ds_";
  1131. oParam.outds = "";
  1132. oParam.async = false;
  1133. oParam.callback = "cf_TXSTP00802";
  1134. tranf_submit(oParam);
  1135. /*
  1136. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  1137. if(nErrorCode < 0) return;
  1138. }
  1139. function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
  1140. arErrorCode.push(sSvcId, nErrorCode);
  1141. }
  1142. arErrorCode.pop("TXSTP00802") > -1
  1143. arErrorCode.pop("TXSTP00802") < 0
  1144. */
  1145. group1.switch1.case_g.grd_d.rebuild();
  1146. //진료일정기준자료를 재 조회한다.
  1147. ds_send_updtdata.clearData();
  1148. group2.button1.dispatch("DOMActivate");
  1149. }
  1150. //model.refresh();
  1151. }
  1152. }
  1153. function group1_switch1_case_g_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  1154. group2.button1.dispatch("DOMActivate");
  1155. }
  1156. function group1_switch1_case_g_button8_onclick(obj:Button, e:ClickEventInfo) {
  1157. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1158. if (fileName != "")
  1159. {
  1160. group1.switch1.case_g.grd_d.saveExcel(fileName, "SheetName", true, true, "", "");
  1161. }
  1162. window.exec(fileName);
  1163. }
  1164. function group1_switch1_case_d_button3_onclick(obj:Button, e:ClickEventInfo) {
  1165. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1166. if (fileName != "")
  1167. {
  1168. group1.switch1.case_d.datagrid3.saveExcel(fileName, "SheetName", true, true, "", "");
  1169. }
  1170. window.exec(fileName);
  1171. }
  1172. function group1_switch1_case_d_button2_onclick(obj:Button, e:ClickEventInfo) {
  1173. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1174. if (fileName != "")
  1175. {
  1176. group1.switch1.case_d.datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
  1177. }
  1178. window.exec(fileName);
  1179. }
  1180. function group1_switch1_case_d_btn_updtexcel_onclick(obj:Button, e:ClickEventInfo) {
  1181. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1182. if (fileName != "")
  1183. {
  1184. group1.switch1.case_d.datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
  1185. }
  1186. window.exec(fileName);
  1187. }
  1188. function group1_switch1_case_d_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  1189. dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
  1190. var fromdd = ds_send.getColumn(0, "fromdd");
  1191. var todd = ds_send.getColumn(0, "todd");
  1192. if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
  1193. sysf_messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
  1194. return false;
  1195. }
  1196. fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
  1197. todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
  1198. ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
  1199. var objDOM = rptf_createDOM();
  1200. var objParam = new Object();
  1201. rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
  1202. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1203. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  1204. rptf_exeReportPreview30(["RPSTP00802"],[objParam], option);
  1205. }
  1206. function group1_switch1_case_d_button4_onclick(obj:Button, e:ClickEventInfo) {
  1207. dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
  1208. var fromdd = ds_send.getColumn(0, "fromdd");
  1209. var todd = ds_send.getColumn(0, "todd");
  1210. if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
  1211. sysf_messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
  1212. return false;
  1213. }
  1214. fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
  1215. todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
  1216. ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
  1217. var objDOM = rptf_createDOM();
  1218. var objParam = new Object();
  1219. rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
  1220. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1221. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  1222. rptf_exeReportPreview30(["RPSTP00803"],[objParam], option);
  1223. }
  1224. function group1_switch1_case_d_button5_onclick(obj:Button, e:ClickEventInfo) {
  1225. dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
  1226. var fromdd = ds_send.getColumn(0, "fromdd");
  1227. var todd = ds_send.getColumn(0, "todd");
  1228. if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
  1229. sysf_messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
  1230. return false;
  1231. }
  1232. fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
  1233. todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
  1234. ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
  1235. var objDOM = rptf_createDOM();
  1236. var objParam = new Object();
  1237. rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
  1238. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1239. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  1240. rptf_exeReportPreview30(["RPSTP00801"],[objParam], option);
  1241. }
  1242. ]]></Script>
  1243. </Form>
  1244. </FDL>