123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA03230" position="absolute 0 0 1196 779" titletext="사용자별 기본정보 관리" onload="SMAHA03230_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사용자별 기본정보 관리" class="tit_1" position="absolute 0 0 210 25"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
- <Combo id="cmb_srchhealexamgubun" taborder="2" innerdataset="@ds_init_A0068" codecolumn="cdid" datacolumn="cdnm" position="absolute 100 12 215 31" anchor="default"/>
- <Static id="caption45" text="건진구분 :" class="search_name" position="absolute 10 13 99 30" anchor="default"/>
- <Combo id="combo1" taborder="3" innerdataset="@ds_init_A0088" codecolumn="cdid" datacolumn="cdnm" position="absolute 320 12 435 31" anchor="default"/>
- <Static id="caption1" text="건진분류 :" class="search_name" position="absolute 230 13 319 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" class="line_10" position="absolute 0 89 1194 95" anchor="left top right"/>
- <Grid id="grd_stduser" taborder="2" binddataset="ds_main_stduserInfo_item" useinputpanel="false" position="absolute 0 94 1194 749" selecttype="multirow" autoenter="key" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="140"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="건진구분"/>
- <Cell col="2" text="사용자ID"/>
- <Cell col="3" text="olduserid"/>
- <Cell col="4" text="사용자명"/>
- <Cell col="5" text="건진분류"/>
- <Cell col="6" text="진료과"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" text="bind:healexamflag" combodataset="ds_init_A0068" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:userid"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:olduserid"/>
- <Cell col="4" displaytype="text" edittype="none" text="bind:usernm"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:healexamgubun" combodataset="ds_init_A0088" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_baseinfo_orddeptcdlst" combocodecol="cdid" combodatacol="cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" onclick="btn_grddel_onclick" anchor="top right"/>
- <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1086 67 1139 89" onclick="btn_grdadd_onclick" anchor="top right"/>
- <Div id="grp_btn" taborder="5" position="absolute 0 748 1195 775" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="0" text="저장" class="btn4" position="absolute 1138 5 1194 27" anchor="right bottom" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_baseinfo_orddeptcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_stduserInfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="olduserid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="healexamgubun" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamflag"/>
- <Col id="userid"/>
- <Col id="olduserid"/>
- <Col id="usernm"/>
- <Col id="healexamgubun"/>
- <Col id="orddeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchstduser" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchhealexamgubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchhealexamflag"/>
- <Col id="srchhealexamgubun"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_A0088" 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"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_srchhealexamgubun" propid="value" datasetid="ds_send_srchstduser" columnid="srchhealexamflag"/>
- <BindItem id="item1" compid="grp_sea.combo1" propid="value" datasetid="ds_send_srchstduser" columnid="srchhealexamgubun"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //include "ast_commonxp::AST.xjs";
- //include "com_zipcodexp::ZBP001.xjs";
- //include "ast_healexamxp::AHA001.xjs";
- //include "ast_healexamxp::healexam.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기초코드 조회
- ****************************************************************************************/
- function fGetBaseInfo(){
- var arrParam = [{dsNm: "ds_init_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_A0088", cdGrpId: "A0088"}
- ];
- appf_getCodeList(arrParam);
- var arrParam2 = [{dsNm: "ds_init_baseinfo_orddeptcdlst", cdGrpId: "G", cdId:"G26"}];
- healGetComboList(arrParam2); //healcombolist.xjs
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInitInfo(){
- ds_main_stduserInfo_item.clearData();
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function fGetStdUser(){
- ds_main_stduserInfo_item.clearData();
- dsf_createDsRow("ds_req", [
- {col:"srchhealexamflag", type:"STRING", size:256, val:ds_send_srchstduser.getColumn(0,"srchhealexamflag")}
- , {col:"srchhealexamgubun", type:"STRING", size:256, val:ds_send_srchstduser.getColumn(0,"srchhealexamgubun")}
- , {col:"srchdeptcd", type:"STRING", size:256, val:""}
- , {col:"srchuserid", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAHA03230";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqGetStdUser";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_stduserInfo_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03230";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 저장
- ****************************************************************************************/
- function fSaveStdUser(){
- if(sysf_messageBox("기준정보를","Q002") == 6){
- dsf_createDs("ds_send_savedata");
- var dsUpdate = grdf_getGridUpdateData(grd_stduser, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_savedata.copyData(dsUpdate, true);
- var oParam = {};
- oParam.id = "TXAHA03230";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqExeStdUser";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHA03230";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXAHA03230") > -1){
- fInitInfo();
- fGetStdUser();
- return true;
- }
- }
- }
- function cf_TXAHA03230(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAHA03230_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grd_stduser, 0);
- fGetBaseInfo();
- fInitInfo();
- fGetStdUser();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetStdUser();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var selectedRows = grdf_getSelectedRows(grd_stduser);
- for (var i = 0; i < selectedRows.length; i++){
- if( ds_main_stduserInfo_item.getRowType(selectedRows[i]) == 2 ) {
- ds_main_stduserInfo_item.deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(grd_stduser, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_stduserInfo_item.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if(fSaveStdUser()){
- sysf_messageBox("저장", "I002");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|