123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD31400" position="absolute 0 0 1200 770" titletext="전문의 평가 - 등록기간 설정" oninit="SMRPD31400_oninit" onload="SMRPD31400_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 0 48 1195 85"/>
- <Shape position="absolute 0 116 1195 122" linetype="horizontal" id="line7" class="line_10"/>
- <Grid position="absolute 0 121 1195 735" id="datagrid1" binddataset="ds_main_codeinfo_codelist" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="79"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="606"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="연도" taborder="undefined"/>
- <Cell col="2" colspan="2" text="평가 등록기간" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="비고" taborder="undefined"/>
- <Cell col="5" text="instcd"/>
- <Cell col="6" text="orgcdid"/>
- <Cell row="1" col="2" text="시작일자"/>
- <Cell row="1" col="3" text="종료일자"/>
- <Cell row="1" col="5" text="instcd"/>
- <Cell row="1" col="6" text="orgcdid"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="number" edittype="masknumber" style="align:center;" text="bind:cdid" mask="####"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:cntlcd1" editautoselect="true" calendardisplaynulltype="none"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:cntlcd2" editautoselect="true" calendardisplaynulltype="none"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:detldesc" wordwrap="word" editautoselect="true"/>
- <Cell col="5" text="bind:instcd"/>
- <Cell col="6" text="bind:orgcdid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="연도별 등록기간" position="absolute 0 100 144 116" id="caption4" class="tit_2"/>
- <Button position="absolute 1085 95 1138 114" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 1141 95 1194 114" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
- <Static text="전문의 평가 - 등록기간 설정" position="absolute 0 0 205 24" id="caption1" class="tit_1"/>
- <Div position="absolute 0 13 1195 44" id="group4" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 25 1195 31" linetype="horizontal" id="line2" class="line_6" anchor="default"/>
- <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group4_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 310 55 366 77" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
- <Shape position="absolute 292 55 298 77" linetype="vertical" id="line3"/>
- <Combo position="absolute 120 57 262 76" id="cmb_instcd" class="combo_s_default" enable="false" onitemchanged="cmb_instcd_onitemchanged"/>
- <Static text="기관코드" position="absolute 49 58 125 75" id="caption2" class="search_name"/>
- <Static text="※ 평가 등록기간 동안만 시스템이 오픈됩니다. 이 기간에 한해 평가자의 평가 등록이 가능합니다." position="absolute 0 740 526 760" id="caption3" style="color:#ff0000ff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prvg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnt" type="STRING" size="256" sumtext="권한유무(있으면 1, 없으면 0)"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_codeinfo_codelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cntlcd1" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="cntlcd2" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="상세설명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="orgcdid" type="STRING" size="256" sumtext="원코드"/>
- <Column id="colIUD" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cntlcd1" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="cntlcd2" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="상세설명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="orgcdid" type="STRING" size="256" sumtext="원코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256" sumtext="실행건수"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send_reqdata" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_dligclaznsmngtxp -> SMRPD31400
- * Creator : yjh
- * Make Date : 2018-01-05
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-01-05 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function readfunc(){ // 해당 조건에 대한 사용자 권한내역을 조회한다.
- //if (model.getValue("/root/send/reqdata/grupcdid") == ""){
- // messageBox("구분코드를 선택한 후 조회하시기 바랍니다.", "E999", "");
- // return;
- //}
-
- misfGridInit(datagrid1);
-
- var oParam = {};
- oParam.id = "TRRPD31401";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalPeriodList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codeinfo_codelist=codelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD31401";
- tranf_submit(oParam);
-
- ds_main_codeinfo_codelist.addColumn("colIUD", "string");
- }
- function datacheck(){
- var scdid1 = "";
- var scdid2 = "";
- for (var i = 0; i < ds_main_codeinfo_codelist.rowcount; i++){
-
- if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cdid"))){
- sysf_messageBox("연도는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
-
-
- if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cntlcd1"))){
- sysf_messageBox("시작일자는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- if (utlf_transNullToEmpty(ds_main_codeinfo_codelist.getColumn(i, "cntlcd1")).length != 8){
- sysf_messageBox("시작일자가 정확하지 않습니다.", "E999", "");
- return false;
- }
- if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cntlcd2"))){
- sysf_messageBox("종료일자는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- if (utlf_transNullToEmpty(ds_main_codeinfo_codelist.getColumn(i, "cntlcd2")).length != 8){
- sysf_messageBox("종료일자가 정확하지 않습니다.", "E999", "");
- return false;
- }
- scdid1 = ds_main_codeinfo_codelist.getColumn(i, "cdid");
- var k = i + 1;
- for (var j = k; j < ds_main_codeinfo_codelist.rowcount; j++){
- scdid2 = ds_main_codeinfo_codelist.getColumn(j, "cdid");
- if (i != j){
- if (scdid1 == scdid2){
- sysf_messageBox( "연도에 중복된 값이 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
- function ExecData(){
- ds_main_codeinfo_codelist.enableevent = false;
- ds_main_codeinfo_codelist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_codeinfo_codelist, "status");
-
- ds_main_codeinfo_codelist.updatecontrol = true;
- ds_main_codeinfo_codelist.enableevent = true;
-
- var update = grdf_getGridUpdateData(datagrid1);
- ds_senddata_execdata_codelist.assign(update);
-
- var oParam = {};
- oParam.id = "TXRPD31401";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveSpcEvalPeriodList";
- oParam.inds = "codelist=ds_senddata_execdata_codelist:A";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD31401";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXRPD31401") > -1){ //TXRPD30101
- readfunc();
- }
- }
- function cf_TXRPD31401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function isDate(str) { // 날짜 형식에 대한 적합여부 체크
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
- //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
- return true; // 존재하는 날짜
- }
- function trim(data){ // 문자에 대한 TRIM 작업
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31400
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRPD31400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD31400
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRPD31400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(datagrid1, 0);
- grdf_setGridSort(datagrid1);
-
- //전문의평가 관리권한 확인용 : 관리권한이 있는 자만 사용 가능
- var oParam = {};
- oParam.id = "TRRPD31102";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetSpcEvalMngtPrvg";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_prvg=codelist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD31102";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRRPD31102") > -1) {
-
- //alert(model.getValue("/root/init/prvg/cnt"));
-
- if(ds_init_prvg.getColumn(0, "cnt") != "1") {
- sysf_messageBox("프로그램 사용권한이 없습니다. 관리자에게 문의바랍니다.", "E999", "");
- return;
- }
- }
- misfComboInstCdListMulti("cmb_instcd", utlf_getCurrentDate(),"","N");
- //model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- //model.refresh();
- cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
-
- btn_search.click();
- }
- function cf_TRRPD31102(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가버튼 클릭시
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_codeinfo_codelist.addRow();
- var irow = ds_main_codeinfo_codelist.rowposition;
- ds_main_codeinfo_codelist.setColumn(irow, "instcd", cmb_instcd.value);
-
- ds_main_codeinfo_codelist.rowposition = irow;
- datagrid1.setCellPos(datagrid1.getBindCellIndex("body", "cdid"));
- datagrid1.setFocus();
- datagrid1.showEditor(true);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제버튼 클릭시
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var status = ds_main_codeinfo_codelist.getRowType(ds_main_codeinfo_codelist.rowposition);
-
- ds_main_codeinfo_codelist.enableevent = false;
- ds_main_codeinfo_codelist.updatecontrol = false;
-
- if(status == 1) {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
- }else if(status == 2) {
- ds_main_codeinfo_codelist.deleteRow(ds_main_codeinfo_codelist.rowposition);
- }else if(status == 4) {
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "colIUD", "u");
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
- }else if(status == 8) {
- if(ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "colIUD") == "u") {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 4);
- }else {
- ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 1);
- }
- }
-
- ds_main_codeinfo_codelist.updatecontrol = true;
- ds_main_codeinfo_codelist.enableevent = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (datacheck() == false){
- return;
- }
-
- ExecData();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- readfunc();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfGridInit(datagrid1);
- }
- function ds_main_codeinfo_codelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- ds_main_codeinfo_codelist.setColumn(e.row, "colIUD", "u");
- }
- ]]></Script>
- </Form>
- </FDL>
|