123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP00750" position="absolute 0 0 597 765" titletext="회복실 코드 관리" onload="SMMNP00750_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 590 27" id="group1">
- <Layouts>
- <Layout>
- <Static text="회복간호기록 삽관류 Check List" position="absolute 0 2 234 27" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 17 597 765" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 597 45" align="align:center top;" id="group2" class="div_SA" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 523 7 529 29" linetype="vertical" id="line13" anchor="default"/>
- <Button position="absolute 475 7 531 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="삽관류 항목" position="absolute 0 50 98 69" id="caption20" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 67 597 73" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Button position="absolute 489 48 542 67" id="button8" class="btn2" text="행추가" anchor="default" onclick="group3_button8_onclick"/>
- <Button position="absolute 544 48 597 67" id="button9" class="btn2" text="행삭제" anchor="default" onclick="group3_button9_onclick"/>
- <Grid position="absolute 0 72 597 748" id="grd_intublist" visible="true" binddataset="ds_main_list_chklist" anchor="default" onenterdown="group3_grd_intublist_onenterdown" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="56"/>
- <Column size="256"/>
- <Column size="69"/>
- <Column size="0"/>
- <Column size="91"/>
- <Column size="81"/>
- <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="항목코드"/>
- <Cell col="1" text="항목명"/>
- <Cell col="2" text="순서"/>
- <Cell col="3" text="위치"/>
- <Cell col="4" text="유효시작일"/>
- <Cell col="5" text="유효종료일"/>
- <Cell col="6" text="lastupdtrid"/>
- <Cell col="7" text="cdgrupid"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:cdid"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:center;" text="bind:cdnm"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center;" text="bind:sortseq"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:supcdid"/>
- <Cell col="4" displaytype="date" style="align:center;" text="bind:valifromdd" calendardisplaynulltype="none"/>
- <Cell col="5" displaytype="date" style="align:center;" text="bind:valitodd" calendardisplaynulltype="none"/>
- <Cell col="6" text="bind:lastupdtrnm"/>
- <Cell col="7" text="bind:lastupdtdt"/>
- <Cell col="8" text="bind:cdgrupid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 533 34 589 56" id="button2" class="btn4" text="저장" onclick="button2_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_intublist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="sortseq" type="STRING"/>
- <Column id="supcdid" type="STRING"/>
- <Column id="valifromdd" type="STRING"/>
- <Column id="valitodd" type="STRING"/>
- <Column id="lastupdtrnm" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- <Column id="cdgrupid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_list_chklist" 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"/>
- <Column id="sortseq" type="STRING" size="256"/>
- <Column id="supcdid" type="STRING" size="256"/>
- <Column id="valifromdd" type="STRING" size="256"/>
- <Column id="valitodd" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- <Col id="sortseq"/>
- <Col id="supcdid"/>
- <Col id="valifromdd"/>
- <Col id="valitodd"/>
- <Col id="lastupdtrnm"/>
- <Col id="lastupdtdt"/>
- <Col id="lastupdtrid"/>
- <Col id="cdgrupid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_listdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function fInitialize(){
- ds_send.clearData();
- //dsf_makeValue( ds_send, "temp", "string", "temp");
- dsf_makeValue( ds_send, "cdgrupid", "string", "250");
- //submit("TRMNP00750");
-
- var oParam = {};
- oParam.id = "TRMNP00750";
- oParam.service = "opanstapp.OpAnstRef";
- oParam.method = "reqGetIntubChkList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_chklist=chklist";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_list_chklist.rowposition = -1;
- }
- function fClickRowAddBtn(){
-
- var cur_row = ds_main_list_chklist.addRow(); // 입력할 행 추가.
-
- sGridPath = "ds_main_list_chklist"
- // //줄 추가시 기본세팅
- eval(sGridPath).setColumn(cur_row, "cdgrupid", "250" );
- //grd_intublist.refresh();
-
- var bodyCellCnt = group3.grd_intublist.getCellCount("body") - 1;
- var sCurColIdx = group3.grd_intublist.getCellProperty("body", bodyCellCnt, "col");
- var sCurRowIdx = group3.grd_intublist.getCellProperty("body", bodyCellCnt, "row");
-
-
- group3.grd_intublist.setCellPos("body", bodyCellCnt - group3.grd_intublist.getFormatColCount);
- group3.grd_intublist.onenteredit();
- }
- function fClickDeleteBtn(){
- var cur_row = ds_main_list_chklist.rowposition; //grd_intublist.row; // 행 번호 가져오기
- var iStatus = ds_main_list_chklist.getRowType(cur_row);
-
- if(cur_row < 0 || cur_row =="undefined") {
- alert("삭제할 행을 선택하시기 바랍니다...");
- return;
- }
-
- if (iStatus == 2) { //iStatus == 1 || iStatus == 3){ // 새로 삽입된 행이면
- ds_main_list_chklist.deleteRow(cur_row);// group3.grd_intublist.deleteitem(cur_row);
-
- }else if (iStatus == 8) { //4 삭제로 표시된 행이면
- ds_main_list_chklist.deleteRow(cur_row);
- }else{
- //group3.grd_intublist.addStatus(cur_row, "delete");
- ds_main_list_chklist.deleteRow(cur_row);
-
- }
- }
- function fOnClickSaveBtn(){
- //grd_intublist.refresh();
-
- var cnt_row = ds_main_list_chklist.rowcount; //.rows; // 현재 행의 갯수 가져오기
- for (var row = 0 ; row < cnt_row ; row++){
- if( utlf_isNull(ds_main_list_chklist.getColumn(row, "cdnm")))
- {
- alert("["+ row +"] 행 항목명에 빈값을 저장할 수 없습니다");
- return;
- }
-
- }
-
- ds_send_listdata.clearData();
-
- //dsf_makeValue( ds_send, "listdata", "string", grd_intublist.getUpdateData());
-
- ds_send_listdata.assign(ds_main_list_chklist);
- grdf_setStatusColumn(ds_send_listdata, "status");
- //if ( submit("TXMNP00750") ) {
-
- var oParam = {};
- oParam.id = "TXMNP00750";
- oParam.service = "opanstapp.OpAnstRef";
- oParam.method = "reqSetIntubChkList";
- oParam.inds = "listdata=ds_send_listdata:A";
- oParam.outds = "ds_main_list_chklist=chklist";
- oParam.async = false;
- oParam.callback = "cf_TXMNP00750";
- tranf_submit(oParam);
- ds_main_list_chklist.rowposition = -1;
- if ( arErrorCode.pop("TXMNP00750") > -1 ) {
- //grd_intublist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- ds_send_listdata.clearData();
- }
-
- group3.group2.btn_search.click(); //.dispatch("DOMActivate");
- }
- function cf_TXMNP00750(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fGridValueChanged(){
- // var cur_row = grd_intublist.row; // 추가된 행 번호 가져오기
- // var cur_cel = grd_intublist.col;
- // var cnt_row = grd_intublist.rows; // 현재 행의 갯수 가져오기
- // var stat = grd_intublist.colstatus(0);
- // var addcdid = ds_main_list_chklist.getColumn(cur_row, "cdid"))];
- //
- // if(cur_cel == 1){
- // for( row = 1; row < cnt_row-1; row++){
- // if(addcdid == ds_main_list_chklist.getColumn(row, "cdid"))]){
- // sysf_messageBox("같은 항목코드는 입력하실 수 없습니다. ","I000");
- // ds_main_list.setColumn( cur_row , "cdid" , "");
- // //grd_intublist.refresh();
- // grd_intublist.select(cur_row, 1) = true;
- // grd_intublist.editcell();
- //grd_intublist.rowstatus(cur_row) = 0;
- // return;
- // }
- //
- // }
- //
- // }
- }
- function SMMNP00750_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
-
- //grdf_setRowTypeIcon(group3.grd_intublist, 0);
-
- grdf_initGrid(group3.grd_intublist);
-
- fInitialize();
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fOnClickSaveBtn();
- }
- function group3_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickRowAddBtn();
- }
- function group3_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickDeleteBtn();
- }
- function group3_grd_intublist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- fGridValueChanged();
- }]]></Script>
- </Form>
- </FDL>
|