12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG00500" position="absolute 0 0 1200 784" titletext="CSR 마감시간 관리" oninit="SMMNG00500_oninit" onload="SMMNG00500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 24" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="CSR 마감시간 관리" position="absolute 0 0 151 24" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="기관코드 :" position="absolute 15 9 91 26" id="cap_instcd" class="search_name"/>
- <Shape position="absolute 997 5 1003 30" linetype="vertical" id="line13" class="line_4"/>
- <Static text="요일구분 :" position="absolute 650 10 724 27" id="cap_csrreqdeptcd" class="search_name"/>
- <Button position="absolute 1015 8 1071 30" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Combo position="absolute 92 8 250 27" id="cmb_instcd" class="combo_s_essential" innerdataset="@ds_hidden_common_instcdinfo_Z0007" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
- <Radio position="absolute 725 8 995 27" id="rdo_daykind" columncount="6" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_biz_grp_sea_rdo_daykind_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">평일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">휴일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">토요일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">일요일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="부 서 명 :" position="absolute 270 10 343 27" id="caption2" class="search_name"/>
- <Edit position="absolute 458 8 630 27" id="ipt_reqdeptnm" class="input_search" autoselect="true"/>
- <Edit position="absolute 345 8 430 27" id="ipt_reqdeptcd" class="input_default" autoselect="true"/>
- <Button position="absolute 1073 8 1129 30" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_grp_sea_btn_excel_onclick"/>
- <Button position="absolute 1131 8 1187 30" id="btn_prt" class="btn6" text="출력" onclick="grp_biz_grp_sea_btn_prt_onclick"/>
- <Button position="absolute 435 10 451 26" id="btn_reqdept" class="icon_search" text="" onclick="grp_biz_grp_sea_btn_reqdept_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 226 74 1194 80" linetype="horizontal" id="line2" class="line_10"/>
- <Static text="부서구분" position="absolute 5 58 138 74" id="caption8" class="tit_2"/>
- <Button position="absolute 1062 54 1104 73" id="btn_grdadd" class="btn2" text="추가" onclick="grp_biz_btn_grdadd_onclick"/>
- <Button position="absolute 1107 54 1149 73" id="btn_grddel" class="btn5" text="삭제" onclick="grp_biz_btn_grddel_onclick"/>
- <Grid position="absolute 225 79 1195 741" id="grd_csrtmlist" class="datagrid2" binddataset="ds_main_csrtmlist" oncellclick="grp_biz_grd_csrtmlist_oncellclick" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="123"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="17"/>
- <Column size="60"/>
- <Column size="167"/>
- <Column size="39"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서구분"/>
- <Cell col="2" text="요일구분"/>
- <Cell col="3" text="마감차수"/>
- <Cell col="4" text="마감차수명칭"/>
- <Cell col="5" text="마감시간"/>
- <Cell col="6" text="청구불가시간"/>
- <Cell col="7" colspan="3" text="청구가능시간" taborder="undefined"/>
- <Cell col="10" text="비고"/>
- <Cell col="11" text="멸균 허용"/>
- <Cell col="12" text="수정자ID"/>
- <Cell col="13" text="수정자"/>
- <Cell col="14" text="수정일자"/>
- <Cell col="15" text="최초등록일자"/>
- <Cell col="16" text="instcd"/>
- <Cell col="17" text="csrreqdeptnm"/>
- <Cell col="18"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : ''" style="align:center;" text="bind:csrreqdeptcd" combodataset="ds_main_csrreqdeptlist" combocodecol="csrreqdeptcd" combodatacol="csrreqdeptnm" enable="false"/>
- <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : ''" style="align:center;" text="bind:daykind" combodataset="ds_daykind" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="3" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : ''" style="align:center;" text="bind:reqseq" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left;" text="bind:reqseqnm"/>
- <Cell col="5" displaytype="text" edittype="mask" style="align:center;" text="bind:clotm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
- <Cell col="6" displaytype="text" edittype="mask" style="align:center;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
- <Cell col="7" text="bind:reqposfromtm" mask="expr:utlf_isNull(reqposfromtm) ? '' : '##:##:##'" maskchar="_" enable="false"/>
- <Cell col="8" text="bind:bar"/>
- <Cell col="9" text="bind:reqpostotm" mask="expr:utlf_isNull(reqpostotm) ? '' : '##:##:##'" maskchar="_"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:cmt"/>
- <Cell col="11" displaytype="combo" edittype="combo" text="bind:dinfaplyn" combodataset="ds_dinfaplyn" combocodecol="value" combodatacol="label"/>
- <Cell col="12" text="bind:lastupdtrid" enable="false"/>
- <Cell col="13" text="bind:usernm" enable="false"/>
- <Cell col="14" displaytype="date" text="bind:lastupdtdt" calendardisplaynulltype="none" enable="false"/>
- <Cell col="15" displaytype="date" text="bind:fstrgstdt" calendardisplaynulltype="none" enable="false"/>
- <Cell col="16" text="bind:instcd"/>
- <Cell col="17" text="bind:csrreqdeptnm"/>
- <Cell col="18" text="bind:daykindnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="마감 기준시간 등록" position="absolute 225 58 373 74" id="caption1" class="tit_2"/>
- <Shape position="absolute 5 74 220 80" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 5 79 220 741" id="grd_csrreqdeptlist" binddataset="ds_main_csrreqdeptlist" oncellclick="grp_biz_grd_csrreqdeptlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="196"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="부서구분"/>
- <Cell col="1" text="caption1"/>
- </Band>
- <Band id="body">
- <Cell edittype="none" style="align:left;" text="bind:csrreqdeptnm" enable="false"/>
- <Cell col="1" text="bind:csrreqdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 525 50 625 70" id="ipt_csrreqdeptcd2" visible="false" autoselect="true"/>
- <Button position="absolute 1007 54 1060 73" id="button1" class="btn2" text="초기화" onclick="grp_biz_button1_onclick"/>
- <Button position="absolute 1152 54 1194 73" id="btn_save" class="btn5" text="저장" onclick="grp_biz_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_common_instcdinfo_Z0007" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="daykind" type="STRING" size="256" sumtext="요일구분"/>
- <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 처구부서코드"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_csrtmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_csrtmlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 청구 부서 코드"/>
- <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
- <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
- <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
- <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
- <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
- <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="bar" type="STRING" size="256" sumtext="bar"/>
- <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자ID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="수정자명"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일자"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
- <Column id="csrreqdeptnm" type="STRING" size="256" sumtext="CSR청구부서명"/>
- <Column id="daykindnm" type="STRING" size="256" sumtext="DAY구분"/>
- <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_csrreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_main_csrreqdeptlist_onrowposchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR 청구 부서 코드"/>
- <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
- <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
- <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
- <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
- <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
- <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="bar" type="STRING" size="256" sumtext="bar"/>
- <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자ID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="수정자명"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일자"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
- <Column id="csrreqdeptnm" type="STRING" size="256" sumtext="CSR청구부서명"/>
- <Column id="daykindnm" type="STRING" size="256" sumtext="DAY구분"/>
- <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata_csrtmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="csrreqdeptcd" type="STRING" size="256" sumtext="CSR청구부서코드"/>
- <Column id="daykind" type="STRING" size="256" sumtext="DAY구분"/>
- <Column id="reqseq" type="STRING" size="256" sumtext="마감차수"/>
- <Column id="reqseqnm" type="STRING" size="256" sumtext="마감차수명칭"/>
- <Column id="clotm" type="STRING" size="256" sumtext="마감시간"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="reqimpostm" type="STRING" size="256" sumtext="청구불가시간"/>
- <Column id="reqposfromtm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="reqpostotm" type="STRING" size="256" sumtext="청구가능시간"/>
- <Column id="dinfaplyn" type="STRING" size="256" sumtext="멸균허용여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="daykind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_appendcd_R02701" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_daykind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">평일</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">휴일</Col>
- </Row>
- <Row>
- <Col id="label">토요일</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="value">4</Col>
- <Col id="label">일요일</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_dinfaplyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.rdo_daykind" propid="value" datasetid="ds_init" columnid="daykind"/>
- <BindItem id="item4" compid="grp_biz.ipt_csrreqdeptcd2" propid="value" datasetid="ds_send" columnid="csrreqdeptcd2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_csrxp -> SMMNG00500
- * Creator : yjh
- * Make Date : 2017-07-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-07-04 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- var searchFlag = "0";
- var curDept = -1;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- ds_main_csrtmlist.clearData();
- ds_send.clearData();
- ds_send.addRow();
-
- misfGridInit(grp_biz.grd_csrtmlist);
- misfGridInit(grp_biz.grd_csrreqdeptlist);
-
- var arrParam = [{dsNm: "ds_hidden_common_instcdinfo_Z0007", cdGrpId: "Z0007"}]
- appf_getCodeList(arrParam);
-
- grp_biz.grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- ds_send_reqdata_csrtmlist.clearData();
-
- //화면 권한 설정
- grp_biz.btn_save.enable = frmf_checkAuth("X");
- grp_biz.grp_sea.btn_prt.enable= frmf_checkAuth("P");
- }
-
- function fsearch(){
-
- // var updtdata = getGridUpdateData(grd_csrtmlist);
- //
- // //기관코드 값 체크
- // if ( updtdata != "") {
- // var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- // if (ret != 6) { // not OK
- // return;
- // }
- // }
- //
- var iRow = ds_main_csrreqdeptlist.rowposition;
- var iCol = grp_biz.grd_csrreqdeptlist.getBindCellIndex("body", "csrreqdeptcd");
-
-
- ds_send.setColumn(0, "instcd", grp_biz.grp_sea.cmb_instcd.value);
- ds_send.setColumn(0, "daykind", grp_biz.grp_sea.rdo_daykind.value);
-
- ds_send.setColumn(0, "csrreqdeptcd", ds_main_csrreqdeptlist.getColumn(iRow, "csrreqdeptcd"));
-
- var oParam = {};
- oParam.id = "TRMNG00501";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetCsrTmList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_csrtmlist=csrtmlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG00501";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("csrreqdeptnm")) ){
- ds_main_csrtmlist.addColumn("csrreqdeptnm", "string");
- }
- if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("daykindnm")) ){
- ds_main_csrtmlist.addColumn("daykindnm", "string");
- }
- if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("reqposfromtm")) ){
- ds_main_csrtmlist.addColumn("reqposfromtm", "string");
- }
- if( utlf_isNull(ds_main_csrtmlist.getColumnInfo("reqpostotm")) ){
- ds_main_csrtmlist.addColumn("reqpostotm", "string");
- }
-
- var daykind;
- var csrreqdeptcd;
-
- ds_main_csrtmlist.enableevent = false;
- ds_main_csrtmlist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
-
- daykind = ds_main_csrtmlist.getColumn(i, "daykind");
- csrreqdeptcd = ds_main_csrtmlist.getColumn(i, "csrreqdeptcd");
- ds_main_csrtmlist.setColumn(i, "csrreqdeptnm", ds_main_csrreqdeptlist.lookup("csrreqdeptcd", csrreqdeptcd, "csrreqdeptnm"));
- ds_main_csrtmlist.setColumn(i, "daykindnm", "");//ds_init_appendcd_R02701.lookup("cdid", daykind, "cdnm"));
- }
-
-
- //misfMsterDetailRetrieve();
-
- //misfSetReadOnlyCol(grd_csrtmlist, "csrreqdeptcd,daykind, reqseq", true);
-
- fChngReqPosTm();
-
- dsf_setDefaultVal(ds_main_csrtmlist, "bar:~");
-
- ds_main_csrtmlist.updatecontrol = true;
- ds_main_csrtmlist.enableevent = true;
-
- searchFlag = "1";
- }
- function fsave(){
-
- for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
- if( ds_main_csrtmlist.getRowType(i) == 2 ){
- if( utlf_isNull(ds_main_csrtmlist.getColumn(i, "csrreqdeptcd")) || utlf_isNull(ds_main_csrtmlist.getColumn(i, "daykind")) || utlf_isNull(ds_main_csrtmlist.getColumn(i, "reqseq")) ){
- return;
- }
- }
- }
-
- ds_main_csrtmlist.enableevent = false;
- ds_main_csrtmlist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_csrtmlist, "status");
-
- ds_main_csrtmlist.updatecontrol = true;
- ds_main_csrtmlist.enableevent = true;
-
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_csrtmlist);
-
- if( utlf_isNull(updtdata) || updtdata.rowcount < 1 )
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = sysf_messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- ds_send_reqdata_csrtmlist.assign(updtdata);
-
- var oParam = {};
- oParam.id = "TXMNG00501";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqExeSavereqGetCsrTmList";
- oParam.inds = "req=ds_send_reqdata_csrtmlist:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNG00501";
- tranf_submit(oParam);
-
- grp_biz.grp_sea.btn_search.click();
- }
- function fCheckTime(sColumnID)
- {
- if( sColumnID == "clotm" )
- {
- var sTime = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(ds_main_csrtmlist.rowposition, "clotm"));
-
- if( utlf_isNull(sTime) )
- {
- return;
- }
- if( sTime.length != 4 )
- {
- sysf_messageBox("네자리를 ","C001");
- ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if( parseInt(sFrontTime) > 24 )
- {
- sysf_messageBox("24시를 ","E001");
- ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
- return;
- }
-
- if( parseInt(sBackTime) > 59 )
- {
- sysf_messageBox("59분을 ","E001");
- ds_main_csrtmlist.setColumn(ds_main_csrtmlist.rowposition, "clotm", "");
- return;
- }
- }
- }
- function getCsrDeptList() {
- ds_send_reqData.setColumn(0, "cdgrupid", "R0269");
- ds_send_reqData.setColumn(0, "cdid", "%");
- ds_send_reqData.setColumn(0, "cdnm", "%");
-
- var oParam = {};
- oParam.id = "TRMNG00401";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetDeptFlagList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_csrreqdeptlist=csrreqdeptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG00401";
- tranf_submit(oParam);
-
- ds_main_csrreqdeptlist.rowposition = -1;
-
- // submit("TRMNG00502");
- ds_main_csrtmlist.clearData();
- }
- function fChngReqPosTm() {
- var tempClotm;
- var tempReqImposTm;
-
- var clotm;
-
- var stdCnt = 0; //평일
- var spclCnt = 0; //휴일
- var spclCnt2 = 0; //토요일
- var spclCnt3 = 0; //일요일
- var daykind;
-
- for( var i=0 ; i<ds_main_csrtmlist.rowcount ; i++ ){
- daykind = ds_main_csrtmlist.getColumn(i, "daykind");
-
- switch(daykind) {
- case '1' :
- stdCnt++;
- break;
- case '2' :
- spclCnt++;
- break;
- case '3' :
- spclCnt2++;
- break;
- case '4' :
- spclCnt3++;
- break;
- }
- }
-
- for( var i=0 ; i<stdCnt + spclCnt + spclCnt2 + spclCnt3 ; i++ ){
- tempClotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(i, "clotm"));
-
- tmpReqImposTm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(i, "reqimpostm"));
- //평일에 등록된 수량중 마지막일때
- if((i+1) == stdCnt) {
- ds_main_csrtmlist.setColumn(0, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(0, "clotm"));
- ds_main_csrtmlist.setColumn(0, "reqpostotm", subTm(clotm) + "59");
- } else if ((i+1) < stdCnt) { //평일에 등록된 수량일때
- ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
- ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) == stdCnt + spclCnt) { //휴일에 등록된 수량중 마지막일때
- ds_main_csrtmlist.setColumn(stdCnt, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt, "clotm"));
- ds_main_csrtmlist.setColumn(stdCnt, "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) > stdCnt && (i+1) < stdCnt + spclCnt) { //휴일에 등록된 수량일때
- ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
- ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) == stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량중 마지막일때.
- ds_main_csrtmlist.setColumn(stdCnt + spclCnt, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt + spclCnt, "clotm"));
- ds_main_csrtmlist.setColumn(stdCnt + spclCnt, "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) > stdCnt + spclCnt && (i+1) < stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량일때.
- ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
- ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) == stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량중 마지막일때.
- ds_main_csrtmlist.setColumn(stdCnt + spclCnt + spclCnt2, "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn(stdCnt + spclCnt + spclCnt2, "clotm"));
- ds_main_csrtmlist.setColumn(stdCnt + spclCnt + spclCnt2, "reqpostotm", subTm(clotm) + "59");
- } else if((i+1) > stdCnt + spclCnt + spclCnt2 && (i+1) < stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량일때.
- ds_main_csrtmlist.setColumn((i+1), "reqposfromtm", addTm(tempClotm, tmpReqImposTm) + "01");
- clotm = utlf_transNullToEmpty(ds_main_csrtmlist.getColumn((i+1), "clotm"));
- ds_main_csrtmlist.setColumn((i+1), "reqpostotm", subTm(clotm) + "59");
- }
- }
-
- // for(var i = 1; i <= grd_csrtmlist.rows - 1; i++) {
- // tempClotm = grd_csrtmlist.valueMatrix(i, grd_csrtmlist.colRef("clotm"));
- //
- // tmpReqImposTm = grd_csrtmlist.valueMatrix(i, grd_csrtmlist.colRef("reqimpostm"));
- //
- // if(i != grd_csrtmlist.rows-1) {
- // grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("reqposfromtm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- // } else {
- // grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("reqposfromtm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- // }
- //
- // if(i == grd_csrtmlist.rows - 1) {
- // clotm = grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("clotm"));
- // } else {
- // clotm = grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("clotm"));
- // }
- //
- // if(i != grd_csrtmlist.rows-1) {
- // grd_csrtmlist.valueMatrix(i + 1, grd_csrtmlist.colRef("reqpostotm")) = subTm(clotm) + "59";
- // }else {
- // grd_csrtmlist.valueMatrix(1, grd_csrtmlist.colRef("reqpostotm")) = subTm(clotm) + "59";
- // }
- // }
- }
- function subTm(clotm) {
- var cloHour = clotm.substr(0,2);
- var cloTm = clotm.substr(2,2);
-
- var sumHour = Number(cloHour);
- var sumTm = Number(cloTm) - 1;
-
- var hr;
- var tm;
-
- if(sumTm == -1) {
- sumTm = 59;
- sumHour -= 1;
- }
-
- if(sumHour == -1) {
- sumHour = 23;
- }
-
- if(sumHour < 10) {
- hr= "0" + sumHour;
- } else {
- hr = String(sumHour);
- }
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hr + tm;
- }
- function addTm(fstTm, lastTm) {
- var fstHour = fstTm.substr(0,2);
- var fstTm = fstTm.substr(2,2);
- var lastHour = lastTm.substr(0,2);
- var lastTm = lastTm.substr(2,2);
-
- var sumHour = (Number(fstHour) + Number(lastHour));
- var sumTm = Number(fstTm) + Number(lastTm);
-
- var hour;
- var tm;
-
- if(sumTm >= 60) {
-
- sumHour += 1;
- sumTm %= 60;
- }
-
- if(sumHour >= 24) {
- sumHour %= 24;
-
- }
-
- if(sumHour < 10) {
- hour = "0" + sumHour;
- } else {
- hour = String(sumHour);
- }
-
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hour + tm
- }
- function fPrintRex() {
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/csrtmlist", ds_main_csrtmlist); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
-
- rptf_exeReportPreview30(["RPMNG00500"],[objParam], option);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG00500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNG00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNG00500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNG00500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_csrtmlist, 0);
-
- grp_biz.grp_sea.rdo_daykind.value = "";
-
- fInitialize();
- grp_biz.grp_sea.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
- getCsrDeptList();
- if( utlf_isNull(grp_biz.grp_sea.ipt_reqdeptcd.value) || curDept != -1 ){
- ds_main_csrreqdeptlist.rowposition = curDept;
- fsearch();
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_biz.grp_sea.btn_search.click();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_daykind
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function grp_biz_grp_sea_rdo_daykind_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
- //btn_search.dispatch("DOMActivate");
- getCsrDeptList();
- fsearch();
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_send
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "deptnm" :
- misfValidationCheck("02", "", "deptcd,deptnm");
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( grp_biz.grd_csrtmlist.rowcount > 0 ){
- grdf_exportExcel(grp_biz.grd_csrtmlist, "CSR마감시간등록", "청구현황List", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_prt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrintRex();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_reqdept
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_reqdept_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPMNG00300","SPMNG00300",null,"",1,1,1,"","","","","","M");
-
- grp_biz.grp_sea.ipt_reqdeptcd.value = sysf_getModelProperty("deptcd");
- grp_biz.grp_sea.ipt_reqdeptnm.value = sysf_getModelProperty("deptnm");
- grp_biz.ipt_csrreqdeptcd2.value = sysf_getModelProperty("csrreqdeptcd");
-
- for( var i=0 ; i<ds_main_csrreqdeptlist.rowcount ; i++ ){
-
- if( ds_main_csrreqdeptlist.getColumn(i, "csrreqdeptcd") == grp_biz.ipt_csrreqdeptcd2.value ){
- ds_main_csrreqdeptlist.rowposition = i;
- fsearch();
- curDept = ds_main_csrreqdeptlist.rowposition;
- break;
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if( !frmf_isRequiredControls("grp_biz.grp_sea.cmb_instcd") ) return;
-
- misfGridIUD(grp_biz.grd_csrtmlist, "A");
- var cur_row = ds_main_csrtmlist.rowposition;
-
- ds_main_csrtmlist.enableevent = false;
- ds_main_csrtmlist.updatecontrol = false;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- ds_main_csrtmlist.setColumn(cur_row, "instcd", grp_biz.grp_sea.cmb_instcd.value);
- ds_main_csrtmlist.setColumn(cur_row, "bar", "~");
- ds_main_csrtmlist.setColumn(cur_row, "csrreqdeptcd", ds_main_csrreqdeptlist.getColumn(ds_main_csrreqdeptlist.rowposition, "csrreqdeptcd"));
- ds_main_csrtmlist.setColumn(cur_row, "reqimpostm", "0000");
- ds_main_csrtmlist.setColumn(cur_row, "dinfaplyn", "Y");
-
- ds_main_csrtmlist.updatecontrol = true;
- ds_main_csrtmlist.enableevent = true;
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- ds_main_csrtmlist.selectRow(ds_main_csrtmlist.rowcount - 1);
- grp_biz.grd_csrtmlist.showEditor(true);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_csrtmlist.rowposition > -1 ){
-
- var firstRow = grp_biz.grd_csrtmlist.selectstartrow[0];
- var lastRow = grp_biz.grd_csrtmlist.selectendrow[grp_biz.grd_csrtmlist.selectcount-1];
-
- for( var i=firstRow ; i<=lastRow ; i++ ){
- if( ds_main_csrtmlist.getRowType(i) == 2 ){
- ds_main_csrtmlist.deleteRow(i);
- } else {
- ds_main_csrtmlist.enableevent = false;
- ds_main_csrtmlist.updatecontrol = false;
-
- ds_main_csrtmlist.setRowType(i, 8);
-
- ds_main_csrtmlist.updatecontrol = true;
- ds_main_csrtmlist.enableevent = true;
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_csrtmlist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_csrtmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "clotm" || e.columnid == "reqimpostm" ){
- fChngReqPosTm();
- }
-
- fCheckTime(e.columnid);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_csrtmlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_biz_grd_csrtmlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
-
- //
- //
- //
- // if(stat == 0) {
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("clotm")) = true;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqimpostm")) = true;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqposfromtm")) = true;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqpostotm")) = true;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("cmt")) = true;
- //
- //
- //
- // } else if(stat == 2) {
- //
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("clotm")) = false;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqimpostm")) = false;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqposfromtm")) = false;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("reqpostotm")) = false;
- // grd_csrtmlist.colDisabled(grd_csrtmlist.colRef("cmt")) = false;
- // }
-
- grp_biz.grd_csrtmlist.showEditor(true);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_csrreqdeptlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_biz_grd_csrreqdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fsearch();
- curDept = ds_main_csrreqdeptlist.rowposition;
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_csrreqdeptlist
- * Event : onrowposchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 행위치 변경시
- ****************************************************************************************/
- function ds_main_csrreqdeptlist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
- {
- grp_biz.grp_sea.ipt_reqdeptcd.value = "";
- grp_biz.grp_sea.ipt_reqdeptnm.value = "";
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fsave();
- }
- ]]></Script>
- </Form>
- </FDL>
|