123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNB00400" position="absolute 0 0 360 745" titletext="내 환자 Setting" oninit="SMMNB00400_oninit" onload="SMMNB00400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 360 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="내 환자 Setting" position="absolute 0 0 135 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 360 745" id="group2" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 67 357 710" id="grd_mypatlist" binddataset="ds_main_mypatinfo_mypatlist" oncellclick="group2_grd_mypatlist_oncellclick" scrollbars="autovert" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="64" band="left"/>
- <Column size="0" band="left"/>
- <Column size="79" band="left"/>
- <Column size="50" band="left"/>
- <Column size="125" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="병실"/>
- <Cell col="2" text="병상"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="S/A"/>
- <Cell col="5" text="진료과"/>
- <Cell col="6" text="병동"/>
- <Cell col="7" text="환자번호"/>
- <Cell col="8" text="전세팅"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:mysetting" expr="expr:(mysetting == "true" || mysetting == 1) ? 1 : 0"/>
- <Cell col="1" style="align:left middle;background:#ffffffff;background2:#ffffffff;" text="bind:roomcd" suppress="1" suppressalign="middle"/>
- <Cell col="2" style="align:left middle;" text="bind:bedcd"/>
- <Cell col="3" style="align:left middle;background:#ffffffff;background2:#ffffffff;" text="bind:patnm"/>
- <Cell col="4" style="align:left middle;background:#ffffffff;background2:#ffffffff;" text="bind:sexage"/>
- <Cell col="5" style="align:left middle;background:#ffffffff;background2:#ffffffff;" text="bind:orddeptnm"/>
- <Cell col="6" text="bind:wardcd"/>
- <Cell col="7" text="bind:pid"/>
- <Cell col="8" text="bind:bfsetting"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 62 357 68" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="내환자리스트" position="absolute 1 46 99 62" id="caption8" class="tit_2"/>
- <Button position="absolute 263 43 305 62" id="btn_save" class="btn2" text="저장" onclick="group2_btn_save_onclick"/>
- <Static text="사원번호" position="absolute 0 13 70 36" id="caption1" class="cell_1"/>
- <Static text="간호사명" position="absolute 179 13 249 36" id="caption2" class="cell_1"/>
- <Edit readonly="true" position="absolute 73 15 175 34" id="opt_empno"/>
- <Edit readonly="true" position="absolute 252 15 354 34" id="opt_nursnm"/>
- <Shape position="absolute 0 11 357 17" linetype="horizontal" id="line2" class="line_3"/>
- <Shape position="absolute 0 33 357 39" linetype="horizontal" id="line3" class="line_3"/>
- <Combo position="absolute 98 43 219 62" id="sct_wardlist" class="combo_default" innerdataset="@ds_init_ward_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="group2_sct_wardlist_onitemchanged"/>
- <Button position="absolute 220 43 262 62" id="btn_ref" class="btn2" text="조회" onclick="group2_btn_ref_onclick"/>
- <TextArea position="absolute 0 520 357 635" align="align:center middle;" id="tar_settinginfo" visible="false" readonly="true" style="background:#ffffccff;border:1 solid #808080ff ;align:left middle;font:Dotum,13,bold;" anchor="all"/>
- <Button position="absolute 306 43 359 62" id="button1" class="btn2" text="초기화" onclick="group2_button1_onclick"/>
- <Static text="[표]" position="absolute 332 715 360 730" id="caption3" anchor="right bottom"/>
- <CheckBox position="absolute 4 70 24 90" id="bool1" onclick="group2_bool1_onclick" truevalue="true"/>
- </Layout>
- </Layouts>
- </Div>
- <ImageViewer position="absolute 325 8 340 23" id="img1" image="URL('theme://images\icon_btn.png')" onmousemove="img1_onmousemove" onmouseleave="img1_onmouseleave"/>
- <Static text="내환자 SETTING은 입원, 전실된 환자가 자동으로 설정되지 않으므로 내환자가 추가된 경우에는 재설정해주시기 바랍니다. 설정된 내환자 정보는 24시간 저장됩니다. " position="absolute 20 210 320 275" align="align:left middle;" id="cap_key" class="text_essential" visible="false" style="padding:0 0 0 10;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="multicheck" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardcd"/>
- <Col id="userid"/>
- <Col id="usernm"/>
- <Col id="multicheck"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mypatinfo_mypatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_mypatinfo_mypatlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="mysetting" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="bedcd" 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="wardcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="bfsetting" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mysetting"/>
- <Col id="roomcd"/>
- <Col id="bedcd"/>
- <Col id="patnm"/>
- <Col id="sexage"/>
- <Col id="orddeptnm"/>
- <Col id="wardcd"/>
- <Col id="pid"/>
- <Col id="bfsetting"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_settinginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="settingtime" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="message" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.opt_empno" propid="value" datasetid="ds_main_cond" columnid="userid"/>
- <BindItem id="item1" compid="group2.opt_nursnm" propid="value" datasetid="ds_main_cond" columnid="usernm"/>
- <BindItem id="item2" compid="group2.sct_wardlist" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item3" compid="group2.tar_settinginfo" propid="value" datasetid="ds_main_saveinfo" columnid="message"/>
- </Bind>
- <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 cf_TXMNB00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- utlf_addLog("***** cf_TXMNB00401 *****");
- }
- /*SMMNB00400_oninit*/
- function SMMNB00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /*SMMNB00400_onload*/
- function SMMNB00400_onload(obj:Form, e:LoadEventInfo)
- {
- //20070726 1530
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "W";
- var rslt_ref = "ds_init_ward_dept";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "depthngnm", "asc", "", "", "",rslt_ref ,false, "");
-
- ds_main_mypatinfo_mypatlist.clearData();
-
- if (frmf_checkOpener()) {
- var wardcd = opener.frmf_getParameter("wardcd");
- ds_main_cond.setColumn(0, "userid", sysf_getUserId());
- ds_main_cond.setColumn(0, "usernm", sysf_getUserName());
- if( !utlf_isNull(wardcd) ) {
- ds_main_cond.setColumn(0, "wardcd", wardcd);
- } else {
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
- }
-
- } else {
- ds_main_cond.setColumn(0, "userid", sysf_getUserId());
- ds_main_cond.setColumn(0, "usernm", sysf_getUserName());
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
- }
- ds_send.clearData();
- dsf_makeValue(ds_send,"wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
- dsf_makeValue(ds_send,"userid", "string", ds_main_cond.getColumn(0, "userid"));
-
- var oParam = {};
- oParam.id = "TRMNB00402";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "reqcond=ds_send";
- oParam.outds = "ds_main_mypatinfo_mypatlist=mypatlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- for(var i =0; i < ds_main_mypatinfo_mypatlist.rowcount; i++){
- dsf_makeValue(ds_main_mypatinfo_mypatlist,"bfsetting", "string", ds_main_mypatinfo_mypatlist.getColumn(i, "mysetting"), i);
- }
- grdf_setRowStyle( group2.grd_mypatlist , "0" , "true" , "mysetting" , "equal");
- }
- // 환자리스트 조회
- function fGetPatList(pFlag){
- ds_main_cond.setColumn(0, "multicheck", "N");
- group2.grd_mypatlist.position ="absolute 0 67 357 730";
- group2.tar_settinginfo.visible = false;
-
- ds_send.clearData();
- dsf_makeValue(ds_send,"wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
- dsf_makeValue(ds_send,"srchflag", "string", pFlag);
-
- var oParam = {};
- oParam.id = "TRMNB00402";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "reqcond=ds_send";
- oParam.outds = "ds_main_mypatinfo_mypatlist=mypatlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- for(var i =0; i < ds_main_mypatinfo_mypatlist.rowcount; i++){
- dsf_makeValue(ds_main_mypatinfo_mypatlist,"bfsetting", "string", ds_main_mypatinfo_mypatlist.getColumn(i, "mysetting"), i);
- }
- grdf_initGridStyle(group2.grd_mypatlist);
- group2.bool1.value = "false";
- grdf_setRowStyle( group2.grd_mypatlist , "0" , "true" , "mysetting" , "equal");
- }
- /*group2_grd_mypatlist_oncellclick*/
- function group2_grd_mypatlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col > 0 && e.row > -1) {
- if (e.col == 1) {
- var arrRows = ds_main_mypatinfo_mypatlist.findRow(e.col, ds_main_mypatinfo_mypatlist.getColumn(e.row, e.col));
- var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(arrRows, "mysetting");
-
- if(currentMysetting == "true" ) {
- currentMysetting = "false";
- } else {
- currentMysetting = "true";
- }
-
- ds_main_mypatinfo_mypatlist.setColumn(arrRows, "mysetting",currentMysetting);
-
- for(var j =arrRows; j < ds_main_mypatinfo_mypatlist.rowcount; j++){
- if(ds_main_mypatinfo_mypatlist.getColumn(j, e.col) == ds_main_mypatinfo_mypatlist.getColumn(j+1, e.col)){
- ds_main_mypatinfo_mypatlist.setColumn(j+1, "mysetting",currentMysetting);
- }else{
- break;
- }
- }
-
- } else {
- var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(e.row, "mysetting");
- if (currentMysetting == "true") {
- ds_main_mypatinfo_mypatlist.setColumn(e.row, "mysetting", "false");
- }else{
- ds_main_mypatinfo_mypatlist.setColumn(e.row, "mysetting", "true");
- }
- }
- }
-
- grdf_initGridStyle(group2.grd_mypatlist);
- grdf_setRowStyle(group2.grd_mypatlist , "0" , "true" , "mysetting" , "equal");
- }
- /*group2_btn_save_onclick*/
- function group2_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send.clearData();
- var updateData = grdf_getGridUpdateData(group2.grd_mypatlist, "u");
- ds_send.copyData(updateData, true);
- if(ds_main_mypatinfo_mypatlist.rowcount > 0 ){
- var oParam = {};
- oParam.id = "TXMNB00401";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqSetMyPatList";
- oParam.inds = "reqlist=ds_send";
- oParam.outds = "ds_main_settinginfo=settinginfo";
- oParam.async = false;
- oParam.callback = "cf_TXMNB00401";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNB00401") > -1){
- grdf_setStatus(group2.grd_mypatlist, ""); // submit() 성공하면 그리드의 i,u,d 상태 제거
- fGetPatList("setting"); // 환자리스트 조회
- ds_main_saveinfo.setColumn(0, "message"," " + ds_main_settinginfo.getColumn(0, "settingtime") + "\n ["+ sysf_getUserName() + "]간호사의 \n 내환자가 Setting 되었습니다.");
- group2.grd_mypatlist.position ="absolute 0 67 357 472";
- group2.tar_settinginfo.visible = true;
- }
- } else {
- sysf_messageBox("저장할 내역이 ", "I004")
- }
- }
- /*group2_sct_wardlist_onitemchanged*/
- function group2_sct_wardlist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send.clearData();
- dsf_makeValue(ds_send,"wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
-
- var oParam = {};
- oParam.id = "TRMNB00402";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "reqcond=ds_send";
- oParam.outds = "ds_main_mypatinfo_mypatlist=mypatlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- for(var i =0; i < ds_main_mypatinfo_mypatlist.rowcount; i++){
- dsf_makeValue(ds_main_mypatinfo_mypatlist,"bfsetting", "string", ds_main_mypatinfo_mypatlist.getColumn(i, "mysetting"), i);
- }
-
- grdf_initGridStyle(group2.grd_mypatlist);
- group2.bool1.value = "false";
- grdf_setRowStyle( group2.grd_mypatlist , "0" , "true" , "mysetting" , "equal");
- }
- /*group2_btn_ref_onclick*/
- function group2_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetPatList(); // 환자리스트 조회
- }
- /*group2_button1_onclick*/
- function group2_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var btn = sysf_messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- ds_send.clearData();
- dsf_makeValue(ds_send,"userid" , "string", ds_main_cond.getColumn(0, "userid"));
- dsf_makeValue(ds_send,"flag" , "string", "Y");
-
- var oParam = {};
- oParam.id = "TXMNB00402";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqSetInitPat";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- fGetPatList("setting"); // 환자리스트 조회
- ds_main_saveinfo.setColumn(0, "message", " " + ds_main_settinginfo.getColumn(0, "settingtime") + "\n ["+ sysf_getUserName() + "]간호사의 \n 내환자가 초기화 되었습니다.");
- group2.grd_mypatlist.position ="absolute 0 67 357 472";
- group2.tar_settinginfo.visible = true;
- } else if (btn == '7') {
- return;
- }
- }
- /*img1_onmousemove*/
- function img1_onmousemove(obj:ImageViewer, e:MouseEventInfo)
- {
- cap_key.visible =true;
- }
- /*img1_onmouseleave*/
- function img1_onmouseleave(obj:ImageViewer, e:MouseEventInfo)
- {
- cap_key.visible =false;
- }
- /*ds_main_mypatinfo_mypatlist_oncolumnchanged*/
- function ds_main_mypatinfo_mypatlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "mysetting" ){
- obj.setColumn(e.row, "mysetting", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- }
- }
- /*group2_bool1_onclick*/
- function group2_bool1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- var multicheck = group2.bool1.value;
- ds_main_cond.setColumn(0, "multicheck", multicheck);
- var xMyPatListPath = "ds_main_mypatinfo_mypatlist";
- var nodeCnt = ds_main_mypatinfo_mypatlist.rowcount;
- for(var i = 0; i < nodeCnt; i++){
- if(multicheck == "true"){
- ds_main_mypatinfo_mypatlist.setColumn(i, "mysetting", "true");
- }else{
- ds_main_mypatinfo_mypatlist.setColumn(i, "mysetting", "false");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|