123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPPIJ02200" position="absolute 0 0 480 390" titletext="중간계산마감" onload="SPPIJ02200_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 15 460 322" style="">
- <Layouts>
- <Layout>
- <Static id="caption10" position="absolute 18 15 104 35" style="" text="중간계산마감일" />
- <Shape id="line6" class="line_1" linetype="horizontal" position="absolute 5 38 452 41" style="" anchor="default" />
- <Shape id="roundrect1" anchor="default" class="roundrect_example" type="roundrectangle" position="absolute 10 14 114 34" style="" />
- <Button id="btn_mdlcalcend" class="btn2_letter2" position="absolute 335 15 377 34" style="" text="마감" onclick="group1_btn_mdlcalcend_onclick" />
- <Shape id="line4" class="line_3" linetype="horizontal" position="absolute 5 303 452 306" style="" anchor="default" />
- <Button id="btn_mdlcalccancel" class="btn2_letter4" position="absolute 380 15 444 34" style="" text="마감취소" onclick="group1_btn_mdlcalccancel_onclick" />
- <Calendar id="ipt_judgenddd" class="input_search" taborder="4" mask="yyyy-mm-dd" position="absolute 119 15 219 34" style="" anchor="default" />
- <Grid id="grd_mdlcalcend" binddataset="ds_main_list1_mdlcalcend" position="absolute 5 43 452 302" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="135" />
- <Column size="100" />
- <Column size="100" />
- <Column size="120" />
- <Column size="135" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="선택" />
- <Cell col="1" text="pid" />
- <Cell col="2" text="indd" />
- <Cell col="3" text="cretno" />
- <Cell col="4" text="마감일자" />
- <Cell col="5" text="fstrgstrid" />
- <Cell col="6" text="fstrgstdt" />
- <Cell col="7" text="심사자" />
- <Cell col="8" text="심사일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:chk" />
- <Cell col="1" text="bind:pid" />
- <Cell col="2" text="bind:indd" />
- <Cell col="3" text="bind:cretno" />
- <Cell col="4" text="bind:judgenddd" />
- <Cell col="5" text="bind:fstrgstrid" />
- <Cell col="6" text="bind:fstrgstdt" />
- <Cell col="7" text="bind:lastupdtrid" />
- <Cell col="8" text="bind:lastupdtdt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" class="tit_1" position="absolute 0 0 180 14" style="align: middle;" text="중간계산마감" />
- <Button id="btn_close" class="btn4_letter2" position="absolute 395 325 451 347" style="" text="닫기" onclick="btn_close_onclick" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="judgenddd" type="STRING" size="256" />
- <Column id="data2" type="STRING" size="256" />
- <Column id="data3" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="judgenddd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" />
- <Column id="indd" type="STRING" size="256" />
- <Column id="cretno" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="indd"></Col>
- <Col id="cretno"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="mdlcalcend" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mdlcalcend"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_judgenddd" propid="value" datasetid="ds_send" columnid="judgenddd" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SPPIJ02200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- // 중간계산마감일 초기화 (default : 현재일)
- ds_send.setColumn( 0, "judgenddd", utlf_getCurrentDate());
- // 중간계산마감이력 조회
- // submit("TRPIJ02201");
- var oParam = {};
- oParam.id = "TRPIJ02201";
- oParam.service = "bfjudgapp.MdlCalcEnd";
- oParam.method = "reqGetMdlCalcEndList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=mdlcalcend";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ02201";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ02201") > -1
- arErrorCode.pop("TRPIJ02201") < 0
- */
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- function group1_btn_mdlcalcend_onclick(obj:Button, e:ClickEventInfo) {
- // 중간계산 마감일자 검사
- var judgenddd = ds_send.getColumn(0, "judgenddd");
- if (!utlf_isValidDateTime(judgenddd)) {
- sysf_messageBox("올바른 형식의 시작일자를", "C001"); // 올바른 형식의 시작일자를 입력하십시오.
- return;
- }
- var indd = ds_send_data1.getColumn(0, "indd");
- var dateDif = utlf_getDateInterval(indd, judgenddd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
- if (dateDif < 0) {
- sysf_messageBox("마감일자가 입원일자 보다 이전", "E008");
- return;
- }
- if (sysf_messageBox("중간계산 마감을", "Q004") != 6) {
- return;
- }
- ds_send_data2.clearData();
- dsf_makeValue( ds_send, "data2", "string", "" );
- dsf_makeValue( ds_send_data2, "pid", "string", ds_send_data1.getColumn(0, "pid"));
- dsf_makeValue( ds_send_data2, "indd", "string", indd);
- dsf_makeValue( ds_send_data2, "cretno", "string", ds_send_data1.getColumn(0, "cretno"));
- dsf_makeValue( ds_send_data2, "judgenddd", "string", judgenddd);
- // 중간계산마감 수행
- // if (submit("TXPIJ02201")) {
- var oParam = {};
- oParam.id = "TXPIJ02201";
- oParam.service = "bfjudgapp.MdlCalcEnd";
- oParam.method = "reqInsertMdlCalcEnd";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ02201";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ02201") > -1
- arErrorCode.pop("TXPIJ02201") < 0
- */
- // 다시 조회한다.
- // submit("TRPIJ02201");
- var oParam = {};
- oParam.id = "TRPIJ02201";
- oParam.service = "bfjudgapp.MdlCalcEnd";
- oParam.method = "reqGetMdlCalcEndList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=mdlcalcend";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ02201";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ02201") > -1
- arErrorCode.pop("TRPIJ02201") < 0
- */
- }
- }
- function group1_btn_mdlcalccancel_onclick(obj:Button, e:ClickEventInfo) {
- // 선택된 row 가 있는지 체크
- var status = false;
- for (var i = 1; i < group1.grd_mdlcalcend.rows; i++) {
- var chk = ds_main_list1_mdlcalcend.getColumn(i, "chk");
- if (chk == "true") {
- status = true;
- i = group1.grd_mdlcalcend.rows;
- }
- }
- // 선택된 row 가 없는 경우 메세지 처리
- if (status == false) {
- sysf_messageBox("마감을 취소할 데이터가 선택되지", "E007");
- return;
- }
- // 선택된 row 의 마감이력을 삭제한다.
- if (sysf_messageBox("마감취소를", "Q003") != 6) {
- return;
- }
- ds_send_data3.clearData();
- dsf_makeValue( ds_send, "data3", "string", "" );
- var idx = 1;
- for (var j = 1; j < group1.grd_mdlcalcend.rows; j++) {
- var chk = ds_main_list1_mdlcalcend.getColumn(j, "chk");
- if (chk == "true") {
- ds_send_data3_mdlcalcend.setColumn( idx, "pid", ds_main_list1_mdlcalcend.getColumn(j, "pid"));
- ds_send_data3_mdlcalcend.setColumn( idx, "indd", ds_main_list1_mdlcalcend.getColumn(j, "indd"));
- ds_send_data3_mdlcalcend.setColumn( idx, "cretno", ds_main_list1_mdlcalcend.getColumn(j, "cretno"));
- ds_send_data3_mdlcalcend.setColumn( idx, "judgenddd", ds_main_list1_mdlcalcend.getColumn(j, "judgenddd"));
- idx++;
- }
- }
- // if (submit("TXPIJ02202")) {
- var oParam = {};
- oParam.id = "TXPIJ02202";
- oParam.service = "bfjudgapp.MdlCalcEnd";
- oParam.method = "reqCancelMdlCalcEndList";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ02202";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ02202(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ02202(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ02202") > -1
- arErrorCode.pop("TXPIJ02202") < 0
- */
- // 다시 조회한다.
- // submit("TRPIJ02201");
- var oParam = {};
- oParam.id = "TRPIJ02201";
- oParam.service = "bfjudgapp.MdlCalcEnd";
- oParam.method = "reqGetMdlCalcEndList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=mdlcalcend";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ02201";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ02201") > -1
- arErrorCode.pop("TRPIJ02201") < 0
- */
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- window.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|