123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05502" position="absolute 0 0 728 551" titletext="응급진료보고수정" onload="SPMMI00400_onload" oninit="SPMMI00400_oninit">
- <Layouts>
- <Layout>
- <Grid position="absolute 256 72 712 488" id="grd_userlist" binddataset="ds_main_worklist" cellclickbound="cell" extendsizetype="none" autofittype="col" cellsizingtype="none" onkeydown="grd_userlist_onkeydown" ontextchange="grd_userlist_ontextchange" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="94"/>
- <Column size="295"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="진료과코드"/>
- <Cell col="3" text="진료과명"/>
- <Cell col="4" displaytype="normal" style="align:center;" text="구분"/>
- <Cell col="5" text="사번"/>
- <Cell col="6" text="의사명"/>
- </Band>
- <Band id="body">
- <Cell text="bind:iudflag"/>
- <Cell col="1" text="bind:workno"/>
- <Cell col="2" text="bind:orddeptcd"/>
- <Cell col="3" text="bind:deptnm"/>
- <Cell col="4" displaytype="combo" style="align:center;" text="bind:dutycd" suppress="1" suppressalign="middle,over" combodataset="ds_init_dutycd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" text="bind:doc1"/>
- <Cell col="6" edittype="text" text="bind:docname1" editautoselect="true" editautoskip="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="3" position="absolute 0 25 712 64" class="div_SA">
- <Layouts>
- <Layout>
- <Calendar id="ipt_date" taborder="19" class="input_essential" position="absolute 89 10 179 29" anchor="default" enable="false"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 602 7 607 33" anchor="default"/>
- <Button id="btn_srch" taborder="20" text="조회" class="btn1" position="absolute 641 8 702 30" anchor="default" onclick="grp_sea_btn_srch_onclick"/>
- <Static id="caption11" text="조회일자" class="search_name" position="absolute 15 11 85 28" anchor="default"/>
- <Static id="caption2" text="진료과" class="search_name" position="absolute 197 11 259 28" anchor="default"/>
- <Combo id="cmb_orddept" taborder="23" innerdataset="ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 258 9 403 28" anchor="default" onitemchanged="grp_sea_cmb_orddept_onitemchanged" enable="false"/>
- <Static id="caption7" text="구분" class="search_name" position="absolute 415 11 450 28" anchor="default"/>
- <Combo id="cmb_dutycd" taborder="25" innerdataset="@ds_init_dutycd" codecolumn="cdid" datacolumn="cdnm" onitemchanged="grp_sea_cmb_userid_onitemchanged" class="combo_search" position="absolute 457 9 594 28" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="응급진료보고수정" class="tit_1" position="absolute 0 0 137 24"/>
- <Shape id="line8" class="line_1" position="absolute 0 65 719 72" style="strokepen:3 solid #33bbbbff;"/>
- <Button id="button8" taborder="8" text="추가" onclick="button8_onclick" class="btn2" position="absolute 560 490 602 510" anchor="top right"/>
- <Button id="button9" taborder="9" text="삭제" onclick="button9_onclick" class="btn2" position="absolute 604 490 646 510" anchor="top right"/>
- <Button id="btn_SaveDhrcd" taborder="10" text="저장" onclick="btn_SaveDhrcd_onclick" class="btn4" position="absolute 652 490 708 510" anchor="top right"/>
- <Grid id="grd_drlist" taborder="11" binddataset="ds_main_drinfolist" useinputpanel="false" autofittype="col" position="absolute 0 72 250 490" oncelldblclick="grd_drlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="312"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="의사 Call 대상자"/>
- <Cell col="1" text="userid"/>
- <Cell col="2" text="userdeptcd"/>
- <Cell col="3" text="phone"/>
- <Cell col="4" text="bbtel"/>
- <Cell col="5" text="saveyn"/>
- </Band>
- <Band id="body">
- <Cell style="selectbackground:#7fef0fff;" text="bind:drnm"/>
- <Cell col="1" text="bind:drid"/>
- <Cell col="2" text="bind:deptcd"/>
- <Cell col="3" text="bind:phone"/>
- <Cell col="4" text="bind:bbtel"/>
- <Cell col="5" text="bind:saveyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="dutycdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_dutycd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">과장</Col>
- <Col id="cdid">0</Col>
- </Row>
- <Row>
- <Col id="cdnm">1차정규</Col>
- <Col id="cdid">10</Col>
- </Row>
- <Row>
- <Col id="cdnm">1차 야간 공휴</Col>
- <Col id="cdid">11</Col>
- </Row>
- <Row>
- <Col id="cdnm">2차 정규</Col>
- <Col id="cdid">20</Col>
- </Row>
- <Row>
- <Col id="cdnm">2차 야간 공휴</Col>
- <Col id="cdid">21</Col>
- </Row>
- <Row>
- <Col id="cdnm">3차</Col>
- <Col id="cdid">30</Col>
- </Row>
- <Row>
- <Col id="cdnm">비고</Col>
- <Col id="cdid">99</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_worklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_drinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drnm" type="STRING" size="256" sumtext="당직대상자명"/>
- <Column id="drid" type="STRING" size="256" sumtext="당직대상자코드"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="당직대상자부서코드"/>
- <Column id="phone" type="STRING" size="256" sumtext="핸드폰번호"/>
- <Column id="bbtel" type="STRING" size="256" sumtext="beeper"/>
- <Column id="saveyn" type="STRING" size="256" sumtext="근무자저장여부"/>
- <Column id="mespclyn" type="STRING" size="256" sumtext="주치의 여부 "/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="grp_sea.cmb_dutycd" propid="value" datasetid="ds_main_cond" columnid="dutycd"/>
- <BindItem id="item0" compid="grp_sea.ipt_date" propid="value" datasetid="ds_main_cond" columnid="workdd"/>
- <BindItem id="item1" compid="grp_sea.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KNUH2.0
- * Job Name : EMR
- * Creator :
- * Make Date : 2014-08-29
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-29 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- include "emr_prcpmngtxp::SPMMO00100.xjs";
- //include "emr_commonxp::EMRCommon.xjs"
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO00800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로드
- ****************************************************************************************/
- function SPMMI00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_userlist);
- }
- function SPMMI00400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_userlist, 0);
- //grdf_setToolTipBind(grd_userlist);
-
- if (frmf_checkOpener()) {
- try {
- ds_main_cond.copyRow(0, arg_cond, 0);
- grp_sea.btn_srch.click();
- }
- catch (err) {
- }
- }
- lf_mmbfGetDeptCodeComboList(ds_init_orddept , "D",""); //부서코드 콤보
- dsf_addDsItem( ds_init_orddept, "deptcd", "depthngnm", "전체", "-", "above" ); //부서콤보 Item '전체'추가
-
- }
- // function grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- // {
- // fGetUserSrch();
- // }
- //
- // /****************************************************************************************
- // * Function : fGetUserSrch
- // * Description : 파견의검색
- // * Argument :
- // * :
- // * return type :
- // * Creator :
- // ****************************************************************************************/
- // function fGetUserSrch() {
- // var oParam = {};
- // oParam.id = "TRMMI00401";
- // oParam.service = "prcpinfoapp.PrcpInfoEtcMngt";
- // oParam.method = "reqGetResidentUserList";
- // oParam.inds = "req=" + "ds_main_cond";
- // oParam.outds = "ds_userlist=userlist";
- // oParam.async = false;
- // //oParam.callback = "cf_TRMMO00801";
- //
- // tranf_submit(oParam);
- // }
- //
- // function grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- // {
- // ds_init_userlist.clearData();
- // lf_mmbfGetUserComboList(ds_init_userlist , grp_sea.cmb_orddept.value, "0330");
- // dsf_addDsItem( ds_init_userlist , "userid", "usernm", "전체", "-", "above");
- // ds_main_cond.setColumn(0,"userid", "-");
- //
- // fGetUserSrch();
- // }
- //
- //
- // function grp_sea_cmb_userid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- // {
- // fGetUserSrch();
- // }
- //
- // function grp_sea_Edit00_onkeydown(obj:Edit, e:KeyEventInfo)
- // {
- // if(e.keycode == 13) {
- // obj.updateToDataset();
- // fGetUserSrch();
- // }
- // }
- //
- //
- // function button8_onclick(obj:Button, e:ClickEventInfo)
- // {
- // ds_userlist.addRow();
- // var nRow = ds_userlist.rowposition;
- // ds_userlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- // ds_userlist.setColumn(nRow, "todd", utlf_getCurrentDate());
- // ds_userlist.setColumn(nRow, "edittodd", utlf_getCurrentDate());
- // ds_userlist.setColumn(nRow, "tempyn", "N");
- // }
- //
- // function button9_onclick(obj:Button, e:ClickEventInfo)
- // {
- // fDeleteRow();
- // }
- //
- // function fDeleteRow() {
- // var nRow = ds_userlist.rowposition;
- // var iStatus = ds_userlist.getRowType(nRow);
- //
- // if(nRow < 0) {
- // alert("삭제할 행을 선택해주세요.");
- // return;
- // }
- //
- // if (iStatus == 2) { // 새로 삽입된 행이면
- // ds_userlist.deleteRow(nRow);
- // } else if (iStatus == 8){ // 삭제 상태 이면
- // grdf_setStatus(grd_userlist, "", [nRow]);
- // } else {
- // var sFstRgstrId = ds_userlist.getColumn(nRow, "fstrgstrid");
- // var sFstRgstDt = ds_userlist.getColumn(nRow, "fstrgstdt");
- // if(sFstRgstDt.length > 8) {
- // sFstRgstDt = sFstRgstDt.substring(0, 8);
- // }
- //
- // trace("sFstRgstrId : " + sFstRgstrId );
- // trace("getUserInfo : " + sysf_getUserInfo("userid") );
- //
- // trace("sFstRgstDt : " + sFstRgstDt );
- // trace("CurrentDate : " + utlf_getCurrentDate() );
- //
- // if(sFstRgstrId != sysf_getUserInfo("userid") || sFstRgstDt != utlf_getCurrentDate()) {
- // sysf_messageBox("로그인 사용자가 당일 등록한 정보만 삭제 가능 합니다.", "E");
- // return;
- // } else {
- // grdf_setStatus(grd_userlist, "D", [nRow]);
- // }
- // }
- // }
- //
- // function btn_SaveDhrcd_onclick(obj:Button, e:ClickEventInfo)
- // {
- // var oDsUpdate = grdf_getGridUpdateData(grd_userlist);
- // if(oDsUpdate.rowcount < 1){
- // sysf_messageBox("입력 또는 수정 할 ", "E013");// 입력, 수정, 삭제 데이터가 없으면 "입력된 데이터가 없습니다."는 메시지 출력
- // return;
- // }
- //
- // grdf_setStatusColumn(oDsUpdate, "status");//각 행의 status에 rowType 값에 따라 i, u, d로 업데이트 시켜줌
- // ds_send_save.copyData(oDsUpdate, true);
- //
- // if( sysf_messageBox("파견의사 정보를","Q002") == 6 ){
- //
- // var oParam = {};
- // oParam.id = "TXMMI00401";
- // oParam.service = "prcpinfoapp.PrcpInfoEtcMngt";
- // oParam.method = "reqExeSaveResidentUserInfo";
- // oParam.inds = "req=ds_send_save";
- // oParam.outds = "";
- // oParam.async = false;
- //
- // var bRtn = tranf_submit(oParam);
- //
- // if(bRtn) {
- // fGetUserSrch();
- // }
- // }
- // }
- //
- // function btn_excel01_onclick(obj:Button, e:ClickEventInfo)
- // {
- // grdf_exportExcel(grd_userlist, "파견의사목록", "파견의사목록", false, "", "user", true);
- // }
- //
- // function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- // {
- // grdf_exportExcel(grd_sampleexcel, "파견의사등록", "파견의사등록", false, "", "user", true);
- // }
- //
- // function btn_excel00_onclick(obj:Button, e:ClickEventInfo)
- // {
- // var nRow = 0;
- // var sDutPlceCd = "";
- // var sDutPlceNm = "";
- // var sUserNm = "";
- // var sUserId = "";
- // var sFromDd = "";
- // var sToDd = "";
- //
- // ds_uploadexcel.clearData();
- // if( grdf_ImportExcel("ds_uploadexcel", 1, "") != false){
- // var rows = ds_uploadexcel.rowcount;
- //
- // if( rows <= 0 ){
- // sysf_messageBox("등록된 사용자 정보가 없습니다","");
- // return;
- // }
- //
- // for (i = 0; i < rows; i++){
- // sDutPlceNm = ds_uploadexcel.getColumn(i, "dutplcenm");
- // sUserNm = ds_uploadexcel.getColumn(i, "usernm");
- // sUserId = ds_uploadexcel.getColumn(i, "userid");
- // sFromDd = ds_uploadexcel.getColumn(i, "fromdd");
- // sToDd = ds_uploadexcel.getColumn(i, "todd");
- //
- // if ( utlf_isNull(sUserId)) {
- // continue;
- // }
- // if(sDutPlceNm == "진료과" || sUserNm == "성명" || sUserId == "사번" || sFromDd == "시작일" || sToDd == "종료일") {
- // continue;
- // }
- //
- // if(sFromDd.length > 8) {
- // sFromDd = sFromDd.substring(0, 8);
- // }
- // if(sToDd.length > 8) {
- // sToDd = sToDd.substring(0, 8);
- // }
- //
- // if(sDutPlceNm == "내과" || sDutPlceNm == "외과" || sDutPlceNm == "소아청소년과") { // 세부부서 처리
- // var sMainDeptNm = sDutPlceNm;
- // var deptrows = 0;
- // if(sMainDeptNm == "내과") {
- // deptrows = ds_hardcd568.rowcount; //내과 세부부서
- // } else if(sMainDeptNm == "외과") {
- // deptrows = ds_hardcd569.rowcount; //외과 세부부서
- // } else if(sMainDeptNm == "소아청소년과") {
- // deptrows = ds_hardcd570.rowcount; //소아청소년과 세부부서
- // }
- //
- // for (j = 0; j< deptrows; j++){
- // if(sMainDeptNm == "내과") {
- // sDutPlceCd = ds_hardcd568.getColumn(j, "hardcd");
- // } else if(sMainDeptNm == "외과") {
- // sDutPlceCd = ds_hardcd569.getColumn(j, "hardcd");
- // } else if(sMainDeptNm == "소아청소년과") {
- // sDutPlceCd = ds_hardcd570.getColumn(j, "hardcd");
- // }
- //
- // sDutPlceNm = ds_init_orddept.getColumn(ds_init_orddept.findRow("deptcd", sDutPlceCd), "depthngnm");
- //
- // ds_userlist.addRow();
- // nRow = ds_userlist.rowposition;
- //
- // ds_userlist.setColumn(nRow, "dutplcecd", sDutPlceCd);
- // ds_userlist.setColumn(nRow, "dutplcenm", sDutPlceNm);
- // ds_userlist.setColumn(nRow, "usernm", sUserNm);
- // ds_userlist.setColumn(nRow, "userid", sUserId);
- // ds_userlist.setColumn(nRow, "fromdd", sFromDd);
- // ds_userlist.setColumn(nRow, "todd", sToDd);
- // ds_userlist.setColumn(nRow, "edittodd", sToDd);
- // ds_userlist.setColumn(nRow, "tempyn", "N");
- // }
- // } else {
- // sDutPlceCd = ds_init_orddept.getColumn(ds_init_orddept.findRow("depthngnm", sDutPlceNm), "deptcd");
- //
- // ds_userlist.addRow();
- // nRow = ds_userlist.rowposition;
- //
- // ds_userlist.setColumn(nRow, "dutplcecd", sDutPlceCd);
- // ds_userlist.setColumn(nRow, "dutplcenm", sDutPlceNm);
- // ds_userlist.setColumn(nRow, "usernm", sUserNm);
- // ds_userlist.setColumn(nRow, "userid", sUserId);
- // ds_userlist.setColumn(nRow, "fromdd", sFromDd);
- // ds_userlist.setColumn(nRow, "todd", sToDd);
- // ds_userlist.setColumn(nRow, "edittodd", sToDd);
- // ds_userlist.setColumn(nRow, "tempyn", "N");
- // }
- // }
- // }
- // }
- //
- //
- //
- // function grd_userlist_onkeydown(obj:Grid, e:KeyEventInfo)
- // {
- // if(e.keycode == 46) { // delete 키 입력시
- // fDeleteRow();
- // }
- // }
- function grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRMNE05504";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList2";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_worklist=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
-
- dsf_makeValue(ds_main_worklist, "iudflag", "string");
-
- // 진료과 정보가 변경 되었는지 체크. end
-
- if (ds_main_cond.getColumn(0,"dutycd") != "99") {
- var oParam = {};
- oParam.id = "TRMMO30001";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqGetDrInfo";
- oParam.inds = "searchinfo=ds_main_cond";
- oParam.outds = "ds_main_drinfolist=drinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMMO30001";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRMMO30001") < 0){
- sysf_messageBox("진료과별 당직대상자 조회를 실패하였습니다.", "E999");
- return false;
- }
- }
- }
- function button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsertRow();
- }
- function button9_onclick(obj:Button, e:ClickEventInfo)
- {
- fDeleteRow();
- }
- function fDeleteRow() {
- var nRow = ds_main_worklist.rowposition;
- var iStatus = ds_main_worklist.getRowType(nRow);
- if(nRow < 0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
- if (iStatus == 2) { // 새로 삽입된 행이면
- ds_main_worklist.deleteRow(nRow);
- } else if (iStatus == 8){ // 삭제 상태 이면
- grdf_setStatus(grd_userlist, "", [nRow]);
- } else {
- grdf_setStatus(grd_userlist, "D", [nRow]);
- }
-
- }
- function grp_sea_cmb_userid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_sea.btn_srch.click();
- }
- function btn_SaveDhrcd_onclick(obj:Button, e:ClickEventInfo)
- {
-
- dsf_createDs("ds_send_workerinfolist");
- //ds_send_workerinfolist.copyData(grdf_getGridUpdateData(grd_userlist,"all"),true);
- var updategrid = grdf_getGridUpdateData(grd_userlist);
- grdf_setStatusColumn(updategrid, "iudflag");
- ds_send_workerinfolist.copyData(updategrid, true);
- var oParam = {};
- oParam.id = "TRMNE05505";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetReportWorkScheList3";
- oParam.inds = "req=ds_send_workerinfolist";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
-
-
- if(arErrorCode.pop("TRMNE05505") < 0){
- sysf_messageBox(" 저장을 실패하였습니다.", "E999");
- }else{
- //trace('AAAA :'+arErrorCode.pop("TRMNE05505"));
- grp_sea.btn_srch.click();
- }
- }
- function fInsertRow() {
- ds_main_worklist.addRow();
- var nRow = ds_main_worklist.rowposition;
- ds_main_worklist.setColumn(nRow, "workdd", ds_main_cond.getColumn(0,"workdd"));
- ds_main_worklist.setColumn(nRow, "orddeptcd", ds_main_cond.getColumn(0,"orddeptcd"));
- ds_main_worklist.setColumn(nRow, "deptnm", ds_main_worklist.getColumn(0,"deptnm"));
- ds_main_worklist.setColumn(nRow, "dutycd", ds_main_cond.getColumn(0,"dutycd"));
- ds_main_worklist.setColumn(nRow, "dutycdnm", ds_main_cond.getColumn(0,"dutycdnm"));
- ds_main_worklist.setColumn(nRow, "doc1", ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drid"));
- ds_main_worklist.setColumn(nRow, "docname1", ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drnm"));
- }
-
- function grd_drlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if (ds_main_cond.getColumn(0,"dutycd") == "99"){ //비교
-
- }else{
- fInsertRow();
- }
- }
- function grd_userlist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
- {
- obj.updateToDataset();
- }
- ]]></Script>
- </Form>
- </FDL>
|