SMPIR31200_정산의뢰대상생성.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIR31200" position="absolute 0 0 1151 652" titletext="정산의뢰대상생성" oninit="SMPIR31200_oninit" onload="SMPIR31200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" taborder="3" position="absolute 0 0 1149 614" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption10" text="정산의뢰대상생성" class="tit_2" position="absolute 0 0 170 21" anchor="default"/>
  11. <Div id="group2" anchor="left top right" taborder="1" position="absolute -1 19 1149 59" class="div_SA">
  12. <Layouts>
  13. <Layout>
  14. <Button id="btn_srch" taborder="4" text="조회" onclick="group3_group2_btn_srch_onclick" class="btn1" position="absolute 985 8 1041 30" anchor="top right"/>
  15. <Static id="caption6" text="~" position="absolute 794 11 805 29" anchor="default"/>
  16. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 967 5 973 32" anchor="top right"/>
  17. <Calendar id="ipt_todd" taborder="5" onkeyup="group3_group2_ipt_todd_onkeyup" class="input_default" position="absolute 812 11 897 30" anchor="default"/>
  18. <Static id="caption5" text="정산일자 :" class="search_name" position="absolute 628 12 708 29" anchor="default"/>
  19. <Calendar id="ipt_fromdd" taborder="6" onchanged="group3_group2_ipt_fromdd_onchanged" class="input_default" position="absolute 704 10 789 29" anchor="default"/>
  20. <Radio id="opt_clammode" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="input_s_essential" position="absolute 397 7 633 30" anchor="default">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">O</Col>
  29. <Col id="datacolumn">외래</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">I</Col>
  33. <Col id="datacolumn">입원</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">E</Col>
  37. <Col id="datacolumn">응급실외래</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Radio>
  42. <Static id="caption9" text="외래/입원 :" class="search_name" position="absolute 312 11 407 28" anchor="default"/>
  43. <Button id="btn_create" taborder="8" text="대상생성" onclick="group3_group2_btn_create_onclick" class="btn4" position="absolute 1055 8 1135 30" anchor="top right"/>
  44. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 14 11 109 28" anchor="default"/>
  45. <Radio id="rdo_search" taborder="9" columncount="5" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_search_onitemchanged" class="input_s_essential" position="absolute 92 7 297 30" anchor="default">
  46. <Dataset id="innerdataset">
  47. <ColumnInfo>
  48. <Column id="codecolumn"/>
  49. <Column id="datacolumn"/>
  50. </ColumnInfo>
  51. <Rows>
  52. <Row>
  53. <Col id="codecolumn">Y</Col>
  54. <Col id="datacolumn">생성대상자조회</Col>
  55. </Row>
  56. <Row>
  57. <Col id="codecolumn">N</Col>
  58. <Col id="datacolumn">생성자조회</Col>
  59. </Row>
  60. </Rows>
  61. </Dataset>
  62. </Radio>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. <Button id="btn_save" taborder="2" text="수정" onclick="btn_save_onclick" class="btn4" position="absolute 1089 60 1145 82" anchor="top right"/>
  67. <Grid id="grd_searchlist" taborder="3" binddataset="ds_main_createlist" useinputpanel="false" oncelldblclick="grd_searchlist_oncelldblclick" position="absolute 0 87 1146 612" anchor="all">
  68. <Formats>
  69. <Format id="default">
  70. <Columns>
  71. <Column size="25"/>
  72. <Column size="60"/>
  73. <Column size="60"/>
  74. <Column size="41"/>
  75. <Column size="65"/>
  76. <Column size="60"/>
  77. <Column size="40"/>
  78. <Column size="0"/>
  79. <Column size="80"/>
  80. <Column size="65"/>
  81. <Column size="70"/>
  82. <Column size="70"/>
  83. <Column size="100"/>
  84. <Column size="100"/>
  85. <Column size="100"/>
  86. <Column size="100"/>
  87. <Column size="100"/>
  88. <Column size="100"/>
  89. <Column size="60"/>
  90. <Column size="60"/>
  91. <Column size="60"/>
  92. <Column size="60"/>
  93. <Column size="60"/>
  94. <Column size="60"/>
  95. <Column size="87"/>
  96. <Column size="0"/>
  97. </Columns>
  98. <Rows>
  99. <Row size="24" band="head"/>
  100. <Row size="24" band="head"/>
  101. <Row size="24"/>
  102. </Rows>
  103. <Band id="head">
  104. <Cell rowspan="2" taborder="undefined"/>
  105. <Cell col="1" rowspan="2" text="정산일자" taborder="undefined"/>
  106. <Cell col="2" rowspan="2" text="접수번호" taborder="undefined"/>
  107. <Cell col="3" rowspan="2" text="명일련" taborder="undefined"/>
  108. <Cell col="4" rowspan="2" text="환자번호" taborder="undefined"/>
  109. <Cell col="5" rowspan="2" text="청구월" taborder="undefined"/>
  110. <Cell col="6" rowspan="2" text="차수" taborder="undefined"/>
  111. <Cell col="7" text="caption1"/>
  112. <Cell col="8" rowspan="2" text="진료과" taborder="undefined"/>
  113. <Cell col="9" rowspan="2" text="구분" taborder="undefined"/>
  114. <Cell col="10" colspan="2" text="진료기간" taborder="undefined"/>
  115. <Cell col="12" colspan="3" text="급여총액" taborder="undefined"/>
  116. <Cell col="15" colspan="3" text="청구액" taborder="undefined"/>
  117. <Cell col="18" colspan="4" text="보험유형" taborder="undefined"/>
  118. <Cell col="22" rowspan="2" text="주상병" taborder="undefined"/>
  119. <Cell col="23" rowspan="2" text="V Code" taborder="undefined"/>
  120. <Cell col="24" rowspan="2" text="의뢰완료여부" taborder="undefined"/>
  121. <Cell col="25" text="심사차수"/>
  122. <Cell row="1" col="7" text="caption1"/>
  123. <Cell row="1" col="10" text="시작일"/>
  124. <Cell row="1" col="11" text="종료일"/>
  125. <Cell row="1" col="12" text="사후"/>
  126. <Cell row="1" col="13" text="원무"/>
  127. <Cell row="1" col="14" text="차액"/>
  128. <Cell row="1" col="15" text="사후"/>
  129. <Cell row="1" col="16" text="원무"/>
  130. <Cell row="1" col="17" text="차액"/>
  131. <Cell row="1" col="18" text="사후"/>
  132. <Cell row="1" col="19" text="원무"/>
  133. <Cell row="1" col="20" text="사후"/>
  134. <Cell row="1" col="21" text="원무"/>
  135. <Cell row="1" col="25" text="심사차수"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell/>
  139. <Cell col="1" text="bind:rcptexecdd" enable="false"/>
  140. <Cell col="2" text="bind:acptno" enable="false"/>
  141. <Cell col="3" text="bind:docuseqno" enable="false"/>
  142. <Cell col="4" text="bind:pid" enable="false"/>
  143. <Cell col="5" text="bind:clamym" enable="false"/>
  144. <Cell col="6" text="bind:clamdg" enable="false"/>
  145. <Cell col="7" text="bind:pidsn" enable="false"/>
  146. <Cell col="8" text="bind:orddeptcd" enable="false"/>
  147. <Cell col="9" displaytype="combo" edittype="none" style="align:center;" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
  148. <Cell col="10" displaytype="date" text="bind:ordfromdd" mask="yyyy-MM-dd" enable="false"/>
  149. <Cell col="11" displaytype="date" text="bind:ordtodd" mask="yyyy-MM-dd" enable="false"/>
  150. <Cell col="12" displaytype="number" style="align:center;" text="bind:edimedcaretotamt" mask="9,999" enable="false"/>
  151. <Cell col="13" displaytype="number" style="align:center;" text="bind:payamt" mask="#,###" enable="false"/>
  152. <Cell col="14" displaytype="number" style="align:center middle;" text="bind:totamtdif" mask="9,999" suppress="0" enable="false"/>
  153. <Cell col="15" displaytype="number" style="align:center;" text="bind:ediinsuclamamt" mask="9,999" enable="false"/>
  154. <Cell col="16" displaytype="number" style="align:center;" text="bind:payinsubamt" mask="9,999" enable="false"/>
  155. <Cell col="17" displaytype="number" style="align:center;" text="bind:insubamtdif" mask="9,999" enable="false"/>
  156. <Cell col="18" displaytype="combo" edittype="combo" text="bind:sinsukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  157. <Cell col="19" displaytype="combo" edittype="combo" text="bind:winsukind" mask="yyyy-mm-dd" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  158. <Cell col="20" displaytype="combo" edittype="combo" text="bind:ssuppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  159. <Cell col="21" displaytype="combo" edittype="combo" text="bind:wsuppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm"/>
  160. <Cell col="22" text="bind:diagcd" enable="false"/>
  161. <Cell col="23" text="bind:spclcd" enable="false"/>
  162. <Cell col="24" displaytype="combo" edittype="combo" style="align:center;" text="bind:endyn" combodataset="ds_cmb_endyn" combocodecol="value" combodatacol="label"/>
  163. <Cell col="25" text="bind:judgdg"/>
  164. </Band>
  165. </Format>
  166. </Formats>
  167. </Grid>
  168. <Shape id="line17" class="line_1" position="absolute -1 81 1146 90" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  169. </Layout>
  170. </Layouts>
  171. </Div>
  172. <Div position="absolute 0 614 1150 649" id="group1" scrollbars="autoboth" anchor="left right bottom">
  173. <Layouts>
  174. <Layout>
  175. <Shape position="absolute -1 -1 1146 5" linetype="horizontal" id="line32" class="line_6" anchor="left right bottom"/>
  176. <Button position="absolute 1089 5 1145 27" id="btn_close" class="btn4" text="닫기" anchor="right bottom" onclick="group1_btn_close_onclick"/>
  177. <Button position="absolute 1018 5 1086 27" id="btn_reset" class="btn4" text="초기화" anchor="right bottom" onclick="group1_btn_reset_onclick"/>
  178. <Button position="absolute 0 5 160 27" id="btn_chuga" class="btn3" text="이의신청정산의뢰생성" anchor="left bottom" onclick="group1_btn_chuga_onclick"/>
  179. </Layout>
  180. </Layouts>
  181. </Div>
  182. </Layout>
  183. </Layouts>
  184. <Objects>
  185. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <Column id="cdid" type="STRING" size="256"/>
  188. <Column id="cdnm" type="STRING" size="256"/>
  189. </ColumnInfo>
  190. <Rows>
  191. <Row/>
  192. </Rows>
  193. </Dataset>
  194. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  195. <ColumnInfo>
  196. <Column id="cdid" type="STRING" size="256"/>
  197. <Column id="cdnm" type="STRING" size="256"/>
  198. </ColumnInfo>
  199. <Rows>
  200. <Row/>
  201. </Rows>
  202. </Dataset>
  203. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="fromdd" type="STRING" size="256"/>
  206. <Column id="todd" type="STRING" size="256"/>
  207. <Column id="searchflag" type="STRING" size="256"/>
  208. <Column id="ioflag" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row/>
  212. </Rows>
  213. </Dataset>
  214. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="ioflag" type="STRING" size="256"/>
  217. <Column id="fromdd" type="STRING" size="256"/>
  218. <Column id="todd" type="STRING" size="256"/>
  219. <Column id="searchflag" type="STRING" size="256"/>
  220. </ColumnInfo>
  221. <Rows>
  222. <Row/>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  226. <ColumnInfo>
  227. <Column id="insertchk" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. <Rows>
  230. <Row/>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_send_search2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="ioflag" type="STRING" size="256"/>
  236. <Column id="fromdd" type="STRING" size="256"/>
  237. <Column id="todd" type="STRING" size="256"/>
  238. <Column id="searchflag" type="STRING" size="256"/>
  239. </ColumnInfo>
  240. <Rows>
  241. <Row/>
  242. </Rows>
  243. </Dataset>
  244. <Dataset id="ds_main_createlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  247. <Column id="rcptexecdd" type="STRING" size="256" sumtext="정산일자"/>
  248. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  249. <Column id="docuseqno" type="STRING" size="256" sumtext="명일련번호"/>
  250. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  251. <Column id="clamym" type="STRING" size="256" sumtext="청구년월"/>
  252. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  253. <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
  254. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  255. <Column id="ordfromdd" type="STRING" size="256" sumtext="진료시작일자"/>
  256. <Column id="ordtodd" type="STRING" size="256" sumtext="진료종료일자"/>
  257. <Column id="ioflag" type="STRING" size="256" sumtext="내원형태"/>
  258. <Column id="edimedcaretotamt" type="STRING" size="256" sumtext="사후급여총액"/>
  259. <Column id="payamt" type="STRING" size="256" sumtext="원무급여총액"/>
  260. <Column id="totamtdif" type="STRING" size="256" sumtext="급여총액차액"/>
  261. <Column id="ediinsuclamamt" type="STRING" size="256" sumtext="사후청구액"/>
  262. <Column id="payinsubamt" type="STRING" size="256" sumtext="원무청구액"/>
  263. <Column id="insubamtdif" type="STRING" size="256" sumtext="청구액차액"/>
  264. <Column id="sinsukind" type="STRING" size="256" sumtext="사후보험유형"/>
  265. <Column id="winsukind" type="STRING" size="256" sumtext="원무보험유형"/>
  266. <Column id="ssuppkind" type="STRING" size="256" sumtext="사후보조유형"/>
  267. <Column id="wsuppkind" type="STRING" size="256" sumtext="원무보조유형"/>
  268. <Column id="diagcd" type="STRING" size="256" sumtext="주상병코드"/>
  269. <Column id="spclcd" type="STRING" size="256" sumtext="특정내역코드"/>
  270. <Column id="endyn" type="STRING" size="256" sumtext="정산의뢰완료유무"/>
  271. <Column id="ordtype" type="STRING" size="256" sumtext="ordtype"/>
  272. <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
  273. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록일시"/>
  274. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록자id"/>
  275. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록일시"/>
  276. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록자id"/>
  277. <Column id="clamno" type="STRING" size="256"/>
  278. </ColumnInfo>
  279. </Dataset>
  280. <Dataset id="ds_cmb_endyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  281. <ColumnInfo>
  282. <Column id="label" type="STRING" size="256"/>
  283. <Column id="value" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. <Rows>
  286. <Row>
  287. <Col id="label">진행중</Col>
  288. <Col id="value">N</Col>
  289. </Row>
  290. <Row>
  291. <Col id="label">완료</Col>
  292. <Col id="value">Y</Col>
  293. </Row>
  294. <Row>
  295. <Col id="label">대상아님</Col>
  296. <Col id="value">X</Col>
  297. </Row>
  298. </Rows>
  299. </Dataset>
  300. <Dataset id="ds_send_tnsdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="srchflag" type="STRING" size="256"/>
  303. <Column id="acptno" type="STRING" size="256"/>
  304. <Column id="judgdg" type="STRING" size="256"/>
  305. <Column id="clamno" type="STRING" size="256"/>
  306. <Column id="docuseqno" type="STRING" size="256"/>
  307. </ColumnInfo>
  308. <Rows>
  309. <Row/>
  310. </Rows>
  311. </Dataset>
  312. <Dataset id="ds_cmb_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="label" type="STRING" size="256"/>
  315. <Column id="value" type="STRING" size="256"/>
  316. </ColumnInfo>
  317. <Rows>
  318. <Row>
  319. <Col id="label">입원</Col>
  320. <Col id="value">I</Col>
  321. </Row>
  322. <Row>
  323. <Col id="label">외래</Col>
  324. <Col id="value">O</Col>
  325. </Row>
  326. <Row>
  327. <Col id="label">ER 외래</Col>
  328. <Col id="value">E</Col>
  329. </Row>
  330. </Rows>
  331. </Dataset>
  332. </Objects>
  333. <Bind>
  334. <BindItem id="item0" compid="group3.group2.rdo_search" propid="value" datasetid="ds_temp" columnid="searchflag"/>
  335. <BindItem id="item1" compid="group3.group2.opt_clammode" propid="value" datasetid="ds_temp" columnid="ioflag"/>
  336. <BindItem id="item2" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd"/>
  337. <BindItem id="item3" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd"/>
  338. </Bind>
  339. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  340. * System Name :
  341. * Job Name :
  342. * Creator :
  343. * Make Date : 2016-05-24
  344. * Description :
  345. *---------------------------------------------------------------------------------------
  346. * Modify Date Modifier Modify Description
  347. *---------------------------------------------------------------------------------------
  348. * 2016-05-24 Live Converter TF->XP
  349. *
  350. *---------------------------------------------------------------------------------------
  351. ****************************************************************************************/
  352. include "com_commonxp::comm_main.xjs";
  353. include "pam_pamcomnxp::PAM001.xjs";
  354. include "pam_pamcomnxp::PAM.xjs";
  355. function SMPIR31200_oninit(obj:Form, e:InitEventInfo)
  356. {
  357. frmf_initForm(obj);
  358. }
  359. function SMPIR31200_onload(obj:Form, e:LoadEventInfo)
  360. {
  361. grdf_initGrid(group3.grd_searchlist);
  362. grdf_setRowTypeIcon(group3.grd_searchlist, 0);
  363. var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
  364. ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}]
  365. appf_getCodeList(arrParam);
  366. pamGetDeptCDDrIDList();
  367. fInitialize();
  368. }
  369. function fInitialize()
  370. {
  371. ds_main_createlist.clearData();
  372. ds_temp.setColumn(0, "fromdd", "");
  373. ds_temp.setColumn(0, "todd", "");
  374. var now = new Date();
  375. var year= now.getFullYear();
  376. var mon = (now.getMonth()+1)>9 ? ''+(now.getMonth()+1) : '0'+(now.getMonth()+1);
  377. var day = now.getDate()>9 ? ''+now.getDate() : '0'+now.getDate();
  378. var fromdd = year+mon+day;
  379. ds_temp.setColumn(0, "fromdd", fromdd);
  380. group3.group2.ipt_fromdd.setFocus();
  381. group3.group2.rdo_search.index = 0;
  382. group3.group2.opt_clammode.index = 0;
  383. //model.removeNode("/root/main/list");
  384. //model.refresh();
  385. }
  386. function fSearchchk(refOpt)
  387. {
  388. if (refOpt == "O" || refOpt =="E")
  389. {
  390. var sFromdd = ds_temp.getColumn(0, "fromdd");
  391. var sTodd = ds_temp.getColumn(0, "todd");
  392. var s_sFromdd = String(sFromdd);
  393. var s_sTodd = String(sTodd);
  394. var sFromym = s_sFromdd.substr(0,6);
  395. var sToym = s_sTodd.substr(0,6);
  396. var sFy = s_sFromdd.substr(0, 4);
  397. var sFm = s_sFromdd.substr(4, 2);
  398. var sFd = s_sFromdd.substr(6, 2);
  399. var sTy = s_sTodd.substr(0, 4);
  400. var sTm = s_sTodd.substr(4, 2);
  401. var sTd = s_sTodd.substr(6, 2);
  402. var sSd = new Date(sFy, sFm-1, sFd);
  403. var sEd = new Date(sTy,sTm-1,sTd);
  404. var rstFrom = sSd.getTime();
  405. var rstEnd = sEd.getTime();
  406. var sDd = Math.ceil((rstEnd - rstFrom) / (24 * 60 * 60 * 1000));
  407. if (utlf_isNull(sFromdd) || sFromdd == "" || sFromdd == " ")
  408. {
  409. sysf_messageBox("시작일자가 없습니다!","E999","");
  410. ds_temp.setColumn(0, "fromdd", "");
  411. group3.group2.ipt_fromdd.setFocus();
  412. return false;
  413. }
  414. if (utlf_isNull(sTodd) || sTodd == "" || sTodd == " " || sTodd == "-")
  415. {
  416. sysf_messageBox("종료일자가 없습니다!","E999","");
  417. ds_temp.setColumn(0, "todd", "");
  418. group3.group2.ipt_todd.setFocus();
  419. return false;
  420. }
  421. else if (sFromym != sToym)
  422. {
  423. sysf_messageBox("시작년월과 종료년월은 같아야 합니다!","E999","");
  424. group3.group2.ipt_todd.setFocus();
  425. return false;
  426. }
  427. var refflag = ds_temp.getColumn(0, "searchflag");
  428. if (sDd > '7' && refflag == 'Y')
  429. {
  430. sysf_messageBox("조회기간은 7일을 넘길수 없습니다!","E999","");
  431. ds_temp.setColumn(0, "todd", "");
  432. group3.group2.ipt_todd.setFocus();
  433. return false;
  434. }
  435. else if (sDd < '0')
  436. {
  437. sysf_messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
  438. ds_temp.setColumn(0, "todd", "");
  439. group3.group2.ipt_todd.setFocus();
  440. return false;
  441. }
  442. }
  443. else if (refOpt == 'I')
  444. {
  445. var sFromdd = ds_temp.getColumn(0, "fromdd");
  446. if (utlf_isNull(sFromdd) || sFromdd == "" || sFromdd == " ")
  447. {
  448. sysf_messageBox("조회일자가 없습니다!","E999","");
  449. ds_temp.setColumn(0, "fromdd", "");
  450. group3.group2.ipt_fromdd.setFocus();
  451. return false;
  452. }
  453. }
  454. return true;
  455. }
  456. function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  457. {
  458. var refOpt = ds_temp.getColumn(0, "ioflag");
  459. var refflag = ds_temp.getColumn(0, "searchflag");
  460. if (fSearchchk(refOpt) == true)
  461. {
  462. if (refflag == "Y")
  463. {
  464. ds_send_search.setColumn(0, "ioflag", ds_temp.getColumn(0, "ioflag"));
  465. ds_send_search.setColumn(0, "fromdd", ds_temp.getColumn(0, "fromdd"));
  466. ds_send_search.setColumn(0, "todd", ds_temp.getColumn(0, "todd"));
  467. ds_send_search.setColumn(0, "searchflag", ds_temp.getColumn(0, "searchflag"));
  468. var oParam = {};
  469. oParam.id = "TRPIR31201";
  470. oParam.service = "cutmngtapp.CutMngtColl";
  471. oParam.method = "reqGetCutCollList";
  472. oParam.inds = "req=ds_send_search";
  473. oParam.outds = "ds_main_createlist=createlist";
  474. oParam.async = false;
  475. //oParam.callback = "cf_TRPIR31201";
  476. tranf_submit(oParam);
  477. ds_hidden.setColumn(0, "insertchk", "0");
  478. }
  479. else if (refflag == "N")
  480. {
  481. ds_send_search2.setColumn(0, "ioflag", ds_temp.getColumn(0, "ioflag"));
  482. ds_send_search2.setColumn(0, "fromdd", ds_temp.getColumn(0, "fromdd"));
  483. ds_send_search2.setColumn(0, "todd", ds_temp.getColumn(0, "todd"));
  484. ds_send_search2.setColumn(0, "searchflag", ds_temp.getColumn(0, "searchflag"));
  485. var oParam = {};
  486. oParam.id = "TRPIR31202";
  487. oParam.service = "cutmngtapp.CutMngtColl";
  488. oParam.method = "reqGetAftCollList";
  489. oParam.inds = "req=ds_send_search2";
  490. oParam.outds = "ds_main_createlist=createlist";
  491. oParam.async = false;
  492. //oParam.callback = "cf_TRPIR31202";
  493. tranf_submit(oParam);
  494. ds_hidden.setColumn(0, "insertchk", "1");
  495. }
  496. }
  497. }
  498. function group3_group2_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  499. {
  500. if(e.keycode == 13)
  501. {
  502. var sLenchk = ds_temp.getColumn(0, "todd");
  503. if(sLenchk.length == 8)
  504. {
  505. group3_group2_btn_srch_onclick();
  506. }
  507. }
  508. }
  509. function group3_group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  510. {
  511. var sLenchk = ds_temp.getColumn(0, "fromdd");
  512. if (sLenchk.length == 8)
  513. {
  514. var lastdate = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  515. var sFromyy = obj.value;
  516. var s_sFromyy = String(sFromyy).substr(0, 4);
  517. var sFrommm = obj.value;
  518. var s_sFrommm = String(sFrommm).substr(4,2);
  519. if((0 == sFromyy%4 && 0 != sFromyy%100) || 0 == sFromyy%400)
  520. {
  521. lastdate[1] = 29;
  522. }
  523. var sFromdd = lastdate[s_sFrommm-1];
  524. var sTodd = s_sFromyy+s_sFrommm+sFromdd;
  525. ds_temp.setColumn(0, "todd", sTodd);
  526. }
  527. }
  528. //대상생성
  529. function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo)
  530. {
  531. var sInsertchk = ds_hidden.getColumn(0, "insertchk");
  532. if (sInsertchk == 0)
  533. {
  534. var oParam = {};
  535. oParam.id = "TXPIR31201";
  536. oParam.service = "cutmngtapp.CutMngtColl";
  537. oParam.method = "insCutCollCreate";
  538. oParam.inds = "createlist=ds_main_createlist";
  539. oParam.outds = "";
  540. oParam.async = false;
  541. //oParam.callback = "cf_TXPIR31201";
  542. tranf_submit(oParam);
  543. //model.resetInstanceNode("/root/main/list/createlist");
  544. // model.makeNode("/root/send/search2/fromdd");
  545. // model.makeNode("/root/send/search2/todd");
  546. ds_send_search2.setColumn(0, "ioflag", ds_send_search.getColumn(0, "ioflag"));
  547. ds_send_search2.setColumn(0, "fromdd", ds_send_search.getColumn(0, "fromdd"));
  548. ds_send_search2.setColumn(0, "todd", ds_send_search.getColumn(0, "todd"));
  549. var oParam = {};
  550. oParam.id = "TRPIR31202";
  551. oParam.service = "cutmngtapp.CutMngtColl";
  552. oParam.method = "reqGetAftCollList";
  553. oParam.inds = "req=ds_send_search2";
  554. oParam.outds = "ds_main_createlist=createlist";
  555. oParam.async = false;
  556. //oParam.callback = "cf_TRPIR31202";
  557. tranf_submit(oParam);
  558. ds_hidden.setColumn(0, "insertchk", "1");
  559. }
  560. else if (sInsertchk == 1)
  561. {
  562. sysf_messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
  563. }
  564. }
  565. function group3_group2_rdo_search_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  566. {
  567. var optIOflag = ds_temp.getColumn(0, "ioflag");
  568. if (optIOflag == "I")
  569. {
  570. group3.group2.ipt_todd.visible = false;
  571. group3.group2.caption6.visible = false;
  572. fInitialize();
  573. ds_temp.setColumn(0, "todd", "");
  574. }
  575. else if (optIOflag == "O")
  576. {
  577. group3.group2.ipt_todd.visible = true;
  578. group3.group2.caption6.visible = true;
  579. fInitialize();
  580. group3.group2.ipt_todd.setFocus();
  581. }
  582. else if (optIOflag == "E")
  583. {
  584. group3.group2.ipt_todd.visible = true;
  585. group3.group2.caption6.visible = true;
  586. fInitialize();
  587. group3.group2.ipt_todd.setFocus();
  588. }
  589. }
  590. function grd_searchlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  591. {
  592. ds_send_tnsdata.setColumn(0, "srchflag", "1");
  593. ds_send_tnsdata.setColumn(0, "acptno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "acptno"));
  594. ds_send_tnsdata.setColumn(0, "judgdg", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "judgdg"));
  595. ds_send_tnsdata.setColumn(0, "clamno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "clamno"));
  596. ds_send_tnsdata.setColumn(0, "docuseqno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "docuseqno"));
  597. var acptno1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "acptno");
  598. var judgdg1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "judgdg");
  599. var docuseqno1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "docuseqno");
  600. frmf_modal("SMPIR31000", "SMPIR31000", {objDs:ds_send_tnsdata}, "", "", "", "", "", "", "", "", "", "M");
  601. }
  602. //수정
  603. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  604. {
  605. var update = grdf_getGridUpdateData(group3.grd_searchlist);
  606. if(update.rowcount == 0)
  607. {
  608. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  609. return 0;
  610. }
  611. var oParam = {};
  612. oParam.id = "TXPIR31202";
  613. oParam.service = "cutmngtapp.CutMngtColl";
  614. oParam.method = "insCutCollUpt";
  615. oParam.inds = "req=ds_main_createlist";
  616. oParam.outds = "";
  617. oParam.async = false;
  618. oParam.callback = "cf_TXPIR31202";
  619. tranf_submit(oParam);
  620. }
  621. function cf_TXPIR31202()
  622. {
  623. var oParam = {};
  624. oParam.id = "TRPIR31202";
  625. oParam.service = "cutmngtapp.CutMngtColl";
  626. oParam.method = "reqGetAftCollList";
  627. oParam.inds = "req=ds_temp";
  628. oParam.outds = "ds_main_createlist=createlist";
  629. oParam.async = false;
  630. //oParam.callback = "cf_TRPIR31202";
  631. tranf_submit(oParam);
  632. }
  633. function group1_btn_close_onclick(obj:Button, e:ClickEventInfo)
  634. {
  635. this.close();
  636. }
  637. function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  638. {
  639. fInitialize();
  640. }
  641. function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo)
  642. {
  643. frmf_modal("SMPIR31000", "SMPIR31000", "", "", "", "", "", "", "", "", "", "", "M");
  644. }
  645. ]]></Script>
  646. </Form>
  647. </FDL>