SMMQP02600_평가마스터관리.xfdl 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMQP02600" position="absolute 0 0 1060 765" titletext="마스터관리" oninit="SMMQP02600_oninit" onload="SMMQP02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="Drop/Exclusion 관리" position="absolute 0 0 180 24" id="cap_title" class="tit_1" anchor="default"/>
  8. <Div position="absolute 0 738 1055 765" id="grp_btn" anchor="left right bottom">
  9. <Layouts>
  10. <Layout>
  11. <Button position="absolute 882 3 938 25" id="btn_sel" class="btn4" visible="false" text="선택" anchor="top right" onclick="grp_btn_btn_sel_onclick"/>
  12. <Button position="absolute 940 3 996 25" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="grp_btn_btn_save_onclick"/>
  13. <Button position="absolute 998 3 1054 25" id="btn_close" class="btn4" text="닫기" anchor="top right" onclick="grp_btn_btn_close_onclick"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Div position="absolute 0 13 1055 741" id="grp_biz" scrollbars="autoboth" anchor="all">
  18. <Layouts>
  19. <Layout>
  20. <Div id="roundrect1" class="div_SA" position="absolute 0 35 1054 70" anchor="left top right"/>
  21. <Shape position="absolute 0 94 1055 100" linetype="horizontal" id="line7" class="line_10" anchor="left top right"/>
  22. <Shape position="absolute 0 722 1055 728" linetype="horizontal" id="line8" class="line_3" anchor="left right bottom"/>
  23. <Shape position="absolute 967 42 973 64" linetype="vertical" id="line27" class="line_4" anchor="top right"/>
  24. <Static text="Drop/Exclusion 관리" position="absolute 0 15 226 31" id="cap_smalltitle" class="tit_2" anchor="default"/>
  25. <Radio position="absolute 60 44 325 60" id="rdo_flag" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="left top" onitemchanged="grp_biz_rdo_flag_onitemchanged">
  26. <Dataset id="innerdataset">
  27. <ColumnInfo>
  28. <Column id="codecolumn"/>
  29. <Column id="datacolumn"/>
  30. </ColumnInfo>
  31. <Rows>
  32. <Row>
  33. <Col id="codecolumn">2</Col>
  34. <Col id="datacolumn">Drop사유</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">3</Col>
  38. <Col id="datacolumn">Exclusion사유</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Static text="구분 :" position="absolute 10 45 60 62" id="cap_flag" class="search_name" anchor="left top"/>
  44. <Button position="absolute 985 42 1041 64" id="btn_srch" class="btn1" text="조회" anchor="top right" onclick="grp_biz_btn_srch_onclick"/>
  45. <Button position="absolute 923 74 965 93" id="btn_add" class="btn2" text="추가" anchor="top right" onclick="grp_biz_btn_add_onclick"/>
  46. <Button position="absolute 968 74 1010 93" id="btn_del" class="btn2" text="삭제" anchor="top right" onclick="grp_biz_btn_del_onclick"/>
  47. <Button position="absolute 1013 74 1055 93" id="btn_excel" class="btn2" text="엑셀" anchor="top right" onclick="grp_biz_btn_excel_onclick"/>
  48. <Grid position="absolute 0 99 1055 724" id="grd_masterinfo" binddataset="ds_main_masterinfo_info" anchor="all" oncelldblclick="grp_biz_grd_masterinfo_oncelldblclick" onkeydown="grp_biz_grd_masterinfo_onkeydown" ondrag="grp_biz_grd_masterinfo_ondrag" ondragmove="grp_biz_grd_masterinfo_ondragmove" ondrop="grp_biz_grd_masterinfo_ondrop" autoenter="key" selecttype="multirow" cellclickbound="cell" cellsizingtype="col">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="20" band="left"/>
  53. <Column size="50"/>
  54. <Column size="50"/>
  55. <Column size="760"/>
  56. <Column size="100"/>
  57. <Column size="100"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="22"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1" text="선택"/>
  72. <Cell col="2" text="No,"/>
  73. <Cell col="3" text="내용"/>
  74. <Cell col="4" text="적용일자"/>
  75. <Cell col="5" text="종료일자"/>
  76. <Cell col="6" text="caption1"/>
  77. <Cell col="7" text="caption2"/>
  78. <Cell col="8" text="caption3"/>
  79. <Cell col="9" text="caption4"/>
  80. <Cell col="10" text="caption5"/>
  81. <Cell col="11" text="caption6"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell celltype="head"/>
  85. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' || check == '1' ? '1' : '0'"/>
  86. <Cell col="2" text="bind:irowno"/>
  87. <Cell col="3" displaytype="text" edittype="text" text="bind:valunm" editautoselect="true"/>
  88. <Cell col="4" displaytype="date" edittype="date" text="bind:fromdd" editautoselect="true" calendardisplaynulltype="none"/>
  89. <Cell col="5" displaytype="date" edittype="date" text="bind:todd" editautoselect="true" calendardisplaynulltype="none"/>
  90. <Cell col="6" text="bind:valuno"/>
  91. <Cell col="7" text="bind:histseq"/>
  92. <Cell col="8" text="bind:valuflag"/>
  93. <Cell col="9" text="bind:refseq"/>
  94. <Cell col="10" text="bind:check"/>
  95. <Cell col="11" text="bind:status"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Button position="absolute 837 74 863 93" id="btn_upviewmode" class="icon_top" text="" anchor="top right" onclick="grp_biz_btn_upviewmode_onclick" tooltiptext="위로" tooltiptype="hover"/>
  101. <Button position="absolute 865 74 891 93" id="btn_downviewmode" class="icon_bottom" text="" anchor="top right" onclick="grp_biz_btn_downviewmode_onclick" tooltiptext="아래로" tooltiptype="hover"/>
  102. <Button position="absolute 809 74 835 93" id="btn_upviewmode2" class="icon_top" text="" anchor="top right" onclick="grp_biz_btn_upviewmode2_onclick" tooltiptext="맨위로" tooltiptype="hover"/>
  103. <Button position="absolute 893 74 919 93" id="btn_downviewmode2" class="icon_bottom" text="" anchor="top right" onclick="grp_biz_btn_downviewmode2_onclick" tooltiptext="맨아래로" tooltiptype="hover"/>
  104. <Button position="absolute 448 0 490 19" id="btn_save2" class="btn2" enable="false" visible="false" text="저장" anchor="default" onclick="grp_biz_btn_save2_onclick"/>
  105. </Layout>
  106. </Layouts>
  107. </Div>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="valuflag" type="STRING" size="256" sumtext="검색기준조건구분(1:평가 2:Drop사유 3:Exclusion사유)"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row/>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_main_masterinfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_masterinfo_info_oncolumnchanged">
  120. <ColumnInfo>
  121. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  122. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  123. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  124. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  125. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  126. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  127. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  128. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  129. <Column id="check" type="STRING" size="256"/>
  130. <Column id="status" type="STRING" size="256"/>
  131. </ColumnInfo>
  132. </Dataset>
  133. <Dataset id="ds_send_savedata_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  136. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  137. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  138. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  139. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  140. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  141. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  142. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  143. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  144. </ColumnInfo>
  145. </Dataset>
  146. <Dataset id="ds_send_savedata_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  149. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  150. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  151. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  152. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  153. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  154. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  155. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  156. <Column id="check" type="STRING" size="256" sumtext="check여부"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="valuflag" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row/>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_temp_getdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="grdfocus" type="STRING" size="256"/>
  170. <Column id="poolsize" type="STRING" size="256"/>
  171. <Column id="endVal" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row/>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_temp_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  180. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  181. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  182. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  183. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  184. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  185. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  186. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  187. <Column id="check" type="STRING" size="256"/>
  188. <Column id="status" type="STRING" size="256"/>
  189. </ColumnInfo>
  190. <Rows>
  191. <Row/>
  192. </Rows>
  193. </Dataset>
  194. <Dataset id="ds_temp_getdata_pool" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  195. <ColumnInfo>
  196. <Column id="cd" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row/>
  200. </Rows>
  201. </Dataset>
  202. <Dataset id="ds_srcdata_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_masterinfo_info_oncolumnchanged">
  203. <ColumnInfo>
  204. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  205. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  206. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  207. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  208. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  209. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  210. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  211. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  212. <Column id="check" type="STRING" size="256"/>
  213. <Column id="status" type="STRING" size="256"/>
  214. </ColumnInfo>
  215. <Rows>
  216. <Row/>
  217. </Rows>
  218. </Dataset>
  219. <Dataset id="ds_trgdata_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_masterinfo_info_oncolumnchanged">
  220. <ColumnInfo>
  221. <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
  222. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  223. <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
  224. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  225. <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
  226. <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
  227. <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
  228. <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
  229. <Column id="check" type="STRING" size="256"/>
  230. <Column id="status" type="STRING" size="256"/>
  231. </ColumnInfo>
  232. <Rows>
  233. <Row/>
  234. </Rows>
  235. </Dataset>
  236. </Objects>
  237. <Bind>
  238. <BindItem id="item0" compid="grp_biz.rdo_flag" propid="value" datasetid="ds_main_condition" columnid="valuflag"/>
  239. </Bind>
  240. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  241. * System Name : 경대 의료정보시스템
  242. * Job Name : emr_cpgxp -> SMMQP02600
  243. * Creator : yjh
  244. * Make Date : 2017-09-27
  245. * Description :
  246. *---------------------------------------------------------------------------------------
  247. * Modify Date Modifier Modify Description
  248. *---------------------------------------------------------------------------------------
  249. * 2017-09-27 yjh TF->XP
  250. *
  251. *---------------------------------------------------------------------------------------
  252. ****************************************************************************************/
  253. //=======================================================================================
  254. // Lib Include
  255. //---------------------------------------------------------------------------------------
  256. include "com_commonxp::comm_main.xjs";
  257. //=======================================================================================
  258. // Global Form Variable
  259. //---------------------------------------------------------------------------------------
  260. //=======================================================================================
  261. // Function
  262. //---------------------------------------------------------------------------------------
  263. var srchexclsYN = "";
  264. var srchdropYN = "";
  265. var srcNode = "/root/main/masterinfo/info"; //["+iRow+"]
  266. // 중복 체크를 한 후 ER 로 데이터를 전달한다.
  267. function fSetOpenerValue( iRow ) {
  268. var bool = "false";
  269. var iCnt = parseInt(ds_temp_getdata.getColumn(0, "poolsize"));
  270. var selCd = ds_main_masterinfo_info.getColumn(iRow, "valuno");
  271. if(iCnt != 0){
  272. for(var i=0; i<iCnt; i++) {
  273. if(selCd == ds_temp_getdata_pool.getColumn(i, "cd")){ //yjh : 테스트 필요
  274. bool = "ture";
  275. return;
  276. }
  277. }
  278. }
  279. if(bool == "false"){
  280. var sRow = ds_temp_getdata.getColumn(0, "grdfocus");
  281. if(utlf_isNull(sRow)){
  282. sRow = "0";
  283. ds_temp_getdata.setColumn(0, "endVal" , "E");
  284. }
  285. sRow = parseInt(sRow);
  286. var selCd = ds_main_masterinfo_info.getColumn(iRow, "valuno");
  287. var selSeq = ds_main_masterinfo_info.getColumn(iRow, "histseq");
  288. var selNM = ds_main_masterinfo_info.getColumn(iRow, "valunm");
  289. if(ds_main_condition.getColumn(0, "valuflag") == "3") { //ds_main_exclusion_exclist
  290. opener.ds_main_exclusion_exclist.addRow();
  291. dsf_makeValue(opener.ds_main_exclusion_exclist, "valuno", "string", selCd, sRow);
  292. dsf_makeValue(opener.ds_main_exclusion_exclist, "histseq", "string", selSeq, sRow);
  293. dsf_makeValue(opener.ds_main_exclusion_exclist, "valunm", "string", selNM, sRow);
  294. dsf_makeValue(opener.ds_main_exclusion_exclist, "m", "string", "i", sRow);
  295. dsf_makeValue(opener.ds_main_exclusion_exclist, "flag", "string", "E00", sRow);
  296. } else if(ds_main_condition.getColumn(0, "valuflag") == "2") {
  297. opener.ds_main_dropinfo_droplist.addRow();
  298. dsf_makeValue(opener.ds_main_dropinfo_droplist, "valuno", "string", selCd, sRow);
  299. dsf_makeValue(opener.ds_main_dropinfo_droplist, "histseq", "string", selSeq, sRow);
  300. dsf_makeValue(opener.ds_main_dropinfo_droplist, "valunm", "string", selNM, sRow);
  301. dsf_makeValue(opener.ds_main_dropinfo_droplist, "m", "string", "i", sRow);
  302. dsf_makeValue(opener.ds_main_dropinfo_droplist, "flag", "string", "D00", sRow);
  303. }
  304. //opener.grd_diag.rowStatus(sRow)= 1;
  305. //opener.grd_diag.rebuild();
  306. ds_temp_getdata.setColumn(0, "grdfocus", sRow + 1);
  307. dsf_makeValue(ds_temp_getdata_pool, "cd", "string", selCd, iCnt);
  308. iCnt = parseInt(iCnt)+1;
  309. ds_temp_getdata.setColumn(0, "poolsize", iCnt);
  310. }
  311. }
  312. /*=====================================================================================
  313. @desc : drop/평가/exclusion 추가
  314. ======================================================================================*/
  315. function fAddCnts(){
  316. ds_main_masterinfo_info.addRow();
  317. var curCnt = ds_main_masterinfo_info.rowcount-1;
  318. ds_main_masterinfo_info.setColumn(curCnt, "fromdd", utlf_getCurrentDate() );
  319. ds_main_masterinfo_info.setColumn(curCnt, "todd", '99991231' );
  320. ds_main_masterinfo_info.setColumn(curCnt, "valuflag", ds_main_condition.getColumn(0, "valuflag") );
  321. ds_main_masterinfo_info.setColumn(curCnt, "status", "i" );
  322. //opener check 추가 by 손주연 2008-01-04
  323. ds_main_masterinfo_info.rowposition = curCnt;
  324. grp_biz.grd_masterinfo.setCellPos(3);
  325. grp_biz.grd_masterinfo.setFocus();
  326. //model.refresh();
  327. //손주연 수정 종료
  328. }
  329. /*=====================================================================================
  330. @desc : 행 옮기기
  331. ======================================================================================*/
  332. function fMoveRow( flag, no ){
  333. if( ds_main_masterinfo_info.rowposition < 0 ){
  334. sysf_messageBox("이동할 행을", "C002");
  335. return;
  336. }
  337. if(grp_biz.grd_masterinfo.selectcount > 1 || grp_biz.grd_masterinfo.selectstartrow[0] != grp_biz.grd_masterinfo.selectendrow[0]){
  338. sysf_messageBox("여러 행을 이동", "E001");
  339. return;
  340. }
  341. var iRow = ds_main_masterinfo_info.rowposition;
  342. var trgRow = -1;
  343. ds_temp_info.copyRow(0, ds_main_masterinfo_info, iRow);
  344. if( flag == "T" ){ //"위로"
  345. if( iRow == 0 ){
  346. sysf_messageBox("이동", "E001");
  347. return;
  348. }
  349. if(no == 1){
  350. ds_main_masterinfo_info.copyRow(iRow, ds_main_masterinfo_info, iRow-1);
  351. ds_main_masterinfo_info.copyRow(iRow-1, ds_temp_info, 0);
  352. ds_main_masterinfo_info.setColumn(iRow-1, "irowno", iRow-1);
  353. ds_main_masterinfo_info.setColumn(iRow-1, "refseq", iRow-1);
  354. if( ds_main_masterinfo_info.getColumn(iRow-1, "status") != "i" ){
  355. ds_main_masterinfo_info.setColumn(iRow-1, "status", "u");
  356. }
  357. ds_main_masterinfo_info.setColumn(iRow, "irowno", iRow);
  358. ds_main_masterinfo_info.setColumn(iRow, "refseq", iRow);
  359. if( ds_main_masterinfo_info.getColumn(iRow, "status") != "i" ){
  360. ds_main_masterinfo_info.setColumn(iRow, "status", "u");
  361. }
  362. ds_main_masterinfo_info.rowposition = iRow-1;
  363. grp_biz.grd_masterinfo.setCellPos(1);
  364. grp_biz.grd_masterinfo.setFocus();
  365. }else{
  366. //trgRow = 1;
  367. for( var i=0; i<=(iRow-1); i++){
  368. ds_main_masterinfo_info.setColumn(i, "irowno", i+2);
  369. ds_main_masterinfo_info.setColumn(i, "refseq", i+2);
  370. if( ds_main_masterinfo_info.getColumn(i, "status") != "i" ){
  371. ds_main_masterinfo_info.setColumn(i, "status", "u");
  372. }
  373. }
  374. ds_main_masterinfo_info.deleteRow(iRow);
  375. var pNode = ds_main_masterinfo_info;
  376. var destNode = ds_main_masterinfo_info;//instance1.selectSingleNode(srcNode + "[" + 1 + "]");
  377. var copyNode = ds_temp_info;//instance1.selectSingleNode("/root/temp/info");
  378. ds_main_masterinfo_info.insertRow(0);
  379. ds_main_masterinfo_info.copyRow(0, ds_temp_info, 0);
  380. ds_main_masterinfo_info.setColumn(0, "irowno", "1");
  381. ds_main_masterinfo_info.setColumn(0, "refseq", "1");
  382. if( ds_main_masterinfo_info.getColumn(0, "status") != "i" ){
  383. ds_main_masterinfo_info.setColumn(0, "status", "u");
  384. }
  385. ds_main_masterinfo_info.rowposition = iRow-1;
  386. grp_biz.grd_masterinfo.setCellPos(1);
  387. grp_biz.grd_masterinfo.setFocus();
  388. }
  389. }else if( flag == "B"){ //"아래로"
  390. if( iRow == ds_main_masterinfo_info.rowcount-1 ){
  391. sysf_messageBox("이동", "E001");
  392. return;
  393. }
  394. if(no == 1){
  395. ds_main_masterinfo_info.copyRow(iRow, ds_main_masterinfo_info, iRow+1);
  396. ds_main_masterinfo_info.copyRow(iRow+1, ds_temp_info, 0);
  397. ds_main_masterinfo_info.setColumn(iRow, "irowno", iRow+1);
  398. ds_main_masterinfo_info.setColumn(iRow, "refseq", iRow+1);
  399. if( ds_main_masterinfo_info.getColumn(iRow, "status") != "i" ){
  400. ds_main_masterinfo_info.setColumn(iRow, "status", "u");
  401. }
  402. ds_main_masterinfo_info.setColumn(iRow+1, "irowno", iRow+2);
  403. ds_main_masterinfo_info.setColumn(iRow+1, "refseq", iRow+2);
  404. if( ds_main_masterinfo_info.getColumn(iRow+1, "status") != "i" ){
  405. ds_main_masterinfo_info.setColumn(iRow+1, "status", "u");
  406. }
  407. ds_main_masterinfo_info.rowposition = iRow+1;
  408. grp_biz.grd_masterinfo.setCellPos(1);
  409. grp_biz.grd_masterinfo.setFocus();
  410. }else{
  411. trgRow = ds_main_masterinfo_info.rowcount-1;
  412. for( var i=(iRow+1); i<=trgRow; i++){
  413. ds_main_masterinfo_info.setColumn(i, "irowno", i);
  414. ds_main_masterinfo_info.setColumn(i, "refseq", i);
  415. if( ds_main_masterinfo_info.getColumn(i, "status") != "i" ){
  416. ds_main_masterinfo_info.setColumn(i, "status", "u");
  417. }
  418. }
  419. var pNode = ds_main_masterinfo_info;
  420. var destNode = ds_main_masterinfo_info;//instance1.selectSingleNode(srcNode + "[" + (trgRow) + "]");
  421. var copyNode = ds_temp_info;//instance1.selectSingleNode("/root/temp/info");
  422. ds_main_masterinfo_info.insertRow(trgRow+1);
  423. ds_main_masterinfo_info.copyRow(trgRow+1, ds_temp_info, 0);
  424. ds_main_masterinfo_info.deleteRow(iRow);
  425. ds_main_masterinfo_info.setColumn(trgRow, "irowno", trgRow);
  426. ds_main_masterinfo_info.setColumn(trgRow, "refseq", trgRow);
  427. if( ds_main_masterinfo_info.getColumn(trgRow, "status") != "i" ){
  428. ds_main_masterinfo_info.setColumn(trgRow, "status", "u");
  429. }
  430. ds_main_masterinfo_info.rowposition = trgRow;
  431. grp_biz.grd_masterinfo.setCellPos(1);
  432. grp_biz.grd_masterinfo.setFocus();
  433. }
  434. }
  435. fSettingStatus();
  436. //btn_save2.disabled = false;
  437. }
  438. /*=====================================================================================
  439. @desc : rowstatus 재설정
  440. ======================================================================================*/
  441. function fSettingStatus(){
  442. ds_main_masterinfo_info.enableevent = false;
  443. ds_main_masterinfo_info.updatecontrol = false;
  444. for( var i=0; i<ds_main_masterinfo_info.rowcount; i++ ){
  445. var iStatus = ds_main_masterinfo_info.getColumn(i, "status");
  446. if( iStatus == "i" ){
  447. ds_main_masterinfo_info.setRowType(i, 2);
  448. }else if( iStatus == "u" ){
  449. ds_main_masterinfo_info.setRowType(i, 4);
  450. }else if( iStatus == "d" ){
  451. ds_main_masterinfo_info.setRowType(i, 8);
  452. }
  453. }
  454. ds_main_masterinfo_info.updatecontrol = true;
  455. ds_main_masterinfo_info.enableevent = true;
  456. }
  457. //=======================================================================================
  458. // Event
  459. //---------------------------------------------------------------------------------------
  460. /****************************************************************************************
  461. * Components : Form
  462. * Components ID : SMMQP02600
  463. * Event : oninit
  464. * Argument : 01.obj : Object Event has occurred
  465. * : 02.e : Event Object
  466. * Description : 화면 처음 초기화시
  467. ****************************************************************************************/
  468. function SMMQP02600_oninit(obj:Form, e:InitEventInfo)
  469. {
  470. frmf_initForm(obj); //폼 초기화
  471. }
  472. /****************************************************************************************
  473. * Components : Form
  474. * Components ID : SMMQP02600
  475. * Event : onload
  476. * Argument : 01.obj : Object Event has occurred
  477. * : 02.e : Event Object
  478. * Description : 화면 로딩 완료시
  479. ****************************************************************************************/
  480. function SMMQP02600_onload(obj:Form, e:LoadEventInfo)
  481. {
  482. grdf_setRowTypeIcon(grp_biz.grd_masterinfo, 0);
  483. grdf_setGridSort(grp_biz.grd_masterinfo);
  484. ds_main_condition.setColumn(0, "valuflag", "1");
  485. ds_temp_getdata.setColumn(0, "poolsize", "0");
  486. if( !utlf_isNull(frmf_getOpenerUID()) ){
  487. srchexclsYN = opener.frmf_getParameter("srchexcls");
  488. srchdropYN = opener.frmf_getParameter("srchdrop");
  489. if( srchexclsYN == "Y" ){
  490. ds_main_condition.setColumn(0, "valuflag", "3");
  491. var sRow = opener.frmf_getParameter("lastrowcnt");
  492. ds_temp_getdata.setColumn(0, "grdfocus",sRow );
  493. }
  494. if( srchdropYN == "Y" ){
  495. ds_main_condition.setColumn(0, "valuflag", "2");
  496. var sRow = opener.frmf_getParameter("lastrowcnt");
  497. ds_temp_getdata.setColumn(0, "grdfocus",sRow );
  498. }
  499. }
  500. ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
  501. var oParam = {};
  502. oParam.id = "TRMQP02601";
  503. oParam.service = "prcpbaseapp.CpMngt";
  504. oParam.method = "reqGetDropValuMaster";
  505. oParam.inds = "req=ds_send_reqdata";
  506. oParam.outds = "ds_main_masterinfo_info=info";
  507. oParam.async = false;
  508. //oParam.callback = "cf_TRMQP02601";
  509. tranf_submit(oParam);
  510. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
  511. ds_main_masterinfo_info.addColumn("refseq", "string");
  512. }
  513. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
  514. ds_main_masterinfo_info.addColumn("status", "string");
  515. }
  516. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
  517. ds_main_masterinfo_info.addColumn("check", "string");
  518. }
  519. ds_main_masterinfo_info.enableevent = false;
  520. ds_main_masterinfo_info.updatecontrol = false;
  521. dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
  522. ds_main_masterinfo_info.updatecontrol = true;
  523. ds_main_masterinfo_info.enableevent = true;
  524. ds_main_masterinfo_info.rowposition = -1;
  525. if( srchexclsYN == "Y" ){
  526. cap_title.text = "Exclusion 사유 조회";
  527. grp_biz.cap_smalltitle.visible = false;
  528. grp_btn.btn_sel.visible = true;
  529. grp_btn.btn_save.visible = false;
  530. grp_btn.btn_sel.position.x = 940;
  531. grp_biz.grd_masterinfo.setRealColSize(1, 50, false);
  532. grp_biz.grd_masterinfo.setRealColSize(2, 0, false);
  533. grp_biz.grd_masterinfo.setRealColSize(3, 400, false);
  534. grp_biz.grd_masterinfo.setRealColSize(4, 0, false);
  535. grp_biz.grd_masterinfo.setRealColSize(5, 0, false);
  536. grp_biz.grd_masterinfo.setCellProperty("Body", 3, "edittype", "none");
  537. grp_biz.grd_masterinfo.setCellProperty("Body", 4, "edittype", "none");
  538. grp_biz.grd_masterinfo.setCellProperty("Body", 5, "edittype", "none");
  539. grp_biz.grd_masterinfo.position.top = 15;
  540. grp_biz.btn_upviewmode.visible = false;
  541. grp_biz.btn_upviewmode2.visible = false;
  542. grp_biz.btn_downviewmode.visible = false;
  543. grp_biz.btn_downviewmode2.visible = false;
  544. this.parent.position.width = 516;
  545. this.parent.position.height = 537;
  546. }
  547. //drop cp별 관리를 위한 화면 처리로직 추가. 2008.06.20 LWS
  548. else if( srchdropYN == "Y" ){
  549. cap_title.text = "Drop 사유 조회";
  550. grp_biz.cap_smalltitle.visible = false;
  551. grp_btn.btn_sel.visible = true;
  552. grp_btn.btn_save.visible = false;
  553. grp_btn.btn_sel.position.x = 940;
  554. grp_biz.grd_masterinfo.setRealColSize(1, 50, false);
  555. grp_biz.grd_masterinfo.setRealColSize(2, 0, false);
  556. grp_biz.grd_masterinfo.setRealColSize(3, 400, false);
  557. grp_biz.grd_masterinfo.setRealColSize(4, 0, false);
  558. grp_biz.grd_masterinfo.setRealColSize(5, 0, false);
  559. grp_biz.grd_masterinfo.setCellProperty("Body", 3, "edittype", "none");
  560. grp_biz.grd_masterinfo.setCellProperty("Body", 4, "edittype", "none");
  561. grp_biz.grd_masterinfo.setCellProperty("Body", 5, "edittype", "none");
  562. grp_biz.grd_masterinfo.position.top = 15;
  563. grp_biz.btn_upviewmode.visible = false;
  564. grp_biz.btn_upviewmode2.visible = false;
  565. grp_biz.btn_downviewmode.visible = false;
  566. grp_biz.btn_downviewmode2.visible = false;
  567. this.parent.position.width = 516;
  568. this.parent.position.height = 537;
  569. }
  570. else{
  571. var gnrObj = frmf_findPopup("SMMQP00600");
  572. if( !utlf_isNull(gnrObj) ){
  573. var openmasterYN = opener.frmf_getParameter("openmaster");
  574. if( utlf_isNull(openmasterYN) ){
  575. grp_btn.btn_save.position.left = 998;
  576. grp_btn.btn_save.position.width = 56;
  577. grp_btn.btn_close.visible = true;
  578. }
  579. grp_biz.grd_masterinfo.setRealColSize(1, 0);
  580. }
  581. }
  582. }
  583. /****************************************************************************************
  584. * Components : Button
  585. * Components ID : btn_sel
  586. * Event : onclick
  587. * Argument : 01.obj : Object Event has occurred
  588. * : 02.e : Event Object
  589. * Description : 선택버튼 클릭시
  590. ****************************************************************************************/
  591. function grp_btn_btn_sel_onclick(obj:Button, e:ClickEventInfo)
  592. {
  593. var rowCnt = ds_main_masterinfo_info.rowcount;
  594. for(var i=0; i<rowCnt; i++){
  595. var bool = ds_main_masterinfo_info.getColumn(i, "check");
  596. if(bool == "true"){
  597. fSetOpenerValue( i );
  598. }
  599. if(ds_temp_getdata.getColumn(0, "endVal") == "E")
  600. this.close();
  601. }
  602. }
  603. /****************************************************************************************
  604. * Components : Button
  605. * Components ID : btn_save
  606. * Event : onclick
  607. * Argument : 01.obj : Object Event has occurred
  608. * : 02.e : Event Object
  609. * Description : 저장버튼 클릭시
  610. ****************************************************************************************/
  611. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
  612. {
  613. ds_send_savedata_list.clearData();
  614. ds_send_savedata_info.clearData();
  615. // model.makeNode("/root/send/savedata/info");
  616. // var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;//1부터 시작
  617. // for( var idx = 1 ; idx <= curCnt ; idx++ ){
  618. // model.setValue("/root/main/masterinfo/info["+ idx + "]/refseq", idx);
  619. // }
  620. // model.copyNode("/root/send/savedata", "/root/main/masterinfo");
  621. ds_main_masterinfo_info.enableevent = false;
  622. ds_main_masterinfo_info.updatecontrol = false;
  623. grdf_setStatusColumn(ds_main_masterinfo_info, "m");
  624. ds_main_masterinfo_info.updatecontrol = true;
  625. ds_main_masterinfo_info.enableevent = true;
  626. ds_send_savedata_list.assign(grdf_getGridUpdateData(grp_biz.grd_masterinfo, "all"));
  627. var oParam = {};
  628. oParam.id = "TXMQP02601";
  629. oParam.service = "prcpbaseapp.CpMngt";
  630. oParam.method = "reqExeDropValuMaster";
  631. oParam.inds = "list=ds_send_savedata_list:A info=ds_send_savedata_info";
  632. oParam.outds = "ds_main_masterinfo_info=info";
  633. oParam.async = false;
  634. //oParam.callback = "cf_TXMQP02601";
  635. tranf_submit(oParam);
  636. }
  637. /****************************************************************************************
  638. * Components : Button
  639. * Components ID : btn_close
  640. * Event : onclick
  641. * Argument : 01.obj : Object Event has occurred
  642. * : 02.e : Event Object
  643. * Description : 닫기버튼 클릭시
  644. ****************************************************************************************/
  645. function grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
  646. {
  647. this.close();
  648. }
  649. /****************************************************************************************
  650. * Components : Radio
  651. * Components ID : rdo_flag
  652. * Event : onitemchanged
  653. * Argument : 01.obj : Object Event has occurred
  654. * : 02.e : Event Object
  655. * Description : 라디오 값 변경시
  656. ****************************************************************************************/
  657. function grp_biz_rdo_flag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  658. {
  659. ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
  660. var oParam = {};
  661. oParam.id = "TRMQP02601";
  662. oParam.service = "prcpbaseapp.CpMngt";
  663. oParam.method = "reqGetDropValuMaster";
  664. oParam.inds = "req=ds_send_reqdata";
  665. oParam.outds = "ds_main_masterinfo_info=info";
  666. oParam.async = false;
  667. //oParam.callback = "cf_TRMQP02601";
  668. tranf_submit(oParam);
  669. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
  670. ds_main_masterinfo_info.addColumn("refseq", "string");
  671. }
  672. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
  673. ds_main_masterinfo_info.addColumn("status", "string");
  674. }
  675. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
  676. ds_main_masterinfo_info.addColumn("check", "string");
  677. }
  678. ds_main_masterinfo_info.enableevent = false;
  679. ds_main_masterinfo_info.updatecontrol = false;
  680. dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
  681. ds_main_masterinfo_info.updatecontrol = true;
  682. ds_main_masterinfo_info.enableevent = true;
  683. ds_main_masterinfo_info.rowposition = -1;
  684. }
  685. /****************************************************************************************
  686. * Components : Button
  687. * Components ID : btn_srch
  688. * Event : onclick
  689. * Argument : 01.obj : Object Event has occurred
  690. * : 02.e : Event Object
  691. * Description : 조회버튼 클릭시
  692. ****************************************************************************************/
  693. function grp_biz_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  694. {
  695. ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
  696. var oParam = {};
  697. oParam.id = "TRMQP02601";
  698. oParam.service = "prcpbaseapp.CpMngt";
  699. oParam.method = "reqGetDropValuMaster";
  700. oParam.inds = "req=ds_send_reqdata";
  701. oParam.outds = "ds_main_masterinfo_info=info";
  702. oParam.async = false;
  703. //oParam.callback = "cf_TRMQP02601";
  704. tranf_submit(oParam);
  705. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
  706. ds_main_masterinfo_info.addColumn("refseq", "string");
  707. }
  708. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
  709. ds_main_masterinfo_info.addColumn("status", "string");
  710. }
  711. if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
  712. ds_main_masterinfo_info.addColumn("check", "string");
  713. }
  714. ds_main_masterinfo_info.enableevent = false;
  715. ds_main_masterinfo_info.updatecontrol = false;
  716. dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
  717. ds_main_masterinfo_info.updatecontrol = true;
  718. ds_main_masterinfo_info.enableevent = true;
  719. ds_main_masterinfo_info.rowposition = -1;
  720. }
  721. /****************************************************************************************
  722. * Components : Button
  723. * Components ID : btn_add
  724. * Event : onclick
  725. * Argument : 01.obj : Object Event has occurred
  726. * : 02.e : Event Object
  727. * Description : 추가버튼 클릭시
  728. ****************************************************************************************/
  729. function grp_biz_btn_add_onclick(obj:Button, e:ClickEventInfo)
  730. {
  731. fAddCnts();
  732. }
  733. /****************************************************************************************
  734. * Components : Button
  735. * Components ID : btn_del
  736. * Event : onclick
  737. * Argument : 01.obj : Object Event has occurred
  738. * : 02.e : Event Object
  739. * Description : 삭제버튼 클릭시
  740. ****************************************************************************************/
  741. function grp_biz_btn_del_onclick(obj:Button, e:ClickEventInfo)
  742. {
  743. ds_main_masterinfo_info.enableevent = false;
  744. ds_main_masterinfo_info.updatecontrol = false;
  745. for( var i=grp_biz.grd_masterinfo.selectcount-1 ; i>=0 ; i-- ){
  746. for( var j=grp_biz.grd_masterinfo.selectendrow[i] ; j>=grp_biz.grd_masterinfo.selectstartrow[i] ; j-- ){
  747. var statusNode = ds_main_masterinfo_info.getColumn(j, "status");
  748. var status = statusNode;
  749. if( status == "i" ){
  750. //grd_masterinfo.deleteRow(iRow); => 바로 삭제 시, selectedRow(i) 잘못 잡힘
  751. ds_main_masterinfo_info.deleteRow(j);
  752. }else if(status == "d" ){
  753. ds_main_masterinfo_info.setColumn(j, "status", "-");
  754. ds_main_masterinfo_info.setRowType(j, 1);
  755. }else{
  756. ds_main_masterinfo_info.setColumn(j, "status", "d");
  757. ds_main_masterinfo_info.setColumn(j, "todd", utlf_getCurrentDate());
  758. ds_main_masterinfo_info.setRowType(j, 8);
  759. }
  760. }
  761. }
  762. ds_main_masterinfo_info.updatecontrol = true;
  763. ds_main_masterinfo_info.enableevent = true;
  764. fSettingStatus();
  765. }
  766. /****************************************************************************************
  767. * Components : Button
  768. * Components ID : btn_excel
  769. * Event : onclick
  770. * Argument : 01.obj : Object Event has occurred
  771. * : 02.e : Event Object
  772. * Description : 엑셀버튼 클릭시
  773. ****************************************************************************************/
  774. function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  775. {
  776. //if( grp_biz.grd_masterinfo.rowcount > 0 ){
  777. grdf_exportExcel(grp_biz.grd_masterinfo, "save", "sheet1", false, "", "user", false);
  778. // } else {
  779. // sysf_messageBox("조회된 데이터가 ", "I004");
  780. // return;
  781. // }
  782. }
  783. /****************************************************************************************
  784. * Components : Grid
  785. * Components ID : grd_masterinfo
  786. * Event : oncelldblclick
  787. * Argument : 01.obj : Object Event has occurred
  788. * : 02.e : Event Object
  789. * Description : 그리드 셀 더블클릭시
  790. ****************************************************************************************/
  791. function grp_biz_grd_masterinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  792. {
  793. //opener check 추가 by 손주연 2008-01-04
  794. if( !frmf_checkOpener() ) {
  795. if( ds_main_masterinfo_info.rowposition < 0) return ;
  796. grp_biz.grd_masterinfo.showEditor(true);
  797. return ;
  798. }
  799. //손주연 수정 종료
  800. var srchexclsYN = opener.frmf_getParameter("srchexcls");
  801. srchdropYN = opener.frmf_getParameter("srchdrop");
  802. if( srchexclsYN == "Y" || srchdropYN == "Y"){
  803. iRow = ds_main_masterinfo_info.rowposition;
  804. if(iRow < 0){
  805. return;
  806. }
  807. ds_main_masterinfo_info.setColumn(iRow, "check", "true");
  808. fSetOpenerValue(iRow);
  809. //2008-01-17 손주연 수정 시작
  810. //if(model.getValue("/root/temp/getdata/endVal") == "E")
  811. this.close();
  812. //2008-01-17 손주연 수정 종료
  813. }
  814. }
  815. /****************************************************************************************
  816. * Components : Grid
  817. * Components ID : grd_masterinfo
  818. * Event : onkeydown
  819. * Argument : 01.obj : Object Event has occurred
  820. * : 02.e : Event Object
  821. * Description : 그리드 키 입력시
  822. ****************************************************************************************/
  823. function grp_biz_grd_masterinfo_onkeydown(obj:Grid, e:KeyEventInfo)
  824. {
  825. //enter시 입력 추가 by 손주연 2008-01-04
  826. if( obj.currentcol == 3 && e.keycode == 13 ){
  827. fAddCnts();
  828. }
  829. //손주연 수정 종료
  830. }
  831. /****************************************************************************************
  832. * Components : Button
  833. * Components ID : btn_upviewmode
  834. * Event : onclick
  835. * Argument : 01.obj : Object Event has occurred
  836. * : 02.e : Event Object
  837. * Description : 위로버튼 클릭시
  838. ****************************************************************************************/
  839. function grp_biz_btn_upviewmode_onclick(obj:Button, e:ClickEventInfo)
  840. {
  841. fMoveRow( "T", 1 );
  842. }
  843. /****************************************************************************************
  844. * Components : Button
  845. * Components ID : btn_downviewmode
  846. * Event : onclick
  847. * Argument : 01.obj : Object Event has occurred
  848. * : 02.e : Event Object
  849. * Description : 아래로버튼 클릭시
  850. ****************************************************************************************/
  851. function grp_biz_btn_downviewmode_onclick(obj:Button, e:ClickEventInfo)
  852. {
  853. fMoveRow( "B", 1 );
  854. }
  855. /****************************************************************************************
  856. * Components : Button
  857. * Components ID : btn_upviewmode2
  858. * Event : onclick
  859. * Argument : 01.obj : Object Event has occurred
  860. * : 02.e : Event Object
  861. * Description : 맨위로버튼 클릭시
  862. ****************************************************************************************/
  863. function grp_biz_btn_upviewmode2_onclick(obj:Button, e:ClickEventInfo)
  864. {
  865. fMoveRow( "T", 2 );
  866. }
  867. /****************************************************************************************
  868. * Components : Button
  869. * Components ID : btn_downviewmode2
  870. * Event : onclick
  871. * Argument : 01.obj : Object Event has occurred
  872. * : 02.e : Event Object
  873. * Description : 맨아래로버튼 클릭시
  874. ****************************************************************************************/
  875. function grp_biz_btn_downviewmode2_onclick(obj:Button, e:ClickEventInfo)
  876. {
  877. fMoveRow( "B", 2 );
  878. }
  879. /****************************************************************************************
  880. * Components : Button
  881. * Components ID : btn_save2
  882. * Event : onclick
  883. * Argument : 01.obj : Object Event has occurred
  884. * : 02.e : Event Object
  885. * Description : 저장버튼 클릭시
  886. ****************************************************************************************/
  887. function grp_biz_btn_save2_onclick(obj:Button, e:ClickEventInfo)
  888. {
  889. model.removeNodeset("/root/send");
  890. model.makeValue("/root/send/savedata/list", grd_masterinfo.getUpdateData());
  891. if( submit("TXMQP02601") ){
  892. btn_save2.disabled = true;
  893. }
  894. }
  895. /****************************************************************************************
  896. * Components : Grid
  897. * Components ID : grd_masterinfo
  898. * Event : ondrag
  899. * Argument : 01.obj : Object Event has occurred
  900. * : 02.e : Event Object
  901. * Description : 마우스 드래그시
  902. ****************************************************************************************/
  903. function grp_biz_grd_masterinfo_ondrag(obj:Grid, e:GridDragEventInfo)
  904. {
  905. //event.dropData = grd_masterinfo.textMatrix( grd_masterinfo.row, 1 );
  906. var curCnt = ds_main_masterinfo_info.rowposition;
  907. if(curCnt > -1){
  908. ds_srcdata_info.copyRow(0, ds_main_masterinfo_info, curCnt);
  909. }
  910. }
  911. /****************************************************************************************
  912. * Components : Grid
  913. * Components ID : grd_masterinfo
  914. * Event : ondragmove
  915. * Argument : 01.obj : Object Event has occurred
  916. * : 02.e : Event Object
  917. * Description : 마우스 드래그 이동시
  918. ****************************************************************************************/
  919. function grp_biz_grd_masterinfo_ondragmove(obj:Grid, e:GridDragEventInfo)
  920. {
  921. //2008-01-17 손주연 수정 시작
  922. if( srchexclsYN == "Y" ) return;
  923. //2008-01-17 손주연 수정 종료
  924. if( srchdropYN == "Y" ) return ;
  925. }
  926. /****************************************************************************************
  927. * Components : Grid
  928. * Components ID : grd_masterinfo
  929. * Event : ondrop
  930. * Argument : 01.obj : Object Event has occurred
  931. * : 02.e : Event Object
  932. * Description : 마우스 드랍시
  933. ****************************************************************************************/
  934. function grp_biz_grd_masterinfo_ondrop(obj:Grid, e:GridDragEventInfo)
  935. {
  936. //Drop 등록, Exclusion 선택을 위해 화면이 열릴때에도, 이동 가능해야 함 (20080717 요구사항)
  937. if( srchexclsYN == "Y" ) return ;
  938. if( srchdropYN == "Y" ) return ;
  939. var trgCnt = e.row;
  940. if( trgCnt < 0){
  941. trgCnt = ds_main_masterinfo_info.rowcount;
  942. }
  943. if( trgCnt == 0){
  944. //trgCnt = 1;
  945. }
  946. var srcCnt = ds_main_masterinfo_info.rowposition;
  947. var newCnt;
  948. var trgNode = ds_main_masterinfo_info;//"/root/main/masterinfo/info["+trgCnt+"]";
  949. var srcNode = ds_main_masterinfo_info;//"/root/main/masterinfo/info["+srcCnt+"]";
  950. var srcStatus = ds_main_masterinfo_info.getRowType(srcCnt);
  951. var trgStatus = ds_main_masterinfo_info.getRowType(trgCnt);
  952. if(srcCnt > -1 && trgCnt > -1 ){
  953. for(var idx = 0 ; idx < ds_main_masterinfo_info.rowcount ; idx++){
  954. if( ds_main_masterinfo_info.getRowType(idx) != 1 ){
  955. return;
  956. }
  957. }
  958. if( trgCnt == srcCnt){//자기자신일경우..
  959. return;
  960. }else{
  961. ds_trgdata_info.copyRow(0, ds_main_masterinfo_info, trgCnt);
  962. ds_main_masterinfo_info.insertRow(trgCnt);
  963. ds_main_masterinfo_info.copyRow(trgCnt, ds_srcdata_info, 0);
  964. //model.copyNode( srcNode, " /root/trgdata/info");
  965. if( trgCnt < srcCnt ) srcCnt++;//아래에서 위로 이동할때 위쪽에 행이 하나 추가되었으므로 삭제할 행이 증가된상태이다
  966. if( trgCnt > srcCnt ) srcCnt--;
  967. ds_main_masterinfo_info.deleteRow(srcCnt);
  968. }
  969. }
  970. //refseq update하러 간다.
  971. ds_send_savedata_list.clearData();
  972. ds_send_savedata_info.clearData();
  973. var curCnt = ds_main_masterinfo_info.rowcount;//1부터 시작
  974. for( var idx = 0 ; idx < curCnt ; idx++ ){
  975. ds_main_masterinfo_info.setColumn(idx, "refseq", idx);
  976. }
  977. ds_send_savedata_info.assign(ds_main_masterinfo_info);
  978. var oParam = {};
  979. oParam.id = "TXMQP02601";
  980. oParam.service = "prcpbaseapp.CpMngt";
  981. oParam.method = "reqExeDropValuMaster";
  982. oParam.inds = "list=ds_send_savedata_list info=ds_send_savedata_info:A";
  983. oParam.outds = "ds_main_masterinfo_info=info";
  984. oParam.async = false;
  985. //oParam.callback = "cf_TXMQP02601";
  986. tranf_submit(oParam);
  987. }
  988. function ds_main_masterinfo_info_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  989. {
  990. switch( e.columnid ){
  991. case "check" :
  992. if( e.newvalue == "true" || e.newvalue == "1" ){
  993. obj.setColumn(e.row, e.columnid, "true");
  994. }else{
  995. obj.setColumn(e.row, e.columnid, "false");
  996. }
  997. break;
  998. default :
  999. break;
  1000. }
  1001. }
  1002. ]]></Script>
  1003. </Form>
  1004. </FDL>