123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC00810" position="absolute 0 0 1196 796" titletext="제조회사코드 등록" onload="SMRSC00810_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 51 1195 795" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 40" id="grp_sea" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="제조회사 명 :" position="absolute 15 12 119 29" id="cap_prodcmpynm" class="search_name" anchor="default"/>
- <Shape position="absolute 1107 10 1113 32" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
- <Button position="absolute 1125 9 1181 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Edit position="absolute 125 10 385 29" align="align:center middle;" id="ipt_prodcmpynm" class="input_default" anchor="default" onkeydown="grp_biz_grp_sea_ipt_prodcmpynm_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="제조회사 list" position="absolute 0 48 157 65" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 64 1195 70" id="line1" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 69 1195 744" id="grd_rscmpcomlist" binddataset="ds_main_rscmpcomlist" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="300"/>
- <Column size="160"/>
- <Column size="310"/>
- <Column size="300"/>
- <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="주소"/>
- <Cell col="5" text="비고"/>
- <Cell col="6" text="goodflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="background:URL('IMG::com/input_essential.png');background2:URL('IMG::com/input_essential.png');" class="input_essential" text="bind:prodcmpycd" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" style="background:URL('IMG::com/input_essential.png');background2:URL('IMG::com/input_essential.png');" class="input_essential" text="bind:prodcmpynm"/>
- <Cell col="3" displaytype="text" edittype="text" editfilter="number" style="background:white;background2:white;" text="bind:prodcmpytel" editlimit="11"/>
- <Cell col="4" displaytype="text" edittype="text" style="background:white;background2:white;" text="bind:prodcmpyaddr"/>
- <Cell col="5" displaytype="text" edittype="text" style="background:white;background2:white;" text="bind:cmt"/>
- <Cell col="6" text="bind:goodflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1030 42 1083 64" id="btn_grdadd1" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_btn_grdadd1_onclick"/>
- <Button position="absolute 1086 42 1139 64" id="btn_grddel1" class="btn2" text="행삭제" anchor="top right" onclick="grp_biz_btn_grddel1_onclick"/>
- <Button position="absolute 1142 42 1195 64" id="btn_excel" class="btn7" text="엑셀" anchor="top right" onclick="grp_biz_btn_excel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 23 1195 53" id="group4" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 1068 3 1124 25" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group4_btn_save_onclick"/>
- <Shape position="absolute 0 24 1195 30" id="line14" class="line_6" anchor="left top right"/>
- <Button position="absolute 1127 3 1195 25" id="btn_clear" class="btn4" text="초기화" anchor="top right" onclick="group4_btn_clear_onclick"/>
- <Button position="absolute 0 3 56 25" id="btn_prt" class="btn6" visible="false" text="출력" anchor="default"/>
- <Button position="absolute 59 3 139 25" id="btn_scrnmove" class="btn3" visible="false" text="화면이동" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="제조회사코드 등록." class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <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>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rscmpcomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </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="prodcmpynm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prodcmpynm"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_prodcmpynm" propid="value" datasetid="ds_send" columnid="prodcmpynm"/>
- </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 "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInitialize()
- {
- misfGridInit(grp_biz.grd_rscmpcomlist);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRSC00810_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grp_biz.grd_rscmpcomlist, 0);
-
- fInitialize();
- misfMsterDetailSet(grp_biz.grd_rscmpcomlist, null, "TRRSC00803", "Y");
-
- //화면 권한 설정
- group4.btn_save.enable = frmf_checkAuth("X");
- group4.btn_prt.enable = frmf_checkAuth("P");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_rscmpcomlist, "all");
- if( !utlf_isNull(dsUpdate) && dsUpdate.rowcount > 0 )
- {
- if( sysf_messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
- dsf_makeValue( ds_send, "goodflag", "string", "PH");
- misfMsterDetailRetrieve();
- }else{
- return;
- }
- }else{
- dsf_makeValue( ds_send, "goodflag", "string", "PH");
- misfMsterDetailRetrieve();
- }
- misfSetReadOnlyCol(grp_biz.grd_rscmpcomlist,"prodcmpycd", true);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function grp_biz_grp_sea_ipt_prodcmpynm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_biz.grp_sea.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function grp_biz_btn_grdadd1_onclick(obj:Button, e:ClickEventInfo) {
- misfGridIUD(grp_biz.grd_rscmpcomlist, "A");
- dsf_makeValue( ds_send, "goodflag", "string", "PH");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function grp_biz_btn_grddel1_onclick(obj:Button, e:ClickEventInfo) {
- misfGridIUD(grp_biz.grd_rscmpcomlist, "D");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 엑셀저장
- ****************************************************************************************/
- function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(grp_biz.grd_rscmpcomlist, "제조회사코드내역_"+utlf_getCurrentDate());
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group4_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_rscmpcomlist, "all");
- if( utlf_isNull(dsUpdate) || dsUpdate.rowcount == 0 )
- {
- sysf_messageBox("업데이트 된 내용이", "I004");
- return;
- }
- var success = misfSave("TXRSC00802");
-
- if(success) grp_biz.grp_sea.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 초기화
- ****************************************************************************************/
- function group4_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|