123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="workform" position="absolute 0 0 1256 805" titletext="환자별수혈내역조회" oninit="model1_oninit">
- <Layouts>
- <Layout>
- <Static id="caption6" text="환자별수혈내역조회" class="tit_1" position="absolute 0 0 158 25"/>
- <Button id="btn_excel" taborder="11" text="엑셀" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1204 99 1254 119" anchor="top right"/>
- <Grid id="grd_tnslist" class="datagrid2" taborder="12" useinputpanel="false" position="absolute 0 122 1256 805" anchor="all" treeinitstatus="collapse,null" binddataset="ds_grid_grd_tnslist" treeuseexpandkey="false" treeuseimage="false" treeuseline="false" treeusecheckbox="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="75"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="115"/>
- <Column size="115"/>
- <Column size="140"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="레벨"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="성명"/>
- <Cell col="4" text="SexAge"/>
- <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="성분제제"/>
- <Cell col="12" text="의뢰 수량"/>
- <Cell col="13" text="가출고 수량"/>
- <Cell col="14" text="출고 수량"/>
- <Cell col="15" text="반납 수량"/>
- <Cell col="16" text="폐기 수량"/>
- <Cell col="17" text="혈액형"/>
- <Cell col="18" text="혈액번호"/>
- <Cell col="19" text="구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="tree" edittype="tree" style="padding:0 0 0 -10;" treestartlevel="0" treelevel="bind:lvl"/>
- <Cell col="2" displaytype="text" edittype="none" text="bind:pid"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" text="bind:sexage"/>
- <Cell col="5" text="bind:orddeptnm"/>
- <Cell col="6" text="bind:wardroom"/>
- <Cell col="7" text="bind:prcphopedd" mask="expr:prcphopedd==null?'':'####-##-##'"/>
- <Cell col="8" text="bind:tnsreqacptflag"/>
- <Cell col="9" displaytype="date" style="align:center middle;" text="bind:prepdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
- <Cell col="10" displaytype="date" edittype="none" style="align:center middle;" text="bind:delivedt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
- <Cell col="11" text="bind:blodcomnm"/>
- <Cell col="12" displaytype="number" text="bind:req"/>
- <Cell col="13" displaytype="number" text="bind:a3"/>
- <Cell col="14" displaytype="number" text="bind:a5"/>
- <Cell col="15" displaytype="number" text="bind:a6"/>
- <Cell col="16" displaytype="number" text="bind:a7"/>
- <Cell col="17" text="bind:btype"/>
- <Cell col="18" text="bind:blodno"/>
- <Cell col="19" text="bind:stat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="수혈의뢰현황 목록" class="tit_2" position="absolute 0 102 145 122"/>
- <Div id="Div00" anchor="left top right" taborder="13" text="Div00" scrollbars="none" position="absolute 0 25 1256 92" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="button1" taborder="60" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onlbuttonup="btn_ref_onlbuttonup" onclick="Div00_button1_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1118 21 1118 70" anchor="default"/>
- <Static id="caption4" text="등록번호" class="search_name" position="absolute 8 10 82 30" style="align:left;" anchor="default"/>
- <Static id="caption9" text="수혈상태" class="search_name" position="absolute 8 38 82 58" style="align:left;" anchor="default"/>
- <CheckBox id="chk_a" taborder="61" text="접수" truevalue="1" class="checkbox_search" position="absolute 130 38 175 58" anchor="default" onclick="Div00_chk_a_onclick"/>
- <Edit id="ipt_pid" taborder="62" class="input_s_essential" position="absolute 82 10 182 30" anchor="default" onkeydown="Div00_ipt_pid_onkeydown"/>
- <CheckBox id="chk_b" taborder="63" text="가출고 전 검사중" truevalue="1" class="checkbox_search" position="absolute 178 38 297 58" anchor="default" onclick="Div00_chk_b_onclick"/>
- <CheckBox id="chk_c" taborder="64" text="가출고" truevalue="1" class="checkbox_search" position="absolute 304 38 442 58" anchor="default" onclick="Div00_chk_c_onclick"/>
- <Static id="caption11" text="조회구분" class="search_name" position="absolute 231 11 309 31" style="align:left;" anchor="default"/>
- <CheckBox id="chk_d" taborder="66" text="대기" truevalue="1" class="checkbox_search" position="absolute 368 39 421 59" anchor="default" onclick="Div00_chk_d_onclick"/>
- <CheckBox id="chk_e" taborder="67" text="출고" truevalue="1" class="checkbox_search" position="absolute 427 38 472 58" anchor="default" onclick="Div00_chk_e_onclick"/>
- <CheckBox id="chk_f" taborder="68" text="반납" truevalue="1" class="checkbox_search" position="absolute 475 38 520 58" anchor="default" onclick="Div00_chk_f_onclick"/>
- <Static id="caption10" text="수혈구분" class="search_name" position="absolute 642 10 712 30" style="align:left;" anchor="default"/>
- <Radio id="radio1" taborder="69" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 720 10 987 30" anchor="default" value="0" index="0">
- <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>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">교차미필</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="ipt_fromdd" taborder="70" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 301 10 388 30" anchor="default"/>
- <Static id="caption00" text="~" position="absolute 390 11 402 28" anchor="default"/>
- <Calendar id="ipt_todd" taborder="71" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 401 10 488 30" anchor="default"/>
- <CheckBox id="chk_g" taborder="73" text="폐기" truevalue="1" class="checkbox_search" position="absolute 525 38 584 58" onclick="Div00_chk_g_onclick" anchor="default"/>
- <CheckBox id="chk_all" taborder="74" text="All" truevalue="1" class="checkbox_search" position="absolute 82 38 127 58" onclick="Div00_chk_all_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_reset" taborder="14" text="초기화" onclick="btn_reset_onclick" class="btn4" position="absolute 1187 1 1256 21" anchor="top right"/>
- <Shape id="line4" class="line_10" position="absolute -1 117 1255 123" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_tnslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="lvl" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="sexage" type="STRING" size="256"/>
- <column id="orddeptnm" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="prcphopedd" type="STRING" size="256"/>
- <column id="tnsreqacptflag" type="STRING" size="256"/>
- <column id="blodcomnm" type="STRING" size="256"/>
- <column id="req" type="STRING" size="256"/>
- <column id="a3" type="STRING" size="256"/>
- <column id="a5" type="STRING" size="256"/>
- <column id="a6" type="STRING" size="256"/>
- <column id="a7" type="STRING" size="256"/>
- <column id="btype" type="STRING" size="256"/>
- <column id="blodno" type="STRING" size="256"/>
- <column id="stat" type="STRING" size="256"/>
- <Column id="prepdt" type="STRING" size="256"/>
- <Column id="delivedt" type="STRING" size="256"/>
- <Column id="a8" type="STRING" size="256"/>
- </ColumnInfo>
- </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";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- var tnsstatValue = "";
- function lf_setInit() {
-
- var toDay = utlf_getCurrentDate();
- Div00.ipt_fromdd.value = toDay;
- Div00.ipt_todd.value = toDay;
- }
- // 키이벤트 엔터키 입력시
- function lf_keyEvent() {
-
- Div00.ipt_pid.setSelect();
- lf_getTnsReqList();
- }
- function lf_getTnsReqList() {
-
- var pid = Div00.ipt_pid.value; // 등록번호
- var fromdd = Div00.ipt_fromdd.value; // 시작일
- var todd = Div00.ipt_todd.value; // 종료일
- var tnsflag = Div00.radio1.value; // 수혈구분
- var tnsstat = tnsstatValue; // 상태
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "pid", val:pid }
- , {col: "hopefromdd", val:fromdd }
- , {col: "hopetodd", val:todd }
- , {col: "tnsstat", val:tnsstat }
- , {col: "tnsflag", val:tnsflag }
- ]);
- var oParam = {};
- oParam.id = "TRLBP00501";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetTnsReqList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_tnslist=getTnsReqList";
- oParam.async = false;
- oParam.callback = "cbf_SMLBP00500";
- tranf_submit(oParam);
- }
- // 수혈상태 변경
- function lf_setTnsStat(Ref) {
- tnsstatValue = "";
- if(Ref == "all"){
- if(Div00.chk_all.value == "1"){
- Div00.chk_a.value = "1";
- Div00.chk_b.value = "1";
- Div00.chk_c.value = "1";
- Div00.chk_d.value = "1";
- Div00.chk_e.value = "1";
- Div00.chk_f.value = "1";
- Div00.chk_g.value = "1";
- tnsstatValue = "'1','2','3','4','5','6','7','8'";
- }else{
- Div00.chk_a.value = "0";
- Div00.chk_b.value = "0";
- Div00.chk_c.value = "0";
- Div00.chk_d.value = "0";
- Div00.chk_e.value = "0";
- Div00.chk_f.value = "0";
- Div00.chk_g.value = "0";
- tnsstatValue = "";
- }
- }else{
-
- Div00.chk_all.value = "0";
-
- //접수
- if(Div00.chk_a.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'1'";
- }else{
- tnsstatValue += ",'1'";
- }
- }
-
- //준비중
- if(Div00.chk_b.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'2'";
- }else{
- tnsstatValue += ",'2'";
- }
- }
-
- //준비완료
- if(Div00.chk_c.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'3'";
- }else{
- tnsstatValue += ",'3'";
- }
- }
-
- //불출완료
- if(Div00.chk_d.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'4'";
- }else{
- tnsstatValue += ",'4'";
- }
- }
-
- //반납
- if(Div00.chk_e.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'5'";
- }else{
- tnsstatValue += ",'5'";
- }
- }
-
- //폐기
- if(Div00.chk_f.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'6'";
- }else{
- tnsstatValue += ",'6'";
- }
- }
-
- //잔량폐기
- if(Div00.chk_g.value == "1"){
- if(tnsstatValue == ""){
- tnsstatValue = "'7'";
- }else{
- tnsstatValue += ",'7'";
- }
- }
- }
- }
- // 엑셀 저장
- function lf_exeExcel(pGridId) {
- grdf_exportExcel(grd_tnslist, lf_lisGetTitle(this), "sheet1");
- }
- // callback 함수
- function cbf_SMLBP00500(strSvcID, nErrorCode, strErrorMag) {
-
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID) {
- case "TRLBP00501":
-
- break;
-
- default:
- break;
- }
- }
- }
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- lf_setInit();
- }
- function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_exeExcel(grd_tnslist);
- }
- function btn_ref_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_getTnsReqList();
- }
- function Div00_chk_a_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("a");
- }
- function Div00_chk_b_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("b");
- }
- function Div00_chk_c_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("c");
- }
- function Div00_chk_d_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("d");
- }
- function Div00_chk_e_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("e");
- }
- function Div00_chk_f_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("f");
- }
- function Div00_chk_g_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("g");
- }
- function Div00_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode==13) {
- lf_keyEvent();
- }
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- //수혈상태 All 체크박스
- function Div00_chk_all_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- lf_setTnsStat("all");
- }
- function Div00_chk_all_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("all");
- }
- function Div00_chk_a_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("a");
- }
- function Div00_chk_b_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("b");
- }
- function Div00_chk_c_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("c");
- }
- function Div00_chk_d_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("d");
- }
- function Div00_chk_e_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("e");
- }
- function Div00_chk_f_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("f");
- }
- function Div00_chk_g_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_setTnsStat("g");
- }
- ]]></Script>
- </Form>
- </FDL>
|