SMASI04000_잠복결핵검진 대상자 관리.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASI04000" position="absolute 0 0 1100 734" titletext="잠복결핵검진 대상자 관리" oninit="model1_oninit" onload="SMASI04000_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_btn" position="absolute 0 711 1100 734" anchor="left right bottom" positiontype="position" scrollbars="none">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <cp_deptList id="cp_deptList00" titletext="New Form" taborder="1" text="cp_deptList00" position="absolute 824 38 860 53"/>
  13. <cp_deptList id="cp_deptList01" titletext="New Form" taborder="2" text="cp_deptList00" position="absolute 863 38 899 53"/>
  14. <Div id="grp_tle" position="absolute 0 0 1100 26" anchor="default" positiontype="position" scrollbars="none">
  15. <Layouts>
  16. <Layout>
  17. <Static id="caption6" class="tit_1" position="absolute 0 0 205 26" anchor="default" text="잠복결핵검진 대상자 관리" positiontype="position"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Div id="grp_biz" position="absolute 0 26 1100 731" anchor="all" positiontype="position" scrollbars="none">
  22. <Layouts>
  23. <Layout width="1100" height="708">
  24. <Div id="group1" position="absolute 0 0 1100 42" style="align:center top;" anchor="left top right" class="div_SA" scrollbars="none" positiontype="position">
  25. <Layouts>
  26. <Layout>
  27. <Static id="cap_fromdd" class="search_name" visible="true" position="absolute 8 13 82 33" anchor="left top" text="기간선택 :" positiontype="position"/>
  28. <Static id="caption19" class="search_no_b" position="absolute 195 13 211 33" anchor="left top" text="~" style="align:center middle;" positiontype="position"/>
  29. <Button id="btn_search" class="btn1" position="absolute 976 13 1032 33" anchor="left top" text="조회" onlbuttonup="btn_search_onlbuttonup" onclick="btn_search_onclick" taborder="2" positiontype="position"/>
  30. <Calendar id="ipt_fromdd" class="input_essential" position="absolute 81 13 195 33" anchor="left top" dateformat="yyyy-MM-dd " value="null" onchanged="grp_biz_group1_ipt_fromdd_onchanged" autoselect="true" autoskip="true" taborder="0" positiontype="position"/>
  31. <Calendar id="ipt_todd" class="input_essential" position="absolute 211 13 327 33" anchor="left top" dateformat="yyyy-MM-dd " value="null" onkeyup="grp_biz_group1_ipt_todd_onkeyup" enable="true" autoselect="true" autoskip="true" taborder="1" positiontype="position"/>
  32. <Button id="button2" taborder="3" text="엑셀" onclick="button2_onclick" onlbuttonup="button2_onlbuttonup" class="btn7" position="absolute 1034 13 1086 33" anchor="left top"/>
  33. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 334 12 338 34" anchor="left top"/>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Static id="caption2" text="잠복결핵검진 대상자 관리" class="tit_2" position="absolute 0 44 197 64" onclick="grp_biz_caption2_onclick" anchor="default" positiontype="position"/>
  38. <Static id="caption3" text="정렬선택" class="cell_1" visible="false" position="absolute 1 97 71 121" style="align:center middle;" anchor="default" positiontype="position"/>
  39. <Combo id="cmb_cond3" taborder="17" class="combo_search" visible="false" position="absolute 300 99 380 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  40. <Edit id="output4" taborder="18" readonly="true" visible="false" position="absolute 655 99 685 119" style="align:center middle;" anchor="default" value="4" positiontype="position"/>
  41. <Edit id="output5" taborder="19" readonly="true" visible="false" position="absolute 849 99 879 119" style="align:center middle;" anchor="default" value="5" positiontype="position"/>
  42. <Combo id="cmb_cond8" taborder="20" class="combo_search" visible="false" position="absolute 771 99 841 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  43. <Edit id="output6" taborder="21" readonly="true" visible="false" position="absolute 267 99 297 119" style="align:center middle;" anchor="default" value="2" positiontype="position"/>
  44. <Edit id="output7" taborder="22" readonly="true" visible="false" position="absolute 461 99 491 119" style="align:center middle;" anchor="default" value="3" positiontype="position"/>
  45. <Edit id="output8" taborder="23" readonly="true" visible="false" position="absolute 73 99 103 119" style="align:center middle;" anchor="default" value="1" positiontype="position"/>
  46. <Combo id="cmb_cond5" taborder="24" class="combo_search" visible="false" position="absolute 494 99 574 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  47. <Combo id="cmb_cond6" taborder="25" class="combo_search" visible="false" position="absolute 577 99 647 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  48. <Combo id="cmb_cond4" taborder="26" class="combo_search" visible="false" position="absolute 383 99 453 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  49. <Combo id="cmb_cond2" taborder="27" class="combo_search" visible="false" position="absolute 189 99 259 119" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  50. <Combo id="cmb_cond7" taborder="28" class="combo_search" visible="false" position="absolute 688 99 768 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  51. <Combo id="cmb_cond9" taborder="29" class="combo_search" visible="false" position="absolute 882 99 962 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  52. <Combo id="cmb_cond1" taborder="30" class="combo_search" visible="false" position="absolute 106 99 186 119" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  53. <Combo id="cmb_cond10" taborder="31" class="combo_search" visible="false" position="absolute 965 99 1035 119" anchor="default" enable="false" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position"/>
  54. <Grid id="grd_empinfc" taborder="32" binddataset="ds_empinfc" useinputpanel="false" extendsizetype="row" cellsizingtype="col" oncelldblclick="grp_biz_grd_empinfc_oncelldblclick" position="absolute 0 62 1100 672" anchor="all" style="align:center middle;" onlbuttonDown="grd_empinfc_onlbuttonDown" onbuttondown="grd_empinfc_onbuttondown" onclick="grd_empinfc_onclick" selecttype="multirow" autoenter="select">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="20"/>
  59. <Column size="35"/>
  60. <Column size="50"/>
  61. <Column size="55"/>
  62. <Column size="100"/>
  63. <Column size="30"/>
  64. <Column size="30"/>
  65. <Column size="70"/>
  66. <Column size="50"/>
  67. <Column size="60"/>
  68. <Column size="50"/>
  69. <Column size="60"/>
  70. <Column size="100"/>
  71. <Column size="80"/>
  72. <Column size="80"/>
  73. <Column size="80"/>
  74. <Column size="80"/>
  75. <Column size="70"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="24" band="head"/>
  79. <Row size="24" band="head"/>
  80. <Row size="23"/>
  81. </Rows>
  82. <Band id="head">
  83. <Cell rowspan="2" taborder="undefined"/>
  84. <Cell col="1" rowspan="2" text="순번" taborder="undefined"/>
  85. <Cell col="2" rowspan="2" text="사번" taborder="undefined"/>
  86. <Cell col="3" rowspan="2" text="이름" taborder="undefined"/>
  87. <Cell col="4" rowspan="2" text="부서" taborder="undefined"/>
  88. <Cell col="5" rowspan="2" text="성별" taborder="undefined"/>
  89. <Cell col="6" rowspan="2" text="나이" taborder="undefined"/>
  90. <Cell col="7" rowspan="2" text="직종" taborder="undefined"/>
  91. <Cell col="8" rowspan="2" text="위험군" taborder="undefined"/>
  92. <Cell col="9" rowspan="2" text="등록번호" taborder="undefined"/>
  93. <Cell col="10" colspan="3" text="검진대상여부" taborder="undefined"/>
  94. <Cell col="13" rowspan="2" text="최근IGRA&#10;결과" taborder="undefined"/>
  95. <Cell col="14" rowspan="2" text="최근IGRA&#10;보고일" taborder="undefined"/>
  96. <Cell col="15" rowspan="2" text="이전IGRA&#10;결과" taborder="undefined"/>
  97. <Cell col="16" rowspan="2" text="이전IGRA&#10;시행일" taborder="undefined"/>
  98. <Cell col="17" rowspan="2" text="추후관리&#10;대상여부" taborder="undefined"/>
  99. <Cell row="1" col="10" text="대상"/>
  100. <Cell row="1" col="11" text="대상구분"/>
  101. <Cell row="1" col="12" text="제외"/>
  102. </Band>
  103. <Band id="body">
  104. <Cell displaytype="image"/>
  105. <Cell col="1" text="expr:currow + 1"/>
  106. <Cell col="2" text="bind:userid"/>
  107. <Cell col="3" text="bind:usernm"/>
  108. <Cell col="4" edittype="text" style="align:left;" text="bind:deptcd"/>
  109. <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_sex" combocodecol="code" combodatacol="value"/>
  110. <Cell col="6" style="align:center middle;" text="bind:age"/>
  111. <Cell col="7" edittype="text" text="bind:jobkindcd"/>
  112. <Cell col="8" displaytype="combo" edittype="combo" style="align:center;" text="bind:riskkind" combodataset="ds_riskkind" combocodecol="code" combodatacol="value"/>
  113. <Cell col="9" edittype="text" text="bind:pid"/>
  114. <Cell col="10" displaytype="combo" edittype="combo" style="align:center;" text="bind:examkind" combodataset="ds_examkind" combocodecol="code" combodatacol="value"/>
  115. <Cell col="11" displaytype="combo" edittype="combo" style="align:center;" text="bind:examkindsub" combodataset="ds_examkindsub" combocodecol="code" combodatacol="value"/>
  116. <Cell col="12" edittype="text" style="align:left middle;" text="bind:examkinddesc"/>
  117. <Cell col="13" text="bind:last1rslt"/>
  118. <Cell col="14" displaytype="expr:utlf_isNull(utlf_trim(last1dt)) ? 'normal' : 'date'" text="bind:last1dt" mask="expr:utlf_isNull(utlf_trim(last1dt)) ? '' : 'yyyy-MM-dd'" maskchar=" "/>
  119. <Cell col="15" text="bind:last2rslt"/>
  120. <Cell col="16" displaytype="expr:utlf_isNull(utlf_trim(last2dt)) ? 'normal' : 'date'" text="bind:last2dt" mask="expr:utlf_isNull(utlf_trim(last2dt)) ? '' : 'yyyy-MM-dd'" maskchar=" "/>
  121. <Cell col="17" displaytype="combo" edittype="combo" style="align:center;" text="bind:latemngkind" combodataset="ds_latemngkind" combocodecol="code" combodatacol="value"/>
  122. </Band>
  123. </Format>
  124. </Formats>
  125. </Grid>
  126. <Button id="btn_load" taborder="33" text="파일열기" onclick="btn_load_onclick" class="btn2" enable="true" position="absolute 344 13 408 32" anchor="default"/>
  127. <Button id="bt_addrow" taborder="34" text="행추가" onclick="bt_addrow_onclick" class="btn2" position="absolute 413 13 469 33" anchor="top right" style=":disabled {font:Dotum,9;}"/>
  128. <Button id="bt_deleterow" taborder="36" text="행삭제" onclick="bt_deleterow_onclick" class="btn2" position="absolute 472 13 528 33" anchor="top right" style=":disabled {font:Dotum,9;}"/>
  129. <Button id="bt_save" taborder="37" text="저장" onclick="bt_save_onclick" class="btn4" position="absolute 964 684 1020 704" anchor="right bottom" style=":disabled {font:Dotum,9;}"/>
  130. <Shape id="line15" onclick="group5_line15_onclick" class="line_3" position="absolute 0 676 1097 682" anchor="default"/>
  131. <Button id="bt_init" taborder="38" text="초기화" onclick="bt_init_onclick" class="btn4" position="absolute 1027 683 1096 703" anchor="right bottom" style=":disabled {font:Dotum,9;}"/>
  132. </Layout>
  133. </Layouts>
  134. </Div>
  135. </Layout>
  136. </Layouts>
  137. <Objects>
  138. <Dataset id="ds_empinfc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onvaluechanged="ds_empinfc_onvaluechanged" oncolumnchanged="ds_empinfc_oncolumnchanged">
  139. <ColumnInfo>
  140. <Column id="status" type="STRING" size="256"/>
  141. <Column id="no" type="STRING" size="256"/>
  142. <Column id="instcd" type="STRING" size="256"/>
  143. <Column id="pid" type="STRING" size="256"/>
  144. <Column id="userid" type="STRING" size="256"/>
  145. <Column id="wrtedd" type="STRING" size="256"/>
  146. <Column id="seqno" type="STRING" size="256"/>
  147. <Column id="usernm" type="STRING" size="256"/>
  148. <Column id="jobkindcd" type="STRING" size="256"/>
  149. <Column id="deptcd" type="STRING" size="256"/>
  150. <Column id="deptdesc" type="STRING" size="256"/>
  151. <Column id="riskkind" type="STRING" size="256"/>
  152. <Column id="examkind" type="STRING" size="256"/>
  153. <Column id="examkinddesc" type="STRING" size="256"/>
  154. <Column id="latemngkind" type="STRING" size="256"/>
  155. <Column id="wrtetm" type="STRING" size="256"/>
  156. <Column id="last1dt" type="STRING" size="256"/>
  157. <Column id="last1rslt" type="STRING" size="256"/>
  158. <Column id="last2dt" type="STRING" size="256"/>
  159. <Column id="last2rslt" type="STRING" size="256"/>
  160. <Column id="sex" type="STRING" size="256"/>
  161. <Column id="age" type="STRING" size="256"/>
  162. <Column id="examkindsub" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="fromdd" type="STRING" size="256"/>
  168. <Column id="todd" type="STRING" size="256"/>
  169. <Column id="srchkind" type="STRING" size="256"/>
  170. <Column id="status" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="status"/>
  175. <Col id="srchkind"/>
  176. <Col id="todd"/>
  177. <Col id="fromdd"/>
  178. </Row>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_loaddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_loaddata_oncolumnchanged" onvaluechanged="ds_loaddata_onvaluechanged">
  182. <ColumnInfo>
  183. <Column id="no" type="STRING" size="256"/>
  184. <Column id="userid" type="STRING" size="256"/>
  185. <Column id="usernm" type="STRING" size="256"/>
  186. <Column id="deptcd" type="STRING" size="256"/>
  187. <Column id="jobkindcd" type="STRING" size="256"/>
  188. <Column id="riskkind" type="STRING" size="256"/>
  189. <Column id="pid" type="STRING" size="256"/>
  190. <Column id="examkind" type="STRING" size="256"/>
  191. <Column id="examkindsub" type="STRING" size="256"/>
  192. <Column id="examkinddesc" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. </Dataset>
  195. <Dataset id="ds_riskkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="code" type="STRING" size="256"/>
  198. <Column id="value" type="STRING" size="256"/>
  199. </ColumnInfo>
  200. <Rows>
  201. <Row>
  202. <Col id="code">1</Col>
  203. <Col id="value">1군</Col>
  204. </Row>
  205. <Row>
  206. <Col id="value">2군</Col>
  207. <Col id="code">2</Col>
  208. </Row>
  209. <Row>
  210. <Col id="value">3군</Col>
  211. <Col id="code">3</Col>
  212. </Row>
  213. <Row>
  214. <Col id="code">4</Col>
  215. <Col id="value">4군</Col>
  216. </Row>
  217. </Rows>
  218. </Dataset>
  219. <Dataset id="ds_latemngkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="code" type="STRING" size="256"/>
  222. <Column id="value" type="STRING" size="256"/>
  223. </ColumnInfo>
  224. <Rows>
  225. <Row>
  226. <Col id="code">Y</Col>
  227. <Col id="value">대상</Col>
  228. </Row>
  229. <Row>
  230. <Col id="value">미대상</Col>
  231. <Col id="code">N</Col>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_examkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  236. <ColumnInfo>
  237. <Column id="code" type="STRING" size="256"/>
  238. <Column id="value" type="STRING" size="256"/>
  239. </ColumnInfo>
  240. <Rows>
  241. <Row>
  242. <Col id="code">Y</Col>
  243. <Col id="value">대상</Col>
  244. </Row>
  245. <Row>
  246. <Col id="value">미대상</Col>
  247. <Col id="code">N</Col>
  248. </Row>
  249. </Rows>
  250. </Dataset>
  251. <Dataset id="ds_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="code" type="STRING" size="256"/>
  254. <Column id="value" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="code">F</Col>
  259. <Col id="value">여</Col>
  260. </Row>
  261. <Row>
  262. <Col id="value">남</Col>
  263. <Col id="code">M</Col>
  264. </Row>
  265. </Rows>
  266. </Dataset>
  267. <Dataset id="ds_examkindsub" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  268. <ColumnInfo>
  269. <Column id="code" type="STRING" size="256"/>
  270. <Column id="value" type="STRING" size="256"/>
  271. </ColumnInfo>
  272. <Rows>
  273. <Row>
  274. <Col id="code">1</Col>
  275. <Col id="value">정기</Col>
  276. </Row>
  277. <Row>
  278. <Col id="value">초회검사</Col>
  279. <Col id="code">2</Col>
  280. </Row>
  281. <Row>
  282. <Col id="code">3</Col>
  283. <Col id="value">배치전</Col>
  284. </Row>
  285. </Rows>
  286. </Dataset>
  287. </Objects>
  288. <Bind>
  289. <BindItem id="item1" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
  290. <BindItem id="item2" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
  291. </Bind>
  292. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  293. * System Name :
  294. * Job Name :
  295. * File Name : SMASI04000_잠복결핵검진 대상자 등록.xfdl
  296. * Creator :
  297. * Make Date : 2017.05.12
  298. *
  299. * Description : 최초개발
  300. *---------------------------------------------------------------------------------------
  301. * Modify Date Modifier Modify Description
  302. *---------------------------------------------------------------------------------------
  303. *
  304. *---------------------------------------------------------------------------------------
  305. ****************************************************************************************/
  306. //=======================================================================================
  307. // xjs Include
  308. //---------------------------------------------------------------------------------------
  309. include "com_commonxp::comm_main.xjs";
  310. var vInsertFlag="N";
  311. //=======================================================================================
  312. // Function
  313. //---------------------------------------------------------------------------------------
  314. function date_add(sDate, nDays){
  315. var yy = parseInt(sDate.substr(0,4), 10);
  316. var mm = parseInt(sDate.substr(4,2), 10);
  317. var dd = parseInt(sDate.substr(6,2), 10);
  318. var d = new Date(yy, mm - 1, dd + nDays);
  319. yy = d.getFullYear().toString();
  320. mm = d.getMonth() + 1; mm = (mm < 10) ? '0' + mm : mm.toString();
  321. dd = d.getDate(); dd = (dd < 10) ? '0' + dd : dd.toString();
  322. return yy + mm + dd;
  323. }
  324. //초기화
  325. function lf_Init(){
  326. // Grid 초기화
  327. //utlf_getCurrentDate(); //현재일자 YYYYMMDD
  328. //utlf_getCurrentTime(); //현재시간 HH:MM:TT
  329. grdf_setRowTypeIcon(grp_biz.grd_empinfc, 0); //상태값 표시
  330. grdf_initGrid(grp_biz.grd_empinfc);
  331. grdf_setToolTipBind(grp_biz.grd_empinfc);
  332. //Dataset 초기화
  333. ds_empinfc.clearData();
  334. ds_loaddata.clearData();
  335. grp_biz.bt_save.enable = false;
  336. //
  337. ds_send_reqdata.setColumn(0,"todd", utlf_getCurrentDate());
  338. ds_send_reqdata.setColumn(0,"fromdd", date_add(utlf_getCurrentDate(), -6));
  339. }
  340. //저장
  341. function lf_Save(){
  342. var oParam = {};
  343. oParam.id = "";
  344. oParam.service = "infcmngtapp.LglyDisMngt";
  345. oParam.method = "reqSetLglyDisTubePatInfo";
  346. oParam.inds = "req=ds_empinfc:A send=ds_send_reqdata";
  347. oParam.outds = "ds_empinfc=getLglyDisTubeList";
  348. oParam.async = false;
  349. //oParam.callback = "cf_TRASI01101";
  350. tranf_submit(oParam);
  351. //grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
  352. grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
  353. grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
  354. }
  355. //행추가
  356. function lf_AddRow(){
  357. /*
  358. Dataset.ROWTYPE_EMPTY 0 존재하지 않는 Row 상태
  359. Dataset.ROWTYPE_NORMAL 1 초기 Row 상태
  360. Dataset.ROWTYPE_INSERT 2 추가된 Row 상태
  361. Dataset.ROWTYPE_UPDATE 4 수정된 Row 상태
  362. Dataset.ROWTYPE_DELETE 8 삭제된 Row 상태
  363. Dataset.ROWTYPE_GROUP 16 Group 정보 Row 상태
  364. */
  365. var vDate = utlf_getCurrentDate();
  366. var vTm = utlf_getCurrentTime();
  367. ds_empinfc.addRow();
  368. // grp_biz.grd_empinfc.edittype ="text"
  369. grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "text");
  370. grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "text");
  371. grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "text");
  372. ds_empinfc.updatecontrol = false;
  373. ds_empinfc.enableevent = false;
  374. ds_empinfc.setColumn(ds_empinfc.rowposition,"status","i");
  375. ds_empinfc.setColumn(ds_empinfc.rowposition, "wrtedd", vDate);
  376. ds_empinfc.setColumn(ds_empinfc.rowposition, "wrtetm", vTm);
  377. ds_empinfc.updatecontrol = true;
  378. ds_empinfc.enableevent = true;
  379. }
  380. //행삭제
  381. function lf_Delete(){
  382. var nRow = ds_empinfc.rowposition;
  383. //Dataset 행삭제
  384. ds_empinfc.updatecontrol = false;
  385. if (ds_empinfc.getRowType(nRow) == Dataset.ROWTYPE_INSERT) {
  386. ds_empinfc.deleteRow(nRow);
  387. }
  388. else {
  389. ds_empinfc.updatecontrol = false;
  390. ds_empinfc.enableevent = false;
  391. ds_empinfc.setColumn(nRow,"status","d");
  392. var bSucc = ds_empinfc.setRowType(nRow, Dataset.ROWTYPE_DELETE);
  393. grp_biz.bt_save.enable = true;
  394. ds_empinfc.updatecontrol = true;
  395. ds_empinfc.enableevent = true;
  396. }
  397. ds_empinfc.updatecontrol = true;
  398. }
  399. //=======================================================================================
  400. function SMASI04000_onload(obj:Form, e:LoadEventInfo)
  401. {
  402. frmf_initForm(obj); // 화면공통
  403. lf_Init();
  404. }
  405. function cf_TRASI01101(sSvcId, nErrorCode, sErrorMsg) {
  406. if(nErrorCode < 0) return;
  407. }
  408. //=======================================================================================
  409. /****************************************************************************************
  410. * Components : Button
  411. * Components ID : btn_search
  412. * Event : onclick
  413. * Argument : 01.obj : Object Event has occurred
  414. * : 02.e : Event Object
  415. * Description : 조회버튼
  416. ****************************************************************************************/
  417. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  418. {
  419. //var nHScollPos = grp_biz.grd_empinfc.hscrollbar.pos;
  420. if(sysf_getUserInfo("dutplcecd")=="3110300000"){
  421. ds_send_reqdata.setColumn(0,"status", "A");
  422. }else{
  423. ds_send_reqdata.setColumn(0,"status", "-");
  424. }
  425. var oParam = {};
  426. oParam.id = "";
  427. oParam.service = "infcmngtapp.LglyDisMngt";
  428. oParam.method = "reqGetLglyDisTubePatInfo";
  429. oParam.inds = "req=ds_send_reqdata";
  430. oParam.outds = "ds_empinfc=getLglyDisTubeList";
  431. oParam.async = false;
  432. //oParam.callback = "cf_TRASI01101";
  433. tranf_submit(oParam);
  434. //grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
  435. grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
  436. grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
  437. //grp_biz.grd_empinfc.hscrollbar.pos = nHScollPos;
  438. }
  439. /****************************************************************************************
  440. * Components : Button
  441. * Components ID : button2
  442. * Event : onclick
  443. * Argument : 01.obj : Object Event has occurred
  444. * : 02.e : Event Object
  445. * Description : 엑셀 버튼
  446. ****************************************************************************************/
  447. function button2_onclick(obj:Button, e:ClickEventInfo)
  448. {
  449. //grp_biz.grd_empinfc.setRealColSize(5, 60, false);
  450. grdf_exportExcel(grp_biz.grd_empinfc, "잠복결핵검진 대상자 리스트", "잠복결핵검진 대상자 리스트", false, "" ,"user");
  451. //grdf_exportExcelMulti("grp_biz.grd_empinfc,grp_biz.grd_empinfc00", "잠복결핵검진 대상자보고서", "잠복결핵검진 대상자1,잠복결핵검진 대상자2", false, "", "user", true);
  452. //grp_biz.grd_empinfc.setRealColSize(5, 0, false);
  453. }
  454. /****************************************************************************************
  455. * Components : Button
  456. * Components ID : btn_init
  457. * Event : onclick
  458. * Argument : 01.obj : Object Event has occurred
  459. * : 02.e : Event Object
  460. * Description : 초기화 버튼
  461. ****************************************************************************************/
  462. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  463. {
  464. ds_empinfc.clearData();
  465. grp_biz.grd_empinfc.setCellProperty("Body", 2, "edittype", "none");
  466. grp_biz.grd_empinfc.setCellProperty("Body", 3, "edittype", "none");
  467. grp_biz.grd_empinfc.setCellProperty("Body", 4, "edittype", "none");
  468. }
  469. /****************************************************************************************
  470. * Components : Edit
  471. * Components ID : ipt_trgtempnm
  472. * Event : onkeydown
  473. * Argument : 01.obj : Edit
  474. * : 02.e : KeyEventInfo
  475. * Description : 직원서명을 입력하고 엔터를 치면 조회가 된다.
  476. ****************************************************************************************/
  477. function grp_biz_group1_ipt_trgtempnm_onkeydown(obj:Edit, e:KeyEventInfo)
  478. {
  479. if(e.keycode == "13" ){
  480. fGetEmpInfcRecRefInfo();
  481. }
  482. }
  483. /****************************************************************************************
  484. * Components : Calendar
  485. * Components ID : ipt_todd
  486. * Event : onkeyup
  487. * Argument : 01.obj : Calendar
  488. * : 02.e : KeyEventInfo
  489. * Description : 아래쪽 방향키 입력시 달력 표시
  490. ****************************************************************************************/
  491. function grp_biz_group1_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  492. {
  493. if(e.keycode == "40") { //아래쪽 방향키 입력시
  494. obj.dropdown();
  495. }
  496. }
  497. function grp_biz_group1_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  498. {
  499. obj.updateToDataset();
  500. var sDate = ds_send_reqdata.getColumn(0, "fromdd");
  501. ds_send_reqdata.setColumn(0,"todd", date_add(sDate, 6));
  502. }
  503. function grp_biz_grd_empinfc_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  504. {
  505. var vLatemngkind = ds_empinfc.getColumn(e.row,"latemngkind");
  506. if(vLatemngkind == 'Y' && !utlf_isNull(vLatemngkind)){
  507. frmf_setParameter("instcd", ds_empinfc.getColumn(e.row,"instcd"));
  508. frmf_setParameter("pid", ds_empinfc.getColumn(e.row,"pid"));
  509. frmf_setParameter("userid", ds_empinfc.getColumn(e.row,"userid"));
  510. frmf_setParameter("wrtedd", ds_empinfc.getColumn(e.row,"wrtedd"));
  511. frmf_setParameter("wrtetm", ds_empinfc.getColumn(e.row,"wrtetm"));
  512. frmf_setParameter("seqno", ds_empinfc.getColumn(e.row,"seqno"));
  513. frmf_modal("SMASI04100","SMASI04100", "","","","", "", "","","","","","M");
  514. }
  515. }
  516. /****************************************************************************************
  517. * Components : Button
  518. * Components ID : btn_load
  519. * Event : onclick
  520. * Argument : 01.obj : Object Event has occurred
  521. * : 02.e : Event Object
  522. * Description : 파일열기 버튼 실행(Excel업로드)
  523. ****************************************************************************************/
  524. function btn_load_onclick(obj:Button, e:ClickEventInfo)
  525. {
  526. ds_loaddata.clearData();
  527. var vDate = utlf_getCurrentDate();
  528. var vTm = utlf_getCurrentTime();
  529. grdf_ImportExcel("ds_loaddata", 2, grp_biz.grd_loaddata, 0);
  530. ds_empinfc.copyData(ds_loaddata, true);
  531. //dsf_copyDs(ds_empinfc, ds_loaddata);
  532. if(ds_empinfc.rowcount > 0) {
  533. ds_empinfc.addColumn("status", "String", 256);
  534. ds_empinfc.addColumn("instcd", "String", 256);
  535. ds_empinfc.addColumn("wrtedd", "String", 256);
  536. ds_empinfc.addColumn("wrtetm", "String", 256);
  537. ds_empinfc.addColumn("seqno", "String", 256);
  538. ds_empinfc.addColumn("deptdesc", "String", 256);
  539. ds_empinfc.addColumn("riskkind", "String", 256);
  540. ds_empinfc.addColumn("examkind", "String", 256);
  541. ds_empinfc.addColumn("examkindsub", "String", 256);
  542. ds_empinfc.addColumn("examkinddesc", "String", 256);
  543. ds_empinfc.addColumn("latemngkind", "String", 256);
  544. ds_empinfc.updatecontrol = false;
  545. ds_empinfc.enableevent = false;
  546. for(var i = 0 ; i < ds_empinfc.rowcount ; i++) {
  547. ds_empinfc.setColumn(i,"status","i");
  548. ds_empinfc.setRowType(i, Dataset.ROWTYPE_INSERT);
  549. ds_empinfc.setColumn(i, "wrtedd", vDate);
  550. ds_empinfc.setColumn(i, "wrtetm", vTm);
  551. }
  552. ds_empinfc.updatecontrol = true;
  553. ds_empinfc.enableevent = true;
  554. }
  555. //ds_loaddata.copyData(ds_empinfc);
  556. grp_biz.btn_load.enable = true;
  557. grp_biz.bt_save.enable = true;
  558. }
  559. function ds_loaddata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  560. {
  561. //ds_loaddata.updatecontrol = true;
  562. //dsf_datasetUpdateChk(obj)
  563. ds_loaddata.enableevent = false;
  564. ds_loaddata.updatecontrol = false;
  565. ds_loaddata.setRowType(ds_loaddata.rowposition, 4);
  566. ds_loaddata.updatecontrol = true;
  567. ds_loaddata.enableevent = true;
  568. }
  569. function ds_loaddata_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
  570. {
  571. dsf_datasetUpdateChk(obj);
  572. }
  573. //행추가버튼
  574. function bt_addrow_onclick(obj:Button, e:ClickEventInfo)
  575. {
  576. lf_AddRow();
  577. }
  578. //초기화버튼
  579. function bt_init_onclick(obj:Button, e:ClickEventInfo)
  580. {
  581. lf_Init();
  582. }
  583. //저장 버튼
  584. function bt_save_onclick(obj:Button, e:ClickEventInfo)
  585. {
  586. lf_Save();
  587. }
  588. //행삭제버튼
  589. function bt_deleterow_onclick(obj:Button, e:ClickEventInfo)
  590. {
  591. lf_Delete();
  592. }
  593. //ds_empinfc_value 변경
  594. function ds_empinfc_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
  595. {
  596. // Dataset 변경되면 저장버튼 활성화
  597. if ( dsf_datasetUpdateChk(obj) ) {
  598. grp_biz.bt_save.enable = true;
  599. }
  600. else {
  601. grp_biz.bt_save.enable = false;
  602. }
  603. }
  604. function ds_empinfc_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  605. {
  606. if(ds_empinfc.getColumn(e.row, "status" != "i")){
  607. ds_empinfc.setRowType(e.row, Dataset.ROWTYPE_UPDATE);
  608. ds_empinfc.setColumn(e.row,"status","u");
  609. }
  610. }
  611. function grp_biz_group1_cmb_trgtmancnt_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  612. {
  613. }
  614. ]]></Script>
  615. </Form>
  616. </FDL>