SPMMR05000_사용자화면설정.xfdl 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR05000" inheritanceid="" position="absolute 0 0 1251 230" titletext="사용자화면설정" oninit="SPMMR05000_oninit" onload="SPMMR05000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="Button00" taborder="1" text="초기화" position="absolute 1066 205 1131 225" class="btn4" anchor="right bottom" onclick="Button00_onclick"/>
  8. <Button id="Button02" taborder="3" text="저장" class="btn4" position="absolute 1135 205 1191 225" anchor="right bottom" onclick="Button02_onclick"/>
  9. <Button id="Button03" taborder="4" text="취소" class="btn3" position="absolute 1195 205 1251 225" anchor="right bottom" onclick="Button03_onclick"/>
  10. <Static id="Static05" text="컬럼고정 기능은 왼쪽부터 ☜ 표시 된 컬럼까지 고정 됩니다." position="absolute 10 211 380 230" anchor="right bottom"/>
  11. <PopupMenu id="pmn_menu1" position="absolute 1256 23 1324 49" innerdataset="@ds_menu1" idcolumn="hardcd" captioncolumn="hardcdnm" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick"/>
  12. <PopupMenu id="pmn_menu2" position="absolute 1256 126 1344 194" innerdataset="@ds_menu2" idcolumn="hardcd" levelcolumn="level" captioncolumn="hardcdnm" onmenuclick="pmn_menu_onmenuclick"/>
  13. <Static id="Static01" text="전체설정" class="tit_2" position="absolute 0 2 80 22"/>
  14. <Grid id="grd_medireclist" taborder="6" binddataset="ds_medireclist" scrollpixel="all" useinputpanel="false" selecttype="multiarea" onrbuttondown="grd_medireclist_onrbuttondown" ondrag="grd_medireclist_ondrag" ondragmove="grd_medireclist_ondragmove" position="absolute 0 20 1251 87" anchor="left top right">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="100"/>
  19. <Column size="216"/>
  20. <Column size="60"/>
  21. <Column size="38"/>
  22. <Column size="34"/>
  23. <Column size="48"/>
  24. <Column size="45"/>
  25. <Column size="45"/>
  26. <Column size="105"/>
  27. <Column size="105"/>
  28. <Column size="105"/>
  29. <Column size="105"/>
  30. <Column size="75"/>
  31. <Column size="70"/>
  32. <Column size="100"/>
  33. <Column size="80"/>
  34. <Column size="30"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="기준일자"/>
  51. <Cell col="1" text="서식명"/>
  52. <Cell col="2" text="부제목"/>
  53. <Cell col="3" text="확정"/>
  54. <Cell col="4" text="Staff"/>
  55. <Cell col="5" text="작성과"/>
  56. <Cell col="6" text="최초"/>
  57. <Cell col="7" text="최종"/>
  58. <Cell col="8" text="최초작성"/>
  59. <Cell col="9" text="최종작성"/>
  60. <Cell col="10" text="기록순번"/>
  61. <Cell col="11" text="기록이력"/>
  62. <Cell col="12" text="진료일자"/>
  63. <Cell col="13" text="생성번호"/>
  64. <Cell col="14" text="타입"/>
  65. <Cell col="15" text="수술번호"/>
  66. <Cell col="16" text="IMG"/>
  67. <Cell col="17" text="formcd"/>
  68. <Cell col="18" text="formrecdeptcd"/>
  69. <Cell col="19" text="espiseq"/>
  70. <Cell col="20" text="srcformcd"/>
  71. <Cell col="21" text="cnfmyn"/>
  72. <Cell col="22" text="grdyn"/>
  73. <Cell col="23" text="grddeptyn"/>
  74. <Cell col="24" text="formrecdd"/>
  75. <Cell col="25" text="formrechm"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell text="bind:formrecdt"/>
  79. <Cell col="1" text="bind:formnminfo"/>
  80. <Cell col="2" text="bind:formrecextnnm"/>
  81. <Cell col="3" text="bind:certyn"/>
  82. <Cell col="4" text="bind:cosign"/>
  83. <Cell col="5" text="bind:formrecdeptnm"/>
  84. <Cell col="6" text="bind:fstrgstrnm"/>
  85. <Cell col="7" text="bind:lastrgstrnm"/>
  86. <Cell col="8" text="bind:fstrgstdt"/>
  87. <Cell col="9" text="bind:lastupdtdt"/>
  88. <Cell col="10" text="bind:formrecseq"/>
  89. <Cell col="11" text="bind:lastrechistseq"/>
  90. <Cell col="12" text="bind:orddd"/>
  91. <Cell col="13" text="bind:cretno"/>
  92. <Cell col="14" text="bind:type"/>
  93. <Cell col="15" text="bind:oprsrvno"/>
  94. <Cell col="16" text="bind:imgyn"/>
  95. <Cell col="17" text="bind:formcd"/>
  96. <Cell col="18" text="bind:formrecdeptcd"/>
  97. <Cell col="19" text="bind:espiseq"/>
  98. <Cell col="20" text="bind:srcformcd"/>
  99. <Cell col="21" text="bind:cnfmyn"/>
  100. <Cell col="22" text="bind:grdyn"/>
  101. <Cell col="23" text="bind:grddeptyn"/>
  102. <Cell col="24" text="bind:formrecdd"/>
  103. <Cell col="25" text="bind:formrechm"/>
  104. </Band>
  105. </Format>
  106. </Formats>
  107. </Grid>
  108. <Static id="Static02" text="컬럼추가(먼저 데이터영역을 선택한 후 마우스 오른쪽 버튼을 눌러 컬럼추가 또는 사용자 설정으로 마우스 드레그)가 가능 합니다." position="absolute 130 2 840 22"/>
  109. <Static id="Static03" text="사용자설정" class="tit_2" position="absolute 0 103 96 123"/>
  110. <Static id="Static04" text="컬럼삭제, 컬럼고정(데이터 영역에서 마우스 오른쪽버튼), 컬럼 순서변경(원하는 위치로 제목 드레그), 컬럼 사이즈변경(컬럼 사이의 분리선 드레그)이 가능 합니다." position="absolute 130 103 1024 123"/>
  111. <Grid id="grd_medireclist_resize" taborder="7" binddataset="ds_Resize" scrollpixel="all" useinputpanel="false" selecttype="multiarea" cellsizingtype="col" cellmovingtype="col" onrbuttondown="grd_medireclist_resize_onrbuttondown" ondragmove="grd_medireclist_resize_ondragmove" ondrop="grd_medireclist_resize_ondrop" position="absolute 0 122 1251 189" anchor="left top right">
  112. <Formats>
  113. <Format id="default">
  114. <Columns>
  115. <Column size="100"/>
  116. <Column size="216"/>
  117. <Column size="60"/>
  118. <Column size="38"/>
  119. <Column size="34"/>
  120. <Column size="48"/>
  121. <Column size="45"/>
  122. <Column size="45"/>
  123. <Column size="105"/>
  124. <Column size="105"/>
  125. <Column size="105"/>
  126. <Column size="105"/>
  127. <Column size="75"/>
  128. <Column size="70"/>
  129. <Column size="100"/>
  130. <Column size="80"/>
  131. <Column size="30"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. <Column size="0"/>
  139. <Column size="0"/>
  140. <Column size="0"/>
  141. </Columns>
  142. <Rows>
  143. <Row size="24" band="head"/>
  144. <Row size="24"/>
  145. </Rows>
  146. <Band id="head">
  147. <Cell text="기준일자"/>
  148. <Cell col="1" text="서식명"/>
  149. <Cell col="2" text="부제목"/>
  150. <Cell col="3" text="확정"/>
  151. <Cell col="4" text="Staff"/>
  152. <Cell col="5" text="작성과"/>
  153. <Cell col="6" text="최초"/>
  154. <Cell col="7" text="최종"/>
  155. <Cell col="8" text="최초작성"/>
  156. <Cell col="9" text="최종작성"/>
  157. <Cell col="10" text="기록순번"/>
  158. <Cell col="11" text="기록이력"/>
  159. <Cell col="12" text="진료일자"/>
  160. <Cell col="13" text="생성번호"/>
  161. <Cell col="14" text="타입"/>
  162. <Cell col="15" text="수술번호"/>
  163. <Cell col="16" text="IMG"/>
  164. <Cell col="17" text="formcd"/>
  165. <Cell col="18" text="formrecdeptcd"/>
  166. <Cell col="19" text="espiseq"/>
  167. <Cell col="20" text="srcformcd"/>
  168. <Cell col="21" text="cnfmyn"/>
  169. <Cell col="22" text="grdyn"/>
  170. <Cell col="23" text="grddeptyn"/>
  171. <Cell col="24" text="formrecdd"/>
  172. <Cell col="25" text="formrechm"/>
  173. </Band>
  174. <Band id="body">
  175. <Cell text="bind:formrecdt"/>
  176. <Cell col="1" text="bind:formnminfo"/>
  177. <Cell col="2" text="bind:formrecextnnm"/>
  178. <Cell col="3" text="bind:certyn"/>
  179. <Cell col="4" text="bind:cosign"/>
  180. <Cell col="5" text="bind:formrecdeptnm"/>
  181. <Cell col="6" text="bind:fstrgstrnm"/>
  182. <Cell col="7" text="bind:lastrgstrnm"/>
  183. <Cell col="8" text="bind:fstrgstdt"/>
  184. <Cell col="9" text="bind:lastupdtdt"/>
  185. <Cell col="10" text="bind:formrecseq"/>
  186. <Cell col="11" text="bind:lastrechistseq"/>
  187. <Cell col="12" text="bind:orddd"/>
  188. <Cell col="13" text="bind:cretno"/>
  189. <Cell col="14" text="bind:type"/>
  190. <Cell col="15" text="bind:oprsrvno"/>
  191. <Cell col="16" text="bind:imgyn"/>
  192. <Cell col="17" text="bind:formcd"/>
  193. <Cell col="18" text="bind:formrecdeptcd"/>
  194. <Cell col="19" text="bind:espiseq"/>
  195. <Cell col="20" text="bind:srcformcd"/>
  196. <Cell col="21" text="bind:cnfmyn"/>
  197. <Cell col="22" text="bind:grdyn"/>
  198. <Cell col="23" text="bind:grddeptyn"/>
  199. <Cell col="24" text="bind:formrecdd"/>
  200. <Cell col="25" text="bind:formrechm"/>
  201. </Band>
  202. </Format>
  203. </Formats>
  204. </Grid>
  205. </Layout>
  206. </Layouts>
  207. <Objects>
  208. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="scrnid" type="STRING" size="256"/>
  211. <Column id="grdid" type="STRING" size="256"/>
  212. <Column id="caseid" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row>
  216. <Col id="scrnid"/>
  217. <Col id="grdid"/>
  218. <Col id="caseid"/>
  219. </Row>
  220. </Rows>
  221. </Dataset>
  222. <Dataset id="ds_reqResize" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  223. <ColumnInfo>
  224. <Column id="scrnid" type="STRING" size="256" sumtext="화면ID"/>
  225. <Column id="compscd" type="STRING" size="256" sumtext="화면ID"/>
  226. <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_gridseqResize" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="compscd" type="STRING" size="256" sumtext="구성코드"/>
  232. <Column id="compscnts" type="STRING" size="256" sumtext="구성내용"/>
  233. <Column id="frozencol" type="STRING" size="256" sumtext="컬럼고정필드명"/>
  234. <Column id="compsrefcnts" type="STRING" size="256" sumtext="구성참조내용"/>
  235. <Column id="compssizecnts" type="STRING" size="256" sumtext="구성크기내용"/>
  236. </ColumnInfo>
  237. </Dataset>
  238. <Dataset id="ds_menu1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="hardcd" type="STRING" size="256"/>
  241. <Column id="hardcdnm" type="STRING" size="256"/>
  242. <Column id="level" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="hardcd">fAddColOfGrd</Col>
  247. <Col id="hardcdnm">컬럼 추가</Col>
  248. <Col id="level">0</Col>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. <Dataset id="ds_menu2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="hardcd" type="STRING" size="256"/>
  255. <Column id="hardcdnm" type="STRING" size="256"/>
  256. <Column id="level" type="STRING" size="256"/>
  257. </ColumnInfo>
  258. <Rows>
  259. <Row>
  260. <Col id="hardcd">fDelColOfGrd</Col>
  261. <Col id="hardcdnm">컬럼 삭제</Col>
  262. <Col id="level">0</Col>
  263. </Row>
  264. <Row>
  265. <Col id="hardcdnm">-</Col>
  266. <Col id="level">0</Col>
  267. <Col id="hardcd"/>
  268. </Row>
  269. <Row>
  270. <Col id="hardcdnm">컬럼고정 설정</Col>
  271. <Col id="hardcd">fSetFrozenColOfGrd</Col>
  272. <Col id="level">0</Col>
  273. </Row>
  274. <Row>
  275. <Col id="hardcdnm">컬럼고정 취소</Col>
  276. <Col id="hardcd">fCancelFrozenColOfGrd</Col>
  277. <Col id="level">0</Col>
  278. </Row>
  279. </Rows>
  280. </Dataset>
  281. <Dataset id="ds_listval" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  282. <ColumnInfo>
  283. <Column id="refdata" type="STRING" size="256"/>
  284. <Column id="sizedata" type="STRING" size="256"/>
  285. <Column id="frozencol" type="STRING" size="256"/>
  286. </ColumnInfo>
  287. <Rows>
  288. <Row/>
  289. </Rows>
  290. </Dataset>
  291. <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  292. <ColumnInfo>
  293. <Column id="compscd" type="STRING" size="256" sumtext="구성코드"/>
  294. <Column id="compscnts" type="STRING" size="256" sumtext="구성내용"/>
  295. <Column id="compsrefcnts" type="STRING" size="256" sumtext="구성참조내용"/>
  296. <Column id="compssizecnts" type="STRING" size="256" sumtext="구성크기내용"/>
  297. <Column id="scrnid" type="STRING" size="256" sumtext="화면ID"/>
  298. <Column id="frozencol" type="STRING" size="256" sumtext="고정컬럼"/>
  299. </ColumnInfo>
  300. </Dataset>
  301. <Dataset id="ds_medireclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  302. <ColumnInfo>
  303. <Column id="formrecdt" type="STRING" size="256" sumtext="기록일시"/>
  304. <Column id="formnminfo" type="STRING" size="256" sumtext="서식명정보"/>
  305. <Column id="formrecextnnm" type="STRING" size="256" sumtext="서식확장명"/>
  306. <Column id="certyn" type="STRING" size="256" sumtext="확정"/>
  307. <Column id="cosign" type="STRING" size="256" sumtext="코사인"/>
  308. <Column id="formrecdeptnm" type="STRING" size="256" sumtext="기록시점의 원무정보 진료과명"/>
  309. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
  310. <Column id="lastrgstrnm" type="STRING" size="256" sumtext="최종수정자명"/>
  311. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  312. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  313. <Column id="formrecseq" type="BIGDECIMAL" size="256" sumtext="서식기록순번"/>
  314. <Column id="lastrechistseq" type="BIGDECIMAL" size="256" sumtext="서식기록이력순번"/>
  315. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  316. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  317. <Column id="type" type="STRING" size="256" sumtext="기록구분"/>
  318. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  319. <Column id="formrecdeptcd" type="STRING" size="256" sumtext="기록시점의 원무정보 진료과코드"/>
  320. <Column id="espiseq" type="BIGDECIMAL" size="256" sumtext="서명번호"/>
  321. <Column id="srcformcd" type="STRING" size="256" sumtext="원서식코드"/>
  322. <Column id="cnfmyn" type="STRING" size="256" sumtext="수정가능여부(마이그레이션데이터)"/>
  323. <Column id="grdyn" type="STRING" size="256" sumtext="폼의 그리드여부"/>
  324. <Column id="grddeptyn" type="STRING" size="256" sumtext="폼의 그리드출력여부"/>
  325. <Column id="formrecdd" type="STRING" size="256" sumtext="기록일"/>
  326. <Column id="formrechm" type="STRING" size="256" sumtext="기록시간"/>
  327. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술번호"/>
  328. </ColumnInfo>
  329. <Rows>
  330. <Row>
  331. <Col id="formrecextnnm">☜</Col>
  332. </Row>
  333. </Rows>
  334. </Dataset>
  335. <Dataset id="ds_Resize" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  336. <ColumnInfo>
  337. <Column id="formrecdt" type="STRING" size="256" sumtext="기록일시"/>
  338. <Column id="formnminfo" type="STRING" size="256" sumtext="서식명정보"/>
  339. <Column id="formrecextnnm" type="STRING" size="256" sumtext="서식확장명"/>
  340. <Column id="certyn" type="STRING" size="256" sumtext="확정"/>
  341. <Column id="cosign" type="STRING" size="256" sumtext="코사인"/>
  342. <Column id="formrecdeptnm" type="STRING" size="256" sumtext="기록시점의 원무정보 진료과명"/>
  343. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
  344. <Column id="lastrgstrnm" type="STRING" size="256" sumtext="최종수정자명"/>
  345. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  346. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  347. <Column id="formrecseq" type="BIGDECIMAL" size="256" sumtext="서식기록순번"/>
  348. <Column id="lastrechistseq" type="BIGDECIMAL" size="256" sumtext="서식기록이력순번"/>
  349. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  350. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  351. <Column id="type" type="STRING" size="256" sumtext="기록구분"/>
  352. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  353. <Column id="formrecdeptcd" type="STRING" size="256" sumtext="기록시점의 원무정보 진료과코드"/>
  354. <Column id="espiseq" type="BIGDECIMAL" size="256" sumtext="서명번호"/>
  355. <Column id="srcformcd" type="STRING" size="256" sumtext="원서식코드"/>
  356. <Column id="cnfmyn" type="STRING" size="256" sumtext="수정가능여부(마이그레이션데이터)"/>
  357. <Column id="grdyn" type="STRING" size="256" sumtext="폼의 그리드여부"/>
  358. <Column id="grddeptyn" type="STRING" size="256" sumtext="폼의 그리드출력여부"/>
  359. <Column id="formrecdd" type="STRING" size="256" sumtext="기록일"/>
  360. <Column id="formrechm" type="STRING" size="256" sumtext="기록시간"/>
  361. </ColumnInfo>
  362. <Rows>
  363. <Row/>
  364. </Rows>
  365. </Dataset>
  366. </Objects>
  367. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  368. * System Name :
  369. * Job Name :
  370. * Creator :
  371. * Make Date : 2016-04-18
  372. * Description :
  373. *---------------------------------------------------------------------------------------
  374. * Modify Date Modifier Modify Description
  375. *---------------------------------------------------------------------------------------
  376. *
  377. *
  378. *---------------------------------------------------------------------------------------
  379. ****************************************************************************************/
  380. //=======================================================================================
  381. // Lib Include
  382. //---------------------------------------------------------------------------------------
  383. include "com_commonxp::comm_main.xjs";
  384. include "emr_prcpmngtxp::MMO001.xjs";
  385. //=======================================================================================
  386. // Global Form Variable
  387. //---------------------------------------------------------------------------------------
  388. //=======================================================================================
  389. // Function
  390. //---------------------------------------------------------------------------------------
  391. /****************************************************************************************
  392. * Function : lf_
  393. * Description :
  394. * Argument :
  395. * retrun type :
  396. * Creator :
  397. ****************************************************************************************/
  398. function lf_(){
  399. }
  400. /****************************************************************************************
  401. * Argument : 01.sSvcId : 서비스 ID
  402. * : 02.nErrorCode : 에러코드
  403. * : 03.sErrorMsg : 에러메시지
  404. * Description : 의 콜백함수
  405. ****************************************************************************************/
  406. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  407. if(nErrorCode < 0) return;
  408. }
  409. //=======================================================================================
  410. // Event
  411. //---------------------------------------------------------------------------------------
  412. /****************************************************************************************
  413. * Components : Form
  414. * Components ID : SPMMR05900
  415. * Event : oninit
  416. * Argument : 01.obj : Object Event has occurred
  417. * : 02.e : Event Object
  418. * Description : 화면 초기화
  419. ****************************************************************************************/
  420. function SPMMR05000_oninit(obj:Form, e:InitEventInfo)
  421. {
  422. frmf_initForm(obj);
  423. }
  424. /****************************************************************************************
  425. * Components : Form
  426. * Components ID : SPMMR05900
  427. * Event : onload
  428. * Argument : 01.obj : Object Event has occurred
  429. * : 02.e : Event Object
  430. * Description : 화면 초기화
  431. ****************************************************************************************/
  432. function SPMMR05000_onload(obj:Form, e:LoadEventInfo)
  433. {
  434. lf_Init_SPMMR05000();
  435. }
  436. /****************************************************************************************
  437. * Components : PopupMenu
  438. * Components ID : pmn_menu1, pmn_menu2
  439. * Event : onmenuclick
  440. * Argument : 01.obj : Object Event has occurred
  441. * : 02.e : Event Object
  442. * Description : 메뉴 실행
  443. ****************************************************************************************/
  444. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  445. {
  446. eval(e.id + "()");
  447. }
  448. /****************************************************************************************
  449. * Components : Grid
  450. * Components ID : grd_medireclist
  451. * Event : ondrag
  452. * Argument : 01.obj : Object Event has occurred
  453. * : 02.e : Event Object
  454. * Description : 전체설정 그리드 드레그 이벤트
  455. ****************************************************************************************/
  456. function grd_medireclist_ondrag(obj:Grid, e:GridDragEventInfo)
  457. {
  458. if(e.row < 0 || e.col < 0) return false;
  459. fAddColDragStart(obj, e);
  460. return true;
  461. }
  462. /****************************************************************************************
  463. * Components : Grid
  464. * Components ID : grd_medireclist
  465. * Event : ondragmove
  466. * Argument : 01.obj : Object Event has occurred
  467. * : 02.e : Event Object
  468. * Description : 전체설정 그리드 드레그 이벤트
  469. ****************************************************************************************/
  470. function grd_medireclist_ondragmove(obj:Grid, e:GridDragEventInfo)
  471. {
  472. fAddColDragOver(obj, e);
  473. }
  474. /****************************************************************************************
  475. * Components : Grid
  476. * Components ID : grd_medireclist
  477. * Event : onrbuttondown
  478. * Argument : 01.obj : Object Event has occurred
  479. * : 02.e : Event Object
  480. * Description : 전체설정 그리드 우클릭 이벤트
  481. ****************************************************************************************/
  482. function grd_medireclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  483. {
  484. if(e.row < 0) return;
  485. grdf_setSelectedCell(obj, e);
  486. pmn_menu1.trackPopup(e.screenX,e.screenY);
  487. }
  488. /****************************************************************************************
  489. * Components : Grid
  490. * Components ID : grd_medireclist_resize
  491. * Event : ondragmove
  492. * Argument : 01.obj : Object Event has occurred
  493. * : 02.e : Event Object
  494. * Description : 전체설정 그리드 드레그 이벤트
  495. ****************************************************************************************/
  496. function grd_medireclist_resize_ondragmove(obj:Grid, e:GridDragEventInfo)
  497. {
  498. fAddColDragOver(obj, e);
  499. }
  500. /****************************************************************************************
  501. * Components : Grid
  502. * Components ID : grd_medireclist_resize
  503. * Event : ondrop
  504. * Argument : 01.obj : Object Event has occurred
  505. * : 02.e : Event Object
  506. * Description : 전체설정 그리드 드레그 이벤트
  507. ****************************************************************************************/
  508. function grd_medireclist_resize_ondrop(obj:Grid, e:GridDragEventInfo)
  509. {
  510. if(e.row < 0 || e.col < 0) return;
  511. eval(getCurrentGridId(e.sourceobject.name)).style.cursor = "auto";
  512. fAddColDrop(obj, e);
  513. }
  514. /****************************************************************************************
  515. * Components : Grid
  516. * Components ID : grd_medireclist_resize
  517. * Event : onrbuttondown
  518. * Argument : 01.obj : Object Event has occurred
  519. * : 02.e : Event Object
  520. * Description : 전체설정 그리드 우클릭 이벤트
  521. ****************************************************************************************/
  522. function grd_medireclist_resize_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  523. {
  524. if(e.row < 0) return;
  525. grdf_setSelectedCell(obj, e);
  526. pmn_menu2.trackPopup(e.screenX,e.screenY);
  527. }
  528. /****************************************************************************************
  529. * Components : Button
  530. * Components ID : Button00
  531. * Event : onclick
  532. * Argument : 01.obj : Object Event has occurred
  533. * : 02.e : Event Object
  534. * Description : 전체설정 버튼 이벤트
  535. ****************************************************************************************/
  536. function Button00_onclick(obj:Button, e:ClickEventInfo)
  537. {
  538. fAppOrderOfCol();
  539. }
  540. /****************************************************************************************
  541. * Components : Button
  542. * Components ID : Button02
  543. * Event : onclick
  544. * Argument : 01.obj : Object Event has occurred
  545. * : 02.e : Event Object
  546. * Description : 저장 버튼 이벤트
  547. ****************************************************************************************/
  548. function Button02_onclick(obj:Button, e:ClickEventInfo)
  549. {
  550. fSaveOrderInfoCol();
  551. opener.frmf_setParameter("SMMMR00100_rtn_useyn", "Y");
  552. close();
  553. }
  554. /****************************************************************************************
  555. * Components : Button
  556. * Components ID : Button03
  557. * Event : onclick
  558. * Argument : 01.obj : Object Event has occurred
  559. * : 02.e : Event Object
  560. * Description : 취소 버튼 이벤트
  561. ****************************************************************************************/
  562. function Button03_onclick(obj:Button, e:ClickEventInfo)
  563. {
  564. opener.frmf_setParameter("SMMMR00100_rtn_useyn", "N");
  565. close();
  566. }
  567. /****************************************************************************************
  568. * Function : lf_Init_SPMMR05000
  569. * Description : 초기화
  570. * Argument :
  571. * retrun type :
  572. * Creator :
  573. ****************************************************************************************/
  574. function lf_Init_SPMMR05000(){
  575. var scrnid = opener.frmf_getParameter("SMMMR00100_param_scrnid");
  576. var grdid = opener.frmf_getParameter("SMMMR00100_param_grdid");
  577. //var caseid = opener.frmf_getParameter("SMMMR00100_param_caseid");
  578. ds_cond.setColumn(0, "scrnid", scrnid);
  579. ds_cond.setColumn(0, "grdid", grdid);
  580. //ds_cond.setColumn(0, "caseid", caseid);
  581. fReqOrderInfoOfCol(scrnid); // 사용자 설정 셋팅
  582. }
  583. /****************************************************************************************
  584. * Function : fSetOrderInfoOfCol
  585. * Description : 컬럼 순서 정보 설정한다.
  586. * Argument : 01.grid ID : 그리드ID
  587. : 02.refdata : 그리드 ref데이터 구분자 '^'
  588. : 03.sizedata : 그리드 size데이터 구분자 '^'
  589. * retrun type :
  590. * Creator :
  591. ****************************************************************************************/
  592. function fSetOrderInfoOfCol(grdID, refdata, sizedata, frozencol, bColor){
  593. var grdObj = eval(grdID);
  594. var refarr = refdata.split("^");
  595. var sizearr = sizedata.split("^");
  596. var frozencolIndex = grdObj.getBindCellIndex("body", frozencol);
  597. grdObj.enableevent = false;
  598. grdObj.enableredraw = false;
  599. try {
  600. for(var i = 0; i < refarr.length; i++) {
  601. var nCol = i;
  602. var colText = refarr[i];
  603. var col = grdObj.getBindCellIndex("body", colText);
  604. if(col == -1) continue;
  605. if(i != col) {
  606. var headText = grdObj.getCellProperty("head", col, "text");
  607. var bodyText = grdObj.getCellProperty("body", col, "text");
  608. grdObj.deleteContentsCol(col);
  609. nCol = grdObj.insertContentsCol(i);
  610. grdObj.setCellProperty("head", nCol, "text", headText);
  611. grdObj.setCellProperty("body", nCol, "text", bodyText);
  612. }
  613. grdObj.setFormatColProperty(nCol, "size", sizearr[i]);
  614. }
  615. } finally {
  616. grdObj.enableevent = true;
  617. grdObj.enableredraw = true;
  618. }
  619. if(!utlf_isNull(frozencol))
  620. eval(grdObj.binddataset).setColumn(0, frozencol, "☜");
  621. }
  622. /****************************************************************************************
  623. * Function : fReqOrderInfoOfCol
  624. * Description : 화면ID에 해당하는 컬럼순서를 조회한다.
  625. * Argument : 01.scrnid : 화면ID
  626. * retrun type :
  627. * Creator :
  628. ****************************************************************************************/
  629. function fReqOrderInfoOfCol(scrnid){
  630. ds_reqResize.clearData();
  631. ds_reqResize.addRow();
  632. ds_reqResize.setColumn(0, "scrnid", scrnid);
  633. //ds_reqResize.setColumn(0, "userid", sysf_getUserId());
  634. var oParam = {};
  635. oParam.id = "TRMMB01103";
  636. oParam.service = "prcpbaseapp.EnvInfoMngt";
  637. oParam.method = "reqGetUserScrnEnvEstb";
  638. oParam.inds = "req=" + "ds_reqResize";
  639. oParam.outds = "ds_gridseqResize=gridseq";
  640. oParam.async = false;
  641. oParam.callback = "cf_TRMMB01103_Resize";
  642. tranf_submit(oParam);
  643. }
  644. /****************************************************************************************
  645. * Argument : 01.sSvcId : 서비스 ID
  646. * : 02.nErrorCode : 에러코드
  647. * : 03.sErrorMsg : 에러메시지
  648. * Description : cf_TRMMB01103_Resize의 콜백함수
  649. ****************************************************************************************/
  650. function cf_TRMMB01103_Resize(sSvcId, nErrorCode, sErrorMsg) {
  651. if(nErrorCode < 0) return;
  652. var grdid = getCurrentGridId();
  653. var refdata = ds_gridseqResize.getColumn(0, "compsrefcnts");
  654. var sizedata = ds_gridseqResize.getColumn(0, "compssizecnts");
  655. var frozencol = ds_gridseqResize.getColumn(0, "frozencol");
  656. if( utlf_isNull(refdata) && utlf_isNull(sizedata) && utlf_isNull(frozencol) ){
  657. var grdNm = grdid + "_resize";
  658. var grdObj = eval(grdNm);
  659. var oDataSet = eval(grdObj.binddataset);//ds_Resize
  660. oDataSet.setColumn(0, "formrecextnnm", "☜");
  661. }
  662. if(!utlf_isNull(refdata) && !utlf_isNull(sizedata)){
  663. fSetOrderInfoOfCol(grdid + "_resize", refdata, sizedata, frozencol);
  664. }
  665. }
  666. /****************************************************************************************
  667. * Function : fAppOrderOfCol
  668. * Description : 사용자화면 설정 초기화
  669. * Argument :
  670. * retrun type :
  671. * Creator :
  672. ****************************************************************************************/
  673. function fAppOrderOfCol(){
  674. var grdid = getCurrentGridId();
  675. fGetOrderInfoOfCol(grdid); //현재 default로 설정된 grid의 column과 size를 구한다.
  676. var refdata = ds_listval.getColumn(0, "refdata");
  677. var sizedata = ds_listval.getColumn(0, "sizedata");
  678. var frozencol = ds_listval.getColumn(0, "frozencol");
  679. fSetOrderInfoOfCol(grdid +"_resize", refdata, sizedata, frozencol); //default로 설정된 grid의 column과 size를 다시 설정한다.
  680. }
  681. /****************************************************************************************
  682. * Function : getCurrentGridId
  683. * Description : 설정 그리드 ID
  684. * Argument : 01.sGirdid : Grid ID
  685. * retrun type : grid id
  686. * Creator :
  687. ****************************************************************************************/
  688. function getCurrentGridId(sGrdid) {
  689. //var caseid = ds_cond.getColumn(0, "caseid");
  690. var grdid = (utlf_isNull(sGrdid)) ? ds_cond.getColumn(0, "grdid") : sGrdid;
  691. return grdid;
  692. }
  693. /****************************************************************************************
  694. * Function : fGetOrderInfoOfCol
  695. * Description : 컬럼 순서 정보를 얻는다.
  696. * Argument : 01.grdID : Grid ID
  697. * retrun type : ds_listval dataset Info
  698. * Creator :
  699. ****************************************************************************************/
  700. function fGetOrderInfoOfCol(grdID){
  701. var grdObj = eval(grdID);
  702. var refdata = ""; // ref
  703. var sizedata = ""; // size
  704. var sFrozenCol = ""; // frozenCols
  705. var refval = "";
  706. var sizeval = "";
  707. var oDataSet = eval(grdObj.binddataset);
  708. var totcol = grdObj.getCellCount("Head");
  709. for(var i = 0; i < totcol; i++){
  710. refval = ((i == 0) && (grdObj.getCellProperty("body", i, "celltype") == "head")) ? "" : lf_getBindCellName(grdObj, i); // 순번 헤더는 ""으로 처리
  711. refdata += refval + "^";
  712. sizeval = grdObj.getRealColSize(i);
  713. sizedata += sizeval + "^";
  714. if(refval != "" && oDataSet.getColumn(0, refval) == "☜") {
  715. sFrozenCol = refval;
  716. }
  717. }
  718. refdata = refdata.substring(0 , refdata.length-1);
  719. sizedata = sizedata.substring(0, sizedata.length-1);
  720. ds_listval.clearData();
  721. ds_listval.addRow();
  722. ds_listval.setColumn(0, "refdata", refdata);
  723. ds_listval.setColumn(0, "sizedata", sizedata);
  724. ds_listval.setColumn(0, "frozencol", sFrozenCol);
  725. }
  726. /****************************************************************************************
  727. * Function : fAddColDragStart
  728. * Description : 컬럼 추가 드래그 시작
  729. * Argument : 01.obj : Object Event has occurred
  730. * : 02.e : Event Object
  731. * retrun type :
  732. * Creator :
  733. ****************************************************************************************/
  734. function fAddColDragStart(obj:Grid, e:GridDragEventInfo){
  735. var sDropData = ""; // Drag Drop 파라미터 데이터
  736. var sDragColNm = ""; // 컬럼명
  737. var sDragColSz = ""; // 컬럼 사이즈
  738. var nCurCol = 0; // 선택된 컬럼 번호
  739. var SelectedCells = grdf_getSelectedCols(obj);
  740. for(var i = 0; i < SelectedCells.length; i++){
  741. nCurCol = SelectedCells[i];
  742. sDragColNm = lf_getBindCellName(obj, nCurCol);
  743. sDragColSz = obj.getRealColSize(nCurCol);
  744. if(eval(sDragColSz) > 0) {
  745. if(utlf_isNull(sDropData)) {
  746. sDropData = sDragColNm + "^" + sDragColSz;
  747. } else {
  748. sDropData = sDropData + "|" + sDragColNm + "^" + sDragColSz;
  749. }
  750. }
  751. }
  752. e.userdata = sDropData;
  753. //e.dragimage = obj.saveToImageObject();
  754. }
  755. /****************************************************************************************
  756. * Function : fAddColDragOver
  757. * Description : 컬럼 추가 드래그 종료
  758. * Argument : 01.obj : Object Event has occurred
  759. * : 02.e : Event Object
  760. * retrun type :
  761. * Creator :
  762. ****************************************************************************************/
  763. function fAddColDragOver(obj:Grid, e:GridDragEventInfo){
  764. if(e.button == "lbutton")
  765. obj.style.cursor = "hand";
  766. else
  767. obj.style.cursor = "auto";
  768. }
  769. /****************************************************************************************
  770. * Function : fAddColOfGrd
  771. * Description : 그리드의 column 추가
  772. * Argument :
  773. * retrun type :
  774. * Creator :
  775. ****************************************************************************************/
  776. function fAddColOfGrd(){
  777. var sAddColNm = ""; // 컬럼명
  778. var sAddColSz = ""; // 컬럼 사이즈
  779. var nCurCol = 0; // 선택된 컬럼 번호
  780. var nSelCol = 0;
  781. var grdid = getCurrentGridId();
  782. var SelectedGrdObj = eval(grdid);
  783. var ResizeGrdObj = eval(grdid + "_resize");
  784. if(SelectedGrdObj.getCellPos() < 0) return;
  785. var SelectedCells = grdf_getSelectedCols(SelectedGrdObj);
  786. SelectedGrdObj.enableevent = false;
  787. SelectedGrdObj.enableredraw = false;
  788. ResizeGrdObj.enableevent = false;
  789. ResizeGrdObj.enableredraw = false;
  790. try {
  791. for(var i = 0; i < SelectedCells.length; i++) {
  792. var nCurCol = SelectedCells[i];
  793. var sAddColNm = lf_getBindCellName(SelectedGrdObj, nCurCol);
  794. var sAddColSz = SelectedGrdObj.getRealColSize(nCurCol);
  795. var nSelCol = ResizeGrdObj.getBindCellIndex("body", sAddColNm);
  796. var headText = ResizeGrdObj.getCellProperty("head", nSelCol, "text");
  797. var bodyText = ResizeGrdObj.getCellProperty("body", nSelCol, "text");
  798. ResizeGrdObj.deleteContentsCol(nSelCol);
  799. var nCol = ResizeGrdObj.insertContentsCol(nCurCol);
  800. ResizeGrdObj.setCellProperty("head", nCol, "text", headText);
  801. ResizeGrdObj.setCellProperty("body", nCol, "text", bodyText);
  802. ResizeGrdObj.setCellProperty("body", nCol, "background", "lightgreen");
  803. ResizeGrdObj.setCellProperty("body", nCol, "background2", "lightgreen");
  804. ResizeGrdObj.setFormatColProperty(nCol, "size", sAddColSz);
  805. }
  806. } finally {
  807. SelectedGrdObj.enableevent = true;
  808. SelectedGrdObj.enableredraw = true;
  809. ResizeGrdObj.enableevent = true;
  810. ResizeGrdObj.enableredraw = true;
  811. }
  812. }
  813. /****************************************************************************************
  814. * Function : fDelColOfGrd
  815. * Description : 그리드의 column 삭제
  816. * Argument :
  817. * retrun type :
  818. * Creator :
  819. ****************************************************************************************/
  820. function fDelColOfGrd(){
  821. var grdid = getCurrentGridId();
  822. var ResizeGrdObj = eval(grdid + "_resize");
  823. var selectedCells = grdf_getSelectedCols(ResizeGrdObj);
  824. for(var i = 0; i < selectedCells.length; i++){
  825. var nCurCol = selectedCells[i];
  826. ResizeGrdObj.setFormatColProperty(nCurCol, "size", 0);
  827. if(ResizeGrdObj.getCellProperty("body", nCurCol, "background") == "lightgreen")
  828. ResizeGrdObj.setCellProperty("body", nCurCol, "background", null);
  829. if(ResizeGrdObj.getCellProperty("body", nCurCol, "background2") == "lightgreen")
  830. ResizeGrdObj.setCellProperty("body", nCurCol, "background2", null);
  831. }
  832. }
  833. /****************************************************************************************
  834. * Function : fSetFrozenColOfGrd
  835. * Description : 그리드의 column 고정 설정
  836. * Argument :
  837. * retrun type :
  838. * Creator :
  839. ****************************************************************************************/
  840. function fSetFrozenColOfGrd(){
  841. var grdid = getCurrentGridId();
  842. var ResizeGrdObj = eval(grdid + "_resize");
  843. var SelectedCells = grdf_getSelectedCols(ResizeGrdObj);
  844. if (SelectedCells.length > 0) {
  845. var nCurCol = SelectedCells[SelectedCells.length - 1];
  846. var oDataSet = eval(ResizeGrdObj.binddataset);
  847. oDataSet.clearData();
  848. oDataSet.addRow();
  849. var frozenColNm = lf_getBindCellName(ResizeGrdObj, nCurCol);
  850. oDataSet.setColumn(0, frozenColNm, "☜");
  851. ds_gridseqResize.setColumn(0, "frozencol", frozenColNm);
  852. }
  853. }
  854. /****************************************************************************************
  855. * Function : fCancelFrozenColOfGrd
  856. * Description : 그리드의 column 고정 취소
  857. * Argument :
  858. * retrun type :
  859. * Creator :
  860. ****************************************************************************************/
  861. function fCancelFrozenColOfGrd(){
  862. var grdid = getCurrentGridId();
  863. var ResizeGrdObj = eval(grdid + "_resize");
  864. var oDataSet = eval(ResizeGrdObj.binddataset);
  865. oDataSet.clearData();
  866. oDataSet.addRow();
  867. }
  868. /****************************************************************************************
  869. * Function : fAddColDrop
  870. * Description : 컬럼 추가 드래그 종료
  871. * Argument : 01.obj : Object Event has occurred
  872. * : 02.e : Event Object
  873. * retrun type :
  874. * Creator :
  875. ****************************************************************************************/
  876. function fAddColDrop(obj:Grid, e:GridDragEventInfo){
  877. var sDragColNm = "";
  878. var sDragColSz = "";
  879. var nPreCol = 0; // 옮기기전 Col
  880. var nSelCol = 0; // 옮긴후 Col
  881. var grdid = getCurrentGridId();
  882. var ResizeGrdObj = eval(grdid + "_resize");
  883. if(getCurrentGridId(e.sourceobject.name) == grdid) {
  884. if(!utlf_isNull(e.userdata)) {
  885. nSelCol = e.col; // 초기값은 마우스로 선택된 컬럼
  886. var selColNm = lf_getBindCellName(ResizeGrdObj, nSelCol); // 현재 선택한 컬럼의 이름
  887. var saDropData = e.userdata.split("|");
  888. ResizeGrdObj.enableevent = false;
  889. ResizeGrdObj.enableredraw = false;
  890. try {
  891. var tempRefdata = ""; // ref
  892. var tempSizedata = ""; // size
  893. var refdata = "";
  894. var sizedata = "";
  895. var refval = "";
  896. var sizeval = "";
  897. var dropColNm = "";
  898. var dropColSz = "";
  899. // 1. 선택하여 드래그한 컬럼들 합침
  900. for(var i = 0; i < saDropData.length; i++) {
  901. var saDropCol = saDropData[i].split("^");
  902. dropColNm += saDropCol[0] + "^";
  903. dropColSz += saDropCol[1] + "^";
  904. }
  905. dropColNm = dropColNm.substring(0 , dropColNm.length-1);
  906. dropColSz = dropColSz.substring(0 , dropColSz.length-1);
  907. // 2. 사용자 설정 그리드의 전체 열에서 드래그한 컬럼들 제거(집어넣는 위치의 컬럼은 제외)
  908. var totcol = ResizeGrdObj.getCellCount("Head");
  909. for(var i = 0; i < totcol; i++){
  910. var colText = lf_getBindCellName(ResizeGrdObj, i);
  911. refval = ((i == 0) ? "" : colText); // 순번 헤더는 ""으로 처리
  912. sizeval = ResizeGrdObj.getRealColSize(i);
  913. var isExist = false;
  914. for(var j = 0; j < saDropData.length; j++) {
  915. var saDropCol = saDropData[j].split("^");
  916. if(colText == saDropCol[0] && selColNm != colText) { // 집어넣은 위치에 있는 컬럼은 제외
  917. isExist = true;
  918. saDropData.splice(j, 1);
  919. break;
  920. }
  921. }
  922. if(!isExist) {
  923. tempRefdata += refval + "^";
  924. tempSizedata += sizeval + "^";
  925. }
  926. }
  927. tempRefdata = tempRefdata.substring(0 , tempRefdata.length-1);
  928. tempSizedata = tempSizedata.substring(0, tempSizedata.length-1);
  929. // 3. 집어 넣은 위치의 컬럼에 드래그 한 컬럼들을 삽입
  930. var ttempRefdata = tempRefdata.split("^");
  931. var ttempSizedata = tempSizedata.split("^");
  932. for(var i = 0; i < ttempRefdata.length; i++) {
  933. refval = ttempRefdata[i];
  934. sizeval = ttempSizedata[i];
  935. if(selColNm == ttempRefdata[i]) {
  936. var dragColNm = dropColNm.split("^");
  937. var isExist = false;
  938. for(var j = 0; j < dragColNm.length; j++) {
  939. if(refval == dragColNm[j]) {
  940. isExist = true;
  941. break;
  942. }
  943. }
  944. if(isExist) {
  945. refval = dropColNm;
  946. sizeval = dropColSz;
  947. } else {
  948. refval = refval + "^" + dropColNm;
  949. sizeval = sizeval + "^" + dropColSz;
  950. }
  951. }
  952. refdata += refval + "^";
  953. sizedata += sizeval + "^";
  954. }
  955. refdata = refdata.substring(0 , refdata.length-1);
  956. sizedata = sizedata.substring(0, sizedata.length-1);
  957. // 4. 컬럼 재 설정
  958. fSetOrderInfoOfCol(grdid + "_resize", refdata, sizedata);
  959. // 5. 변경 된 부분 색상 칠하기
  960. var dropdata = e.userdata.split("|");
  961. for(var i = 0; i < dropdata.length; i++) {
  962. var saDropCol = dropdata[i].split("^");
  963. var dropCol = ResizeGrdObj.getBindCellIndex("body", saDropCol[0]);
  964. ResizeGrdObj.setCellProperty("body", dropCol, "background", "lightgreen");
  965. ResizeGrdObj.setCellProperty("body", dropCol, "background2", "lightgreen");
  966. }
  967. } finally {
  968. ResizeGrdObj.enableevent = true;
  969. ResizeGrdObj.enableredraw = true;
  970. }
  971. }
  972. }
  973. }
  974. /****************************************************************************************
  975. * Function : fSaveOrderInfoCol
  976. * Description : 그리드 ref, size저장
  977. * Argument :
  978. * retrun type :
  979. * Creator :
  980. ****************************************************************************************/
  981. function fSaveOrderInfoCol(){
  982. var grdid = getCurrentGridId();
  983. var scrnid = ds_cond.getColumn(0, "scrnid");
  984. fGetOrderInfoOfCol(grdid + "_resize");
  985. var refdata = ds_listval.getColumn(0, "refdata");
  986. var sizedata = ds_listval.getColumn(0, "sizedata");
  987. var sFrozenCol = ds_listval.getColumn(0, "frozencol");
  988. ds_savedata.clearData();
  989. ds_savedata.addRow();
  990. ds_savedata.setColumn(0, "compscnts", ""); //추후 삭제 예정
  991. ds_savedata.setColumn(0, "scrnid", scrnid);
  992. ds_savedata.setColumn(0, "compsrefcnts", refdata);
  993. ds_savedata.setColumn(0, "compssizecnts", sizedata);
  994. ds_savedata.setColumn(0, "frozencol", sFrozenCol);
  995. ds_savedata.setColumn(0, "compscd" , ds_gridseqResize.getColumn(0, "compscd"));
  996. var oParam = {};
  997. oParam.id = "TXMMB01102";
  998. oParam.service = "prcpbaseapp.EnvInfoMngt";
  999. oParam.method = "reqInsUserScrnEnvEstb";
  1000. oParam.inds = "req=" + "ds_savedata";
  1001. oParam.async = false;
  1002. tranf_submit(oParam);
  1003. }]]></Script>
  1004. </Form>
  1005. </FDL>