123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAER02200" position="absolute 0 0 686 663" titletext="검사/치료 기준수행부서관리" onload="SPAER02200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="검사/치료 기준수행부서 관리" class="tit_1" position="absolute 0 0 220 25"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 629 636 685 658" onclick="btn_save_onclick"/>
- <Grid id="datagrid1" taborder="2" binddataset="ds_main_examcurelist_item" useinputpanel="false" position="absolute 0 62 685 632" autoenter="select" onexpandup="datagrid1_onexpandup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="228"/>
- <Column size="146"/>
- <Column size="279"/>
- <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="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="padding:0 3 0 3;" text="bind:suppdeptcd" combodataset="ds_init_cmb_info_initbasesuppdeptcd" combocodecol="basesuppdeptcd" combodatacol="depthngnm" combodisplayrowcount="100" enable="false"/>
- <Cell col="2" displaytype="text" edittype="expand" text="bind:baseexcuroomcd" editautoselect="true" expandshow="show"/>
- <Cell col="3" displaytype="text" text="bind:baseexcuroomnm"/>
- <Cell col="4" text="bind:iudgb"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_grdadd" taborder="3" text="행추가" class="btn2" position="absolute 576 35 629 57" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="4" text="행삭제" class="btn2" position="absolute 632 35 685 57" onclick="btn_grddel_onclick"/>
- <Static id="caption1" text="기준수행부서 관리" class="tit_2" position="absolute 0 41 142 58"/>
- <Shape id="line1" class="line_10" position="absolute 0 57 685 63"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_examcurelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="baseexcuroomcd" type="STRING" size="256"/>
- <Column id="baseexcuroomnm" type="STRING" size="256"/>
- <Column id="iudgb" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="suppdeptcd"/>
- <Col id="baseexcuroomcd"/>
- <Col id="baseexcuroomnm"/>
- <Col id="iudgb"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="windowloadinstance" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="windowloadinstance">SPAER02200</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instance1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_cmb_info_initbasesuppdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basesuppdeptcd"/>
- <Col id="depthngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="item" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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 "ast_examcurexp::AEZ0001.xjs";
- include "com_authinfoxp::ZSA001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function readfunc() {
- ds_main_examcurelist_item.clearData();
- var oParam = {};
- oParam.id = "TRAER02202";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetSuppdeptExcureRoomList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_examcurelist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAER02202";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 저장데이터 체크
- ****************************************************************************************/
- function datacheck(){
- var ssuppdeptcd = "";
- var ssuppdeptcd1 = "";
- var sbaseexcuroomcd = "";
- for (var i = 0; i < ds_main_examcurelist_item.rowcount; i++){
- ssuppdeptcd = ds_main_examcurelist_item.getColumn(i, "suppdeptcd");
- if (utlf_isNull(ssuppdeptcd)) {
- sysf_messageBox(i + "번째행의 수행부서는 필수 선택항목입니다.", "E999", "");
- return false;
- }
-
- sbaseexcuroomcd = ds_main_examcurelist_item.getColumn(i, "baseexcuroomcd");
- if (utlf_isNull(sbaseexcuroomcd)) {
- sysf_messageBox(i + "번째행의 기준검사실코드는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
-
- for (var i = 0; i < ds_main_examcurelist_item.rowcount - 1; i++){
- ssuppdeptcd = ds_main_examcurelist_item.getColumn(i, "suppdeptcd");
- for (var j = 0; j < ds_main_examcurelist_item.rowcount; j++){
- ssuppdeptcd1 = ds_main_examcurelist_item.getColumn(j, "suppdeptcd");
- if (i != j){
- if (ssuppdeptcd == ssuppdeptcd1){
- sysf_messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAER02200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(datagrid1, 0);
-
- ds_init_cmb_info_initbasesuppdeptcd.clearData();
- var oParam = {};
- oParam.id = "TRAER02201";
- oParam.service = "examcurebaseapp.ExamCureRoom";
- oParam.method = "reqGetInitBaseSuppdeptcd";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_cmb_info_initbasesuppdeptcd=initbasesuppdeptcd";
- oParam.async = false;
- //oParam.callback = "cf_TRAER02201";
- tranf_submit(oParam);
-
- readfunc();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- var irow = ds_main_examcurelist_item.addRow();
- ds_main_examcurelist_item.setColumn(irow , "iudgb", "I");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var irow = ds_main_examcurelist_item.rowposition;
- ds_main_examcurelist_item.setColumn(irow , "iudgb", "D");
- if( ds_main_examcurelist_item.getRowType(irow) == 2 ) {
- ds_main_examcurelist_item.deleteRow(irow);
- }else{
- grdf_setStatus(datagrid1, "D", [irow]);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if (datacheck() == false){
- return;
- }
- var update = grdf_getGridUpdateData(datagrid1, "all");
- grdf_setStatusColumn(update, "m");
- if(utlf_isNull(update) || update.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- ds_send_req_data.copyData(update, true);
- var oParam = {};
- oParam.id = "TXAER02201";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqExeSuppdeptExcureRoomList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAER02201";
- tranf_submit(oParam);
- }
- readfunc();
- }
- function datagrid1_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(obj.getBindCellIndex("body", "baseexcuroomcd") == e.col){
- var rownum = e.row;
- dsf_makeValue(ds_hidden, "checkseq", "string", "23");
- frmf_modal("SPAEA02301","SPAEA02301",null,null,null,null,null,null,null,null,null,null,"M");
- //grdf_setStatus(obj, "U", [rownum]);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|