SMPID23400_추가청구생성.xfdl 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPID23400" position="absolute 0 0 1210 752" titletext="추가청구생성" onload="SMPID23400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 0 1160 700" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption10" class="tit_2" position="absolute 5 5 175 18" style="" text="외래추가청구생성" />
  11. <Div id="group2" position="absolute 5 23 1155 63" style="align: top;">
  12. <Layouts>
  13. <Layout>
  14. <Shape id="roundrect1" anchor="default" class="roundrerct_search" type="roundrectangle" position="absolute 5 2 1150 37" style="" />
  15. <Button id="btn_srch" class="btn1_letter2" taborder="4" position="absolute 1005 7 1061 29" style="" text="조회" onclick="group3_group2_btn_srch_onclick" onkeyup="group3_group2_btn_srch_onkeyup" />
  16. <Static id="caption6" position="absolute 300 11 311 29" style="" text="~" />
  17. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 990 4 993 31" style="" anchor="default" />
  18. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_reference" taborder="1" position="absolute 110 11 195 30" style="">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn" />
  22. <Column id="datacolumn" />
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">1</Col>
  27. <Col id="datacolumn">실시일자</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">2</Col>
  31. <Col id="datacolumn">정산일자</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. <Calendar id="ipt_todd" class="input_search" taborder="3" position="absolute 320 11 405 30" style="" anchor="default" onkeyup="group3_group2_ipt_todd_onkeyup" />
  37. <Static id="caption5" class="search_name" position="absolute 15 11 95 28" style="" text="조회조건 :" />
  38. <Calendar id="ipt_fromdd" class="input_search" taborder="2" position="absolute 208 11 293 30" style="" anchor="default" onkillfocus="group3_group2_ipt_fromdd_onkillfocus" />
  39. <Edit id="ipt_pid" class="input_s_essential" position="absolute 535 8 690 27" style="" anchor="default" onkeyup="group3_group2_ipt_pid_onkeyup" />
  40. <Static id="caption2" class="search_name" position="absolute 435 10 521 27" style="" text="등록번호 :" />
  41. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="opt_clammode" visible="false" position="absolute 825 9 925 24" style="font:,,bold;">
  42. <Dataset id="innerdataset">
  43. <ColumnInfo>
  44. <Column id="codecolumn" />
  45. <Column id="datacolumn" />
  46. </ColumnInfo>
  47. <Rows>
  48. <Row>
  49. <Col id="codecolumn">A</Col>
  50. <Col id="datacolumn">추가</Col>
  51. </Row>
  52. <Row>
  53. <Col id="codecolumn">B</Col>
  54. <Col id="datacolumn">누락</Col>
  55. </Row>
  56. </Rows>
  57. </Dataset>
  58. </Radio>
  59. <Static id="caption9" class="search_name" position="absolute 725 9 820 26" style="" text="추가_누락 :" />
  60. <Button id="btn_create" class="btn4_letter2" position="absolute 1075 7 1131 29" style="" text="생성" onclick="group3_group2_btn_create_onclick" />
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. <Tab id="swt_add" position="absolute 10 75 1160 655" style="border: solid #c7a3cf #c7a3cf;" anchor="default">
  65. <Tabpages>
  66. <Tabpage id="case_summary" selected="true" position="absolute 0 0 1148 600" style="" anchor="default">
  67. <Layouts>
  68. <Layout>
  69. <Shape id="line17" class="line_1" linetype="horizontal" position="absolute 7 25 1142 28" style="" anchor="default" />
  70. <Button id="btn_cnclexcel" class="btn2_letter4" position="absolute 1065 5 1129 24" style="" text="엑셀저장" onclick="group3_swt_add_case_summary_btn_cnclexcel_onclick" />
  71. <Grid id="grd_cretlist" binddataset="ds_main_list_createlist" position="absolute 9 30 1139 555" style="" oncelldblclick="group3_swt_add_case_summary_grd_cretlist_oncelldblclick">
  72. <Formats>
  73. <Format id="default">
  74. <Columns>
  75. <Column size="40" />
  76. <Column size="0" />
  77. <Column size="66" />
  78. <Column size="65" />
  79. <Column size="70" />
  80. <Column size="90" />
  81. <Column size="100" />
  82. <Column size="80" />
  83. <Column size="100" />
  84. <Column size="105" />
  85. <Column size="80" />
  86. <Column size="100" />
  87. <Column size="105" />
  88. <Column size="100" />
  89. <Column size="78" />
  90. <Column size="90" />
  91. <Column size="90" />
  92. <Column size="110" />
  93. <Column size="70" />
  94. <Column size="100" />
  95. <Column size="100" />
  96. <Column size="100" />
  97. <Column size="83" />
  98. <Column size="81" />
  99. <Column size="72" />
  100. <Column size="70" />
  101. <Column size="80" />
  102. <Column size="80" />
  103. <Column size="60" />
  104. <Column size="80" />
  105. <Column size="80" />
  106. <Column size="100" />
  107. <Column size="120" />
  108. <Column size="140" />
  109. <Column size="100" />
  110. </Columns>
  111. <Rows>
  112. <Row size="24" band="head" />
  113. <Row size="24" />
  114. </Rows>
  115. <Band id="head">
  116. <Cell text="선택" />
  117. <Cell col="1" text="IO" />
  118. <Cell col="2" text="청구구분" />
  119. <Cell col="3" text="청구년월" />
  120. <Cell col="4" text="청구차수" />
  121. <Cell col="5" text="환자번호" />
  122. <Cell col="6" text="외래등록일자" />
  123. <Cell col="7" text="외래생성번호" />
  124. <Cell col="8" text="영수증처리일자" />
  125. <Cell col="9" text="영수증번호" />
  126. <Cell col="10" text="수가코드" />
  127. <Cell col="11" text="시행일" />
  128. <Cell col="12" text="이력상태" />
  129. <Cell col="13" text="입원외래구분" />
  130. <Cell col="14" text="진료과코드" />
  131. <Cell col="15" text="진료의ID" />
  132. <Cell col="16" text="보험유형" />
  133. <Cell col="17" text="보조유형" />
  134. <Cell col="18" text="전급비구분" />
  135. <Cell col="19" text="후보험유형" />
  136. <Cell col="20" text="후보조유형" />
  137. <Cell col="21" text="후급비구분" />
  138. <Cell col="22" text="정산일" />
  139. <Cell col="23" text="수집일" />
  140. <Cell col="24" text="등록번호순번" />
  141. <Cell col="25" text="청구세부과" />
  142. <Cell col="26" text="심사자" />
  143. <Cell col="27" text="청구삭제여부" />
  144. <Cell col="28" text="최초접수일시" />
  145. <Cell col="29" text="최초접수자" />
  146. <Cell col="30" text="최종접수일시" />
  147. <Cell col="31" text="최종접수자" />
  148. <Cell col="32" text="데이터발생구분" />
  149. <Cell col="33" text="청구키" />
  150. <Cell col="34" text="진료분야" />
  151. </Band>
  152. <Band id="body">
  153. <Cell text="bind:chk" />
  154. <Cell col="1" text="bind:clammode" />
  155. <Cell col="2" text="bind:clamym" />
  156. <Cell col="3" text="bind:clamdg" />
  157. <Cell col="4" text="bind:pid" />
  158. <Cell col="5" text="bind:orddd" />
  159. <Cell col="6" text="bind:cretno" />
  160. <Cell col="7" text="bind:prcpdd" />
  161. <Cell col="8" text="bind:prcpno" />
  162. <Cell col="9" text="bind:snglcalcscorcd" />
  163. <Cell col="10" text="bind:execdd" />
  164. <Cell col="11" text="bind:histstat" />
  165. <Cell col="12" text="bind:ioflag" />
  166. <Cell col="13" text="bind:orddeptcd" />
  167. <Cell col="14" text="bind:orddrid" />
  168. <Cell col="15" text="bind:preinsukind" />
  169. <Cell col="16" text="bind:presuppkind" />
  170. <Cell col="17" text="bind:prcppayflag" />
  171. <Cell col="18" text="bind:aftinsukind" />
  172. <Cell col="19" text="bind:aftsuppkind" />
  173. <Cell col="20" text="bind:aftprcppayflag" />
  174. <Cell col="21" text="bind:acntdd" />
  175. <Cell col="22" text="bind:clamdd" />
  176. <Cell col="23" text="bind:pidsn" />
  177. <Cell col="24" text="bind:clamdeptcd" />
  178. <Cell col="25" text="bind:judgrid" />
  179. <Cell col="26" text="bind:delyn" />
  180. <Cell col="27" text="bind:fstrgstdt" />
  181. <Cell col="28" text="bind:fstrgstrid" />
  182. <Cell col="29" text="bind:lastupdtdt" />
  183. <Cell col="30" text="bind:lastupdtrid" />
  184. <Cell col="31" text="bind:dataflag" />
  185. <Cell col="32" text="bind:clamkey" />
  186. <Cell col="33" text="bind:ordfildcd" />
  187. </Band>
  188. </Format>
  189. </Formats>
  190. </Grid>
  191. </Layout>
  192. </Layouts>
  193. </Tabpage>
  194. </Tabpages>
  195. </Tab>
  196. </Layout>
  197. </Layouts>
  198. </Div>
  199. <Div id="group1" scrollbars="autoboth" position="absolute 10 680 1160 715" style="">
  200. <Layouts>
  201. <Layout>
  202. <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1099 3" style="" anchor="default" />
  203. <Button id="btn_close" class="btn4_letter2" position="absolute 1085 5 1141 27" style="" text="닫기" onclick="group1_btn_close_onclick" />
  204. <Button id="btn_reset" class="btn4_letter3" position="absolute 1010 5 1110 27" style="" text="초기화" onclick="group1_btn_reset_onclick" />
  205. <Button id="btn_chuga" class="btn3_letter12" position="absolute 15 5 119 27" style="" text="외래추가청구대상자조회" onclick="group1_btn_chuga_onclick" />
  206. </Layout>
  207. </Layouts>
  208. </Div>
  209. </Layout>
  210. </Layouts>
  211. <Objects>
  212. <Dataset id="ds_init_pam_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  213. <ColumnInfo />
  214. </Dataset>
  215. <Dataset id="ds_send_search2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  216. <ColumnInfo>
  217. <Column id="clamym" type="STRING" size="256" />
  218. <Column id="instcd" type="STRING" size="256" />
  219. <Column id="fstrgstrid" type="STRING" size="256" />
  220. </ColumnInfo>
  221. <Rows>
  222. <Row>
  223. <Col id="clamym"></Col>
  224. <Col id="instcd"></Col>
  225. <Col id="fstrgstrid"></Col>
  226. </Row>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_init_pam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  230. <ColumnInfo />
  231. </Dataset>
  232. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  233. <ColumnInfo>
  234. <Column id="reference" type="STRING" size="256" />
  235. <Column id="fromdd" type="STRING" size="256" />
  236. <Column id="todd" type="STRING" size="256" />
  237. <Column id="pid" type="STRING" size="256" />
  238. <Column id="clammode" type="STRING" size="256" />
  239. <Column id="instcd" type="STRING" size="256" />
  240. <Column id="clamym" type="STRING" size="256" />
  241. </ColumnInfo>
  242. <Rows>
  243. <Row>
  244. <Col id="reference"></Col>
  245. <Col id="fromdd"></Col>
  246. <Col id="todd"></Col>
  247. <Col id="pid"></Col>
  248. <Col id="clammode"></Col>
  249. <Col id="instcd"></Col>
  250. <Col id="clamym"></Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  255. <ColumnInfo />
  256. </Dataset>
  257. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  258. <ColumnInfo>
  259. <Column id="createlist" type="STRING" size="256" />
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="createlist"></Col>
  264. </Row>
  265. </Rows>
  266. </Dataset>
  267. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  268. <ColumnInfo />
  269. </Dataset>
  270. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  271. <ColumnInfo />
  272. </Dataset>
  273. <Dataset id="ds_init_P0010list_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  274. <ColumnInfo>
  275. <Column id="cdnm" type="STRING" size="256" />
  276. <Column id="cdid" type="STRING" size="256" />
  277. </ColumnInfo>
  278. <Rows>
  279. <Row>
  280. <Col id="cdnm"></Col>
  281. <Col id="cdid"></Col>
  282. </Row>
  283. </Rows>
  284. </Dataset>
  285. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  286. <ColumnInfo>
  287. <Column id="reference" type="STRING" size="256" />
  288. <Column id="fromdd" type="STRING" size="256" />
  289. <Column id="todd" type="STRING" size="256" />
  290. <Column id="pid" type="STRING" size="256" />
  291. <Column id="clammode" type="STRING" size="256" />
  292. <Column id="instcd" type="STRING" size="256" />
  293. <Column id="clamym" type="STRING" size="256" />
  294. </ColumnInfo>
  295. <Rows>
  296. <Row>
  297. <Col id="reference">1</Col>
  298. <Col id="fromdd"></Col>
  299. <Col id="todd"></Col>
  300. <Col id="pid"></Col>
  301. <Col id="clammode"></Col>
  302. <Col id="instcd"></Col>
  303. <Col id="clamym"></Col>
  304. </Row>
  305. </Rows>
  306. </Dataset>
  307. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  308. <ColumnInfo>
  309. <Column id="insertchk" type="STRING" size="256" />
  310. </ColumnInfo>
  311. <Rows>
  312. <Row>
  313. <Col id="insertchk"></Col>
  314. </Row>
  315. </Rows>
  316. </Dataset>
  317. <Dataset id="ds_init_P0008list_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  318. <ColumnInfo>
  319. <Column id="cdnm" type="STRING" size="256" />
  320. <Column id="cdid" type="STRING" size="256" />
  321. </ColumnInfo>
  322. <Rows>
  323. <Row>
  324. <Col id="cdnm"></Col>
  325. <Col id="cdid"></Col>
  326. </Row>
  327. </Rows>
  328. </Dataset>
  329. <Dataset id="ds_send_insertdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  330. <ColumnInfo>
  331. <Column id="addCreate" type="STRING" size="256" />
  332. </ColumnInfo>
  333. <Rows>
  334. <Row>
  335. <Col id="addCreate"></Col>
  336. </Row>
  337. </Rows>
  338. </Dataset>
  339. <Dataset id="ds_init_pam_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  340. <ColumnInfo>
  341. <Column id="cd" type="STRING" size="256" />
  342. <Column id="nm" type="STRING" size="256" />
  343. <Column id="dp" type="STRING" size="256" />
  344. <Column id="sp" type="STRING" size="256" />
  345. </ColumnInfo>
  346. </Dataset>
  347. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  348. <ColumnInfo />
  349. </Dataset>
  350. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  351. <ColumnInfo />
  352. </Dataset>
  353. <Dataset id="ds_init_pam_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  354. <ColumnInfo>
  355. <Column id="cd" type="STRING" size="256" />
  356. <Column id="nm" type="STRING" size="256" />
  357. <Column id="deptengabbr" type="STRING" size="256" />
  358. <Column id="reqdeptno" type="STRING" size="256" />
  359. </ColumnInfo>
  360. <Rows>
  361. <Row>
  362. <Col id="cd"></Col>
  363. <Col id="nm"></Col>
  364. <Col id="deptengabbr"></Col>
  365. <Col id="reqdeptno"></Col>
  366. </Row>
  367. </Rows>
  368. </Dataset>
  369. </Objects>
  370. <Bind>
  371. <BindItem id="item0" compid="group3.group2.cmb_reference" propid="value" datasetid="ds_temp" columnid="reference" />
  372. <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd" />
  373. <BindItem id="item2" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd" />
  374. <BindItem id="item3" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_temp" columnid="pid" />
  375. <BindItem id="item4" compid="group3.group2.opt_clammode" propid="value" datasetid="ds_temp" columnid="clammode" />
  376. </Bind>
  377. <Script type="xscript4.0"><![CDATA[function SMPID23400_onload(obj:Form, e:LoadEventInfo) {
  378. frmf_initForm(obj);
  379. //grdf_initGrid(grd_XXX);
  380. //grdf_setGridSort(grd_XXX);
  381. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  382. var arrParam = [ {dsNm: "ds_init_P0008list", "ds_init_P0010list",
  383. cdGrpId: "P0008", "P0010" } ];
  384. appf_getCodeList(arrParam, );
  385. fInitialize();
  386. }
  387. include '../../.._com_commonweb_js_common.js'
  388. include '../../.._com_commonweb_js_numericHelper.js'
  389. include '../../.._com_commonweb_js_dateHelper.js'
  390. include '../../.._com_commonweb_js_stringHelper.js'
  391. include '../../.._com_commonweb_js_tfHelper.js'
  392. include '../../.._pam_pamcomnweb_js_PAM.js'
  393. include '../../.._com_commonweb_js_utilHelper.js'
  394. include '../../.._com_basiccodeweb_js_ZBC001.js'
  395. include '../../.._pam_calcscormngtweb_js_PIC001.js'
  396. function fInitialize(){
  397. ds_main_list_cretlist.clearData(); //그리드 초기화
  398. ds_temp.setColumn( 0, "todd", "");
  399. ds_temp.setColumn( 0, "pid", "");
  400. // 날짜 초기화 (시작일은 오늘 날짜, 종료일은 30일 뒤)
  401. var now = new Date();
  402. var year= now.getFullYear();
  403. var mon = (now.getMonth()+1)>9 ? ''+(now.getMonth()+1) : '0'+(now.getMonth()+1);
  404. var day = now.getDate()>9 ? ''+now.getDate() : '0'+now.getDate();
  405. var fromdd = year+mon+day;
  406. var todd = new Date(Date.parse(fromdd) + 30 * 1000 * 60 * 60 * 24);
  407. ds_temp.setColumn( 0, "fromdd", fromdd);
  408. //ds_temp.setColumn( 0, "todd", todd);
  409. ds_temp.setColumn( 0, "todd", "");
  410. group3.group2.ipt_todd.setFocus();
  411. ds_main_list.clearData();
  412. //model.refresh();
  413. }
  414. function fSearchchk(refNo)
  415. {
  416. var sFromdd = ds_temp.getColumn(0, "fromdd");
  417. var sTodd = ds_temp.getColumn(0, "todd");
  418. //var sDd = sTodd - sFromdd;
  419. var sFromym = ds_temp.getColumn(0, "fromdd").substr(0,6);
  420. var sToym = ds_temp.getColumn(0, "todd").substr(0,6);
  421. var sFy = sFromdd.substr(0, 4);
  422. var sFm = sFromdd.substr(4, 2);
  423. var sFd = sFromdd.substr(6, 2);
  424. var sTy = sTodd.substr(0, 4);
  425. var sTm = sTodd.substr(4, 2);
  426. var sTd = sTodd.substr(6, 2);
  427. var sSd = new Date(sFy, sFm-1, sFd);
  428. var sEd = new Date(sTy,sTm-1,sTd);
  429. var rstFrom = sSd.getTime();
  430. var rstEnd = sEd.getTime();
  431. var sDd = Math.ceil((rstEnd - rstFrom) / (24 * 60 * 60 * 1000));
  432. if (refNo == '1' || refNo == '2'){
  433. if (sFromdd == null || sFromdd == "" || sFromdd == " "){
  434. sysf_messageBox("시작일자가 없습니다!","E999","");
  435. ds_temp.setColumn( 0, "fromdd","");
  436. //model.refresh();
  437. group3.group2.ipt_fromdd.setFocus();
  438. return false;
  439. }
  440. if (sTodd == null || sTodd == "" || sTodd == " " || sTodd == "-"){
  441. sysf_messageBox("종료일자가 없습니다!","E999","");
  442. ds_temp.setColumn( 0, "todd","");
  443. //model.refresh();
  444. group3.group2.ipt_todd.setFocus();
  445. return false;
  446. }else if (sFromym != sToym){
  447. sysf_messageBox("시작연월과 종료년월은 같아야 합니다!","E999","");
  448. //ds_temp.setColumn( 0, "todd","");
  449. //model.refresh();
  450. group3.group2.ipt_todd.setFocus();
  451. }
  452. if (sDd > '31'){
  453. sysf_messageBox("조회기간은 31일을 넘길수 없습니다!","E999","");
  454. ds_temp.setColumn( 0, "todd","");
  455. //model.refresh();
  456. group3.group2.ipt_todd.setFocus();
  457. return false;
  458. }else if (sDd < '0'){
  459. sysf_messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
  460. ds_temp.setColumn( 0, "todd","");
  461. //model.refresh();
  462. group3.group2.ipt_todd.setFocus();
  463. return false;
  464. }
  465. }else{
  466. sysf_messageBox("조회조건이 없습니다!","E999","");
  467. ds_temp.setColumn( 0, "reference", "");
  468. group3.group2.cmb_reference.setFocus();
  469. return false;
  470. }
  471. return true;
  472. }
  473. function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
  474. ///__
  475. var refNo = ds_temp.getColumn(0, "reference");
  476. if (fSearchchk(refNo) == true){
  477. ds_send_search.setColumn( 0, "reference", ds_temp.getColumn(0, "reference"));
  478. ds_send_search.setColumn( 0, "fromdd", ds_temp.getColumn(0, "fromdd"));
  479. ds_send_search.setColumn( 0, "todd", ds_temp.getColumn(0, "todd"));
  480. ds_send_search.setColumn( 0, "pid", ds_temp.getColumn(0, "pid"));
  481. ds_send_search.setColumn( 0, "clammode", ds_temp.getColumn(0, "clammode"));
  482. // submit("TRPID23401"); //추가, 누락 청구 대상자 조회
  483. var oParam = {};
  484. oParam.id = "TRPID23401";
  485. oParam.service = "aftjudgapp.OutAddCreate";
  486. oParam.method = "reqGetAddCreateList";
  487. oParam.inds = "req=ds_";
  488. oParam.outds = "ds_=createlist";
  489. oParam.async = false;
  490. oParam.callback = "cf_TRPID23401";
  491. tranf_submit(oParam);
  492. /*
  493. function cf_TRPID23401(sSvcId, nErrorCode, sErrorMsg) {
  494. if(nErrorCode < 0) return;
  495. }
  496. function cf_TRPID23401(sSvcId, nErrorCode, sErrorMsg) {
  497. arErrorCode.push(sSvcId, nErrorCode);
  498. }
  499. arErrorCode.pop("TRPID23401") > -1
  500. arErrorCode.pop("TRPID23401") < 0
  501. */
  502. ds_hidden.setColumn( 0, "insertchk", "0"); //생성 후 다시 생성을 막기위해 조회를 하면 플레그 값 바꿔줌
  503. }
  504. }
  505. function group3_group2_btn_srch_onkeyup(obj:Button, e:KeyEventInfo) {
  506. if (event.keyCode == '13') {
  507. obj.updateToDataset();
  508. group3.group2.btn_srch.dispatch("onclick");
  509. }
  510. }
  511. function group3_group2_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo) {
  512. if (event.keyCode == '13') {
  513. var sLenchk = ds_temp.getColumn(0, "todd");
  514. if (sLenchk.length == 8){
  515. group3.group2.btn_srch.dispatch("onclick");
  516. }
  517. }
  518. }
  519. function group3_group2_ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  520. var sLenchk = ds_temp.getColumn(0, "fromdd");
  521. if (sLenchk.length == 8){
  522. var lastdate=new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); //각 달의 마지막 날짜
  523. var sFromyy = ds_temp.getColumn(0, "fromdd").substr(0, 4);
  524. var sFrommm = ds_temp.getColumn(0, "fromdd").substr(4, 2);
  525. if((0==sFromyy%4 && 0!=sFromyy%100) || 0==sFromyy%400){ //year를 가지고 윤년인지 검사.
  526. lastdate[1]=29; /*윤년인 경우 2월의 마지막 날짜를 29로 입력*/
  527. }
  528. var sFromdd = lastdate[sFrommm-1];
  529. var sTodd = sFromyy+sFrommm+sFromdd;
  530. ds_temp.setColumn( 0, "todd", sTodd);
  531. //group3.group2.ipt_todd.refresh();
  532. }
  533. }
  534. function group3_group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo) {
  535. if (event.keyCode == '13') {
  536. obj.updateToDataset();
  537. group3.group2.btn_srch.dispatch("onclick");
  538. }
  539. }
  540. function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo) {
  541. //ds_send_insertdata_addCreate.copyData(ds_main_list_createlist);
  542. var sInsertchk = ds_hidden.getColumn(0, "insertchk");
  543. if (sInsertchk == 0){ // 생성 후 조회를 안하고 다시 생성하는 것을 막기 위해서 추가
  544. // submit("TXPID23401");
  545. var oParam = {};
  546. oParam.id = "TXPID23401";
  547. oParam.service = "aftjudgapp.OutAddCreate";
  548. oParam.method = "insOutAddCreate";
  549. oParam.inds = "req=ds_";
  550. oParam.outds = "";
  551. oParam.async = false;
  552. oParam.callback = "cf_TXPID23401";
  553. tranf_submit(oParam);
  554. /*
  555. function cf_TXPID23401(sSvcId, nErrorCode, sErrorMsg) {
  556. if(nErrorCode < 0) return;
  557. }
  558. function cf_TXPID23401(sSvcId, nErrorCode, sErrorMsg) {
  559. arErrorCode.push(sSvcId, nErrorCode);
  560. }
  561. arErrorCode.pop("TXPID23401") > -1
  562. arErrorCode.pop("TXPID23401") < 0
  563. */
  564. ds_send_search2.setColumn( 0, "clamym", ds_temp.getColumn(0, "fromdd").substr(0,6));
  565. // submit("TRPID23402");
  566. var oParam = {};
  567. oParam.id = "TRPID23402";
  568. oParam.service = "aftjudgapp.OutAddCreate";
  569. oParam.method = "reqGetCreateList";
  570. oParam.inds = "req=ds_";
  571. oParam.outds = "ds_=createlist";
  572. oParam.async = false;
  573. oParam.callback = "cf_TRPID23402";
  574. tranf_submit(oParam);
  575. /*
  576. function cf_TRPID23402(sSvcId, nErrorCode, sErrorMsg) {
  577. if(nErrorCode < 0) return;
  578. }
  579. function cf_TRPID23402(sSvcId, nErrorCode, sErrorMsg) {
  580. arErrorCode.push(sSvcId, nErrorCode);
  581. }
  582. arErrorCode.pop("TRPID23402") > -1
  583. arErrorCode.pop("TRPID23402") < 0
  584. */
  585. ds_hidden.setColumn( 0, "insertchk", "1"); // 생성 후 플리그 값 넣어줌 ( 생성 후 같은 데이터 생성 막기 위해)
  586. }else if (sInsertchk == 1){
  587. sysf_messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
  588. }
  589. }
  590. function group3_swt_add_case_summary_btn_cnclexcel_onclick(obj:Button, e:ClickEventInfo) {
  591. if (grd_summary.rows > 1) {
  592. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  593. if (fileName != "") {
  594. grd_summary.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  595. }
  596. } else {
  597. sysf_messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  598. }
  599. }
  600. function group3_swt_add_case_summary_grd_cretlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  601. //var row = grd_summary.row;
  602. //if( isDataCell() && row > 0 ){
  603. // ds_send.setColumn( 0, "fromdd",ds_temp.getColumn(0, "fromdd").removeMask('\n'));
  604. // ds_send.setColumn( 0, "todd",ds_temp.getColumn(0, "todd").removeMask('\n'));
  605. // ds_send.setColumn( 0, "pid",ds_temp.getColumn(0, "pid"));
  606. // ds_send.setColumn( 0, "aftacntyn",ds_temp.getColumn(0, "aftacntyn"));
  607. // ds_send.setColumn( 0, "preinsukind",ds_temp.getColumn(0, "preinsukind"));
  608. // ds_send.setColumn( 0, "presuppkind",ds_temp.getColumn(0, "presuppkind"));
  609. // ds_send.setColumn( 0, "aftinsukind",ds_temp.getColumn(0, "aftinsukind"));
  610. // ds_send.setColumn( 0, "aftsuppkind",ds_temp.getColumn(0, "aftsuppkind"));
  611. // ds_send.setColumn( 0, "orddeptcd",ds_temp.getColumn(0, "orddeptcd"));
  612. // ds_send.setColumn( 0, "orddrid",ds_temp.getColumn(0, "orddrid"));
  613. // ds_send.setColumn( 0, "histstat",ds_temp.getColumn(0, "histstat"));
  614. // ds_send.setColumn( 0, "clamym",ds_main_list2_summary.getColumn(row, "clamym_1")));//
  615. // ds_send.setColumn( 0, "clamdg",ds_main_list2_summary.getColumn(row, "clamdg_1")));//
  616. // ds_send.setColumn( 0, "reqfild",ds_main_list2_summary.getColumn(row, "reqfild_1")));//
  617. // ds_send.setColumn( 0, "clammode",ds_main_list2_summary.getColumn(row, "clammode_1"))); //
  618. // ds_send.setColumn( 0, "judgrid",ds_temp.getColumn(0, "judgrid"));
  619. // ds_send.setColumn( 0, "acting",ds_temp.getColumn(0, "acting"));
  620. // submit("TRPID23100");
  621. // group3.swt_add.selectedIndex = 1;
  622. // btn_summary.selected = false;
  623. // btn_pat.selected = true;
  624. // btn_code.selected = false;
  625. // button3.visible = true;
  626. // button4.visible = true;
  627. // btn_choi.enable = true;
  628. // btn_del.enable = true;
  629. // group3.group2.btn_srch.enable = false;
  630. //}
  631. }
  632. function group1_btn_close_onclick(obj:Button, e:ClickEventInfo) {
  633. window.close(); // F5 실행시 IE를 종료시킨다.
  634. }
  635. function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo) {
  636. fInitialize();
  637. }
  638. function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo) {
  639. frmf_modal("SMPID23100", "", ""-"", "", "3", "", "", "", "", "", "", "", "M");
  640. }
  641. ]]></Script>
  642. </Form>
  643. </FDL>