123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLNP90700" position="absolute 0 0 1239 796" titletext="Manual작업대장" oninit="SPLNP90700_oninit" onload="SPLNP90700_onload">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="1" text="저 장" class="btn4" position="absolute 1040 11 1103 33" anchor="top right" onclick="btn_save_onclick" onlbuttonup="btn_save_onlbuttonup"/>
- <Button id="btn_init" taborder="2" text="초기화" class="btn4" position="absolute 1171 11 1237 33" anchor="top right" onlbuttonup="btn_init_onlbuttonup" onclick="btn_init_onclick"/>
- <Button id="button3" taborder="3" text="삭 제" class="btn4" position="absolute 1105 11 1169 33" anchor="top right" onclick="button3_onclick"/>
- <Static id="caption6" text="오염검체등록관리" class="tit_1" position="absolute 0 8 165 33" anchor="left top"/>
- <Div id="group2" taborder="4" position="absolute 0 40 1238 80" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption3" text="구 분 :" class="search_name" position="absolute 16 11 86 28" anchor="left top"/>
- <Button id="btn_search" taborder="1" text="조 회" class="btn1" position="absolute 1127 10 1195 32" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Combo id="cbo_slist" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 91 10 216 29" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <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>
- </Combo>
- <Edit id="ipt_search" taborder="3" class="input_button" position="absolute 221 10 352 29" anchor="left top" onkeyup="group2_ipt_search_onkeyup"/>
- <CheckBox id="chk_add" taborder="4" position="absolute 364 10 429 30" anchor="left top" text="추가" truevalue="true" visible="true"/>
- <Calendar id="ipt_colfromdd" taborder="5" class="input_s_essential" position="absolute 877 10 977 29" anchor="top right"/>
- <Calendar id="ipt_coltodd" taborder="6" class="input_s_essential" position="absolute 1002 10 1102 29" anchor="top right"/>
- <Static id="caption2" text="재처리일 :" class="search_name" position="absolute 801 10 875 27" anchor="top right"/>
- <Static id="caption4" text="~" class="search_no_b" position="absolute 982 10 997 27" anchor="top right"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1117 6 1123 33" anchor="top right"/>
- <Radio id="rdo_trobrslt" taborder="7" columncount="3" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="0" position="absolute 542 11 699 31">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">All</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">액체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">고체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption00" text="선택 :" class="search_name" position="absolute 467 13 521 30" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="오염된검체목록" class="tit_2" position="absolute 0 95 141 111"/>
- <Button id="btn_excel" taborder="5" text="엑셀" class="btn7" position="absolute 1180 91 1234 110" anchor="top right" onclick="btn_excel_onclick"/>
- <Button id="button1" taborder="6" text="행추가" class="btn2" position="absolute 1070 91 1123 110" anchor="top right" onclick="button1_onclick"/>
- <Button id="button2" taborder="7" text="행삭제" class="btn2" position="absolute 1125 91 1178 110" anchor="top right" onclick="button2_onclick"/>
- <Grid id="grd_orglist" taborder="8" binddataset="ds_grd_orglist" useinputpanel="false" position="absolute 0 116 1237 787" anchor="all" onkeyup="grd_orglist_onkeyup" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="30"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="81"/>
- <Column size="70"/>
- <Column size="69"/>
- <Column size="179"/>
- <Column size="88"/>
- <Column size="81"/>
- <Column size="323"/>
- <Column size="98"/>
- </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" text="차트번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="검체코드"/>
- <Cell col="7" text="검체명"/>
- <Cell col="8" text="재처리일자"/>
- <Cell col="9" text="구분"/>
- <Cell col="10" text="비고"/>
- <Cell col="11" text="등록일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" displaytype="text" edittype="none" style="align:center middle;" text="bind:trnsseqno"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:bcno"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:pid"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:patnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:spccd"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:center middle;" text="bind:spcnm"/>
- <Cell col="8" displaytype="date" edittype="date" style="align:center middle;" text="bind:bcolldt" mask="yyyy-MM-dd"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center;" text="bind:diff" combodataset="ds_init_gubun" combocodecol="cd" combodatacol="nm"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:left middle;" text="bind:cmt"/>
- <Cell col="11" displaytype="date" edittype="date" text="bind:rgstdt" mask="yyyy-MM-dd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="iorglist" taborder="9" binddataset="ds_iorglist" useinputpanel="false" visible="false" position="absolute 1016 270 1077 312" anchor="left top">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="no"/>
- <Cell col="1" text="작업일"/>
- <Cell col="2" text="KONOS_ID"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="채취일"/>
- <Cell col="5" text="채취기관"/>
- <Cell col="6" text="희망장기"/>
- <Cell col="7" text="이식희망병원"/>
- </Band>
- <Band id="body">
- <Cell text="bind:no"/>
- <Cell col="1" text="bind:workdd"/>
- <Cell col="2" text="bind:konosid"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" text="bind:bcolldt"/>
- <Cell col="5" text="bind:trnscorpnm"/>
- <Cell col="6" text="bind:trnshopeorgncd"/>
- <Cell col="7" text="bind:trnscmt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 111 1237 117" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption00" text="총건수" class="tit_2" position="absolute 211 90 328 106"/>
- <Edit id="Edit00" taborder="11" position="absolute 279 87 351 107" style="color:deeppink;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_orglist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="trnsseqno" type="STRING" size="256" sumtext="번호"/>
- <Column id="bcno" type="STRING" size="256" sumtext="KONOS_ID"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="patnm" type="STRING" size="256" sumtext="보관함"/>
- <Column id="spcnm" type="STRING" size="256"/>
- <Column id="bcolldt" type="STRING" size="256" sumtext="채취일자"/>
- <Column id="sort" type="STRING" size="256" sumtext="이식의료기관"/>
- <Column id="diff" type="STRING" size="256" sumtext="이식희망장기"/>
- <Column id="cmt" type="STRING" size="256" sumtext="폐기일시"/>
- <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
- <Column id="spccd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_iorglist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="trnsseqno" type="STRING" size="256" sumtext="번호"/>
- <Column id="konosid" type="STRING" size="256" sumtext="KONOS_ID"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="keeppos" type="STRING" size="256" sumtext="보관함"/>
- <Column id="bcolldt" type="STRING" size="256" sumtext="채취일자"/>
- <Column id="trnscorpnm" type="STRING" size="256" sumtext="이식의료기관"/>
- <Column id="trnshopeorgncd" type="STRING" size="256" sumtext="이식희망장기"/>
- <Column id="abndt" type="STRING" size="256" sumtext="폐기일시"/>
- <Column id="trnscmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0116" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_ref2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">액체</Col>
- </Row>
- <Row>
- <Col id="nm">고체</Col>
- <Col id="cd">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_gubun00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="INT" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="Edit00" propid="value" datasetid="ds_init_gubun00" columnid="cd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SPLNP90700_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SPLNP90700_onload(obj:Form, e:LoadEventInfo)
- {
- lf_setInit();
- grdf_initGrid(grd_orglist);
- grdf_setRowTypeIcon(grd_orglist,0);
- }
- function lf_setInit()
- {
- var toDay = utlf_getCurrentDate();
- var mDay = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-3,"M")
-
- group2.ipt_colfromdd.value = mDay.getDateFormat("YYYYMMDD");
- group2.ipt_coltodd.value = toDay;
- group2.cbo_slist.value = 2;
-
- ds_grd_orglist.clearData();
- ds_init_lb0116.clearData();
- }
- function lf_getOranTranfList(gbn)
- {
- var workgbn = group2.cbo_slist.value;
- var workcmd = group2.ipt_search.value;
- var trnsseqno, pid, patnm, bcno, bcolldt, trnscorpnm, rgstdt, colfromdd, coltodd, bcolgbn;
- if(gbn == "ref")
- {
- if (workgbn == "1")
- {
- trnsseqno = workcmd;
- }
- else if (workgbn == "2")
- {
- bcno = workcmd;
- }
- else if (workgbn == "3")
- {
- pid = workcmd;
- }
- else if (workgbn == "4")
- {
- patnm = workcmd;
- }
- else if (workgbn == "5")
- {
- bcolldt = workcmd;
- }
- else if (workgbn == "6")
- {
- rgstdt = workcmd;
- }
- }
- if( group2.chk_add.value != "true")
- {
- ds_grd_orglist.clearData();
- }
- else if ( group2.chk_add.value == "true" )
- {
- // trace(ds_temp_search.getColumn(0,"bcno") + " " + group2.chk_add.value + " test");
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col:"bcno", val:bcno, type:"STRING", size:256}]);
-
- trace(" test `1`1`1`1`1`1`1");
- lf_setAddRow();
- lf_getmaxdata2();
- return;
- }
-
- if (gbn == "days")
- {
- colfromdd = group2.ipt_colfromdd.value;
- coltodd = group2.ipt_coltodd.value;
- bcolgbn = "1";
- }
-
- trace(group2.rdo_trobrslt.value);
- var sInDsName = dsf_createDsRow("ds_temp_search", [
- {col:"workgbn", val:workgbn, type:"STRING", size:256}
- , {col:"workcmd", val:workcmd, type:"STRING", size:256}
- , {col:"colfromdd", val:colfromdd, type:"STRING", size:256}
- , {col:"coltodd", val:coltodd, type:"STRING", size:256}
- , {col:"bcolgbn", val:bcolgbn, type:"STRING", size:256}
- , {col:"trnsseqno", val:trnsseqno, type:"STRING", size:256}
- , {col:"bcno", val:bcno, type:"STRING", size:256}
- , {col:"patnm", val:patnm, type:"STRING", size:256}
- , {col:"pid", val:pid, type:"STRING", size:256}
- , {col:"bcolldt", val:bcolldt, type:"STRING", size:256}
- , {col:"rgstdt", val:rgstdt, type:"STRING", size:256}
- , {col: "diff", val:group2.rdo_trobrslt.value}
- ]);
-
- var oParam = {};
- oParam.id = "TRLNP90703";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetOranTransList2";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grd_orglist=OranList";
- oParam.async = false;
- tranf_submit(oParam);
-
- //ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "pid", ds_hidden_ref2.getColumn(0,"pid"));
- /** 이재오 추가 */
-
- ds_init_gubun00.setColumn(0,"cd",ds_grd_orglist.rowcount);
-
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getOranTranfList("days");
- }
- function group2_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13")
- {
- if(utlf_isNull(group2.ipt_search.value))
- {
- alert("조회구분을 입력해 주세요. ");
- return;
- }
- group2.ipt_search.value = String(group2.ipt_search.value).toUpperCase();
- lf_getOranTranfList("ref");
- group2.ipt_search.setSelect(0,group2.ipt_search.getLength());
- group2.ipt_search.setFocus();
- }
- // group2.ipt_search.setSelect(0,group2.ipt_search.getLength());
- // group2.ipt_search.setFocus();
-
- }
- function lf_exeExcel(pGridId)
- {
- grdf_exportExcel(pGridId, lf_lisGetTitle(this), "sheet1", false);
- }
- function lf_getmaxdata()
- {
- var bcno = ds_grd_orglist.getColumn(ds_grd_orglist.rowposition, "bcno");
-
- if (utlf_isNull(bcno))
- {
- return;
- }
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [
- {col:"bcno", val:bcno, type:"STRING", size:256}
- // , {col:"patnm", val:"", type:"STRING", size:256}
- ]);
-
- var oParam = {};
- oParam.id = "TRLNP90702";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetmaxoranList2";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_hidden_ref2=maxoranlist";
- oParam.async = false;
- oParam.callback = "cbf_TRLNP90702";
- tranf_submit(oParam);
- }
- function lf_getmaxdata2()
- {
- var bcno = ds_temp_search.getColumn(0,"bcno");
-
- if (utlf_isNull(bcno))
- {
- return;
- }
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [
- {col:"bcno", val:bcno, type:"STRING", size:256}
- // , {col:"patnm", val:"", type:"STRING", size:256}
- ]);
-
- var oParam = {};
- oParam.id = "TRLNP90702";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetmaxoranList2";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_hidden_ref2=maxoranlist";
- oParam.async = false;
- oParam.callback = "cbf_TRLNP90702";
- tranf_submit(oParam);
- }
- function cbf_TRLNP90702(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
-
-
- if (!utlf_isNull(ds_hidden_ref2.getColumn(0,"pid")))
- {
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "bcno", ds_temp_search.getColumn(0,"bcno")); //이재오 추가 2019.10.18일
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "pid", ds_hidden_ref2.getColumn(0,"pid"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "patnm", ds_hidden_ref2.getColumn(0,"patnm"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "spccd", ds_hidden_ref2.getColumn(0,"spccd"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "spcnm", ds_hidden_ref2.getColumn(0,"spcnm"));
- }
- else
- {
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "pid", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "patnm", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "spccd", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "spcnm", "");
- }
- grd_orglist.setCellPos(9);
- grd_orglist.showEditor(true);
- }
- function cf_TXLNP90701(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- // 초기화
- lf_setInit();
- }
- function lf_setAddRow()
- {
- var tDay = utlf_getCurrentDate();
- var crow = 0;
- if (ds_grd_orglist.rowcount < 1 )
- {
- crow = ds_grd_orglist.addRow();
- }
- else
- {
- crow = ds_grd_orglist.insertRow(0);
- }
-
- //trace(crow);
- ds_grd_orglist.setColumn(crow, "bcolldt", tDay);
- ds_grd_orglist.setColumn(crow, "rgstdt", tDay);
-
- var gubun = group2.rdo_trobrslt.value;
-
- trace(gubun);
- if ( gubun == 1 )
- {
- ds_grd_orglist.setColumn(crow, "diff", "1");
- }
- else if ( gubun == 2 )
- {
- ds_grd_orglist.setColumn(crow, "diff", "2");
- }
-
- grd_orglist.setCellPos(3);
- grd_orglist.showEditor(true);
- //grd_orglist.setFocus();
-
- //ds_grd_orglist.setColumn(crow, "trnshopeorgncd", "00");
- }
- function lf_insRowdel()
- {
- var kRows = ds_grd_orglist.rowcount;
- for (var i =kRows-1; 0 <= i; i--)
- {
- var chk = ds_grd_orglist.getColumn(i, "chk");
- if(chk == 1)
- {
- ds_grd_orglist.deleteRow(i);
- }
- }
- }
- function lf_savelist()
- {
- /*
- for ( i = 0 ; i<= ds_grd_orglist.rowcount ; i++)
- {
- if (ds_grd_orglist.getRowType(i) == 2 || 4 )
- {
- if (utlf_isNull(ds_grd_orglist.getColumn(i, "abndt"))){
- ds_grd_orglist.setColumn(i, "abndt", "19000101000000")
- }
- }
- }
- */
- if(!frmf_chkMdtGrid(grd_orglist, [3,4,5,6,7,8,9], ["검체번호","차트번호","환자명","검체코드","검체명","재처리일자","구분"])) return;
-
- var oParam = {};
- oParam.id = "TXLNP90701";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqSetOrganList2";
- oParam.inds = "cond=ds_grd_orglist:U";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function lf_delitem()
- {
- var arrPostion = new Array();
- for (var i =0-1; i < ds_grd_orglist.rowcount; i++)
- {
- var chk = ds_grd_orglist.getColumn(i, "chk");
- if(chk == 1)
- {
- arrPostion[0] = i;
- grdf_setStatus(grd_orglist, "D", arrPostion);
- }
- }
-
- var oParam = {};
- oParam.id = "TXLNP90701";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqDelOrganList2";
- oParam.inds = "cond=ds_grd_orglist:U";
- oParam.async = false;
- tranf_submit(oParam);
- // 초기화
- lf_setInit();
- }
- function lf_getFileName()
- {
- var fd = new FileDialog();
- var tDay = utlf_getCurrentDate();
- var file = fd.open("open", FileDialog.LOAD,"%MYDOCUMENT%");
- file.open(VirtualFile.openRead | VirtualFile.openBinary);
- file.close();
-
- var objExtCommon = new ExtCommon();
- objExtCommon.excelImportByIndex(file.fullpath, 0,"ds_iorglist");
- iorglist.createFormat();
-
- // 파일경로 셋팅
- group2.opt_file.value = file.fullpath;
-
- if(ds_iorglist.rowcount==0)
- {
- sysf_messageBox("입력할 데이터가 없습니다. 엑셀파일을 확인하세요", "E");
- return;
- }
- var tclsrow = ds_grd_orglist.rowcount;
- for(j= 5; j< ds_iorglist.rowcount; j++)
- {
- tclsrow = ds_grd_orglist.addRow();
-
- ds_grd_orglist.setColumn(tclsrow, "chk" , "1"); // 유무
- ds_grd_orglist.setColumn(tclsrow, "konosid" , ds_iorglist.getColumn(j, "Col03"));
- ds_grd_orglist.setColumn(tclsrow, "patnm" , ds_iorglist.getColumn(j, "Col04")); //환자명
- ds_grd_orglist.setColumn(tclsrow, "bcolldt" , ds_iorglist.getColumn(j, "Col05")); //채취일자
- ds_grd_orglist.setColumn(tclsrow, "keeppos" , "K 66"); //보관함
- ds_grd_orglist.setColumn(tclsrow, "trnscorpnm" , ds_iorglist.getColumn(j, "Col06")); //채취기관
- ds_grd_orglist.setColumn(tclsrow, "trnshopeorgncd" , ds_iorglist.getColumn(j, "Col07")); //채취장기
- ds_grd_orglist.setColumn(tclsrow, "trnshopeorgncd" , "00"); //등록일시
- ds_grd_orglist.setColumn(tclsrow, "trnscmt" , ds_iorglist.getColumn(j, "Col08")); //비고
- ds_grd_orglist.setColumn(tclsrow, "rgstdt" , tDay); //등록일
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_orglist);
- }
- function grd_orglist_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == "13")
- {
- if (obj.currentcol == 3 )
- {
- lf_getmaxdata();
- }
-
- obj.moveToNextCell();
- obj.showEditor(true);
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setAddRow();
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_insRowdel();
- }
- function btn_init_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setInit();
- }
- function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_savelist();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_delitem();
- }
- function group2_bt1_onclick(obj:Button, e:ClickEventInfo)
- {
- //결과 파일명 가져오기
- lf_setInit();
- lf_getFileName();
- }
- ]]></Script>
- </Form>
- </FDL>
|