123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRAD00700" position="absolute 0 0 556 236" titletext="품의사용내역" oninit="SPRAD00700_oninit" onload="SPRAD00700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="증빙서유형" class="tit_1" position="absolute 0 0 190 23"/>
- <Calendar id="ipt_unsldd" taborder="1" class="input_s_essential" position="absolute 111 32 231 51"/>
- <Static id="caption5" text="거래발생일 :" class="search_name" position="absolute 6 32 106 49"/>
- <Button id="button2" taborder="2" class="icon_search" position="absolute 210 62 226 78" onclick="button2_onclick"/>
- <Edit id="ipt_custcd" taborder="3" class="input_essential" position="absolute 111 62 206 81"/>
- <Static id="caption13" text="거 래 처 :" class="search_name" position="absolute 6 62 92 79"/>
- <Edit id="input3" taborder="4" class="input_essential" enable="false" position="absolute 230 62 414 81"/>
- <MaskEdit id="input10" taborder="5" mask="(-)#,###" enable="false" position="absolute 111 92 231 111"/>
- <Static id="caption18" text="금 액 :" class="search_name" position="absolute 6 92 107 109"/>
- <MaskEdit id="input1" taborder="6" mask="(-)#,###" position="absolute 111 122 231 141"/>
- <Static id="caption1" text="공급가액 :" class="search_name" position="absolute 6 122 107 139"/>
- <Static id="caption2" text="세 액 :" class="search_name" position="absolute 6 152 107 169"/>
- <MaskEdit id="input2" taborder="7" mask="(-)#,###" position="absolute 111 152 231 171"/>
- <Static id="caption3" text="확인번호 :" class="search_name" position="absolute 246 32 347 49"/>
- <MaskEdit id="input4" taborder="8" mask="(-)#,###" enable="false" position="absolute 341 32 461 51"/>
- <Button id="button1" taborder="10" text="저장" class="btn4" position="absolute 435 204 491 226" onclick="button1_onclick"/>
- <Button id="btn_close" taborder="11" text="닫기" class="btn4" position="absolute 495 204 551 226" onclick="btn_close_onclick"/>
- <MaskEdit id="input5" taborder="12" mask="(-)#,###" position="absolute 111 122 231 141"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list_pumlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_pumlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="kyymd" type="STRING" size="256" sumtext="신청일자"/>
- <Column id="custcode" type="STRING" size="256" sumtext="거래처코드"/>
- <Column id="custname" type="STRING" size="256" sumtext="거래처명"/>
- <Column id="pumamt" type="STRING" size="256" sumtext="품의금액"/>
- <Column id="amt1" type="STRING" size="256" sumtext="공급가액1"/>
- <Column id="amt2" type="STRING" size="256" sumtext="공급가액2"/>
- <Column id="seamt3" type="STRING" size="256" sumtext="세액"/>
- <Column id="noseq" type="STRING" size="256" sumtext="번호"/>
- <Column id="naeyong" type="STRING" size="256" sumtext="내용"/>
- <Column id="pumno2" type="STRING" size="256" sumtext="내용"/>
- <Column id="taxlist" type="STRING" size="256" sumtext="세금구분"/>
- <Column id="status" type="STRING" size="256" sumtext="모드"/>
- <Column id="sekeumdate" type="STRING" size="256" sumtext="거래일자"/>
- <Column id="no" type="STRING" size="256" sumtext="모드"/>
- <Column id="acctseid" type="STRING" size="256" sumtext="계정코드"/>
- <Column id="dateflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_pop3data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SPRAD00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPRAD00700_onload(obj:Form, e:LoadEventInfo)
- {
- try
- {
- ds_pop3data.copyData(arg_ds_pop3data);
- }
- catch(e)
- {
- }
-
- fInitialize();
- }
- function fInitialize()
- {
- if(ds_pop3data.getColumn(0, "taxlist") == "1")
- {
- input5.visible = false;
- input1.visible = true;
- input2.visible = true;
- caption2.visible = true;
- }
- else
- {
- input5.visible = true;
- input1.visible = false;
- input2.visible = false;
- caption2.visible = false;
- }
- var pumamt = ds_pop3data.getColumn(0, "pumamt");
- var amt1 = 0;
- var amt2 = 0;
- var seamt3 = 0;
-
- var oParam = {};
- oParam.id = "TRRAD01515";
- oParam.service = "slipapp.AccBook";
- oParam.method = "reqGetPopup3List";
- oParam.inds = "req=ds_pop3data";
- oParam.outds = "ds_main_list_pumlist=pumlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRAD01515";
- tranf_submit(oParam);
- if(utlf_isNull(ds_main_list_pumlist.getColumn(0, "noseq")))
- {
- ds_main_list_pumlist.setColumn(0, "kyymd", ds_pop3data.getColumn(0, "kyymd"));
- ds_main_list_pumlist.setColumn(0, "custcode", ds_pop3data.getColumn(0, "custcode"));
- ds_main_list_pumlist.setColumn(0, "custname", ds_pop3data.getColumn(0, "custname"));
- ds_main_list_pumlist.setColumn(0, "pumamt", ds_pop3data.getColumn(0, "pumamt"));
- ds_main_list_pumlist.setColumn(0, "naeyong", ds_pop3data.getColumn(0, "naeyong"));
- ds_main_list_pumlist.setColumn(0, "pumno2", String(ds_pop3data.getColumn(0, "pumno")).substr(8,4));
- ds_main_list_pumlist.setColumn(0, "taxlist", ds_pop3data.getColumn(0, "taxlist"));
- ds_main_list_pumlist.setColumn(0, "sekeumdate", ds_pop3data.getColumn(0, "sekeumdate"));
- ds_main_list_pumlist.setColumn(0, "no", "");
- ds_main_list_pumlist.setColumn(0, "status", "i");
- ds_main_list_pumlist.setColumn(0, "acctseid", "");
-
- if(ds_pop3data.getColumn(0, "taxlist") == "1")
- {
- amt1 = Math.round(parseFloat(pumamt) / 11.0 * 10);
- seamt3 = parseFloat(pumamt) - parseFloat(amt1);
-
- dsf_makeValue(ds_main_list_pumlist, "amt1", "string", amt1, 0);
- dsf_makeValue(ds_main_list_pumlist, "amt2", "string", "0", 0);
- dsf_makeValue(ds_main_list_pumlist, "seamt3", "string", seamt3, 0);
-
- var dateflag = String(ds_pop3data.getColumn(0, "sekeumdate"))substr(4,2);
-
- if(dateflag >= "01" && dateflag<= "03")
- {
- dsf_makeValue(ds_main_list_pumlist, "dateflag", "string", "1", 0);
- }
- else if(dateflag >= "04" && dateflag<= "06")
- {
- dsf_makeValue(ds_main_list_pumlist, "dateflag", "string", "2", 0);
- }
- else if(dateflag >= "07" && dateflag<= "09")
- {
- dsf_makeValue(ds_main_list_pumlist, "dateflag", "string", "3", 0);
- }
- else if(dateflag >= "10" && dateflag<= "12")
- {
- dsf_makeValue(ds_main_list_pumlist, "dateflag", "string", "4", 0);
- }
- }
- else
- {
- dsf_makeValue(ds_main_list_pumlist, "amt1", "string", "0", 0);
- dsf_makeValue(ds_main_list_pumlist, "amt2", "string", ds_pop3data.getColumn(0, "pumamt"), 0);
- dsf_makeValue(ds_main_list_pumlist, "seamt3", "string", "0", 0);
- }
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fOpenPopupHelp("56", ds_main_list_pumlist, "custcode,custname", "", "");
- }
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- }
- function ds_main_list_pumlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "amt2")
- {
- if(ds_pop3data.getColumn(0, "taxlist") != "1")
- {
- input10.value = parseInt(input1.value) + parseInt(input5.value);
- }
- }
-
- if(e.columnid == "amt1")
- {
- if(ds_pop3data.getColumn(0, "taxlist") != "1")
- input10.value = parseInt(input1.value) + parseInt(input2.value);
- }
- }
-
- if(e.columnid == "seamt3")
- {
- if(ds_pop3data.getColumn(0, "taxlist") != "1")
- {
- input10.value = parseInt(input1.value) + parseInt(input2.value);
- }
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveDate();
- }
- function fSaveDate()
- {
- var custcode = ds_main_list_pumlist.getColumn(0, "custcode");
-
- ds_main_list_pumlist.setColumn(0, "acctseid", ds_pop3data.getColumn(0, "acctseid"));
-
- if( custcode == "9000")
- {
- sysf_messageBox("거래처 정보를 다시 입력해 주십시오.( [ 9000 / 기타 ]는 입력불가능 )", "E000", "");
- return;
- }
- var oParam = {};
- oParam.id = "TXRAD01503";
- oParam.service = "slipapp.AccBook";
- oParam.method = "reqExePopup3List";
- oParam.inds = "req=ds_main_list_pumlist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXRAD01503";
- tranf_submit(oParam);
- }
- function cf_TXRAD01503(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- if(ds_main_list_pumlist.getColumn(0, "status") == "i")
- {
- sysf_messageBox("저장되었습니다.", "I000");
- }
- else if(ds_main_list_pumlist.getColumn(0, "status") == "u")
- {
- sysf_messageBox("수정되었습니다.", "I000");
- }
- var oParam = {};
- oParam.id = "TRRAD01515";
- oParam.service = "slipapp.AccBook";
- oParam.method = "reqGetPopup3List";
- oParam.inds = "req=ds_pop3data";
- oParam.outds = "ds_main_list_pumlist=pumlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRAD01515";
- tranf_submit(oParam);
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|