123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC00800" position="absolute 0 0 1197 788" titletext="제조회사코드 등록" onload="SMRSC00800_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 51 1195 786" 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 11 119 28" id="cap_prodcmpynm" class="search_name" anchor="default"/>
- <Shape position="absolute 1107 9 1113 31" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
- <Button position="absolute 1124 9 1180 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" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="제조회사 list" position="absolute 0 53 157 70" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 69 1195 75" id="line1" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 74 1195 735" id="grd_rscmpcomlist" binddataset="ds_main_rscmpcomlist" anchor="all" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="300"/>
- <Column size="160"/>
- <Column size="290"/>
- <Column size="300"/>
- </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="비고"/>
- </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="align:left top;padding:5 2 1 2;background:URL('IMG::com/input_essential.png');background2:URL('IMG::com/input_essential.png');" class="input_essential" text="bind:prodcmpynm" wordwrap="word" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" style="background:white;background2:white;" text="bind:prodcmpytel" mask="expr:utlf_isNull(prodcmpytel) ? '' : '##########'" maskchar=" " editautoselect="true"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:white;background2:white;" text="bind:prodcmpyaddr" wordwrap="word" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:white;background2:white;" text="bind:cmt" wordwrap="word" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1027 47 1080 69" id="btn_grdadd1" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_btn_grdadd1_onclick"/>
- <Button position="absolute 1082 47 1135 69" id="btn_grddel1" class="btn2" text="행삭제" anchor="top right" onclick="grp_biz_btn_grddel1_onclick"/>
- <Button position="absolute 1137 47 1195 69" id="btn_excel" class="btn7" text="엑셀" anchor="top right" onclick="grp_biz_btn_excel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 25 1195 53" id="group4" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 1069 1 1125 23" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group4_btn_save_onclick"/>
- <Shape position="absolute 0 22 1195 28" id="line14" class="line_6" anchor="left top right"/>
- <Button position="absolute 1127 1 1195 23" id="btn_clear" class="btn4" text="초기화" anchor="top right" onclick="group4_btn_clear_onclick"/>
- <Button position="absolute 0 1 56 23" id="btn_prt" class="btn6" visible="false" text="출력" anchor="default"/>
- <Button position="absolute 58 1 138 23" 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_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>
- <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_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_main_rscmpcomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prodcmpycd" type="STRING" size="255"/>
- <Column id="prodcmpynm" type="STRING" size="255"/>
- <Column id="prodcmpytel" type="STRING" size="255"/>
- <Column id="prodcmpyaddr" type="STRING" size="255"/>
- <Column id="cmt" type="STRING" size="255"/>
- <Column id="goodflag" type="STRING" size="255"/>
- <Column id="fstrgstrid" type="STRING" size="255"/>
- <Column id="fstrgstdt" type="STRING" size="255"/>
- <Column id="lastupdtrid" type="STRING" size="255"/>
- <Column id="lastupdtdt" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- <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>
- </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-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.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 SMRSC00800_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'){
- misfMsterDetailRetrieve();
- }else{
- return;
- }
- }else{
- //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
- misfMsterDetailRetrieve();
- }
- misfSetReadOnlyCol(grp_biz.grd_rscmpcomlist,"prodcmpycd", true);
- }
- /****************************************************************************************
- * Components : Edit
- * 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");
- }
- /****************************************************************************************
- * 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, "제조회사코드내역");
- }
- /****************************************************************************************
- * 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 < 1 ) {
- 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>
|