12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMQP02600" position="absolute 0 0 1060 765" titletext="마스터관리" oninit="SMMQP02600_oninit" onload="SMMQP02600_onload">
- <Layouts>
- <Layout>
- <Static text="Drop/Exclusion 관리" position="absolute 0 0 180 24" id="cap_title" class="tit_1" anchor="default"/>
- <Div position="absolute 0 738 1055 765" id="grp_btn" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button position="absolute 882 3 938 25" id="btn_sel" class="btn4" visible="false" text="선택" anchor="top right" onclick="grp_btn_btn_sel_onclick"/>
- <Button position="absolute 940 3 996 25" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="grp_btn_btn_save_onclick"/>
- <Button position="absolute 998 3 1054 25" id="btn_close" class="btn4" text="닫기" anchor="top right" onclick="grp_btn_btn_close_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1055 741" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div id="roundrect1" class="div_SA" position="absolute 0 35 1054 70" anchor="left top right"/>
- <Shape position="absolute 0 94 1055 100" linetype="horizontal" id="line7" class="line_10" anchor="left top right"/>
- <Shape position="absolute 0 722 1055 728" linetype="horizontal" id="line8" class="line_3" anchor="left right bottom"/>
- <Shape position="absolute 967 42 973 64" linetype="vertical" id="line27" class="line_4" anchor="top right"/>
- <Static text="Drop/Exclusion 관리" position="absolute 0 15 226 31" id="cap_smalltitle" class="tit_2" anchor="default"/>
- <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">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Drop사유</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">Exclusion사유</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="구분 :" position="absolute 10 45 60 62" id="cap_flag" class="search_name" anchor="left top"/>
- <Button position="absolute 985 42 1041 64" id="btn_srch" class="btn1" text="조회" anchor="top right" onclick="grp_biz_btn_srch_onclick"/>
- <Button position="absolute 923 74 965 93" id="btn_add" class="btn2" text="추가" anchor="top right" onclick="grp_biz_btn_add_onclick"/>
- <Button position="absolute 968 74 1010 93" id="btn_del" class="btn2" text="삭제" anchor="top right" onclick="grp_biz_btn_del_onclick"/>
- <Button position="absolute 1013 74 1055 93" id="btn_excel" class="btn2" text="엑셀" anchor="top right" onclick="grp_biz_btn_excel_onclick"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="760"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="No,"/>
- <Cell col="3" text="내용"/>
- <Cell col="4" text="적용일자"/>
- <Cell col="5" text="종료일자"/>
- <Cell col="6" text="caption1"/>
- <Cell col="7" text="caption2"/>
- <Cell col="8" text="caption3"/>
- <Cell col="9" text="caption4"/>
- <Cell col="10" text="caption5"/>
- <Cell col="11" text="caption6"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' || check == '1' ? '1' : '0'"/>
- <Cell col="2" text="bind:irowno"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:valunm" editautoselect="true"/>
- <Cell col="4" displaytype="date" edittype="date" text="bind:fromdd" editautoselect="true" calendardisplaynulltype="none"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:todd" editautoselect="true" calendardisplaynulltype="none"/>
- <Cell col="6" text="bind:valuno"/>
- <Cell col="7" text="bind:histseq"/>
- <Cell col="8" text="bind:valuflag"/>
- <Cell col="9" text="bind:refseq"/>
- <Cell col="10" text="bind:check"/>
- <Cell col="11" text="bind:status"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <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"/>
- <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"/>
- <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"/>
- <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"/>
- <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"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="valuflag" type="STRING" size="256" sumtext="검색기준조건구분(1:평가 2:Drop사유 3:Exclusion사유)"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="check" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="check" type="STRING" size="256" sumtext="check여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="valuflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_getdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grdfocus" type="STRING" size="256"/>
- <Column id="poolsize" type="STRING" size="256"/>
- <Column id="endVal" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="check" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_getdata_pool" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="check" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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">
- <ColumnInfo>
- <Column id="irowno" type="STRING" size="256" sumtext="로우시퀀스"/>
- <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="valuno" type="INT" size="256" sumtext="평가번호"/>
- <Column id="histseq" type="INT" size="256" sumtext="이력순번"/>
- <Column id="valuflag" type="STRING" size="256" sumtext="평가구분"/>
- <Column id="refseq" type="INT" size="256" sumtext="조회순서"/>
- <Column id="check" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.rdo_flag" propid="value" datasetid="ds_main_condition" columnid="valuflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_cpgxp -> SMMQP02600
- * Creator : yjh
- * Make Date : 2017-09-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-27 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- var srchexclsYN = "";
- var srchdropYN = "";
- var srcNode = "/root/main/masterinfo/info"; //["+iRow+"]
- // 중복 체크를 한 후 ER 로 데이터를 전달한다.
- function fSetOpenerValue( iRow ) {
- var bool = "false";
- var iCnt = parseInt(ds_temp_getdata.getColumn(0, "poolsize"));
- var selCd = ds_main_masterinfo_info.getColumn(iRow, "valuno");
-
- if(iCnt != 0){
- for(var i=0; i<iCnt; i++) {
- if(selCd == ds_temp_getdata_pool.getColumn(i, "cd")){ //yjh : 테스트 필요
- bool = "ture";
- return;
- }
- }
- }
- if(bool == "false"){
- var sRow = ds_temp_getdata.getColumn(0, "grdfocus");
- if(utlf_isNull(sRow)){
- sRow = "0";
- ds_temp_getdata.setColumn(0, "endVal" , "E");
- }
- sRow = parseInt(sRow);
- var selCd = ds_main_masterinfo_info.getColumn(iRow, "valuno");
- var selSeq = ds_main_masterinfo_info.getColumn(iRow, "histseq");
- var selNM = ds_main_masterinfo_info.getColumn(iRow, "valunm");
-
- if(ds_main_condition.getColumn(0, "valuflag") == "3") { //ds_main_exclusion_exclist
- opener.ds_main_exclusion_exclist.addRow();
- dsf_makeValue(opener.ds_main_exclusion_exclist, "valuno", "string", selCd, sRow);
- dsf_makeValue(opener.ds_main_exclusion_exclist, "histseq", "string", selSeq, sRow);
- dsf_makeValue(opener.ds_main_exclusion_exclist, "valunm", "string", selNM, sRow);
- dsf_makeValue(opener.ds_main_exclusion_exclist, "m", "string", "i", sRow);
- dsf_makeValue(opener.ds_main_exclusion_exclist, "flag", "string", "E00", sRow);
- } else if(ds_main_condition.getColumn(0, "valuflag") == "2") {
- opener.ds_main_dropinfo_droplist.addRow();
- dsf_makeValue(opener.ds_main_dropinfo_droplist, "valuno", "string", selCd, sRow);
- dsf_makeValue(opener.ds_main_dropinfo_droplist, "histseq", "string", selSeq, sRow);
- dsf_makeValue(opener.ds_main_dropinfo_droplist, "valunm", "string", selNM, sRow);
- dsf_makeValue(opener.ds_main_dropinfo_droplist, "m", "string", "i", sRow);
- dsf_makeValue(opener.ds_main_dropinfo_droplist, "flag", "string", "D00", sRow);
- }
-
- //opener.grd_diag.rowStatus(sRow)= 1;
- //opener.grd_diag.rebuild();
- ds_temp_getdata.setColumn(0, "grdfocus", sRow + 1);
- dsf_makeValue(ds_temp_getdata_pool, "cd", "string", selCd, iCnt);
- iCnt = parseInt(iCnt)+1;
- ds_temp_getdata.setColumn(0, "poolsize", iCnt);
- }
- }
- /*=====================================================================================
- @desc : drop/평가/exclusion 추가
- ======================================================================================*/
- function fAddCnts(){
- ds_main_masterinfo_info.addRow();
- var curCnt = ds_main_masterinfo_info.rowcount-1;
- ds_main_masterinfo_info.setColumn(curCnt, "fromdd", utlf_getCurrentDate() );
- ds_main_masterinfo_info.setColumn(curCnt, "todd", '99991231' );
- ds_main_masterinfo_info.setColumn(curCnt, "valuflag", ds_main_condition.getColumn(0, "valuflag") );
- ds_main_masterinfo_info.setColumn(curCnt, "status", "i" );
- //opener check 추가 by 손주연 2008-01-04
- ds_main_masterinfo_info.rowposition = curCnt;
- grp_biz.grd_masterinfo.setCellPos(3);
- grp_biz.grd_masterinfo.setFocus();
- //model.refresh();
- //손주연 수정 종료
- }
- /*=====================================================================================
- @desc : 행 옮기기
- ======================================================================================*/
- function fMoveRow( flag, no ){
- if( ds_main_masterinfo_info.rowposition < 0 ){
- sysf_messageBox("이동할 행을", "C002");
- return;
- }
- if(grp_biz.grd_masterinfo.selectcount > 1 || grp_biz.grd_masterinfo.selectstartrow[0] != grp_biz.grd_masterinfo.selectendrow[0]){
- sysf_messageBox("여러 행을 이동", "E001");
- return;
- }
- var iRow = ds_main_masterinfo_info.rowposition;
- var trgRow = -1;
-
- ds_temp_info.copyRow(0, ds_main_masterinfo_info, iRow);
-
- if( flag == "T" ){ //"위로"
- if( iRow == 0 ){
- sysf_messageBox("이동", "E001");
- return;
- }
- if(no == 1){
- ds_main_masterinfo_info.copyRow(iRow, ds_main_masterinfo_info, iRow-1);
- ds_main_masterinfo_info.copyRow(iRow-1, ds_temp_info, 0);
-
- ds_main_masterinfo_info.setColumn(iRow-1, "irowno", iRow-1);
- ds_main_masterinfo_info.setColumn(iRow-1, "refseq", iRow-1);
-
- if( ds_main_masterinfo_info.getColumn(iRow-1, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(iRow-1, "status", "u");
- }
- ds_main_masterinfo_info.setColumn(iRow, "irowno", iRow);
- ds_main_masterinfo_info.setColumn(iRow, "refseq", iRow);
-
- if( ds_main_masterinfo_info.getColumn(iRow, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(iRow, "status", "u");
- }
-
- ds_main_masterinfo_info.rowposition = iRow-1;
- grp_biz.grd_masterinfo.setCellPos(1);
- grp_biz.grd_masterinfo.setFocus();
- }else{
- //trgRow = 1;
- for( var i=0; i<=(iRow-1); i++){
- ds_main_masterinfo_info.setColumn(i, "irowno", i+2);
- ds_main_masterinfo_info.setColumn(i, "refseq", i+2);
-
- if( ds_main_masterinfo_info.getColumn(i, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(i, "status", "u");
- }
- }
-
- ds_main_masterinfo_info.deleteRow(iRow);
-
- var pNode = ds_main_masterinfo_info;
- var destNode = ds_main_masterinfo_info;//instance1.selectSingleNode(srcNode + "[" + 1 + "]");
- var copyNode = ds_temp_info;//instance1.selectSingleNode("/root/temp/info");
- ds_main_masterinfo_info.insertRow(0);
- ds_main_masterinfo_info.copyRow(0, ds_temp_info, 0);
-
- ds_main_masterinfo_info.setColumn(0, "irowno", "1");
- ds_main_masterinfo_info.setColumn(0, "refseq", "1");
-
- if( ds_main_masterinfo_info.getColumn(0, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(0, "status", "u");
- }
-
- ds_main_masterinfo_info.rowposition = iRow-1;
- grp_biz.grd_masterinfo.setCellPos(1);
- grp_biz.grd_masterinfo.setFocus();
- }
-
- }else if( flag == "B"){ //"아래로"
- if( iRow == ds_main_masterinfo_info.rowcount-1 ){
- sysf_messageBox("이동", "E001");
- return;
- }
- if(no == 1){
- ds_main_masterinfo_info.copyRow(iRow, ds_main_masterinfo_info, iRow+1);
- ds_main_masterinfo_info.copyRow(iRow+1, ds_temp_info, 0);
-
- ds_main_masterinfo_info.setColumn(iRow, "irowno", iRow+1);
- ds_main_masterinfo_info.setColumn(iRow, "refseq", iRow+1);
-
- if( ds_main_masterinfo_info.getColumn(iRow, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(iRow, "status", "u");
- }
- ds_main_masterinfo_info.setColumn(iRow+1, "irowno", iRow+2);
- ds_main_masterinfo_info.setColumn(iRow+1, "refseq", iRow+2);
-
- if( ds_main_masterinfo_info.getColumn(iRow+1, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(iRow+1, "status", "u");
- }
-
- ds_main_masterinfo_info.rowposition = iRow+1;
- grp_biz.grd_masterinfo.setCellPos(1);
- grp_biz.grd_masterinfo.setFocus();
- }else{
- trgRow = ds_main_masterinfo_info.rowcount-1;
- for( var i=(iRow+1); i<=trgRow; i++){
- ds_main_masterinfo_info.setColumn(i, "irowno", i);
- ds_main_masterinfo_info.setColumn(i, "refseq", i);
-
- if( ds_main_masterinfo_info.getColumn(i, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(i, "status", "u");
- }
- }
-
- var pNode = ds_main_masterinfo_info;
- var destNode = ds_main_masterinfo_info;//instance1.selectSingleNode(srcNode + "[" + (trgRow) + "]");
- var copyNode = ds_temp_info;//instance1.selectSingleNode("/root/temp/info");
- ds_main_masterinfo_info.insertRow(trgRow+1);
- ds_main_masterinfo_info.copyRow(trgRow+1, ds_temp_info, 0);
-
- ds_main_masterinfo_info.deleteRow(iRow);
-
- ds_main_masterinfo_info.setColumn(trgRow, "irowno", trgRow);
- ds_main_masterinfo_info.setColumn(trgRow, "refseq", trgRow);
-
- if( ds_main_masterinfo_info.getColumn(trgRow, "status") != "i" ){
- ds_main_masterinfo_info.setColumn(trgRow, "status", "u");
- }
-
- ds_main_masterinfo_info.rowposition = trgRow;
- grp_biz.grd_masterinfo.setCellPos(1);
- grp_biz.grd_masterinfo.setFocus();
- }
- }
-
- fSettingStatus();
- //btn_save2.disabled = false;
- }
- /*=====================================================================================
- @desc : rowstatus 재설정
- ======================================================================================*/
- function fSettingStatus(){
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- for( var i=0; i<ds_main_masterinfo_info.rowcount; i++ ){
- var iStatus = ds_main_masterinfo_info.getColumn(i, "status");
- if( iStatus == "i" ){
- ds_main_masterinfo_info.setRowType(i, 2);
- }else if( iStatus == "u" ){
- ds_main_masterinfo_info.setRowType(i, 4);
- }else if( iStatus == "d" ){
- ds_main_masterinfo_info.setRowType(i, 8);
- }
- }
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMQP02600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMQP02600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMQP02600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMQP02600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_masterinfo, 0);
- grdf_setGridSort(grp_biz.grd_masterinfo);
-
- ds_main_condition.setColumn(0, "valuflag", "1");
- ds_temp_getdata.setColumn(0, "poolsize", "0");
-
- if( !utlf_isNull(frmf_getOpenerUID()) ){
- srchexclsYN = opener.frmf_getParameter("srchexcls");
- srchdropYN = opener.frmf_getParameter("srchdrop");
- if( srchexclsYN == "Y" ){
- ds_main_condition.setColumn(0, "valuflag", "3");
- var sRow = opener.frmf_getParameter("lastrowcnt");
- ds_temp_getdata.setColumn(0, "grdfocus",sRow );
- }
- if( srchdropYN == "Y" ){
- ds_main_condition.setColumn(0, "valuflag", "2");
- var sRow = opener.frmf_getParameter("lastrowcnt");
- ds_temp_getdata.setColumn(0, "grdfocus",sRow );
- }
- }
-
- ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
-
- var oParam = {};
- oParam.id = "TRMQP02601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetDropValuMaster";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_masterinfo_info=info";
- oParam.async = false;
- //oParam.callback = "cf_TRMQP02601";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
- ds_main_masterinfo_info.addColumn("refseq", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
- ds_main_masterinfo_info.addColumn("status", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
- ds_main_masterinfo_info.addColumn("check", "string");
- }
-
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
-
- ds_main_masterinfo_info.rowposition = -1;
-
- if( srchexclsYN == "Y" ){
-
- cap_title.text = "Exclusion 사유 조회";
- grp_biz.cap_smalltitle.visible = false;
- grp_btn.btn_sel.visible = true;
- grp_btn.btn_save.visible = false;
- grp_btn.btn_sel.position.x = 940;
-
- grp_biz.grd_masterinfo.setRealColSize(1, 50, false);
- grp_biz.grd_masterinfo.setRealColSize(2, 0, false);
- grp_biz.grd_masterinfo.setRealColSize(3, 400, false);
- grp_biz.grd_masterinfo.setRealColSize(4, 0, false);
- grp_biz.grd_masterinfo.setRealColSize(5, 0, false);
- grp_biz.grd_masterinfo.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_masterinfo.setCellProperty("Body", 4, "edittype", "none");
- grp_biz.grd_masterinfo.setCellProperty("Body", 5, "edittype", "none");
-
- grp_biz.grd_masterinfo.position.top = 15;
-
- grp_biz.btn_upviewmode.visible = false;
- grp_biz.btn_upviewmode2.visible = false;
- grp_biz.btn_downviewmode.visible = false;
- grp_biz.btn_downviewmode2.visible = false;
- this.parent.position.width = 516;
- this.parent.position.height = 537;
-
- }
-
- //drop cp별 관리를 위한 화면 처리로직 추가. 2008.06.20 LWS
- else if( srchdropYN == "Y" ){
-
- cap_title.text = "Drop 사유 조회";
- grp_biz.cap_smalltitle.visible = false;
- grp_btn.btn_sel.visible = true;
- grp_btn.btn_save.visible = false;
- grp_btn.btn_sel.position.x = 940;
-
- grp_biz.grd_masterinfo.setRealColSize(1, 50, false);
- grp_biz.grd_masterinfo.setRealColSize(2, 0, false);
- grp_biz.grd_masterinfo.setRealColSize(3, 400, false);
- grp_biz.grd_masterinfo.setRealColSize(4, 0, false);
- grp_biz.grd_masterinfo.setRealColSize(5, 0, false);
-
- grp_biz.grd_masterinfo.setCellProperty("Body", 3, "edittype", "none");
- grp_biz.grd_masterinfo.setCellProperty("Body", 4, "edittype", "none");
- grp_biz.grd_masterinfo.setCellProperty("Body", 5, "edittype", "none");
-
- grp_biz.grd_masterinfo.position.top = 15;
-
-
- grp_biz.btn_upviewmode.visible = false;
- grp_biz.btn_upviewmode2.visible = false;
- grp_biz.btn_downviewmode.visible = false;
- grp_biz.btn_downviewmode2.visible = false;
- this.parent.position.width = 516;
- this.parent.position.height = 537;
-
- }
- else{
- var gnrObj = frmf_findPopup("SMMQP00600");
- if( !utlf_isNull(gnrObj) ){
- var openmasterYN = opener.frmf_getParameter("openmaster");
- if( utlf_isNull(openmasterYN) ){
- grp_btn.btn_save.position.left = 998;
- grp_btn.btn_save.position.width = 56;
- grp_btn.btn_close.visible = true;
- }
- grp_biz.grd_masterinfo.setRealColSize(1, 0);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_sel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_sel_onclick(obj:Button, e:ClickEventInfo)
- {
- var rowCnt = ds_main_masterinfo_info.rowcount;
-
- for(var i=0; i<rowCnt; i++){
- var bool = ds_main_masterinfo_info.getColumn(i, "check");
- if(bool == "true"){
- fSetOpenerValue( i );
- }
- if(ds_temp_getdata.getColumn(0, "endVal") == "E")
- this.close();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_savedata_list.clearData();
- ds_send_savedata_info.clearData();
- // model.makeNode("/root/send/savedata/info");
- // var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;//1부터 시작
- // for( var idx = 1 ; idx <= curCnt ; idx++ ){
- // model.setValue("/root/main/masterinfo/info["+ idx + "]/refseq", idx);
- // }
- // model.copyNode("/root/send/savedata", "/root/main/masterinfo");
-
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_masterinfo_info, "m");
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
-
- ds_send_savedata_list.assign(grdf_getGridUpdateData(grp_biz.grd_masterinfo, "all"));
-
- var oParam = {};
- oParam.id = "TXMQP02601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqExeDropValuMaster";
- oParam.inds = "list=ds_send_savedata_list:A info=ds_send_savedata_info";
- oParam.outds = "ds_main_masterinfo_info=info";
- oParam.async = false;
- //oParam.callback = "cf_TXMQP02601";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_flag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function grp_biz_rdo_flag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
-
- var oParam = {};
- oParam.id = "TRMQP02601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetDropValuMaster";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_masterinfo_info=info";
- oParam.async = false;
- //oParam.callback = "cf_TRMQP02601";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
- ds_main_masterinfo_info.addColumn("refseq", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
- ds_main_masterinfo_info.addColumn("status", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
- ds_main_masterinfo_info.addColumn("check", "string");
- }
-
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
-
- ds_main_masterinfo_info.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_srch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.setColumn(0, "valuflag", ds_main_condition.getColumn(0, "valuflag"));
-
- var oParam = {};
- oParam.id = "TRMQP02601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetDropValuMaster";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_masterinfo_info=info";
- oParam.async = false;
- //oParam.callback = "cf_TRMQP02601";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("refseq")) ){
- ds_main_masterinfo_info.addColumn("refseq", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("status")) ){
- ds_main_masterinfo_info.addColumn("status", "string");
- }
- if( utlf_isNull(ds_main_masterinfo_info.getColumnInfo("check")) ){
- ds_main_masterinfo_info.addColumn("check", "string");
- }
-
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- dsf_setDefaultVal(ds_main_masterinfo_info, "check:false");
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
-
- ds_main_masterinfo_info.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_add
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddCnts();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_masterinfo_info.enableevent = false;
- ds_main_masterinfo_info.updatecontrol = false;
-
- for( var i=grp_biz.grd_masterinfo.selectcount-1 ; i>=0 ; i-- ){
- for( var j=grp_biz.grd_masterinfo.selectendrow[i] ; j>=grp_biz.grd_masterinfo.selectstartrow[i] ; j-- ){
- var statusNode = ds_main_masterinfo_info.getColumn(j, "status");
- var status = statusNode;
-
- if( status == "i" ){
- //grd_masterinfo.deleteRow(iRow); => 바로 삭제 시, selectedRow(i) 잘못 잡힘
- ds_main_masterinfo_info.deleteRow(j);
- }else if(status == "d" ){
- ds_main_masterinfo_info.setColumn(j, "status", "-");
- ds_main_masterinfo_info.setRowType(j, 1);
- }else{
- ds_main_masterinfo_info.setColumn(j, "status", "d");
- ds_main_masterinfo_info.setColumn(j, "todd", utlf_getCurrentDate());
- ds_main_masterinfo_info.setRowType(j, 8);
- }
- }
- }
-
- ds_main_masterinfo_info.updatecontrol = true;
- ds_main_masterinfo_info.enableevent = true;
-
- fSettingStatus();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- //if( grp_biz.grd_masterinfo.rowcount > 0 ){
- grdf_exportExcel(grp_biz.grd_masterinfo, "save", "sheet1", false, "", "user", false);
- // } else {
- // sysf_messageBox("조회된 데이터가 ", "I004");
- // return;
- // }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_masterinfo
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function grp_biz_grd_masterinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //opener check 추가 by 손주연 2008-01-04
- if( !frmf_checkOpener() ) {
- if( ds_main_masterinfo_info.rowposition < 0) return ;
-
- grp_biz.grd_masterinfo.showEditor(true);
- return ;
- }
- //손주연 수정 종료
-
- var srchexclsYN = opener.frmf_getParameter("srchexcls");
- srchdropYN = opener.frmf_getParameter("srchdrop");
- if( srchexclsYN == "Y" || srchdropYN == "Y"){
- iRow = ds_main_masterinfo_info.rowposition;
- if(iRow < 0){
- return;
- }
- ds_main_masterinfo_info.setColumn(iRow, "check", "true");
-
- fSetOpenerValue(iRow);
-
- //2008-01-17 손주연 수정 시작
- //if(model.getValue("/root/temp/getdata/endVal") == "E")
- this.close();
- //2008-01-17 손주연 수정 종료
-
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_masterinfo
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 키 입력시
- ****************************************************************************************/
- function grp_biz_grd_masterinfo_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- //enter시 입력 추가 by 손주연 2008-01-04
- if( obj.currentcol == 3 && e.keycode == 13 ){
- fAddCnts();
- }
- //손주연 수정 종료
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_upviewmode
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 위로버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_upviewmode_onclick(obj:Button, e:ClickEventInfo)
- {
- fMoveRow( "T", 1 );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_downviewmode
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 아래로버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_downviewmode_onclick(obj:Button, e:ClickEventInfo)
- {
- fMoveRow( "B", 1 );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_upviewmode2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 맨위로버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_upviewmode2_onclick(obj:Button, e:ClickEventInfo)
- {
- fMoveRow( "T", 2 );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_downviewmode2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 맨아래로버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_downviewmode2_onclick(obj:Button, e:ClickEventInfo)
- {
- fMoveRow( "B", 2 );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_save2_onclick(obj:Button, e:ClickEventInfo)
- {
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/savedata/list", grd_masterinfo.getUpdateData());
- if( submit("TXMQP02601") ){
- btn_save2.disabled = true;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_masterinfo
- * Event : ondrag
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 드래그시
- ****************************************************************************************/
- function grp_biz_grd_masterinfo_ondrag(obj:Grid, e:GridDragEventInfo)
- {
- //event.dropData = grd_masterinfo.textMatrix( grd_masterinfo.row, 1 );
- var curCnt = ds_main_masterinfo_info.rowposition;
- if(curCnt > -1){
- ds_srcdata_info.copyRow(0, ds_main_masterinfo_info, curCnt);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_masterinfo
- * Event : ondragmove
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 드래그 이동시
- ****************************************************************************************/
- function grp_biz_grd_masterinfo_ondragmove(obj:Grid, e:GridDragEventInfo)
- {
- //2008-01-17 손주연 수정 시작
- if( srchexclsYN == "Y" ) return;
- //2008-01-17 손주연 수정 종료
- if( srchdropYN == "Y" ) return ;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_masterinfo
- * Event : ondrop
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 드랍시
- ****************************************************************************************/
- function grp_biz_grd_masterinfo_ondrop(obj:Grid, e:GridDragEventInfo)
- {
- //Drop 등록, Exclusion 선택을 위해 화면이 열릴때에도, 이동 가능해야 함 (20080717 요구사항)
- if( srchexclsYN == "Y" ) return ;
- if( srchdropYN == "Y" ) return ;
-
- var trgCnt = e.row;
- if( trgCnt < 0){
- trgCnt = ds_main_masterinfo_info.rowcount;
- }
- if( trgCnt == 0){
- //trgCnt = 1;
- }
-
- var srcCnt = ds_main_masterinfo_info.rowposition;
- var newCnt;
- var trgNode = ds_main_masterinfo_info;//"/root/main/masterinfo/info["+trgCnt+"]";
- var srcNode = ds_main_masterinfo_info;//"/root/main/masterinfo/info["+srcCnt+"]";
- var srcStatus = ds_main_masterinfo_info.getRowType(srcCnt);
- var trgStatus = ds_main_masterinfo_info.getRowType(trgCnt);
-
- if(srcCnt > -1 && trgCnt > -1 ){
- for(var idx = 0 ; idx < ds_main_masterinfo_info.rowcount ; idx++){
- if( ds_main_masterinfo_info.getRowType(idx) != 1 ){
- return;
- }
- }
- if( trgCnt == srcCnt){//자기자신일경우..
- return;
- }else{
- ds_trgdata_info.copyRow(0, ds_main_masterinfo_info, trgCnt);
- ds_main_masterinfo_info.insertRow(trgCnt);
- ds_main_masterinfo_info.copyRow(trgCnt, ds_srcdata_info, 0);
- //model.copyNode( srcNode, " /root/trgdata/info");
- if( trgCnt < srcCnt ) srcCnt++;//아래에서 위로 이동할때 위쪽에 행이 하나 추가되었으므로 삭제할 행이 증가된상태이다
- if( trgCnt > srcCnt ) srcCnt--;
-
- ds_main_masterinfo_info.deleteRow(srcCnt);
-
- }
- }
-
- //refseq update하러 간다.
- ds_send_savedata_list.clearData();
- ds_send_savedata_info.clearData();
-
- var curCnt = ds_main_masterinfo_info.rowcount;//1부터 시작
- for( var idx = 0 ; idx < curCnt ; idx++ ){
- ds_main_masterinfo_info.setColumn(idx, "refseq", idx);
- }
-
- ds_send_savedata_info.assign(ds_main_masterinfo_info);
-
- var oParam = {};
- oParam.id = "TXMQP02601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqExeDropValuMaster";
- oParam.inds = "list=ds_send_savedata_list info=ds_send_savedata_info:A";
- oParam.outds = "ds_main_masterinfo_info=info";
- oParam.async = false;
- //oParam.callback = "cf_TXMQP02601";
- tranf_submit(oParam);
- }
- function ds_main_masterinfo_info_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "check" :
- if( e.newvalue == "true" || e.newvalue == "1" ){
- obj.setColumn(e.row, e.columnid, "true");
- }else{
- obj.setColumn(e.row, e.columnid, "false");
- }
- break;
-
- default :
- break;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|