SMMNR02100_진술문set 복사관리.xfdl 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR02100" position="absolute 0 0 1199 778" titletext="Untitle" oninit="SMMNR02100_oninit" onload="SMMNR02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="진술문set 복사관리" class="tit_1" position="absolute 0 0 192 25"/>
  8. <Static id="caption42" text="원본(복사할) SET 리스트" class="tit_2" position="absolute 0 39 194 61"/>
  9. <Shape id="line18" class="line_10" position="absolute 0 55 215 61"/>
  10. <Shape id="line1" class="line_10" position="absolute 220 55 592 61"/>
  11. <Static id="caption1" text="원본(복사할) SET 구성정보" class="tit_2" position="absolute 0 364 191 385"/>
  12. <Shape id="line2" class="line_10" position="absolute 0 380 592 386"/>
  13. <Static id="caption2" text="Clone(복사될) SET 리스트" class="tit_2" position="absolute 598 39 788 61"/>
  14. <Static id="caption3" text="Clone(복사될) SET 구성정보" class="tit_2" position="absolute 597 364 801 385"/>
  15. <Shape id="line3" class="line_10" position="absolute 817 55 1189 61" anchor="left top right"/>
  16. <Shape id="line4" class="line_10" position="absolute 597 380 1189 386" anchor="left top right"/>
  17. <Shape id="line5" class="line_10" position="absolute 597 55 812 61"/>
  18. <Grid id="grd_orglrggrupinfo" taborder="2" binddataset="ds_main_lrggrupinfo_orglrggruplist" useinputpanel="false" position="absolute 0 60 215 355" autoenter="select" autofittype="col" cellsizingtype="col" treeusecheckbox="false" treeuseimage="false" treeinitstatus="expand,all" oncellclick="grd_orglrggrupinfo_oncellclick" tooltiptype="hover">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="21"/>
  23. <Column size="0"/>
  24. <Column size="174"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="dept"/>
  35. <Cell col="2" text="분류명"/>
  36. <Cell col="3" text="grupcd"/>
  37. <Cell col="4" text="grupflag"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" expr="currow+1"/>
  41. <Cell col="1" text="bind:depth"/>
  42. <Cell col="2" displaytype="tree" edittype="tree" style="align:left middle;" text="bind:hngnm" treestartlevel="1" treelevel="bind:depth" tooltiptext="bind:hngnm"/>
  43. <Cell col="3" text="bind:grupcd"/>
  44. <Cell col="4" text="bind:grupflag"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. <Layouts>
  49. <Layout width="215" height="295"/>
  50. </Layouts>
  51. </Grid>
  52. <Grid id="grd_orgstmtsetinfo" taborder="3" binddataset="ds_main_original_stmtsetinfo_stmtsetlist" useinputpanel="false" position="absolute 0 385 592 770" autoenter="select" autofittype="none" cellsizingtype="both" anchor="left top bottom" autosizingtype="row" extendsizetype="row">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="24"/>
  57. <Column size="58"/>
  58. <Column size="36"/>
  59. <Column size="268"/>
  60. <Column size="80"/>
  61. <Column size="101"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. </Columns>
  66. <Rows>
  67. <Row size="24" band="head"/>
  68. <Row size="24"/>
  69. </Rows>
  70. <Band id="head">
  71. <Cell/>
  72. <Cell col="1" text="타입분류"/>
  73. <Cell col="2" text=" 선택"/>
  74. <Cell col="3" text="SET 진술명"/>
  75. <Cell col="4" text="등록일자"/>
  76. <Cell col="5" text="등록자"/>
  77. <Cell col="6" text="stmtcd"/>
  78. <Cell col="7" text="grupcd"/>
  79. <Cell col="8" text="attrcnt"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell celltype="head" expr="currow+1"/>
  83. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:dnarflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_dnarflag_itemset" combocodecol="cd" combodatacol="nm"/>
  84. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
  85. <Cell col="3" style="align:left middle;padding:1 2 1 2;color:EXPR(color);color2:EXPR(color);" text="bind:stmtcnts" wordwrap="word" autosizerow="limitmin"/>
  86. <Cell col="4" displaytype="date" text="bind:fstrgstdt" suppress="2" suppressalign="middle,over" calendardisplaynulltype="nulltext"/>
  87. <Cell col="5" text="bind:fstrgstrnm" suppress="3" suppressalign="middle,over"/>
  88. <Cell col="6" text="bind:stmtcd"/>
  89. <Cell col="7" text="bind:grupcd"/>
  90. <Cell col="8" text="bind:attrcnt"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Button id="btn_copyset" taborder="4" text="복사" class="btn2" position="absolute 550 36 592 55" onclick="btn_copyset_onclick"/>
  96. <Button id="btn_copystmt" taborder="5" text="복사" class="btn2" position="absolute 550 361 592 380" onclick="btn_copystmt_onclick"/>
  97. <Grid id="grd_clonelrggrupinfo" taborder="6" binddataset="ds_main_lrggrupinfo_clonelrggruplist" useinputpanel="false" position="absolute 597 60 812 355" autoenter="select" autofittype="col" cellsizingtype="col" treeuseimage="false" treeusecheckbox="false" treeinitstatus="expand,all" oncellclick="grd_clonelrggrupinfo_oncellclick" tooltiptype="hover">
  98. <Formats>
  99. <Format id="default">
  100. <Columns>
  101. <Column size="21"/>
  102. <Column size="0"/>
  103. <Column size="174"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. </Columns>
  108. <Rows>
  109. <Row size="24" band="head"/>
  110. <Row size="24"/>
  111. </Rows>
  112. <Band id="head">
  113. <Cell/>
  114. <Cell col="1" text="dept"/>
  115. <Cell col="2" text="그룹이름"/>
  116. <Cell col="3" text="grupcd"/>
  117. <Cell col="4" text="deptcd"/>
  118. <Cell col="5" text="grupflag"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell celltype="head" expr="currow+1"/>
  122. <Cell col="1" text="bind:depth"/>
  123. <Cell col="2" displaytype="tree" edittype="tree" style="align:left middle;" text="bind:hngnm" treestartlevel="1" treelevel="bind:depth" tooltiptext="bind:hngnm"/>
  124. <Cell col="3" text="bind:grupcd"/>
  125. <Cell col="4" text="bind:deptcd"/>
  126. <Cell col="5" text="bind:grupflag"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Grid id="grd_orgsetgrupinfo" taborder="7" binddataset="ds_main_original_setinfo_setlist" useinputpanel="false" position="absolute 220 60 592 355" autoenter="select" autofittype="col" cellsizingtype="col" oncelldblclick="grd_orgsetgrupinfo_oncelldblclick">
  132. <Formats>
  133. <Format id="default">
  134. <Columns>
  135. <Column size="21"/>
  136. <Column size="33"/>
  137. <Column size="285"/>
  138. <Column size="0"/>
  139. </Columns>
  140. <Rows>
  141. <Row size="24" band="head"/>
  142. <Row size="24"/>
  143. </Rows>
  144. <Band id="head">
  145. <Cell/>
  146. <Cell col="1" text="선택"/>
  147. <Cell col="2" text="SET 이름"/>
  148. <Cell col="3" text="grupcd"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell celltype="head" expr="currow+1"/>
  152. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
  153. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:hngnm"/>
  154. <Cell col="3" text="bind:grupcd"/>
  155. </Band>
  156. </Format>
  157. </Formats>
  158. </Grid>
  159. <Grid id="grd_clonesetgrupinfo" taborder="8" binddataset="ds_main_clone_setinfo_setlist" useinputpanel="false" position="absolute 817 60 1189 355" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top right" oncelldblclick="grd_clonesetgrupinfo_oncelldblclick">
  160. <Formats>
  161. <Format id="default">
  162. <Columns>
  163. <Column size="21"/>
  164. <Column size="39"/>
  165. <Column size="285"/>
  166. <Column size="0"/>
  167. <Column size="0"/>
  168. <Column size="0"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. </Columns>
  172. <Rows>
  173. <Row size="24" band="head"/>
  174. <Row size="24"/>
  175. </Rows>
  176. <Band id="head">
  177. <Cell/>
  178. <Cell col="1" text="상태"/>
  179. <Cell col="2" text="SET 이름"/>
  180. <Cell col="3" text="grupcd"/>
  181. <Cell col="4" text="deptcd"/>
  182. <Cell col="5" text="grupflag"/>
  183. <Cell col="6" text="supcd"/>
  184. <Cell col="7" text="todd"/>
  185. </Band>
  186. <Band id="body">
  187. <Cell celltype="head" expr="currow+1"/>
  188. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;color:EXPR(color1);color2:EXPR(color1);" text="bind:status" combodataset="ds_init_statusflag_itemset" combocodecol="cd" combodatacol="nm"/>
  189. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:hngnm"/>
  190. <Cell col="3" text="bind:grupcd"/>
  191. <Cell col="4" text="bind:deptcd"/>
  192. <Cell col="5" text="bind:grupflag"/>
  193. <Cell col="6" text="bind:supcd"/>
  194. <Cell col="7" text="bind:todd"/>
  195. </Band>
  196. </Format>
  197. </Formats>
  198. </Grid>
  199. <Grid id="grd_clonestmtsetinfo" taborder="9" binddataset="ds_main_clone_stmtsetinfo_stmtsetlist" useinputpanel="false" position="absolute 597 385 1189 770" autoenter="select" autofittype="none" anchor="all" oncelldblclick="grd_clonestmtsetinfo_oncelldblclick" autosizingtype="row" cellsizingtype="both" extendsizetype="row">
  200. <Formats>
  201. <Format id="default">
  202. <Columns>
  203. <Column size="25"/>
  204. <Column size="38"/>
  205. <Column size="58"/>
  206. <Column size="271"/>
  207. <Column size="84"/>
  208. <Column size="95"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. </Columns>
  214. <Rows>
  215. <Row size="24" band="head"/>
  216. <Row size="24"/>
  217. </Rows>
  218. <Band id="head">
  219. <Cell/>
  220. <Cell col="1" text="상태"/>
  221. <Cell col="2" text="타입분류"/>
  222. <Cell col="3" text="SET 진술명"/>
  223. <Cell col="4" text="등록일자"/>
  224. <Cell col="5" text="등록자"/>
  225. <Cell col="6" text="stmtcd"/>
  226. <Cell col="7" text="grupcd"/>
  227. <Cell col="8" text="todd"/>
  228. <Cell col="9" text="attrcnt"/>
  229. </Band>
  230. <Band id="body">
  231. <Cell celltype="head" expr="currow+1"/>
  232. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;color:EXPR(color1);color2:EXPR(color1);" text="bind:status" combodataset="ds_init_statusflag_itemset" combocodecol="cd" combodatacol="nm"/>
  233. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;color:EXPR(color1);color2:EXPR(color1);" text="bind:dnarflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_dnarflag_itemset" combocodecol="cd" combodatacol="nm"/>
  234. <Cell col="3" celltype="none" style="align:left middle;padding:1 2 1 2;color:EXPR(color);color2:EXPR(color);" text="bind:stmtcnts" wordwrap="word" autosizerow="limitmin"/>
  235. <Cell col="4" displaytype="date" text="bind:fstrgstdt" suppress="2" suppressalign="middle,over" calendardisplaynulltype="nulltext"/>
  236. <Cell col="5" text="bind:fstrgstrnm" suppress="3" suppressalign="middle,over"/>
  237. <Cell col="6" text="bind:stmtcd"/>
  238. <Cell col="7" text="bind:grupcd"/>
  239. <Cell col="8" text="bind:todd"/>
  240. <Cell col="9" text="bind:attrcnt"/>
  241. </Band>
  242. </Format>
  243. </Formats>
  244. </Grid>
  245. <Edit id="opt_orglrggrupnm" taborder="10" readonly="true" position="absolute 220 36 483 55" class="output" style="color:#993300ff;font:Dotum,9,bold;"/>
  246. <Edit id="opt_orgsetnm" taborder="11" readonly="true" position="absolute 220 361 418 380" class="output" style="color:#0000ffff;font:Dotum,9,bold;"/>
  247. <Edit id="opt_clonelrggrupnm" taborder="12" readonly="true" position="absolute 817 36 1095 55" class="output" anchor="top right" style="color:#993300ff;font:Dotum,9,bold;"/>
  248. <Edit id="opt_clonesetnm" taborder="13" readonly="true" position="absolute 817 361 1097 380" class="output" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  249. <Button id="btn_cnclset" taborder="14" text="취소" class="btn2" position="absolute 1102 36 1144 55" anchor="top right" onclick="btn_cnclset_onclick"/>
  250. <Button id="btn_saveset" taborder="15" text="저장" class="btn5" position="absolute 1147 36 1189 55" anchor="top right" onclick="btn_saveset_onclick"/>
  251. <Button id="btn_cnclstmt" taborder="16" text="취소" class="btn2" position="absolute 1102 361 1144 380" anchor="top right" onclick="btn_cnclstmt_onclick"/>
  252. <Button id="btn_savestmt" taborder="17" text="저장" class="btn5" position="absolute 1147 361 1189 380" anchor="top right" onclick="btn_savestmt_onclick"/>
  253. <Button id="btn_totalselset" taborder="18" text="전체선택" class="btn2" position="absolute 485 36 549 55" onclick="btn_totalselset_onclick"/>
  254. <Button id="btn_totalselstmt" taborder="19" text="전체선택" class="btn2" position="absolute 484 361 548 380" onclick="btn_totalselstmt_onclick"/>
  255. <Combo id="combo1" taborder="20" innerdataset="ds_init_dnarflag_itemset" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 420 361 482 380" onitemchanged="combo1_onitemchanged"/>
  256. </Layout>
  257. </Layouts>
  258. <Objects>
  259. <Dataset id="ds_hidden_cond_original" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  260. <ColumnInfo>
  261. <Column id="lrggrupnm" type="STRING" size="256"/>
  262. <Column id="lrggrupcd" type="STRING" size="256"/>
  263. <Column id="setnm" type="STRING" size="256"/>
  264. <Column id="setcd" type="STRING" size="256"/>
  265. <Column id="dnarflag" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. <Rows>
  268. <Row>
  269. <Col id="lrggrupnm"/>
  270. <Col id="lrggrupcd"/>
  271. <Col id="setnm"/>
  272. <Col id="setcd"/>
  273. <Col id="dnarflag"/>
  274. </Row>
  275. </Rows>
  276. </Dataset>
  277. <Dataset id="ds_hidden_cond_clone" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  278. <ColumnInfo>
  279. <Column id="lrggrupnm" type="STRING" size="256"/>
  280. <Column id="lrggrupcd" type="STRING" size="256"/>
  281. <Column id="setnm" type="STRING" size="256"/>
  282. <Column id="setcd" type="STRING" size="256"/>
  283. </ColumnInfo>
  284. <Rows>
  285. <Row>
  286. <Col id="lrggrupnm"/>
  287. <Col id="lrggrupcd"/>
  288. <Col id="setnm"/>
  289. <Col id="setcd"/>
  290. </Row>
  291. </Rows>
  292. </Dataset>
  293. <Dataset id="ds_init_dnarflag_itemset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  294. <ColumnInfo>
  295. <Column id="nm" type="STRING" size="256"/>
  296. <Column id="cd" type="STRING" size="256"/>
  297. </ColumnInfo>
  298. <Rows>
  299. <Row>
  300. <Col id="nm">전체</Col>
  301. <Col id="cd">%</Col>
  302. </Row>
  303. <Row>
  304. <Col id="nm">D</Col>
  305. <Col id="cd">1D</Col>
  306. </Row>
  307. <Row>
  308. <Col id="nm">N</Col>
  309. <Col id="cd">2N</Col>
  310. </Row>
  311. <Row>
  312. <Col id="nm">A</Col>
  313. <Col id="cd">3A</Col>
  314. </Row>
  315. <Row>
  316. <Col id="nm">R</Col>
  317. <Col id="cd">4R</Col>
  318. </Row>
  319. </Rows>
  320. </Dataset>
  321. <Dataset id="ds_main_lrggrupinfo_orglrggruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  322. <ColumnInfo>
  323. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  324. <Column id="hngnm" type="STRING" size="256" sumtext="그룹명"/>
  325. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  326. <Column id="grupflag" type="STRING" size="256" sumtext="그룹구분"/>
  327. </ColumnInfo>
  328. </Dataset>
  329. <Dataset id="ds_main_original_setinfo_setlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_original_setinfo_setlist_oncolumnchanged">
  330. <ColumnInfo>
  331. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  332. <Column id="hngnm" type="STRING" size="256" sumtext="그룹명"/>
  333. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  334. </ColumnInfo>
  335. </Dataset>
  336. <Dataset id="ds_main_lrggrupinfo_clonelrggruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  337. <ColumnInfo>
  338. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  339. <Column id="hngnm" type="STRING" size="256" sumtext="그룹명"/>
  340. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  341. <Column id="deptcd" type="STRING" size="256" sumtext="그룹코드"/>
  342. <Column id="grupflag" type="STRING" size="256" sumtext="그룹구분"/>
  343. </ColumnInfo>
  344. </Dataset>
  345. <Dataset id="ds_main_clone_setinfo_setlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  346. <ColumnInfo>
  347. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  348. <Column id="hngnm" type="STRING" size="256" sumtext="한글명"/>
  349. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  350. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  351. <Column id="grupflag" type="STRING" size="256" sumtext="그룹구분"/>
  352. <Column id="supcd" type="STRING" size="256" sumtext="상위코드"/>
  353. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  354. </ColumnInfo>
  355. </Dataset>
  356. <Dataset id="ds_init_statusflag_itemset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  357. <ColumnInfo>
  358. <Column id="nm" type="STRING" size="256"/>
  359. <Column id="cd" type="STRING" size="256"/>
  360. </ColumnInfo>
  361. <Rows>
  362. <Row>
  363. <Col id="nm">-</Col>
  364. <Col id="cd">-</Col>
  365. </Row>
  366. <Row>
  367. <Col id="nm">입력</Col>
  368. <Col id="cd">I</Col>
  369. </Row>
  370. <Row>
  371. <Col id="nm">삭제</Col>
  372. <Col id="cd">D</Col>
  373. </Row>
  374. </Rows>
  375. </Dataset>
  376. <Dataset id="ds_main_original_stmtsetinfo_stmtsetlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_original_stmtsetinfo_stmtsetlist_oncolumnchanged">
  377. <ColumnInfo>
  378. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  379. <Column id="dnarflag" type="STRING" size="256" sumtext="dnar구분"/>
  380. <Column id="stmtcnts" type="STRING" size="256" sumtext="진술문장"/>
  381. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
  382. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
  383. <Column id="stmtcd" type="STRING" size="256" sumtext="진술문코드"/>
  384. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  385. <Column id="attrcnt" type="STRING" size="256" sumtext="속성갯수"/>
  386. </ColumnInfo>
  387. </Dataset>
  388. <Dataset id="ds_main_clone_stmtsetinfo_stmtsetlist" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  389. <ColumnInfo>
  390. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  391. <Column id="dnarflag" type="STRING" size="256" sumtext="dnar구분"/>
  392. <Column id="stmtcnts" type="STRING" size="256" sumtext="진술문장"/>
  393. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
  394. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
  395. <Column id="stmtcd" type="STRING" size="256" sumtext="진술문코드"/>
  396. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  397. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  398. <Column id="attrcnt" type="STRING" size="256" sumtext="속성갯수"/>
  399. </ColumnInfo>
  400. </Dataset>
  401. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  402. <Dataset id="ds_hidden_clone_setinfo_setlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  403. <Dataset id="ds_hidden_clone_stmtsetinfo_stmtsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  404. <Dataset id="ds_send_setlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  405. <Dataset id="ds_send_stmtsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  406. </Objects>
  407. <Bind>
  408. <BindItem id="item0" compid="opt_orglrggrupnm" propid="value" datasetid="ds_hidden_cond_original" columnid="lrggrupnm"/>
  409. <BindItem id="item1" compid="opt_clonelrggrupnm" propid="value" datasetid="ds_hidden_cond_clone" columnid="lrggrupnm"/>
  410. <BindItem id="item2" compid="opt_orgsetnm" propid="value" datasetid="ds_hidden_cond_original" columnid="setnm"/>
  411. <BindItem id="item3" compid="combo1" propid="value" datasetid="ds_hidden_cond_original" columnid="dnarflag"/>
  412. <BindItem id="item4" compid="opt_clonesetnm" propid="value" datasetid="ds_hidden_cond_clone" columnid="setnm"/>
  413. </Bind>
  414. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  415. * System Name :
  416. * Job Name :
  417. * Creator :
  418. * Make Date : 2015-11-13
  419. * Description :
  420. *---------------------------------------------------------------------------------------
  421. * Modify Date Modifier Modify Description
  422. *---------------------------------------------------------------------------------------
  423. * 2015-11-13 Live Converter TF->XP
  424. *
  425. *---------------------------------------------------------------------------------------
  426. ****************************************************************************************/
  427. include "com_commonxp::comm_main.xjs";
  428. var xLrgGrupInfoPath = "ds_main_lrggrupinfo";
  429. var xCondPath = "ds_hidden_cond";
  430. var xOrgSetInfoPath = "ds_main_original_setinfo_setlist";
  431. var xCloneSetListPath = "ds_main_clone_setinfo_setlist";
  432. var xCloneSetInfoPath = "ds_main_clone_setinfo_setlist";
  433. var xOrgStmtSetInfoPath = "ds_main_original_stmtsetinfo_stmtsetlist";
  434. var xCloneStmtSetListPath = "ds_main_clone_stmtsetinfo_stmtsetlist";
  435. var xCloneStmtSetInfoPath = "ds_main_clone_stmtsetinfo_stmtsetlist";
  436. var xCloneSetInfoPath_BK = "ds_hidden_clone_setinfo_setlist";
  437. var xCloneStmtSetInfoPath_BK = "ds_hidden_clone_stmtsetinfo_stmtsetlist";
  438. var arErrorCode = new HashArray();
  439. function SMMNR02100_oninit(obj:Form, e:InitEventInfo)
  440. {
  441. frmf_initForm(obj);
  442. }
  443. function SMMNR02100_onload(obj:Form, e:LoadEventInfo)
  444. {
  445. grdf_initGrid(grd_orglrggrupinfo);
  446. grdf_initGrid(grd_orgsetgrupinfo);
  447. grdf_initGrid(grd_clonelrggrupinfo);
  448. grdf_initGrid(grd_clonesetgrupinfo);
  449. grdf_initGrid(grd_orgstmtsetinfo);
  450. grdf_initGrid(grd_clonestmtsetinfo);
  451. fInit();
  452. }
  453. function fInit()
  454. {
  455. eval(xCondPath+"_original").setColumn(0, "dnarflag", "%");
  456. dsf_makeValue(ds_send, "mode", "string", "clone");
  457. dsf_makeValue(ds_send, "deptcd", "string", sysf_getUserInfo("postdeptcd")); // 부서코드 입력
  458. var oParam = {};
  459. oParam.id = "TRMNR02101";
  460. oParam.service = "carerecapp.StmtMngt";
  461. oParam.method = "reqGetGrupList";
  462. oParam.inds = "refCond=ds_send";
  463. oParam.outds = "ds_main_lrggrupinfo_orglrggruplist=orglrggruplist ds_main_lrggrupinfo_clonelrggruplist=clonelrggruplist";
  464. oParam.async = false;
  465. //oParam.callback = "cf_TRMNR02101";
  466. tranf_submit(oParam);
  467. eval(xOrgSetInfoPath).clearData();
  468. eval(xCloneSetListPath).clearData();
  469. eval(xOrgStmtSetInfoPath).clearData();
  470. eval(xCloneStmtSetListPath).clearData();
  471. }
  472. function grd_orglrggrupinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  473. {
  474. fSrchSetList("original");
  475. }
  476. function fSrchSetList(pFlag)
  477. {
  478. var iLrgGrupRow = 0;
  479. ds_send.clear();
  480. var sGrupFlag = "";
  481. var sDepth = 0;
  482. switch(pFlag)
  483. {
  484. case "original" :
  485. iLrgGrupRow = ds_main_lrggrupinfo_orglrggruplist.rowposition;
  486. if(iLrgGrupRow < 0) return;
  487. sDepth = eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(iLrgGrupRow, "depth");
  488. sGrupFlag = eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(iLrgGrupRow, "grupflag");
  489. if((sDepth < 3 && sGrupFlag == "3" ) || (sDepth < 2 && sGrupFlag != "5") || (sDepth < 2 && sGrupFlag == "5"))
  490. {
  491. eval(xOrgSetInfoPath).clearData();
  492. eval(xOrgStmtSetInfoPath).clearData();
  493. eval(xCondPath+"_original").clearData();
  494. eval(xCondPath+"_original").addRow();
  495. sDepth = eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(iLrgGrupRow, "depth");
  496. sRowCnt = ds_main_lrggrupinfo_orglrggruplist.rowcount;
  497. if(grd_orglrggrupinfo.getTreeStatus(iLrgGrupRow) == 1)
  498. {
  499. sBoolStatus = false;
  500. }
  501. else
  502. {
  503. sBoolStatus = true;
  504. }
  505. for(var i = iLrgGrupRow; i < sRowCnt; i++)
  506. {
  507. iDepth = eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(i, "depth");
  508. if(i == iLrgGrupRow)
  509. {
  510. grd_orglrggrupinfo.setTreeStatus(i, sBoolStatus);
  511. }
  512. else if(i != iLrgGrupRow && sDepth < iDepth)
  513. {
  514. grd_orglrggrupinfo.setTreeStatus(i, sBoolStatus);
  515. }
  516. else
  517. {
  518. break;
  519. }
  520. }
  521. return;
  522. }
  523. eval(xCondPath+"_original").setColumn(0, "lrggrupnm", eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(iLrgGrupRow, "hngnm"));
  524. eval(xCondPath+"_original").setColumn(0, "lrggrupcd", eval(xLrgGrupInfoPath+"_orglrggruplist").getColumn(iLrgGrupRow, "grupcd"));
  525. dsf_makeValue(ds_send, "lrggrupcd", "string", eval(xCondPath+"_original").getColumn(0, "lrggrupcd"));
  526. var oParam = {};
  527. oParam.id = "TRMNR02102";
  528. oParam.service = "carerecapp.StmtMngt";
  529. oParam.method = "reqGetSetList";
  530. oParam.inds = "refCond=ds_send";
  531. oParam.outds = "ds_main_original_setinfo_setlist=setlist";
  532. oParam.async = false;
  533. oParam.callback = "cf_submit";
  534. tranf_submit(oParam);
  535. if(arErrorCode.pop("TRMNR02102") > -1)
  536. {
  537. eval(xOrgStmtSetInfoPath).clearData();
  538. eval(xCondPath+"_original").setColumn(0, "setnm","");
  539. eval(xCondPath+"_original").setColumn(0, "setcd","");
  540. }
  541. break;
  542. case "clone" :
  543. iLrgGrupRow = ds_main_lrggrupinfo_clonelrggruplist.rowposition;
  544. if(iLrgGrupRow < 0) return;
  545. sDepth = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "depth");
  546. sGrupFlag = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "grupflag");
  547. if((sDepth < 3 && sGrupFlag == "3" ) || (sDepth < 2 && sGrupFlag != "5") || (sDepth < 2 && sGrupFlag == "5"))
  548. {
  549. eval(xCloneSetListPath).clearData();
  550. eval(xCloneStmtSetListPath).clearData();
  551. eval(xCondPath+"_clone").clearData();
  552. eval(xCondPath+"_clone").addRow();
  553. sDepth = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "depth");
  554. sRowCnt = ds_main_lrggrupinfo_clonelrggruplist.rowcount;
  555. if(grd_clonelrggrupinfo.getTreeStatus(iLrgGrupRow) == 1)
  556. {
  557. sBoolStatus = false;
  558. }
  559. else
  560. {
  561. sBoolStatus = true;
  562. }
  563. for(var i = iLrgGrupRow; i < sRowCnt; i++)
  564. {
  565. iDepth = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(i, "depth");
  566. if(i==iLrgGrupRow)
  567. {
  568. grd_clonelrggrupinfo.setTreeStatus(i, sBoolStatus);
  569. }
  570. else if(i != iLrgGrupRow && sDepth < iDepth)
  571. {
  572. grd_clonelrggrupinfo.setTreeStatus(i, sBoolStatus);
  573. }
  574. else
  575. {
  576. break;
  577. }
  578. }
  579. return;
  580. }
  581. eval(xCondPath+"_clone").setColumn(0, "lrggrupnm", eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "hngnm"));
  582. eval(xCondPath+"_clone").setColumn(0, "lrggrupcd", eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "grupcd"));
  583. dsf_makeValue(ds_send, "lrggrupcd", "string", eval(xCondPath+"_clone").getColumn(0, "lrggrupcd"));
  584. var oParam = {};
  585. oParam.id = "TRMNR02103";
  586. oParam.service = "carerecapp.StmtMngt";
  587. oParam.method = "reqGetSetList";
  588. oParam.inds = "refCond=ds_send";
  589. oParam.outds = "ds_main_clone_setinfo_setlist=setlist";
  590. oParam.async = false;
  591. oParam.callback = "cf_submit";
  592. tranf_submit(oParam);
  593. if(arErrorCode.pop("TRMNR02103") > -1)
  594. {
  595. eval(xCloneStmtSetListPath).clearData();
  596. eval(xCondPath+"_clone").setColumn(0, "setnm","");
  597. eval(xCondPath+"_clone").setColumn(0, "setcd","");
  598. eval(xCloneSetInfoPath_BK).copyData(xCloneSetInfoPath);
  599. }
  600. break;
  601. }
  602. }
  603. function grd_orgsetgrupinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  604. {
  605. fSrchStmtList("original");
  606. }
  607. function fSrchStmtList(pFlag)
  608. {
  609. ds_send.clear();
  610. iSetRow = 0;
  611. switch(pFlag)
  612. {
  613. case "original" :
  614. iSetRow = ds_main_original_setinfo_setlist.rowposition;
  615. if(iSetRow < 0) return;
  616. eval(xCondPath+"_original").setColumn(0, "setnm", eval(xOrgSetInfoPath).getColumn(iSetRow, "hngnm"));
  617. eval(xCondPath+"_original").setColumn(0, "setcd", eval(xOrgSetInfoPath).getColumn(iSetRow, "grupcd"));
  618. dsf_makeValue(ds_send, "grupcd", "string", eval(xCondPath+"_original").getColumn(0, "setcd"));
  619. dsf_makeValue(ds_send, "dnarflag", "string", eval(xCondPath+"_original").getColumn(0, "dnarflag"));
  620. var oParam = {};
  621. oParam.id = "TRMNR02104";
  622. oParam.service = "carerecapp.StmtMngt";
  623. oParam.method = "reqGetStmtSetCopyList";
  624. oParam.inds = "refCond=ds_send";
  625. oParam.outds = "ds_main_original_stmtsetinfo_stmtsetlist=stmtsetlist";
  626. oParam.async = false;
  627. oParam.callback = "cf_submit";
  628. tranf_submit(oParam);
  629. if(arErrorCode.pop("TRMNR02104") > -1)
  630. {
  631. fSettingGridStyle("original");
  632. }
  633. break;
  634. case "clone" :
  635. iSetRow = ds_main_clone_setinfo_setlist.rowposition;
  636. if(iSetRow < 0) return;
  637. eval(xCondPath+"_clone").setColumn(0, "setnm",eval(xCloneSetListPath).getColumn(iSetRow, "hngnm"));
  638. eval(xCondPath+"_clone").setColumn(0, "setcd",eval(xCloneSetListPath).getColumn(iSetRow, "grupcd"));
  639. dsf_makeValue(ds_send, "grupcd", "string", eval(xCondPath+"_clone").getColumn(0, "setcd"));
  640. var oParam = {};
  641. oParam.id = "TRMNR02105";
  642. oParam.service = "carerecapp.StmtMngt";
  643. oParam.method = "reqGetStmtSetCopyList";
  644. oParam.inds = "refCond=ds_send";
  645. oParam.outds = "ds_main_clone_stmtsetinfo_stmtsetlist=stmtsetlist";
  646. oParam.async = false;
  647. oParam.callback = "cf_submit";
  648. tranf_submit(oParam);
  649. if(arErrorCode.pop("TRMNR02105") > -1)
  650. {
  651. fSettingGridStyle("clone");
  652. eval(xCloneStmtSetInfoPath_BK).copyData(xCloneStmtSetInfoPath);
  653. }
  654. break;
  655. }
  656. }
  657. function fSettingGridStyle(pFlag)
  658. {
  659. switch(pFlag)
  660. {
  661. case "original" :
  662. for(var iRow = 0; iRow < ds_main_original_stmtsetinfo_stmtsetlist.rowcount; iRow++)
  663. {
  664. dsf_makeValue(ds_main_original_stmtsetinfo_stmtsetlist, "color", "string", "#000000", iRow);
  665. if(eval(xOrgStmtSetInfoPath).getColumn(iRow, "attrcnt") > 0)
  666. {
  667. dsf_makeValue(ds_main_original_stmtsetinfo_stmtsetlist, "color", "string", "#33CC33", iRow);
  668. }
  669. }
  670. break;
  671. case "clone" : // 복사될 리스트
  672. for(var iRow = 0; iRow < ds_main_clone_stmtsetinfo_stmtsetlist.rowcount; iRow++)
  673. {
  674. dsf_makeValue(ds_main_clone_stmtsetinfo_stmtsetlist, "color", "string", "#000000", iRow);
  675. if(eval(xCloneStmtSetListPath).getColumn(iRow, "attrcnt") > 0)
  676. {
  677. dsf_makeValue(ds_main_clone_stmtsetinfo_stmtsetlist, "color", "string", "#33CC33", iRow);
  678. }
  679. }
  680. break;
  681. }
  682. }
  683. function cf_submit(sSvcId, nErrorCode, sErrorMsg)
  684. {
  685. arErrorCode.push(sSvcId, nErrorCode);
  686. if(nErrorCode < 0) return;
  687. }
  688. function ds_main_original_setinfo_setlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  689. {
  690. if(e.columnid == "check")
  691. {
  692. obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  693. }
  694. }
  695. function grd_clonelrggrupinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  696. {
  697. fSrchSetList("clone");
  698. }
  699. function grd_clonesetgrupinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  700. {
  701. fSrchStmtList("clone");
  702. }
  703. function btn_totalselset_onclick(obj:Button, e:ClickEventInfo)
  704. {
  705. fTotalSelect("set");
  706. }
  707. function fTotalSelect(pFlag)
  708. {
  709. switch(pFlag)
  710. {
  711. case "set" : // SET
  712. for(var iRow = 0; iRow < ds_main_original_setinfo_setlist.rowcount; iRow++)
  713. {
  714. eval(xOrgSetInfoPath).setColumn(iRow, "check","true");
  715. }
  716. case "stmt" : // 진술문
  717. for(var iRow = 0; iRow < ds_main_original_stmtsetinfo_stmtsetlist.rowcount; iRow++)
  718. {
  719. eval(xOrgStmtSetInfoPath).setColumn(iRow, "check","true");
  720. }
  721. }
  722. }
  723. function btn_copyset_onclick(obj:Button, e:ClickEventInfo)
  724. {
  725. fCopyStmtInfo("set");
  726. }
  727. function fCopyStmtInfo(pFlag)
  728. {
  729. switch(pFlag)
  730. {
  731. case "set" : // SET 복사
  732. var sLrgGrupCD = eval(xCondPath+"_clone").getColumn(0, "lrggrupcd");
  733. var sInputChk = false;
  734. if(utlf_isNull(sLrgGrupCD))
  735. {
  736. sysf_messageBox("그룹을 먼저","C002");
  737. return;
  738. }
  739. var sSetCnt = ds_main_original_setinfo_setlist.rowcount;
  740. var iCloneSetRow = ds_main_clone_setinfo_setlist.rowcount;
  741. var iLrgGrupRow = ds_main_lrggrupinfo_clonelrggruplist.rowposition;
  742. var sGrupcd = "";
  743. var sGrupnm = "";
  744. var sGrupFlag = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "grupflag");
  745. var sDeptCD = "";
  746. if(sGrupFlag == 3 || sGrupFlag == 5)
  747. {
  748. sDeptCD = eval(xLrgGrupInfoPath+"_clonelrggruplist").getColumn(iLrgGrupRow, "deptcd");
  749. }
  750. for(var iRow = 0; iRow < sSetCnt; iRow++)
  751. {
  752. if(eval(xOrgSetInfoPath).getColumn(iRow, "check") == "true")
  753. {
  754. sGrupcd = eval(xOrgSetInfoPath).getColumn(iRow, "grupcd");
  755. sGrupnm = eval(xOrgSetInfoPath).getColumn(iRow, "hngnm");
  756. if(!utlf_isNull(eval(xCloneSetListPath).lookupExpr("grupcd == '"+sGrupcd+"' || hngnm =='"+sGrupnm+"'", "grupcd"))) continue;
  757. iCloneSetRow = ds_main_clone_setinfo_setlist.addRow();
  758. eval(xCloneSetListPath).setColumn(iCloneSetRow, "status","I");
  759. dsf_makeValue(ds_main_clone_setinfo_setlist, "color1", "string", "#FF0000", iCloneSetRow);
  760. eval(xCloneSetListPath).setColumn(iCloneSetRow, "hngnm", eval(xOrgSetInfoPath).getColumn(iRow, "hngnm"));
  761. eval(xCloneSetListPath).setColumn(iCloneSetRow, "grupcd", eval(xOrgSetInfoPath).getColumn(iRow, "grupcd"));
  762. eval(xCloneSetListPath).setColumn(iCloneSetRow, "supcd", sLrgGrupCD);
  763. eval(xCloneSetListPath).setColumn(iCloneSetRow, "grupflag", sGrupFlag);
  764. eval(xCloneSetListPath).setColumn(iCloneSetRow, "todd", "99991231235959");
  765. if(sGrupFlag == 3 || sGrupFlag == 5)
  766. {
  767. eval(xCloneSetListPath).setColumn(iCloneSetRow, "deptcd", sDeptCD);
  768. }
  769. sInputChk = true;
  770. }
  771. }
  772. if(sInputChk == true)
  773. {
  774. eval(xCloneStmtSetListPath).clearData();
  775. eval(xCondPath+"_clone").setColumn(0, "setcd","");
  776. eval(xCondPath+"_clone").setColumn(0, "setnm","");
  777. }
  778. break;
  779. case "stmt" : // 진술문 복사
  780. var sSetCD = eval(xCondPath+"_clone").getColumn(0, "setcd");
  781. var sStatus = eval(xCloneSetListPath).getColumn(ds_main_clone_setinfo_setlist.rowposition, "status");
  782. if(utlf_isNull(sSetCD))
  783. {
  784. sysf_messageBox("SET을 먼저","C002");
  785. return;
  786. }
  787. if(sStatus == "I")
  788. {
  789. sysf_messageBox("SET을 먼저 저장한 후에","C002");
  790. return;
  791. }
  792. var sStmtCnt = ds_main_original_stmtsetinfo_stmtsetlist.rowcount;
  793. var iStmtSetRow = ds_main_clone_stmtsetinfo_stmtsetlist.rowcount;
  794. var sStmtCD = "";
  795. fSettingGridStyle("clone");
  796. for(var iRow = 0; iRow < sStmtCnt; iRow++)
  797. {
  798. if(eval(xOrgStmtSetInfoPath).getColumn(iRow, "check") == "true")
  799. {
  800. sStmtCD = eval(xOrgStmtSetInfoPath).getColumn(iRow, "stmtcd");
  801. if(!utlf_isNull(eval(xCloneStmtSetListPath).lookup("stmtcd", sStmtCD, "stmtcd"))) continue;
  802. iStmtSetRow = ds_main_clone_stmtsetinfo_stmtsetlist.addRow();
  803. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "status","I");
  804. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "dnarflag",eval(xOrgStmtSetInfoPath).getColumn(iRow, "dnarflag"));
  805. dsf_makeValue(ds_main_clone_stmtsetinfo_stmtsetlist, "color1", "string", "#FF0000", iStmtSetRow);
  806. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "stmtcnts", eval(xOrgStmtSetInfoPath).getColumn(iRow, "stmtcnts"));
  807. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "fstrgstrnm", "-");
  808. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "stmtcd", sStmtCD);
  809. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "grupcd", sSetCD);
  810. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "todd", "99991231235959");
  811. eval(xCloneStmtSetListPath).setColumn(iStmtSetRow, "attrcnt", eval(xOrgStmtSetInfoPath).getColumn(iRow, "attrcnt"));
  812. }
  813. }
  814. break;
  815. }
  816. }
  817. function grd_clonestmtsetinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  818. {
  819. fCnclStmtInfo("stmt");
  820. }
  821. function fCnclStmtInfo(pFlag)
  822. {
  823. var iRow = 0;
  824. var sStatus = "";
  825. switch(pFlag)
  826. {
  827. case "set" : // SET 복사
  828. iRow = ds_main_clone_setinfo_setlist.rowposition;
  829. if(iRow < 0) return;
  830. sStatus = eval(xCloneSetListPath).getColumn(iRow, "status");
  831. if(sStatus == "I")
  832. {
  833. ds_main_clone_setinfo_setlist.deleteRow(iRow);
  834. }
  835. else if(sStatus == "-")
  836. {
  837. eval(xCloneSetListPath).setColumn(iRow, "status", "D");
  838. }
  839. else if(sStatus == "D")
  840. {
  841. eval(xCloneSetListPath).setColumn(iRow, "status", "-");
  842. }
  843. break;
  844. case "stmt" : // 진술문 복사
  845. iRow = ds_main_clone_stmtsetinfo_stmtsetlist.rowposition;
  846. if(iRow < 0) return;
  847. sStatus = eval(xCloneStmtSetListPath).getColumn(iRow, "status");
  848. if(sStatus == "I")
  849. {
  850. ds_main_clone_stmtsetinfo_stmtsetlist.deleteRow(iRow);
  851. }
  852. else if(sStatus == "-")
  853. {
  854. eval(xCloneStmtSetListPath).setColumn(iRow, "status","D");
  855. }
  856. else if(sStatus == "D")
  857. {
  858. eval(xCloneStmtSetListPath).setColumn(iRow, "status","-");
  859. }
  860. break;
  861. }
  862. }
  863. function combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  864. {
  865. fSrchStmtList("original");
  866. }
  867. function btn_totalselstmt_onclick(obj:Button, e:ClickEventInfo)
  868. {
  869. fTotalSelect("stmt");
  870. }
  871. function btn_copystmt_onclick(obj:Button, e:ClickEventInfo)
  872. {
  873. fCopyStmtInfo("stmt");
  874. }
  875. function btn_cnclstmt_onclick(obj:Button, e:ClickEventInfo)
  876. {
  877. fCnclStmtInfo("stmt");
  878. }
  879. function btn_savestmt_onclick(obj:Button, e:ClickEventInfo)
  880. {
  881. fSave("stmt");
  882. }
  883. function btn_cnclset_onclick(obj:Button, e:ClickEventInfo)
  884. {
  885. fCnclStmtInfo("set");
  886. }
  887. function btn_saveset_onclick(obj:Button, e:ClickEventInfo)
  888. {
  889. fSave("set");
  890. }
  891. function fSave(pFlag)
  892. {
  893. ds_send.clear();
  894. ds_send_setlist.clearData();
  895. ds_send_stmtsetlist.clearData();
  896. switch(pFlag)
  897. {
  898. case "set" : // SET
  899. if(dsf_getDsCSV(eval(xCloneSetInfoPath), "", "", "","") == dsf_getDsCSV(eval(xCloneSetInfoPath_BK), "", "", "",""))
  900. {
  901. sysf_messageBox("변경된 데이터가","I004");
  902. return;
  903. }
  904. var updategrid = grdf_getGridUpdateData(grd_clonesetgrupinfo, "i");
  905. ds_send_setlist.copyData(updategrid, true);
  906. dsf_makeValue(ds_send, "lrggrupcd", "string", eval(xCondPath+"_clone").getColumn(0, "lrggrupcd"));
  907. var oParam = {};
  908. oParam.id = "TXMNR02101";
  909. oParam.service = "carerecapp.StmtMngt";
  910. oParam.method = "reqExeSetList";
  911. oParam.inds = "refCond=ds_send setlist=ds_send_setlist";
  912. oParam.outds = "ds_main_clone_setinfo_setlist=setlist";
  913. oParam.async = false;
  914. oParam.callback = "cf_submit";
  915. tranf_submit(oParam);
  916. if(arErrorCode.pop("TXMNR02101") > -1)
  917. {
  918. eval(xCloneStmtSetListPath).clearData();
  919. eval(xCondPath+"_clone").setColumn(0, "setcd","");
  920. eval(xCondPath+"_clone").setColumn(0, "setnm","");
  921. eval(xCloneSetInfoPath_BK).copyData(xCloneSetInfoPath);
  922. fSettingGridStyle("original");
  923. }
  924. break;
  925. case "stmt" : // 진술문
  926. if(dsf_getDsCSV(eval(xCloneStmtSetInfoPath), "", "", "","") == dsf_getDsCSV(eval(xCloneStmtSetInfoPath_BK), "", "", "",""))
  927. {
  928. sysf_messageBox("변경된 데이터가","I004");
  929. return;
  930. }
  931. var updategrid = grdf_getGridUpdateData(grd_clonestmtsetinfo, "i");
  932. ds_send_stmtsetlist.copyData(updategrid, true);
  933. dsf_makeValue(ds_send, "grupcd", "string", eval(xCondPath+"_clone").getColumn(0, "setcd"));
  934. var oParam = {};
  935. oParam.id = "TXMNR02102";
  936. oParam.service = "carerecapp.StmtMngt";
  937. oParam.method = "reqExeStmtSetCopyList";
  938. oParam.inds = "refCond=ds_send stmtsetlist=ds_send_stmtsetlist";
  939. oParam.outds = "ds_main_clone_stmtsetinfo_stmtsetlist=stmtsetlist";
  940. oParam.async = false;
  941. oParam.callback = "cf_submit";
  942. tranf_submit(oParam);
  943. if(arErrorCode.pop("TXMNR02102") > -1)
  944. {
  945. eval(xCloneStmtSetInfoPath_BK).copyData(xCloneStmtSetInfoPath);
  946. fSettingGridStyle("clone");
  947. }
  948. break;
  949. }
  950. }
  951. function ds_main_original_stmtsetinfo_stmtsetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  952. {
  953. if(e.columnid == "check")
  954. {
  955. obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  956. }
  957. }
  958. ]]></Script>
  959. </Form>
  960. </FDL>