SMPID23400_외래추가청구생성.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID23400" position="absolute 0 0 1144 662" titletext="추가청구생성" oninit="SMPID23400_oninit" onload="SMPID23400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1144 660" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute -1 23 1141 63" align="align:center top;" id="group2" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="roundrect1" type="roundrectangle" class="roundrerct_search" position="absolute 1 2 1138 37" anchor="left top right"/>
  14. <Button position="absolute 1001 8 1057 30" id="btn_srch" class="btn1" taborder="4" text="조회" onclick="group3_group2_btn_srch_onclick" anchor="top right"/>
  15. <Static text="~" position="absolute 190 9 201 27" id="caption6" anchor="default"/>
  16. <Shape position="absolute 983 5 989 32" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  17. <Combo position="absolute 308 9 393 28" id="cmb_reference" taborder="1" visible="false" codecolumn="value" datacolumn="label" innerdataset="@ds_cmb_reference" anchor="default"/>
  18. <Calendar position="absolute 210 9 295 28" id="ipt_todd" class="input_search" taborder="3" onkeyup="group3_group2_ipt_todd_onkeyup" anchor="default"/>
  19. <Static text="정산일자 :" position="absolute 15 11 105 28" id="caption5" class="search_name" anchor="default"/>
  20. <Calendar position="absolute 98 9 183 28" id="ipt_fromdd" class="input_search" taborder="2" onchanged="group3_group2_ipt_fromdd_onchanged" anchor="default"/>
  21. <Edit position="absolute 520 9 675 28" id="ipt_pid" class="input_s_essential" onkeydown="group3_group2_ipt_pid_onkeydown" anchor="default"/>
  22. <Static text="등록번호 :" position="absolute 435 10 521 27" id="caption2" class="search_name" anchor="default"/>
  23. <Radio position="absolute 814 7 914 30" id="opt_clammode" visible="false" columncount="5" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">A</Col>
  32. <Col id="datacolumn">추가</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">B</Col>
  36. <Col id="datacolumn">누락</Col>
  37. </Row>
  38. </Rows>
  39. </Dataset>
  40. </Radio>
  41. <Static text="추가/누락 :" position="absolute 723 11 818 28" id="caption9" class="search_name" visible="false" anchor="default"/>
  42. <Button position="absolute 1071 8 1127 30" id="btn_create" class="btn4" text="생성" onclick="group3_group2_btn_create_onclick" anchor="top right"/>
  43. </Layout>
  44. </Layouts>
  45. </Div>
  46. <Static text="외래추가청구생성" position="absolute 0 5 170 26" id="caption10" class="tit_2" anchor="default"/>
  47. <Tab position="absolute 0 60 1142 640" id="swt_add" class="tab_Normal" anchor="all">
  48. <Tabpages>
  49. <Tabpage text="" position="absolute 0 0 1148 600" id="case_summary">
  50. <Layouts>
  51. <Layout>
  52. <Shape position="absolute 0 17 1135 30" linetype="horizontal" id="line17" class="line_10" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  53. <Button position="absolute 1054 0 1134 19" id="btn_cnclexcel" class="btn7" text="엑셀저장" onclick="group3_swt_add_case_summary_btn_cnclexcel_onclick" anchor="top right"/>
  54. <Grid position="absolute 0 25 1133 550" id="grd_cretlist" binddataset="ds_main_cretlist" anchor="all">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="25"/>
  59. <Column size="40"/>
  60. <Column size="0"/>
  61. <Column size="66"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="90"/>
  65. <Column size="100"/>
  66. <Column size="0"/>
  67. <Column size="100"/>
  68. <Column size="105"/>
  69. <Column size="80"/>
  70. <Column size="100"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="78"/>
  74. <Column size="90"/>
  75. <Column size="90"/>
  76. <Column size="110"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. <Column size="0"/>
  81. <Column size="83"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. </Columns>
  95. <Rows>
  96. <Row size="24" band="head"/>
  97. <Row size="24"/>
  98. </Rows>
  99. <Band id="head">
  100. <Cell/>
  101. <Cell col="1" text="선택"/>
  102. <Cell col="2" text="IO"/>
  103. <Cell col="3" text="청구구분"/>
  104. <Cell col="4" text="청구년월"/>
  105. <Cell col="5" text="청구차수"/>
  106. <Cell col="6" text="환자번호"/>
  107. <Cell col="7" text="외래등록일자"/>
  108. <Cell col="8" text="외래생성번호"/>
  109. <Cell col="9" text="영수증처리일자"/>
  110. <Cell col="10" text="영수증번호"/>
  111. <Cell col="11" text="수가코드"/>
  112. <Cell col="12" text="시행일"/>
  113. <Cell col="13" text="이력상태"/>
  114. <Cell col="14" text="입원외래구분"/>
  115. <Cell col="15" text="진료과코드"/>
  116. <Cell col="16" text="진료의ID"/>
  117. <Cell col="17" text="보험유형"/>
  118. <Cell col="18" text="보조유형"/>
  119. <Cell col="19" text="전급비구분"/>
  120. <Cell col="20" text="후보험유형"/>
  121. <Cell col="21" text="후보조유형"/>
  122. <Cell col="22" text="후급비구분"/>
  123. <Cell col="23" text="정산일"/>
  124. <Cell col="24" text="수집일"/>
  125. <Cell col="25" text="등록번호순번"/>
  126. <Cell col="26" text="청구세부과"/>
  127. <Cell col="27" text="심사자"/>
  128. <Cell col="28" text="청구삭제여부"/>
  129. <Cell col="29" text="최초접수일시"/>
  130. <Cell col="30" text="최초접수자"/>
  131. <Cell col="31" text="최종접수일시"/>
  132. <Cell col="32" text="최종접수자"/>
  133. <Cell col="33" text="데이터발생구분"/>
  134. <Cell col="34" text="청구키"/>
  135. <Cell col="35" text="진료분야"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell celltype="head" expr="currow+1"/>
  139. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  140. <Cell col="2"/>
  141. <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:clammode" combodataset="ds_cmb_clammode" combocodecol="value" combodatacol="label" enable="false"/>
  142. <Cell col="4" text="bind:clamym" enable="false"/>
  143. <Cell col="5" text="bind:clamdg" enable="false"/>
  144. <Cell col="6" text="bind:pid" enable="false"/>
  145. <Cell col="7" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" enable="false"/>
  146. <Cell col="8" text="bind:cretno" enable="false"/>
  147. <Cell col="9" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" enable="false"/>
  148. <Cell col="10" displaytype="text" style="align:center middle;" text="bind:prcpno" enable="false"/>
  149. <Cell col="11" style="align:center middle;" text="bind:snglcalcscorcd" enable="false"/>
  150. <Cell col="12" displaytype="date" text="bind:execdd" mask="yyyy-MM-dd" enable="false"/>
  151. <Cell col="13" displaytype="combo" edittype="combo" text="bind:histstat" enable="false"/>
  152. <Cell col="14" displaytype="combo" edittype="combo" text="bind:ioflag"/>
  153. <Cell col="15" text="bind:orddeptcd" enable="false"/>
  154. <Cell col="16" text="bind:orddrid" enable="false"/>
  155. <Cell col="17" displaytype="combo" edittype="normal" style="align:center;" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  156. <Cell col="18" displaytype="combo" edittype="none" style="align:center;" text="bind:suppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  157. <Cell col="19" text="bind:prcppayflag"/>
  158. <Cell col="20" text="bind:aftinsukind"/>
  159. <Cell col="21" text="bind:aftsuppkind"/>
  160. <Cell col="22" text="bind:aftprcppayflag"/>
  161. <Cell col="23" displaytype="date" text="bind:acntdd" mask="yyyy-MM-dd" enable="false"/>
  162. <Cell col="24" text="bind:clamdd" mask="yyyy-mm-dd"/>
  163. <Cell col="25" text="bind:pidsn"/>
  164. <Cell col="26" text="bind:clamdeptcd"/>
  165. <Cell col="27" text="bind:judgrid"/>
  166. <Cell col="28" text="bind:delyn"/>
  167. <Cell col="29" text="bind:fstrgstdt"/>
  168. <Cell col="30" text="bind:fstrgstrid"/>
  169. <Cell col="31" text="bind:lastupdtdt"/>
  170. <Cell col="32" text="bind:lastupdtrid"/>
  171. <Cell col="33" text="bind:dataflag"/>
  172. <Cell col="34" text="bind:clamkey"/>
  173. <Cell col="35" text="bind:ordfildcd"/>
  174. </Band>
  175. </Format>
  176. </Formats>
  177. </Grid>
  178. </Layout>
  179. </Layouts>
  180. </Tabpage>
  181. </Tabpages>
  182. </Tab>
  183. </Layout>
  184. </Layouts>
  185. </Div>
  186. <Div position="absolute 3 623 1137 658" id="group1" scrollbars="autoboth" anchor="left right bottom">
  187. <Layouts>
  188. <Layout>
  189. <Shape position="absolute 0 0 1099 6" linetype="horizontal" id="line32" class="line_6" anchor="left top right"/>
  190. <Button position="absolute 1074 5 1130 27" id="btn_close" class="btn4" text="닫기" onclick="group1_btn_close_onclick" anchor="right bottom"/>
  191. <Button position="absolute 999 5 1067 27" id="btn_reset" class="btn4" text="초기화" onclick="group1_btn_reset_onclick" anchor="right bottom"/>
  192. <Button position="absolute 1 5 177 27" id="btn_chuga" class="btn3" text="외래추가청구대상자조회" onclick="group1_btn_chuga_onclick" anchor="default"/>
  193. </Layout>
  194. </Layouts>
  195. </Div>
  196. </Layout>
  197. </Layouts>
  198. <Objects>
  199. <Dataset id="ds_main_cretlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  202. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  203. <Column id="orddd" type="STRING" size="256" sumtext="외래등록일자"/>
  204. <Column id="cretno" type="STRING" size="256" sumtext="외래생성번호"/>
  205. <Column id="rcptdd" type="STRING" size="256" sumtext="영수증처리일자"/>
  206. <Column id="prcpno" type="STRING" size="256" sumtext="영수증번호"/>
  207. <Column id="prcpdd" type="STRING" size="256" sumtext="prcpdd"/>
  208. <Column id="execdd" type="STRING" size="256" sumtext="시행일자"/>
  209. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  210. <Column id="clammode" type="STRING" size="256" sumtext="청구구분"/>
  211. <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
  212. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  213. <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
  214. <Column id="insukind" type="STRING" size="256" sumtext="전 보험유형"/>
  215. <Column id="suppkind" type="STRING" size="256" sumtext="전 보조유형"/>
  216. <Column id="prcppayflag" type="STRING" size="256" sumtext="전 급비구분"/>
  217. <Column id="aftinsukind" type="STRING" size="256" sumtext="후 보험유형"/>
  218. <Column id="aftsuppkind" type="STRING" size="256" sumtext="후 보조유형"/>
  219. <Column id="aftprcppayflag" type="STRING" size="256" sumtext="후 급비 구분"/>
  220. <Column id="acntdd" type="STRING" size="256" sumtext="정산일자"/>
  221. <Column id="clamdd" type="STRING" size="256" sumtext="수집일자"/>
  222. <Column id="clamym" type="STRING" size="256" sumtext="청구년월"/>
  223. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  224. <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
  225. <Column id="clamdeptcd" type="STRING" size="256" sumtext="청구세부과"/>
  226. <Column id="judgrid" type="STRING" size="256" sumtext="심사자"/>
  227. <Column id="delyn" type="STRING" size="256" sumtext="청구삭제여부"/>
  228. <Column id="dataflag" type="STRING" size="256" sumtext="데이타발생구분"/>
  229. <Column id="snglcalcscorcd" type="STRING" size="256" sumtext="수가코드"/>
  230. <Column id="execprcpuniqno" type="STRING" size="256" sumtext="execprcpuniqno"/>
  231. <Column id="clamkey" type="STRING" size="256" sumtext="청구키"/>
  232. <Column id="ordfildcd" type="STRING" size="256" sumtext="진료분야"/>
  233. <Column id="calcscorseqno" type="STRING" size="256" sumtext="seq"/>
  234. <Column id="chk" type="STRING" size="256"/>
  235. <Column id="presuppkind" type="STRING" size="256"/>
  236. <Column id="preinsukind" type="STRING" size="256"/>
  237. <Column id="preprcppayflag" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. </Dataset>
  240. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="cdnm" type="STRING" size="256"/>
  243. <Column id="cdid" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row/>
  247. </Rows>
  248. </Dataset>
  249. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="cdnm" type="STRING" size="256"/>
  252. <Column id="cdid" type="STRING" size="256"/>
  253. </ColumnInfo>
  254. <Rows>
  255. <Row/>
  256. </Rows>
  257. </Dataset>
  258. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="todd" type="STRING" size="256"/>
  261. <Column id="pid" type="STRING" size="256"/>
  262. <Column id="fromdd" type="STRING" size="256"/>
  263. <Column id="clammode" type="STRING" size="256"/>
  264. <Column id="reference" type="STRING" size="256"/>
  265. </ColumnInfo>
  266. <Rows>
  267. <Row/>
  268. </Rows>
  269. </Dataset>
  270. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  271. <ColumnInfo>
  272. <Column id="insertchk" type="STRING" size="256"/>
  273. </ColumnInfo>
  274. <Rows>
  275. <Row/>
  276. </Rows>
  277. </Dataset>
  278. <Dataset id="ds_cmb_reference" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="label" type="STRING" size="256"/>
  281. <Column id="value" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. <Rows>
  284. <Row>
  285. <Col id="label">실시일자</Col>
  286. <Col id="value">1</Col>
  287. </Row>
  288. <Row>
  289. <Col id="label">정산일자</Col>
  290. <Col id="value">2</Col>
  291. </Row>
  292. </Rows>
  293. </Dataset>
  294. <Dataset id="ds_cmb_clammode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  295. <ColumnInfo>
  296. <Column id="label" type="STRING" size="256"/>
  297. <Column id="value" type="STRING" size="256"/>
  298. </ColumnInfo>
  299. <Rows>
  300. <Row>
  301. <Col id="label">추가</Col>
  302. <Col id="value">A</Col>
  303. </Row>
  304. <Row>
  305. <Col id="label">누락</Col>
  306. <Col id="value">B</Col>
  307. </Row>
  308. <Row>
  309. <Col id="label">-</Col>
  310. </Row>
  311. </Rows>
  312. </Dataset>
  313. </Objects>
  314. <Bind>
  315. <BindItem id="item0" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd"/>
  316. <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd"/>
  317. <BindItem id="item2" compid="group3.group2.cmb_reference" propid="value" datasetid="ds_temp" columnid="reference"/>
  318. <BindItem id="item3" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_temp" columnid="pid"/>
  319. <BindItem id="item4" compid="group3.group2.opt_clammode" propid="value" datasetid="ds_temp" columnid="clammode"/>
  320. </Bind>
  321. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  322. * System Name :
  323. * Job Name :
  324. * Creator :
  325. * Make Date : 2016-05-24
  326. * Description :
  327. *---------------------------------------------------------------------------------------
  328. * Modify Date Modifier Modify Description
  329. *---------------------------------------------------------------------------------------
  330. * 2016-05-24 Live Converter TF->XP
  331. *
  332. *---------------------------------------------------------------------------------------
  333. ****************************************************************************************/
  334. include "com_commonxp::comm_main.xjs";
  335. include "pam_pamcomnxp::PAM001.xjs";
  336. include "pam_pamcomnxp::PAM.xjs";
  337. include "com_basiccodexp::ZBC001.xjs";
  338. include "com_batchinfoxp::ZSB001.xjs";
  339. function SMPID23400_oninit(obj:Form, e:InitEventInfo)
  340. {
  341. frmf_initForm(obj);
  342. }
  343. function SMPID23400_onload(obj:Form, e:LoadEventInfo)
  344. {
  345. var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
  346. ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}]
  347. appf_getCodeList(arrParam);
  348. pamGetDeptCDDrIDList();
  349. fInitialize();
  350. }
  351. function fInitialize()
  352. {
  353. ds_main_cretlist.clearData();
  354. ds_temp.setColumn(0, "reference", "2");
  355. ds_temp.setColumn(0, "todd", "");
  356. ds_temp.setColumn(0, "pid", "");
  357. var now = new Date();
  358. var year= now.getFullYear();
  359. var mon = (now.getMonth()+1)>9 ? ""+(now.getMonth()+1) : "0"+(now.getMonth()+1);
  360. var day = now.getDate()>9 ? ""+now.getDate() : "0"+now.getDate();
  361. var fromdd = year+mon+day;
  362. ds_temp.setColumn(0, "fromdd", fromdd);
  363. ds_temp.setColumn(0, "todd", "");
  364. group3.group2.ipt_todd.setFocus();
  365. }
  366. function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  367. {
  368. fInitialize();
  369. }
  370. function group1_btn_close_onclick(obj:Button, e:ClickEventInfo)
  371. {
  372. this.close();
  373. }
  374. function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo)
  375. {
  376. frmf_modal("SMPID23100", "SMPID23100", "", "", "", "", "", "", "", "", "", "", "M");
  377. }
  378. function fSearchchk(refNo)
  379. {
  380. var sFromdd = ds_temp.getColumn(0, "fromdd");
  381. var str_sFromdd = String(sFromdd);
  382. var sTodd = ds_temp.getColumn(0, "todd");
  383. var str_sTodd = String(sTodd);
  384. var sFromym = str_sFromdd.substr(0,6);
  385. var sToym = str_sTodd.substr(0,6);
  386. var sFy = str_sFromdd.substr(0, 4);
  387. var sFm = str_sFromdd.substr(4, 2);
  388. var sFd = str_sFromdd.substr(6, 2);
  389. var sTy = str_sTodd.substr(0, 4);
  390. var sTm = str_sTodd.substr(4, 2);
  391. var sTd = str_sTodd.substr(6, 2);
  392. var sSd = new Date(sFy, sFm-1, sFd);
  393. var sEd = new Date(sTy,sTm-1,sTd);
  394. var rstFrom = sSd.getTime();
  395. var rstEnd = sEd.getTime();
  396. var sDd = Math.ceil((rstEnd - rstFrom) / (24 * 60 * 60 * 1000));
  397. if (refNo == "1" || refNo == "2")
  398. {
  399. if (utlf_isNull(sFromdd))
  400. {
  401. sysf_messageBox("시작일자가 없습니다!","E999","");
  402. ds_temp.setColumn(0, "fromdd", "");
  403. group3.group2.ipt_fromdd.setFocus();
  404. return false;
  405. }
  406. if (utlf_isNull(sTodd) || sTodd == "-")
  407. {
  408. sysf_messageBox("종료일자가 없습니다!","E999","");
  409. ds_temp.setColumn(0, "todd", "");
  410. group3.group2.ipt_todd.setFocus();
  411. return false;
  412. }
  413. else if (sFromym != sToym)
  414. {
  415. sysf_messageBox("시작연월과 종료년월은 같아야 합니다!","E999","");
  416. group3.group2.ipt_todd.setFocus();
  417. return false;
  418. }
  419. if (sDd > "31")
  420. {
  421. sysf_messageBox("조회기간은 31일을 넘길수 없습니다!","E999","");
  422. ds_temp.setColumn(0, "todd", "");
  423. group3.group2.ipt_todd.setFocus();
  424. return false;
  425. }
  426. else if (sDd < "0")
  427. {
  428. sysf_messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
  429. ds_temp.setColumn(0, "todd", "");
  430. group3.group2.ipt_todd.setFocus();
  431. return false;
  432. }
  433. }
  434. else
  435. {
  436. sysf_messageBox("조회조건이 없습니다!","E999","");
  437. ds_temp.setColumn(0, "reference", "");
  438. group3.group2.cmb_reference.setFocus();
  439. return false;
  440. }
  441. return true;
  442. }
  443. //조회
  444. function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  445. {
  446. var refNo = ds_temp.getColumn(0, "reference");
  447. if (fSearchchk(refNo) == true)
  448. {
  449. dsf_createDsRow("ds_send_search", [{col:"reference", type:"STRING", size:256, val: ds_temp.getColumn(0, "reference")}
  450. , {col:"fromdd", type:"STRING", size:256, val: ds_temp.getColumn(0, "fromdd")}
  451. , {col:"todd", type:"STRING", size:256, val: ds_temp.getColumn(0, "todd")}
  452. , {col:"pid", type:"STRING", size:256, val: ds_temp.getColumn(0, "pid")}
  453. , {col:"clammode", type:"STRING", size:256, val: ds_temp.getColumn(0, "clammode")}]);
  454. var oParam = {};
  455. oParam.id = "TRPID23401";
  456. oParam.service = "aftjudgapp.OutAddCreate";
  457. oParam.method = "reqGetAddCreateList";
  458. oParam.inds = "req=ds_send_search";
  459. oParam.outds = "ds_main_cretlist=createlist";
  460. oParam.async = false;
  461. //oParam.callback = "cf_TRPID23401";
  462. tranf_submit(oParam);
  463. ds_hidden.setColumn(0, "insertchk", "0");
  464. for(var i = 0; i < ds_main_cretlist.rowcount; i++)
  465. {
  466. ds_main_cretlist.setColumn(i, "preinsukind", ds_main_cretlist.getColumn(i, "insukind"));
  467. ds_main_cretlist.setColumn(i, "presuppkind", ds_main_cretlist.getColumn(i, "suppkind"));
  468. ds_main_cretlist.setColumn(i, "preprcppayflag", ds_main_cretlist.getColumn(i, "prcppayflag"));
  469. }
  470. }
  471. }
  472. function group3_group2_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  473. {
  474. if(e.keycode == 13)
  475. {
  476. var sLenchk = ds_temp.getColumn(0, "todd");
  477. if (sLenchk.length == 8)
  478. {
  479. group3_group2_btn_srch_onclick();
  480. }
  481. }
  482. }
  483. function group3_group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  484. {
  485. var sLenchk = ds_temp.getColumn(0, "fromdd");
  486. if (sLenchk.length == 8)
  487. {
  488. var lastdate = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  489. var sFromyy = String(ds_temp.getColumn(0, "fromdd")).substr(0, 4);
  490. var sFrommm = String(ds_temp.getColumn(0, "fromdd")).substr(4, 2);
  491. if((0 == sFromyy%4 && 0 != sFromyy%100) || 0 == sFromyy%400)
  492. {
  493. lastdate[1]=29;
  494. }
  495. var sFromdd = lastdate[sFrommm-1];
  496. var sTodd = sFromyy+sFrommm+sFromdd;
  497. ds_temp.setColumn(0, "todd", sTodd);
  498. }
  499. }
  500. function group3_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  501. {
  502. if(e.keycode == 13)
  503. {
  504. setInputNodeCurText();
  505. group3_group2_btn_srch_onclick();
  506. }
  507. }
  508. function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo)
  509. {
  510. var sInsertchk = ds_hidden.getColumn(0, "insertchk");
  511. if (sInsertchk == 0)
  512. {
  513. var oParam = {};
  514. oParam.id = "TXPID23401";
  515. oParam.service = "aftjudgapp.OutAddCreate";
  516. oParam.method = "insOutAddCreate";
  517. oParam.inds = "req=ds_main_cretlist";
  518. oParam.outds = "";
  519. oParam.async = false;
  520. //oParam.callback = "cf_TXPID23401";
  521. tranf_submit(oParam);
  522. ds_main_cretlist.clearData();
  523. dsf_createDsRow("ds_send_search2", [{col:"clamym", type:"STRING", size:256, val: String(ds_temp.getColumn(0, "fromdd")).substr(0,6)}
  524. , {col:"fromdd", type:"STRING", size:256, val: ds_temp.getColumn(0, "fromdd")}
  525. , {col:"todd", type:"STRING", size:256, val: ds_temp.getColumn(0, "todd")}
  526. , {col:"fstrgstrid", type:"STRING", size:256, val: ""}
  527. , {col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}]);
  528. var oParam = {};
  529. oParam.id = "TRPID23402";
  530. oParam.service = "aftjudgapp.OutAddCreate";
  531. oParam.method = "reqGetCreateList";
  532. oParam.inds = "req=ds_send_search2";
  533. oParam.outds = "ds_main_cretlist=createlist";
  534. oParam.async = false;
  535. //oParam.callback = "cf_TRPID23402";
  536. tranf_submit(oParam);
  537. ds_hidden.setColumn(0, "insertchk", "1");
  538. }
  539. else if (sInsertchk == 1)
  540. {
  541. sysf_messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
  542. }
  543. }
  544. function group3_swt_add_case_summary_btn_cnclexcel_onclick(obj:Button, e:ClickEventInfo)
  545. {
  546. if (ds_main_cretlist.rowcount > 0)
  547. {
  548. grdf_exportExcel(group3.swt_add.case_summary.grd_cretlist, "exportExcel", "see");
  549. }
  550. else
  551. {
  552. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  553. }
  554. }
  555. ]]></Script>
  556. </Form>
  557. </FDL>