123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666 |
- <?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" 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="caption5" text="※ 상기 환자관리는 매우 중요한 사항입니다. 담당자외 저장 및 삭제는 하실수 없습니다." position="absolute 175 3 699 23" anchor="left top" style="color:red;font:Dotum,9,bold;"/>
- <Static id="caption6" text="장기이식대기자관리" class="tit_1" position="absolute 0 0 165 25" 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 360 11 430 28" anchor="left top"/>
- <Button id="btn_search" taborder="1" text="조 회" class="btn1" position="absolute 1143 10 1211 32" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Combo id="cbo_slist" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 435 10 560 29" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">KONOS_ID</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">환자명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">보관함</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">채취일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">이식의료기관</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">폐기일시</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_search" taborder="3" class="input_button" position="absolute 565 10 696 29" anchor="left top" onkeyup="group2_ipt_search_onkeyup"/>
- <CheckBox id="chk_add" taborder="4" position="absolute 700 10 765 30" anchor="left top" text="추가" truevalue="true"/>
- <Calendar id="ipt_colfromdd" taborder="5" class="input_s_essential" position="absolute 893 10 993 29" anchor="top right"/>
- <Calendar id="ipt_coltodd" taborder="6" class="input_s_essential" position="absolute 1018 10 1118 29" anchor="top right"/>
- <Static id="caption2" text="채취일구간 :" class="search_name" position="absolute 793 10 892 27" anchor="top right"/>
- <Static id="caption4" text="~" class="search_no_b" position="absolute 998 10 1013 27" anchor="top right"/>
- <Static id="caption7" text="파일경로 :" class="search_name" position="absolute 5 9 86 26" anchor="left top"/>
- <Edit id="opt_file" taborder="7" class="output_search" position="absolute 88 8 290 27" anchor="left top" enable="false"/>
- <Button id="bt1" taborder="8" class="icon_search" position="absolute 295 10 311 26" anchor="left top" onclick="group2_bt1_onclick"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1133 6 1139 33" anchor="top right"/>
- </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" ontextchange="grd_orglist_ontextchange">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="30"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="192"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="200"/>
- <Column size="115"/>
- </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="KONOS_ID"/>
- <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:konosid"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:patnm"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:keeppos"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:center middle;" text="bind:bcolldt" mask="yyyy-MM-dd"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:trnscorpnm"/>
- <Cell col="8" displaytype="combo" edittype="combo" text="bind:trnshopeorgncd" combodataset="ds_grd_cmb_trnshopeorgncd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="9" displaytype="expr:abndt == '' ? 'none' : 'date'" edittype="date" text="bind:abndt" mask="yyyy-MM-dd"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:left middle;" text="bind:trnscmt"/>
- <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 24 219 984 424" 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;"/>
- </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="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_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_grd_cmb_trnshopeorgncd" 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">00</Col>
- <Col id="nm">신장</Col>
- </Row>
- <Row>
- <Col id="nm">신장+췌장</Col>
- <Col id="cd">01</Col>
- </Row>
- <Row>
- <Col id="nm">신장+간장</Col>
- <Col id="cd">02</Col>
- </Row>
- <Row>
- <Col id="nm">췌장</Col>
- <Col id="cd">03</Col>
- </Row>
- <Row>
- <Col id="nm">심장</Col>
- <Col id="cd">04</Col>
- </Row>
- <Row>
- <Col id="nm">간장</Col>
- <Col id="cd">05</Col>
- </Row>
- <Row>
- <Col id="nm">기타</Col>
- <Col id="cd">06</Col>
- </Row>
- <Row>
- <Col id="nm">췌도</Col>
- <Col id="cd">07</Col>
- </Row>
- <Row>
- <Col id="nm">폐장</Col>
- <Col id="cd">08</Col>
- </Row>
- <Row>
- <Col id="nm">신장+심장</Col>
- <Col id="cd">09</Col>
- </Row>
- <Row>
- <Col id="nm">신장+췌도</Col>
- <Col id="cd">10</Col>
- </Row>
- <Row>
- <Col id="nm">심장+폐장</Col>
- <Col id="cd">11</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <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";
- var _ContentObject;
- var _ContentPos;
- var _ContentObject1;
- var _ContentPos1;
- var GTextBefore = 0;
- var GTextAfter = 0;
- function SPLNP90700_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SPLNP90700_onload(obj:Form, e:LoadEventInfo)
- {
- fSetInit();
- grdf_initGrid(grd_orglist);
- grdf_setRowTypeIcon(grd_orglist,0);
- }
- function fSetInit()
- {
- 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 fGetOranTranfList(gbn)
- {
- var workgbn = group2.cbo_slist.value;
- var workcmd = group2.ipt_search.value;
-
- if( group2.chk_add.value != "1")
- {
- ds_grd_orglist.clearData();
- }
- var trnsseqno, konosid, patnm, keeppos, bcolldt, trnscorpnm, rgstdt, colfromdd, coltodd, bcolgbn;
-
- if(gbn == "ref")
- {
- if (workgbn == "1")
- {
- trnsseqno = workcmd;
- }
- else if (workgbn == "2")
- {
- konosid = workcmd;
- }
- else if (workgbn == "3")
- {
- patnm = workcmd;
- }
- else if (workgbn == "4")
- {
- keeppos = workcmd;
- }
- else if (workgbn == "5")
- {
- bcolldt = workcmd;
- }
- else if (workgbn == "6")
- {
- trnscorpnm = workcmd;
- }
- else if (workgbn == "7")
- {
- rgstdt = workcmd;
- }
- }
-
- if (gbn == "days")
- {
- colfromdd = group2.ipt_colfromdd.value;
- coltodd = group2.ipt_coltodd.value;
- bcolgbn = "1";
- }
-
- 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 : "konosid", val : konosid, type : "STRING", size : 256}
- , {col : "patnm", val : patnm, type : "STRING", size : 256}
- , {col : "keeppos", val : keeppos, type : "STRING", size : 256}
- , {col : "bcolldt", val : bcolldt, type : "STRING", size : 256}
- , {col : "trnscorpnm", val : trnscorpnm, type : "STRING", size : 256}
- , {col : "trnshopeorgncd", val : "", type : "STRING", size : 256}
- , {col : "abndt", val : "", type : "STRING", size : 256}
- , {col : "trnscmt", val : "", type : "STRING", size : 256}
- , {col : "rgstdt", val : rgstdt, type : "STRING", size : 256}]);
-
- var oParam = {};
- oParam.id = "TRLNP90701";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetOranTransList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grd_orglist=OranList";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grd_orglist.updatecontrol = false;
-
- for (var i = 0; i< ds_grd_orglist.rowcount; i++)
- {
- if(ds_grd_orglist.getColumn(i, "abndt") == "19000101000000")
- {
- ds_grd_orglist.setColumn(i, "abndt", "");
- }
- else if(ds_grd_orglist.getColumn(i, "abndt") == "19000101")
- {
- ds_grd_orglist.setColumn(i, "abndt", "");
- }
- }
- ds_grd_orglist.updatecontrol = true;
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetOranTranfList("days");
- }
- function group2_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13")
- {
-
- if(utlf_isNull(group2.ipt_search.value))
- {
- alert("조회구분을 입력해 주세요. ");
- return;
- }
-
- fGetOranTranfList("ref");
-
- var vtext = group2.ipt_search.value;
- group2.ipt_search.setSelect(vtext.length,vtext.length+1);
-
- }
- }
- function lf_exeExcel(pGridId)
- {
- grdf_exportExcel(pGridId, lf_lisGetTitle(this), "sheet1", false);
- }
- function fgetmaxdata()
- {
- var skonosid = ds_grd_orglist.getColumn(ds_grd_orglist.rowposition, "konosid");
-
- if (utlf_isNull(skonosid))
- {
- return;
- }
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col : "konosid", val : skonosid, type : "STRING", size : 256}
- , {col : "patnm", val : "", type : "STRING", size : 256}]);
-
- var oParam = {};
- oParam.id = "TRLNP90702";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetmaxoranList";
- 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,"konosid")))
- {
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "konosid", ds_hidden_ref2.getColumn(0,"konosid"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "patnm", ds_hidden_ref2.getColumn(0,"patnm"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "keeppos", ds_hidden_ref2.getColumn(0,"keeppos"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "bcolldt", ds_hidden_ref2.getColumn(0,"bcolldt"));
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "trnscorpnm", ds_hidden_ref2.getColumn(0,"trnscorpnm"));
- }
- else
- {
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "patnm", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "keeppos", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "bcolldt", "");
- ds_grd_orglist.setColumn(ds_grd_orglist.rowposition, "trnscorpnm", "");
- }
- }
- function cf_TXLNP90701(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- // 초기화
- fSetInit();
- }
- function fSetAddRow()
- {
- 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);
- }
- ds_grd_orglist.setColumn(crow, "bcolldt", tDay);
- ds_grd_orglist.setColumn(crow, "rgstdt", tDay);
- ds_grd_orglist.setColumn(crow, "trnshopeorgncd", "00");
- }
- function fInsRowdel()
- {
- 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 fsavelist()
- {
- 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,11], ["KONOSID","환자명","보관함","채취일자","이식의료기관","이식희망장기","등록일시"])) return;
-
- var oParam = {};
- oParam.id = "TXLNP90701";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqSetOrganList";
- oParam.inds = "cond=ds_grd_orglist:U";
- oParam.async = false;
- tranf_submit(oParam);
- fSetInit(); //초기화
- }
- function fdelitem()
- {
- 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 = "reqDelOrganList";
- oParam.inds = "cond=ds_grd_orglist:U";
- oParam.async = false;
- tranf_submit(oParam);
- // 초기화
- fSetInit();
- }
- function fGetFileName()
- {
- 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 )
- {
- fgetmaxdata();
- }
-
- obj.moveToNextCell();
- obj.showEditor(true);
- }
- }
- //행추가
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetAddRow();
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsRowdel();
- }
- //초기화
- function btn_init_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fSetInit();
- }
- //저장
- function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fsavelist();
- }
- //삭제
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fdelitem();
- }
- function group2_bt1_onclick(obj:Button, e:ClickEventInfo)
- {
- //결과 파일명 가져오기
- fSetInit();
- fGetFileName();
- }
- ]]></Script>
- </Form>
- </FDL>
|