<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare"
	xmlns:xf="http://www.w3.org/2002/xforms">
	<head meta_programId="HM001M01" meta_programName="조직 관리" meta_programDesc="조직을 관리(등록,수정,삭제)하는 화면" meta_author="Inswave Systems" meta_date="2021.02.25">
		<w2:type>COMPONENT</w2:type>
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection baseNode="map">
				<w2:dataList id="dlt_organizationBasic" baseNode="list" saveRemovedData="true" repeatNode="map" ev:oncelldatachange="" undoRecursiveRow="true">
					<w2:columnInfo>
						<w2:column id="chk" name="선택" dataType="text" ignoreStatus="true"></w2:column>
						<w2:column id="ORG_CD" name="소속코드" dataType="text"></w2:column>
						<w2:column id="ORG_NM" name="소속명칭" dataType="text"></w2:column>
						<w2:column id="PARENT_ORG_CD" name="상위소속코드" dataType="text"></w2:column>
						<w2:column id="ORG_LEVEL" name="조직레벨" dataType="text"></w2:column>
						<w2:column id="SORT_ORDER" name="정렬순서" dataType="text"></w2:column>
						<w2:column id="ORG_CLASS_CD" name="조직구분" dataType="text"></w2:column>
						<w2:column id="ORG_ALIAS_NM" name="소속약칭" dataType="text"></w2:column>
						<w2:column id="ORG_EN_NM" name="소속영문명" dataType="text"></w2:column>
						<w2:column id="ORG_EN_ALIAS_NM" name="소속영문약명" dataType="text"></w2:column>
						<w2:column id="ORG_BOSS_EMP_NM" name="책임자" dataType="text"></w2:column><w2:column id="START_DATE" name="개설일" dataType="text"></w2:column>
						<w2:column id="END_DATE" name="폐쇄일" dataType="text"></w2:column>
						<w2:column id="NOTE" name="비고" dataType="text"></w2:column>
						<w2:column id="PARENT_ORG_NM" name="상위소속명" dataType="text"></w2:column>
					<w2:column id="ORG_BOSS_EMP_CD" name="책임자코드" dataType="text"></w2:column></w2:columnInfo>
				</w2:dataList>
				<w2:dataList id="dlt_organizationBoss" baseNode="list" saveRemovedData="true" repeatNode="map">
					<w2:columnInfo>
						<w2:column id="EMP_CD" name="사원코드" dataType="text"></w2:column>
						<w2:column id="EMP_NM" name="사원명" dataType="text"></w2:column>
					</w2:columnInfo>
					<w2:data></w2:data>
				</w2:dataList>
				<w2:dataMap baseNode="map" id="dma_search">
					<w2:keyInfo>
						<w2:key id="TYPE" name="name1" dataType="text"></w2:key>
						<w2:key id="CONTENT" name="name2" dataType="text"></w2:key>
						<w2:key id="IS_USE" name="name3" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
				<w2:dataList id="dlt_organizationSearchItem" baseNode="list" saveRemovedData="true" repeatNode="map">
					<w2:columnInfo>
						<w2:column id="ORG_CD" name="name1" dataType="text"></w2:column>
						<w2:column id="ORG_NM" name="name2" dataType="text"></w2:column>
						<w2:column id="PARENT_ORG_CD" name="name3" dataType="text"></w2:column>
						<w2:column id="PARENT_ORG_NM" name="name4" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
			</w2:dataCollection>
			<w2:workflowCollection></w2:workflowCollection>
			<xf:submission id="sbm_searchOrganization" ref="data:json,dma_search" target='data:json,dlt_organizationBasic'
				action="/organization/searchOrganization" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler=""
				customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_searchOrganization_submitdone" ev:submiterror="" abortTrigger="">
			</xf:submission>
			<xf:submission id="sbm_saveOrganizationBasic" ref='data:json,{"id":"dlt_organizationBasic","action":"modified"}'
				target="data:json,dlt_organizationBasic" action="/organization/updateOrganizationBasic" method="post" mediatype="application/json" encoding="UTF-8"
				instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="저장중 입니다..." ev:submit=""
				ev:submitdone="scwin.sbm_saveOrganizationBasic_submitdone" ev:submiterror="" abortTrigger="">
			</xf:submission>
			<xf:submission id="sbm_organizationSearchItem" ref="" target='data:json,["dlt_organizationSearchItem","dlt_organizationBoss"]' action="/organization/selectOrganizaionSearchItem"
				method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg=""
				ev:submit="" ev:submitdone="" ev:submiterror="" abortTrigger="">
			</xf:submission>
		</xf:model>
		<w2:layoutInfo></w2:layoutInfo>
		<w2:publicInfo method=""></w2:publicInfo>

		<script type="text/javascript" lazy="false"><![CDATA[
/**
 * 초기 스크립트 수행 함수 정의
 */
scwin.onpageload = function () {
	var codeOptions = [{ "code": "00020", "compID": "sbx_OrgClassCd, grd_organizationBasic:ORG_CLASS_CD" }];
	com.data.setCommonCode(codeOptions);
	com.sbm.execute(sbm_organizationSearchItem);
	com.win.setEnterKeyEvent(tbl_search, scwin.btn_search_onclick);
	com.util.setGridViewDelCheckBox(grd_organizationBasic);
	com.data.setChangeCheckedDc(dlt_organizationBasic);
};

/**
 * 화면 초기화 데이터가 모두 로딩되면 발생하는 이벤트
 */
scwin.ondataload = function () {
	scwin.btn_search_onclick();
};

/**
 * 조회된 건수와 조직 레벨에 따른 소속명칭, 상위소속명의 폰트색을 변경한다.
 * Level 1 : #E74C3C  (붉은색) Level 2 : #1FCC25  (초록색) Level 3 : #348FE2  (파란색)
 */
scwin.setFontFormat = function (data, fData, rowIndex, colIndex) {
	var val_level = dlt_organizationBasic.getCellData(rowIndex, "ORG_LEVEL");
	if (val_level == "1") {
		grd_organizationBasic.setCellColor(rowIndex, "ORG_NM", "#E74C3C ");
		grd_organizationBasic.setCellColor(rowIndex, "PARENT_ORG_NM", "#E74C3C ");
	} else if (val_level == "2") {
		grd_organizationBasic.setCellColor(rowIndex, "ORG_NM", "#1FCC25 ");
		grd_organizationBasic.setCellColor(rowIndex, "PARENT_ORG_NM", "#1FCC25 ");
	} else if (val_level == "3") {
		grd_organizationBasic.setCellColor(rowIndex, "ORG_NM", "#348FE2 ");
		grd_organizationBasic.setCellColor(rowIndex, "PARENT_ORG_NM", "#348FE2 ");
	}
	return fData;
};

/**
 * 검색항목(selectBox)의 내용이 변경되었을 때 실행된다
 */
scwin.sbx_choiceBox_onviewchange = function (info) {
	if (info.newValue == "ORG_CD") {
		acb_autoChoiceBox.setNodeSet("data:dlt_organizationSearchItem", "ORG_CD", "ORG_CD");
		sbx_parentCd.hide();
		acb_autoChoiceBox.show("");
	} else if (info.newValue == "ORG_NM") {
		acb_autoChoiceBox.setNodeSet("data:dlt_organizationSearchItem", "ORG_NM", "ORG_NM");
		sbx_parentCd.hide();
		acb_autoChoiceBox.show("");
	} else if (info.newValue == "ORG_BOSS_EMP_CD") {
		acb_autoChoiceBox.setNodeSet("data:dlt_organizationBoss", "EMP_NM", "EMP_CD");
		sbx_parentCd.hide();
		acb_autoChoiceBox.show("");
	} else if (info.newValue == "PARENT_ORG_CD") {
		acb_autoChoiceBox.hide();
		sbx_parentCd.show("");
	}
};

/**
 * 조직기본관리 조회버튼 클릭시 발생하며, 조건에 따른 조직기본관리 리스트를 조회한다.
 */
scwin.btn_search_onclick = function () {
	if (sbx_choiceBox.getValue() == "PARENT_ORG_CD") {
		dma_search.set("CONTENT", sbx_parentCd.getValue());
	} else {
		dma_search.set("CONTENT", acb_autoChoiceBox.getValue());
	}
	com.sbm.execute(sbm_searchOrganization);
};

/**
 * 조직기본관리 버튼 클릭의 콜백메소드 건수 조회, ReadOnly 그리드뷰 컬럼색 변경, 조직 레벨에 따른 소속명칭, 상위소속명의 폰트색을 변경한다.
 */
scwin.sbm_searchOrganization_submitdone = function (e) {
	spn_organizationCnt.setValue(dlt_organizationBasic.getRowCount());
};

/**
 * 조직기본관리 등록 버튼 클릭
 */
scwin.btn_addOrganization_onclick = function () {
	var org_cnt = dlt_organizationBasic.getTotalRow();
	if (org_cnt == 0) {
		com.win.alert(com.data.getMessage("MSG_CM_00022"));
		return;
	}

	if (grd_organizationBasic.getFocusedRealRowIndex() === -1) {
		grd_organizationBasic.setFocusedCell(0, "ORG_CD");
	}
	var currOrgNm = dlt_organizationBasic.getCellData(grd_organizationBasic.getFocusedRealRowIndex(), "ORG_NM");
	var currOrgLevel = com.num.parseInt(dlt_organizationBasic.getCellData(grd_organizationBasic.getFocusedRealRowIndex(), "ORG_LEVEL"));
	if (org_cnt != "0" && grd_organizationBasic.getFocusedRowIndex() == "-1") {
		com.win.alert(com.data.getMessage("MSG_CM_00040"));
	} else {
		if (currOrgLevel < 3) {
			scwin.selectLevel(currOrgNm);
		} else {
			scwin.equalLevel();
		}
	}
};

/**
 * 조직레벨이 1 또는 2일 경우에 실행되는 함수 Yes, No에 따라서 하위에 만들 것인지, 동일한 레벨로 만들 것인지 결정한다.
 */
scwin.selectLevel = function (returnValue) {
	grd_organizationBasic.spanAll(true);
	com.win.confirm(returnValue + " " + com.data.getMessage("MSG_CM_00030"), "scwin.selectLevelCallbak");
};

scwin.selectLevelCallbak = function (res) {
	if (res.clickValue === true) {
		scwin.lowerLevel();
	} else {
		scwin.equalLevel();
	}
};

/**
 * 하위 레벨의 노드에 조직을 추가한다.
 */
scwin.lowerLevel = function () {
	var focusedRowIndex = grd_organizationBasic.getFocusedRealRowIndex();
	var parentOrgCd = dlt_organizationBasic.getCellData(focusedRowIndex, "ORG_CD");
	var orgLevel = com.num.parseInt(dlt_organizationBasic.getCellData(focusedRowIndex, "ORG_LEVEL")) + 1;
	var sortOrder = 1;
	var insertRowIndex = scwin.getInsertRowIndex(parentOrgCd);

	if (insertRowIndex === -1) {
		insertRowIndex = focusedRowIndex + 1;
	}
	var orgCd = scwin.getInsertRowOrgCd(parentOrgCd, orgLevel, true);

	var insertJson = [{ "ORG_CD": orgCd, "PARENT_ORG_CD": parentOrgCd, "ORG_LEVEL": orgLevel, "SORT_ORDER": sortOrder }];
	dlt_organizationBasic.insertJSON(insertRowIndex, insertJson);
	grd_organizationBasic.setFocusedCell(insertRowIndex, "ORG_CD");
	ibx_orgNm.focus();
};

/**
 * 같은 레벨의 노트에 조직을 추가한다.
 */
scwin.equalLevel = function () {
	var focusedRowIndex = grd_organizationBasic.getFocusedRealRowIndex();
	var parentOrgCd = dlt_organizationBasic.getCellData(focusedRowIndex, "PARENT_ORG_CD");
	var rowIndexArr = dlt_organizationBasic.getMatchedIndex("PARENT_ORG_CD", parentOrgCd, true, 0, dlt_organizationBasic.getRowCount());
	var orgLevel = com.num.parseInt(dlt_organizationBasic.getCellData(rowIndexArr[rowIndexArr.length - 1], "ORG_LEVEL"));
	var sortOrder = com.num.parseInt(dlt_organizationBasic.getCellData(rowIndexArr[rowIndexArr.length - 1], "SORT_ORDER")) + 1;
	var insertRowIndex = scwin.getInsertRowIndex(parentOrgCd);
	var orgCd = scwin.getInsertRowOrgCd(parentOrgCd, orgLevel, false);

	var insertJson = [{ "ORG_CD": orgCd, "PARENT_ORG_CD": parentOrgCd, "ORG_LEVEL": orgLevel, "SORT_ORDER": sortOrder }];

	dlt_organizationBasic.insertJSON(insertRowIndex, insertJson);
	grd_organizationBasic.setFocusedCell(insertRowIndex, "ORG_CD");
	ibx_orgNm.focus();
};

/**
 * 새로 추가되는 조직의 조직 코드를 반환한다.
 */
scwin.getInsertRowOrgCd = function (parentOrgCd, orgLevel, isBottom) {
	var OrgCdArr = dlt_organizationBasic.getMatchedColumnData("PARENT_ORG_CD", parentOrgCd, "ORG_CD", true, 0, dlt_organizationBasic.getRowCount());

	if (OrgCdArr.length > 0) {
		var lastOrgCd = OrgCdArr[OrgCdArr.length - 1];
		var nodeIndex = (orgLevel - 1) * 2;
		var preNodeCd = lastOrgCd.substr(nodeIndex, 2);
		var newNodeCd = com.str.lpad(com.num.parseInt(preNodeCd) + 1, 2, "0");
		return lastOrgCd.substr(0, nodeIndex) + lastOrgCd.substr(nodeIndex).replace(preNodeCd, newNodeCd);
	} else {
		if (isBottom) {
			var nodeIndex = parentOrgCd.indexOf("00");
			return parentOrgCd.substr(0, nodeIndex) + parentOrgCd.substr(nodeIndex).replace("00", "01");
		} else {
			var nodeIndex = parentOrgCd.indexOf("00");
			var preNodeCd = parentOrgCd.substr(nodeIndex, 2);
			var newNodeCd = com.str.lpad(com.num.parseInt(preNodeCd) + 1, 2, "0");
			return parentOrgCd.substr(0, nodeIndex) + parentOrgCd.substr(nodeIndex).replace(preNodeCd, newNodeCd);
		}
	}
};

/**
 * 새로 추가되는 조직으로 RowIndex를 반환한다.
 */
scwin.getInsertRowIndex = function (parentOrgCd) {
	var rowIndexArr = dlt_organizationBasic.getMatchedIndex("PARENT_ORG_CD", parentOrgCd, true, 0, dlt_organizationBasic.getRowCount());
	if (rowIndexArr.length > 0) {
		var lastOrgCd = dlt_organizationBasic.getCellData(rowIndexArr[rowIndexArr.length - 1], "ORG_CD");
		var rowIndex = scwin.getInsertRowIndex(lastOrgCd);
		if (rowIndex !== -1) {
			return rowIndex;
		} else {
			return rowIndexArr[rowIndexArr.length - 1] + 1;
		}
	} else {
		return -1;
	}
};

/**
 * 조직기본관리 삭제 버튼 클릭
 */
scwin.btn_delOrganization_onclick = function () {
	dlt_organizationBasic.deleteRows(grd_organizationBasic.getCheckedIndex("chk"));
};

/**
 * 조직기본관리 취소 버튼 클릭
 */
scwin.btn_cancelOrganization_onclick = function () {
	com.data.undoGridView(grd_organizationBasic);
};

/**
 * 조직기본관리 저장 버튼 클릭
 */
scwin.btn_saveOrganization_onclick = function () {
	if (com.data.isModified(dlt_organizationBasic)) {
		if (com.data.validateGroup(grp_organizationBasic)) {
			com.win.confirm(com.data.getMessage("MSG_CM_00031"), function (res) {
				if (res.clickValue === true) {
					com.sbm.execute(sbm_saveOrganizationBasic);
				}
			});
		}
	} else {
		com.win.alert(com.data.getMessage("MSG_CM_00032"));
	}
};

scwin.btn_excelOrganization_onclick = function () {
	com.data.downloadGridViewExcel(grd_organizationBasic);
};

scwin.sbm_saveOrganizationBasic_submitdone = function (e) {
	if (com.sbm.getResultCode(e) == gcm.MESSAGE_CODE.STATUS_SUCCESS) {
		scwin.btn_search_onclick();
	}
};
]]></script>
	</head>
	<body ev:onpageload="scwin.onpageload">
		<xf:group class="sub_contents flex_gvw" id="" style="">
			<w2:wframe id="" style="" src="../../cm/xml/contentHeader.xml" scope="true"></w2:wframe>
			<xf:group class="shbox" id="" style="">
				<xf:group class="shbox_inner" id="tbl_search" style="">
					<xf:group adaptive="layout" adaptiveThreshold="900" class="w2tb tb" id="" style="width:100%;" tagname="table">
						<w2:attributes>
							<w2:summary></w2:summary>
						</w2:attributes>
						<xf:group tagname="colgroup">
							<xf:group style="width:100px;" tagname="col"></xf:group>
							<xf:group style="" tagname="col"></xf:group>
						</xf:group>
						<xf:group style="" tagname="tr">
							<xf:group class="w2tb_th " style="" tagname="th">
								<w2:textbox class="req" id="" label="검색항목" style=""></w2:textbox>
							</xf:group>
							<xf:group class="w2tb_td" style="" tagname="td">
								<xf:select1 ref="data:dma_search.TYPE" submenuSize="auto" appearance="minimal"
									disabledClass="w2selectbox_disabled" chooseOption="" disabled="false" style="width:100px;" allOption="" id="sbx_choiceBox"
									class="" direction="auto" ev:onviewchange="scwin.sbx_choiceBox_onviewchange">
									<xf:choices>
										<xf:item>
											<xf:label><![CDATA[소속명칭]]></xf:label>
											<xf:value><![CDATA[ORG_NM]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[소속코드]]></xf:label>
											<xf:value><![CDATA[ORG_CD]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[책임자]]></xf:label>
											<xf:value><![CDATA[ORG_BOSS_EMP_CD]]></xf:value>
										</xf:item>
									</xf:choices>
								</xf:select1>
								<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
									disabledClass="w2selectbox_disabled" id="sbx_parentCd" ref=""  style="width:150px;display:none"
									submenuSize="auto">
									<xf:choices>
										<xf:itemset nodeset="data:dlt_organizationSearchItem">
											<xf:label ref="PARENT_ORG_NM"></xf:label>
											<xf:value ref="PARENT_ORG_CD"></xf:value>
										</xf:itemset>
									</xf:choices>
								</xf:select1>
								<w2:autoComplete allOption="" caseSensitive="false" chooseOption="true" chooseOptionLabel="-전체-"
									chooseOptionValue="" class="" displayMode="label" editType="select" emptyItem="" emptyValue="" ev:onchange="" ev:onviewchange=""
									id="acb_autoChoiceBox" interactionMode="" noResult="useData" ref="data:dma_search.CONTENT" search="start" selectedData=""
									style="width: 200px;" submenuSize="auto" textAlign="left" useKeywordHighlight="false">
									<w2:choices>
										<w2:itemset nodeset="data:dlt_organizationSearchItem">
											<w2:label ref="ORG_NM"></w2:label>
											<w2:value ref="ORG_NM"></w2:value>
										</w2:itemset>
									</w2:choices>
								</w2:autoComplete>
							</xf:group>
						</xf:group>
					</xf:group>
				</xf:group>
				<xf:group class="btn_shbox" id="" style="">
					<xf:trigger class="btn_cm sch" disabled="" id="btn_Search" style="" type="button"
						ev:onclick="scwin.btn_search_onclick">
						<xf:label><![CDATA[조회]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
			<xf:group style="" id="" class="dfbox">
				<w2:textbox label="조직" style="" id="" class="" tagname="h3"></w2:textbox>
				<xf:group style="" id="" class="fr">
					<w2:textbox class="sum" id="spn_organizationCnt" label="" style=""></w2:textbox>
					<w2:textbox class="" id="" label="건" style=""></w2:textbox>

					<xf:trigger type="button" style="" id="btn_addOrganization" class="btn_cm "
						ev:onclick="scwin.btn_addOrganization_onclick">
						<xf:label><![CDATA[등록]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm " ev:onclick="scwin.btn_delOrganization_onclick" id="btn_delOrganization"
						style="display:none;" type="button">
						<xf:label><![CDATA[삭제]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm" id="btn_cancelOrganization" style="" type="button"
						ev:onclick="scwin.btn_cancelOrganization_onclick">
						<xf:label><![CDATA[취소]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm download" id="btn_excelOrganization" style="" type="button"
						ev:onclick="scwin.btn_excelOrganization_onclick">
						<xf:label><![CDATA[엑셀다운로드]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
			<xf:group adaptiveThreshold="" class="gvwbox wq_flx" id="" style="">
				<w2:gridView adaptive="" autoFit="allColumn" class="wq_gvw" dataList="data:dlt_organizationBasic" ev:oncellclick=""
					ev:onrowindexchange="" fixedColumnWithHidden="true" id="grd_organizationBasic" ignoreCellClick="false" overflowX="hidden"
					overflowY="scroll" readOnly="true" rowStatusHeaderValue="상태" rowStatusVisible="true" scrollByColumn="false" showSortableImage=""
					sortEvent="onclick" sortable="true" style="height: 296px;" useShiftKey="true" autoFitMinWidth="800"
					rowStatusWidth="" keepDefaultColumnWidth="true" defaultCellHeight="26" focusMode="row">
					<w2:header id="header1" style="">
						<w2:row id="row2" style="">
							<w2:column blockSelect="false" checkboxLabel="선택" displayMode="label" fixColumnWidth="true" id="chk"
								inputType="checkbox" removeBorderStyle="false" style="" value="" width="50" sortable="false">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column9" inputType="text" style=""
								value="소속코드" width="50" class="req">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column17" inputType="text" style=""
								value="소속명칭" width="300">
							</w2:column>
							<w2:column blockSelect="false" id="column30" inputType="text" style="" value="상위소속명" width="70"></w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column11" inputType="text" style=""
								value="조직구분" width="80">
							</w2:column>
							<w2:column blockSelect="false" id="column28" inputType="text" style="" value="책임자" width="70"></w2:column>
							<w2:column blockSelect="false" id="column18" inputType="text" style="" value="개설일" width="70"></w2:column>
							<w2:column blockSelect="false" id="column38" inputType="text" style="" value="폐쇄일" width="70"></w2:column>
						</w2:row>
					</w2:header>
					<w2:gBody id="gBody4" style="" width="40">
						<w2:row id="row5" style="">
							<w2:column blockSelect="false" displayMode="label" fixColumnWidth="true" id="chk" inputType="checkbox"
								readOnly="false" style="" width="40" checkboxLabel="선택" sortable="false">
							</w2:column>
							<w2:column blockSelect="false" customFormatter="scwin.setFontFormat" displayMode="label" id="ORG_CD"
								inputType="text" style="" width="50">
							</w2:column>
							<w2:column blockSelect="false" depthColumn="ORG_LEVEL" depthType="div" displayMode="label" id="ORG_NM"
								inputType="drilldown" showDepth="3" style="" textAlign="left" width="120" checkAlways="" readOnly="true">
							</w2:column>
							<w2:column blockSelect="false" id="PARENT_ORG_NM" inputType="select" style="" width="70"
								checkAlways="" readOnly="true" textAlign="left">
								<w2:choices>
									<w2:itemset nodeset="data:dlt_organizationBasic">
										<w2:label ref="PARENT_ORG_NM"></w2:label>
										<w2:value ref="PARENT_ORG_NM"></w2:value>
									</w2:itemset>
								</w2:choices>
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="ORG_CLASS_CD" inputType="select" style=""
								textAlign="left" width="80" checkAlways="" readOnly="true">
								<w2:choices>
									<w2:itemset nodeset="">
										<w2:label ref=""></w2:label>
										<w2:value ref=""></w2:value>
									</w2:itemset>
								</w2:choices>
							</w2:column>
							<w2:column blockSelect="false" id="ORG_BOSS_EMP_CD" inputType="select" style="" width="70"
								checkAlways="" readOnly="true" textAlign="center">
								<w2:choices>
									<w2:itemset nodeset="data:dlt_organizationBoss">
										<w2:label ref="EMP_NM"></w2:label>
										<w2:value ref="EMP_CD"></w2:value>
									</w2:itemset>
								</w2:choices>
							</w2:column>
							<w2:column blockSelect="false" calendarValueType="yearMonthDate" displayFormat="####-##-##" id="START_DATE"
								inputType="text" style="" width="70" checkAlways="" readOnly="true">
							</w2:column>
							<w2:column blockSelect="false" calendarValueType="yearMonthDate" displayFormat="####-##-##" id="END_DATE"
								inputType="text" style="" width="70" checkAlways="" readOnly="true">
							</w2:column>
						</w2:row>
					</w2:gBody>
				</w2:gridView>

			</xf:group>
			<xf:group class="tbbox" id="grp_organizationBasic" style="">
				<xf:group adaptive="layout" adaptiveThreshold="900" class="w2tb tb" id="" style="" tagname="table">
					<w2:attributes>
						<w2:summary></w2:summary>
					</w2:attributes>
					<xf:group tagname="colgroup">
						<xf:group style="width:140px;" tagname="col"></xf:group>
						<xf:group tagname="col"></xf:group>
						<xf:group style="width:140px;" tagname="col"></xf:group>
						<xf:group style="" tagname="col"></xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th " style="" tagname="th">
							<w2:textbox class="" id="" label="소속코드" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input class="" id="ibx_orgCd" placeholder="" style="width:100%;" readOnly="true"
								ref="data:dlt_organizationBasic.ORG_CD">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th " tagname="th" text="">
							<w2:attributes></w2:attributes>
							<w2:textbox class="req" id="" label="소속명칭" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group class="w2tb_td" tagname="td">
							<w2:attributes></w2:attributes>
							<xf:input class="req" id="ibx_orgNm" placeholder="" style="width:100%;" ref="data:dlt_organizationBasic.ORG_NM"
								mandatory="true">
							</xf:input>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="req" id="" label="조직구분" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="req" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_OrgClassCd" ref="data:dlt_organizationBasic.ORG_CLASS_CD" style="width:150px;" submenuSize="auto">
								<xf:choices></xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group tagname="th" class="w2tb_th">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="소속약칭" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:input class="" id="ibx_orgAliasNm" placeholder="" readOnly="" style="width:100%;"
								ref="data:dlt_organizationBasic.ORG_ALIAS_NM">
							</xf:input>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="소속영문명" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:input class="" id="ibx_orgEnNm" placeholder="" readOnly="" style="width:100%;"
								ref="data:dlt_organizationBasic.ORG_EN_NM">
							</xf:input>
						</xf:group>
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="소속영문약명" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:input class="" id="" placeholder="" readOnly="" style="width:100%;" ref=""></xf:input>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="조직레벨" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:input class="" id="ibx_orgLevel" placeholder="" readOnly="true" style="width:150px;"
								ref="data:dlt_organizationBasic.ORG_LEVEL">
							</xf:input>
						</xf:group>
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="책임자" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<xf:select1 allOption="" appearance="minimal" chooseOption="true" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_OrgBossEmpCd" ref="data:dlt_organizationBasic.ORG_BOSS_EMP_CD" style="width:150px;" submenuSize="auto" chooseOptionLabel="전체">
								<xf:choices>
									<xf:itemset nodeset="data:dlt_organizationBoss">
										<xf:label ref="EMP_NM"></xf:label>
										<xf:value ref="EMP_CD"></xf:value>
									</xf:itemset>
								</xf:choices>
							</xf:select1>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="개설일" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<w2:inputCalendar calendarValueType="yearMonthDate" focusOnDateSelect="false" footerDiv="true"
								id="cal_startDate" renderDiv="true"  rightAlign="false" style="width: 120px;"
								ref="data:dlt_organizationBasic.START_DATE">
							</w2:inputCalendar>
						</xf:group>
						<xf:group tagname="th" class="w2tb_th ">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="폐쇄일" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<w2:inputCalendar calendarValueType="yearMonthDate" focusOnDateSelect="false" footerDiv="true" id="cal_endDate"
								renderDiv="true"  rightAlign="false" style="width: 120px;" ref="data:dlt_organizationBasic.END_DATE">
							</w2:inputCalendar>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group class="w2tb_th " tagname="th">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class="" id="" label="비고" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group class="w2tb_td" tagname="td">
							<w2:attributes>
								<w2:colspan>3</w2:colspan>
								<w2:rowspan>1</w2:rowspan>
							</w2:attributes>
							<xf:textarea class="" id="ibx_note" style="width:100%;height: 82px;" ref="data:dlt_organizationBasic.NOTE"></xf:textarea>
						</xf:group>
					</xf:group>
				</xf:group>
			</xf:group>

			<xf:group class="btnbox" id="" style="">
				<xf:group class="fr" id="" style="">
					<xf:trigger class="btn_cm pt" ev:onclick="scwin.btn_saveOrganization_onclick" id="btn_saveOrganization" style="" type="button">
						<xf:label><![CDATA[저장]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
		</xf:group>

	</body>
</html>


<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms">
	<head meta_programId="HM003P01" meta_programName="사진 파일 업로드 팝업" meta_programDesc="사진 파일을 업로드하는 팝업 화면" meta_author="Inswave Systems" meta_date="2021.02.25">
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection>
			</w2:dataCollection>
		</xf:model>
		<w2:layoutInfo></w2:layoutInfo>
		<w2:publicInfo method=""></w2:publicInfo>

		<script type="text/javascript" lazy="false"><![CDATA[/**
 * 화면 초기화에 필요한 로직을 수행한다.
 */
scwin.onpageload = function () {
	var param = com.data.getParameter();
	scwin.closeCallbackFncName = param.callbackFn;
};

/**
 * 사진 업로드를 반환한다.
 */
scwin.btn_confirm_onclick = function () {
	upd_image.setSubDir('HM003');
	upd_image.submit();
};

scwin.upd_image_ondone = function (retXml) {
	var param = {
		fileStorePath: upd_image.getSubDir(),
		localfileList: WebSquare.xml.getValue(retXml, "ret/localfileList"),
		storedFileList: WebSquare.xml.getValue(retXml, "ret/storedFileList")
	};
	com.win.closePopup(param);
};

/**
 * 사진 업로드를 취소한다.
 */
scwin.btn_cancel_onclick = function () {
	com.win.closePopup();
};
]]></script>
	</head>
	<body ev:onpageload="scwin.onpageload">
    	<xf:group id="" class="pop_contents">
    		<xf:group style="" id="" class="tbbox">
    			<xf:group adaptive="layout" adaptiveThreshold="1024" tagname="table" style="" tabIndex="" id="" class="w2tb tb">
    				<w2:attributes>
    					<w2:summary></w2:summary>
    				</w2:attributes>
    				<xf:group tagname="colgroup">
    					<xf:group tagname="col" style="width:150px;"></xf:group>
    					<xf:group style="" tagname="col"></xf:group>
    				</xf:group>
    				<xf:group tagname="tr" style="">
    					<xf:group tagname="th" style="" class="w2tb_th">
    						<w2:attributes>
    							<w2:colspan>1</w2:colspan>
    							<w2:rowspan>1</w2:rowspan>
    						</w2:attributes>
    						<w2:textbox ref="" style="" userData2="" id="" label="사진업로드"></w2:textbox>
    					</xf:group>
    					<xf:group tagname="td" style="" class="w2tb_td">
    						<w2:attributes>
    							<w2:colspan>1</w2:colspan>
    							<w2:rowspan>1</w2:rowspan>
    						</w2:attributes>
    						<w2:upload imageStyle="position:absolute;vertical-align:middle;word-wrap:break-word"
    							inputStyle="vertical-align:middle;word-wrap:break-word" style="width: 100%;" id="upd_image" type="image"
    							ev:ondone="scwin.upd_image_ondone" action="">
    						</w2:upload>
    					</xf:group>
    				</xf:group>
    			</xf:group>
    		</xf:group>
    		<xf:group class="btnbox" id="" style="">
    			<xf:group class="fr" id="">
    				<xf:trigger class="btn_cm pt" id="btn_confirm" style="" type="button" ev:onclick="scwin.btn_confirm_onclick">
    					<xf:label><![CDATA[확인]]></xf:label>
    				</xf:trigger>
    				<xf:trigger class="btn_cm" id="btn_cancel" style="" type="button" ev:ondblclick="" ev:onclick="scwin.btn_cancel_onclick">
    					<xf:label><![CDATA[취소]]></xf:label>
    				</xf:trigger>
    			</xf:group>
    		</xf:group>
    	</xf:group>
	</body>
</html>


<?xml version="1.0" encoding="UTF-8"?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare"
	xmlns:xf="http://www.w3.org/2002/xforms">
	<head meta_programId="HM002M01" meta_programName="사원 관리" meta_programDesc="사원 정보를 관리(등록,수정,삭제)하는 화면" meta_author="Inswave Systems" meta_date="2021.02.25">
		<w2:type>COMPONENT</w2:type>
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection baseNode="map">
				<w2:dataMap baseNode="map" id="dma_search">
					<w2:keyInfo>
						<w2:key id="TYPE" name="name1" dataType="text"></w2:key>
						<w2:key id="CONTENT" name="name2" dataType="text"></w2:key>
						<w2:key id="IS_USE" name="name3" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
				<w2:dataList id="dlt_memberBasic" baseNode="list" saveRemovedData="true" repeatNode="map">
					<w2:columnInfo>
						<w2:column id="chk" name="선택" dataType="text" ignoreStatus="true"></w2:column>
						<w2:column id="EMP_CD" name="사원코드" dataType="text"></w2:column>
						<w2:column id="EMP_NM" name="사원명" dataType="text"></w2:column>
						<w2:column id="EMP_CN_NM" name="사원한자명" dataType="text"></w2:column>
						<w2:column id="EMP_EN_NM" name="사원영문명" dataType="text"></w2:column>
						<w2:column id="RESIDENT_NO" name="주민번호" dataType="text"></w2:column>
						<w2:column id="JOIN_DATE" name="입사일" dataType="text"></w2:column>
						<w2:column id="JOIN_CLASS_CD" name="입사구분" dataType="text"></w2:column>
						<w2:column id="POSITION_CD" name="직위코드" dataType="text"></w2:column>
						<w2:column id="DUTY_CD" name="직책" dataType="text"></w2:column>
						<w2:column id="LAST_APPOINT_DATE" name="최종발령일" dataType="text"></w2:column>
						<w2:column id="POSITION_UPDATED_DATE" name="호칭변경일" dataType="text"></w2:column>
						<w2:column id="ORG_CD" name="소속" dataType="text"></w2:column>
						<w2:column id="JOB_FAMILY_CD" name="직군" dataType="text"></w2:column>
						<w2:column id="JOB_CD" name="직무" dataType="text"></w2:column>
						<w2:column id="ASSIGNED_TASK" name="담당업무" dataType="text"></w2:column>
						<w2:column id="OFFICE_PHONE1" name="사내직통전화1" dataType="text"></w2:column>
						<w2:column id="OFFICE_PHONE2" name="사내직통전화2" dataType="text"></w2:column>
						<w2:column id="OFFICE_PHONE3" name="사내직통전화3" dataType="text"></w2:column>
						<w2:column id="HOME_PHONE1" name="자택전화1" dataType="text"></w2:column>
						<w2:column id="HOME_PHONE2" name="자택전화2" dataType="text"></w2:column>
						<w2:column id="HOME_PHONE3" name="자택전화3" dataType="text"></w2:column>
						<w2:column id="CELL_PHONE1" name="휴대폰1" dataType="text"></w2:column>
						<w2:column id="CELL_PHONE2" name="휴대폰2" dataType="text"></w2:column>
						<w2:column id="CELL_PHONE3" name="휴대폰3" dataType="text"></w2:column>
						<w2:column id="EMAIL" name="이메일" dataType="text"></w2:column>
						<w2:column id="RELIGION_CD" name="종교" dataType="text"></w2:column>
						<w2:column id="LAST_SCHOOL_NM" name="최종학교" dataType="text"></w2:column>
						<w2:column id="MAJOR_NM" name="전공" dataType="text"></w2:column>
						<w2:column id="SCHOOL_CAREER_CD" name="입사학력" dataType="text"></w2:column>
						<w2:column id="HOUSE_KIND_CD" name="주거형태" dataType="text"></w2:column>
						<w2:column id="ZIP_CD" name="우편번호" dataType="text"></w2:column>
						<w2:column id="ADDRESS1" name="주소1" dataType="text"></w2:column>
						<w2:column id="ADDRESS2" name="주소2" dataType="text"></w2:column>
						<w2:column id="IS_VETERAN_WELFARE" name="보훈여부" dataType="text"></w2:column>
						<w2:column id="IS_MILITARY_SERVICE" name="군필여부" dataType="text"></w2:column>
						<w2:column id="BIRTH_DATE" name="생년월일" dataType="text"></w2:column>
						<w2:column id="IS_LUNAR" name="음력구분" dataType="text"></w2:column>
						<w2:column id="IS_MARRIAGE" name="결혼여부" dataType="text"></w2:column>
						<w2:column id="HOPPY" name="취미" dataType="text"></w2:column>
						<w2:column id="TALENT" name="특기" dataType="text"></w2:column>
						<w2:column id="RETIRE_REASON" name="휴퇴직사유" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
				<w2:dataList id="dlt_memberSearchItem" baseNode="list" saveRemovedData="true" repeatNode="map">
					<w2:columnInfo>
						<w2:column id="EMP_CD" name="name1" dataType="text"></w2:column>
						<w2:column id="EMP_NM" name="name2" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
				<w2:dataList id="dlt_memberOrganization" baseNode="list" saveRemovedData="true" repeatNode="map">
					<w2:columnInfo>
						<w2:column id="ORG_CD" name="name1" dataType="text"></w2:column>
						<w2:column id="ORG_NM" name="name2" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
			</w2:dataCollection>
			<w2:workflowCollection></w2:workflowCollection>
			<xf:submission id="sbm_searchMemberBasic" ref="data:json,dma_search" target="data:json,dlt_memberBasic"
				action="/member/searchMemberBasic" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler=""
				customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_searchMemberBasic_submitdone"
				ev:submiterror="">
			</xf:submission>
			<xf:submission id="sbm_saveMemberBasic" ref='data:json,{"id":"dlt_memberBasic","action":"modified"}'
				target='data:json,dlt_memberBasic' action="/member/updateMemberBasic" method="post" mediatype="application/json" encoding="UTF-8"
				instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="저장중 입니다..." ev:submit=""
				ev:submitdone="scwin.sbm_saveMemberBasic_submitdone" ev:submiterror="" abortTrigger="">
			</xf:submission>
			<xf:submission id="sbm_memberSearchItem" ref="" target="data:json,dlt_memberSearchItem"
				action="/member/selectMemberSearchItem" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace=""
				errorHandler="" customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="" ev:submiterror="">
			</xf:submission>
			<xf:submission id="sbm_searchMemberBasicOrganization" ref="" target="data:json,dlt_memberOrganization"
				action="/member/searchMemberBasicOrganization" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace=""
				errorHandler="" customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="" ev:submiterror="">
			</xf:submission>
		</xf:model>
		<w2:layoutInfo></w2:layoutInfo>
		<w2:publicInfo method=""></w2:publicInfo>

		<script type="text/javascript" lazy="false"><![CDATA[
/**
 * 초기화 함수(셀렉트 박스의 항목을 가져온다)
 */
scwin.onpageload = function () {
	var codeOptions = [{ code: "00001", compID: "sbx_Duty" },
	{ code: "00002", compID: "sbx_Postion, grd_memberBasic:POSITION_CD" },
	{ code: "00021", compID: "sbx_JoinClass" },
	{ code: "00023", compID: "sbx_JobFamily" },
	{ code: "00024", compID: "sbx_Job" }];

	com.data.setCommonCode(codeOptions);

	com.sbm.execute(sbm_memberSearchItem);
	com.sbm.execute(sbm_searchMemberBasicOrganization);
	com.win.setEnterKeyEvent(tbl_search, scwin.btn_search_onclick);
	com.util.setGridViewDelCheckBox(grd_memberBasic);
	com.data.setChangeCheckedDc(dlt_memberBasic);
};

/**
 * 화면 초기화 데이터가 모두 로딩되면 발생하는 이벤트
 */
scwin.ondataload = function () {
	scwin.btn_search_onclick();
};

/**
 * 검색항목(selectBox)의 내용이 변경되었을 때 실행된다.
 * 직위면 inputBox를 hidden, selectBox를 띄운다.
 */
scwin.sbx_choiceBox_onviewchange = function (info) {
	if (info.newValue == "EMP_CD") {
		acb_autoChoiceBox.setNodeSet("data:dlt_memberSearchItem", "EMP_CD", "EMP_CD");
		sbx_positionCd.hide();
		acb_autoChoiceBox.show("");
	} else if (info.newValue == "EMP_NM") {
		acb_autoChoiceBox.setNodeSet("data:dlt_memberSearchItem", "EMP_NM", "EMP_NM");
		sbx_positionCd.hide();
		acb_autoChoiceBox.show();
	} else if (info.newValue == "POSITION_CD") {
		sbx_positionCd.setNodeSet("data:dlt_commonCode00002", "CODE_NM", "COM_CD");
		acb_autoChoiceBox.hide();
		sbx_positionCd.show("");
	} else if (info.newValue == "ORG_CD") {
		sbx_positionCd.setNodeSet("data:dlt_memberOrganization", "ORG_NM", "ORG_CD");
		acb_autoChoiceBox.hide();
		sbx_positionCd.show("");
	}
};

/**
 * 인사조회 버튼 클릭시 발생하며, 조건에 따른 인사기본정보 리스트를 조회한다.
 */
scwin.btn_search_onclick = function () {
	if ((sbx_choiceBox.getValue() == "EMP_CD") || (sbx_choiceBox.getValue() == "EMP_NM")) {
		dma_search.set("CONTENT", acb_autoChoiceBox.getValue());
	} else if ((sbx_choiceBox.getValue() == "POSITION_CD") || (sbx_choiceBox.getValue() == "ORG_CD")) {
		dma_search.set("CONTENT", sbx_positionCd.getValue());
	}

	com.sbm.execute(sbm_searchMemberBasic);
};

/**
 * 인사조회 버튼 클릭의 콜백 메소드
 * 건수 조회, ReadOnly 그리드뷰 컬럼색 변경. ReadOnly속성을 설정한다.
 */
scwin.sbm_searchMemberBasic_submitdone = function (e) {
	if (com.sbm.getResultCode(e) == gcm.MESSAGE_CODE.STATUS_SUCCESS) {
		spn_memberCnt.setValue(dlt_memberBasic.getRowCount());
		grd_memberBasic.setFocusedCell(0, "EMP_CD");
	}
};

/**
 * 인사기본관리 등록 버튼 클릭한다.
 */
scwin.btn_addMember_onclick = function () {
	var idx = com.data.insertRow(grd_memberBasic);
	grd_memberBasic.setFocusedCell(idx, "EMP_CD", true);
	ibx_empCd.focus();
};

/**
 * 인사기본관리 삭제 버튼 클릭한다.
 */
scwin.btn_delMember_onclick = function () {
	if (grd_MemberFamily.getAllVisibleData() == "" && grd_MemberProject.getAllVisibleData() == "") {
		dlt_memberBasic.deleteRows(grd_memberBasic.getCheckedIndex("chk"));
	} else {
		com.win.alert(com.data.getMessage("MSG_CM_00041"));
	}
};

/**
 * 인사기본관리 취소 버튼 클릭한다.
 */
scwin.btn_cancelMember_onclick = function () {
	com.data.undoGridView(grd_memberBasic);
};

/**
 * 인사기본관리 저장 버튼 클릭한다.
 */
scwin.btn_saveMember_onclick = function () {
	if (com.data.isModified(dlt_memberBasic)) {
		if (com.data.validateGroup(grp_memberBasicDetailTop)) {
			com.win.confirm(com.data.getMessage("MSG_CM_00031"), function (res) {
				if (res.clickValue === true) {
					com.sbm.execute(sbm_saveMemberBasic);
				}
			});
		}
	} else {
		com.win.alert(com.data.getMessage("MSG_CM_00032"));
	}
};

/**
 * 인사기본관리 그리드뷰 클릭했을 때, 사원번호가 이미존재하면 ReadOnly 속성을 True로 설정한다.
 * 탭의 ID가 변경될 때 마다 각 사원코드에 맞는 정보가 호출된다.
 */
scwin.grd_memberBasic_onrowindexchange = function (row, oldRow) {
	dma_search.set("CONTENT", dlt_memberBasic.getCellData(grd_memberBasic.getFocusedRowIndex(), "EMP_CD"));
	var rowStatus = dlt_memberBasic.getRowStatus(grd_memberBasic.getFocusedRowIndex());

	if (rowStatus != "C") {
		ibx_empCd.setDisabled(true);
	} else if (rowStatus == "C") {
		ibx_empCd.setDisabled(false);
	}
};

/**
 * Function 체크 박스 클릭시 해당 row를 삭제 상태로 변경한다.
 * 체크 해제시에는 원래 상태로 되돌린다. (인사 그리드뷰)
 */
scwin.grd_memberBasic_oncellclick = function (row, col) {
	if (col == 0) {
		var rowStatus = dlt_memberBasic.getRowStatus(row);
		if (rowStatus == "C") {
			dlt_memberBasic.removeRow(row);
		} else {
			var chk_val = dlt_memberBasic.getCellData(row, col);
			if (chk_val == "1") {
				dlt_memberBasic.modifyRowStatus(row, "D");
			} else {
				dlt_memberBasic.undoRow(row);
			}
		}
	}
};

/**
 * 더블클릭하면 wFrame Scope 적용된 인사기본 화면을 팝업창으로 띄운다.
 */
scwin.grd_memberBasic_oncelldblclick = function (row, col) {
	if (dlt_memberBasic.getRowStatus(row) === "C") return;

	var rowJSON = dlt_memberBasic.getRowJSON(row);
	var data = { data: rowJSON, callbackFn: "scwin.btn_search_onclick" };
	var options = {
		id: "H3M01",
		popupName: "사원정보",
		width: 1200, height: 600
	};
	var popupUrl = "/ui/HM/HM003M01.xml";

	com.win.openPopup(popupUrl, options, data);
};

scwin.sbm_saveMemberBasic_submitdone = function (e) {
	if(e.responseJSON.rsMsg.statusMsg.split("삭제실패 : ")[1].length>0){
		com.win.alert(e.responseJSON.rsMsg.statusMsg.split("삭제실패 : ")[1])
	}
	if (com.sbm.getResultCode(e) == gcm.MESSAGE_CODE.STATUS_SUCCESS) {
		scwin.btn_search_onclick();
	}
};

]]></script>
		<style type="text/css"><![CDATA[ ]]></style>
	</head>
	<body ev:onpageload="scwin.onpageload">
		<xf:group class="sub_contents flex_gvw" id="" style="">
			<w2:wframe id="" style="" src="../../cm/xml/contentHeader.xml" scope="true"></w2:wframe>
			<xf:group class="shbox" id="" style="">
				<xf:group class="shbox_inner" id="tbl_search" style="">
					<xf:group adaptive="layout" adaptiveThreshold="900" class="w2tb tb" id="" style="width:100%;" tagname="table">
						<w2:attributes>
							<w2:summary></w2:summary>
						</w2:attributes>
						<xf:group tagname="colgroup">
							<xf:group style="width:100px;" tagname="col"></xf:group>
							<xf:group style="" tagname="col"></xf:group>
						</xf:group>
						<xf:group style="" tagname="tr">
							<xf:group class="w2tb_th " style="" tagname="th">
								<w2:textbox class="req" id="" label="검색항목" style=""></w2:textbox>
							</xf:group>
							<xf:group class="w2tb_td" style="" tagname="td">
								<xf:select1 ref="data:dma_search.TYPE" submenuSize="auto" appearance="minimal"
									disabledClass="w2selectbox_disabled" chooseOption="" disabled="false" style="width:100px;float:left;" allOption="" id="sbx_choiceBox"
									class="" direction="auto" ev:onviewchange="scwin.sbx_choiceBox_onviewchange" ev:onblur="" ev:onchange="">
									<xf:choices>
										<xf:item>
											<xf:label><![CDATA[사원명]]></xf:label>
											<xf:value><![CDATA[EMP_NM]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[사원코드]]></xf:label>
											<xf:value><![CDATA[EMP_CD]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[직위]]></xf:label>
											<xf:value><![CDATA[POSITION_CD]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[소속]]></xf:label>
											<xf:value><![CDATA[ORG_CD]]></xf:value>
										</xf:item>
									</xf:choices>
								</xf:select1>
								<xf:select1 ref="" submenuSize="auto" chooseOptionLabel="-전체-" direction="auto" appearance="minimal"
									disabledClass="w2selectbox_disabled" chooseOption="true" disabled="false" style="width:200px;display:none;float:left;" allOption=""
									id="sbx_positionCd" renderType="native" class="" ev:onviewchange="" ev:onblur="" userData3="" optionOrder="">
									<xf:choices></xf:choices>
								</xf:select1>
								<w2:autoComplete allOption="" caseSensitive="false" chooseOption="true" chooseOptionLabel="-전체-"
									chooseOptionValue="" class="" displayMode="label" editType="select" emptyItem="" emptyValue="" ev:onchange="" ev:onviewchange=""
									id="acb_autoChoiceBox" interactionMode="" noResult="useData" ref="data:dma_search.CONTENT" search="start" selectedData=""
									style="width: 165px;float:left;" submenuSize="auto" textAlign="left" useKeywordHighlight="false" nextTabByEnter="">
									<w2:choices>
										<w2:itemset nodeset="data:dlt_memberSearchItem">
											<w2:label ref="EMP_NM"></w2:label>
											<w2:value ref="EMP_NM"></w2:value>
										</w2:itemset>
									</w2:choices>
								</w2:autoComplete>
							</xf:group>
						</xf:group>
					</xf:group>
				</xf:group>
				<xf:group class="btn_shbox" id="" style="">
					<xf:trigger class="btn_cm sch" disabled="" id="btn_search" style="" type="button"
						ev:onclick="scwin.btn_search_onclick">
						<xf:label><![CDATA[조회]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
			<xf:group style="" id="" class="dfbox">
				<w2:textbox label="인사" style="" id="" class="" tagname="h3"></w2:textbox>
				<xf:group style="" id="" class="fr">
					<w2:textbox class="sum" id="spn_memberCnt" label="" style=""></w2:textbox>
					<w2:textbox class="" id="" label="건" style=""></w2:textbox>
					<xf:trigger type="button" style="" id="btn_addMember" class="btn_cm " ev:onclick="scwin.btn_addMember_onclick">
						<xf:label><![CDATA[등록]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm " id="btn_delMember" style="display:none;" type="button"
						ev:onclick="scwin.btn_delMember_onclick">
						<xf:label><![CDATA[삭제]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm" id="btn_cancelMember" style="" type="button" ev:onclick="scwin.btn_cancelMember_onclick">
						<xf:label><![CDATA[취소]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
			<xf:group adaptiveThreshold="" class="gvwbox wq_flx" id="" style="">
				<w2:gridView id="grd_memberBasic" style="height: 243px;" scrollByColumn="false" defaultCellHeight="26"
					scrollByColumnAdaptive="false" dataList="data:dlt_memberBasic" class="wq_gvw" rowStatusVisible="true" adaptive="" autoFit="allColumn"
					autoFitMinWidth="800" ignoreCellClick="false" adaptiveThreshold="" sortEvent="onclick" sortable="true"
					ev:oncellclick="scwin.grd_memberBasic_oncellclick" ev:oncelldblclick="scwin.grd_memberBasic_oncelldblclick"
					ev:onrowindexchange="scwin.grd_memberBasic_onrowindexchange" readOnly="true" focusMode="row" keepDefaultColumnWidth="true">
					<w2:caption style="" id="caption1" value="this is a grid caption."></w2:caption>
					<w2:header style="" id="header1">
						<w2:row style="" id="row1">
							<w2:column removeBorderStyle="false" width="50" inputType="checkbox" style="" id="chk" value=""
								blockSelect="false" displayMode="label" radioLabelColumn="" checkboxLabel="선택" sortable="false" fixColumnWidth="true">
							</w2:column>
							<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="column3" value="사원코드"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="column5" value="사원명"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="102" inputType="text" style="" id="column7" value="입사일"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="108" inputType="text" style="" id="column9" value="직위"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="155" inputType="text" style="" id="column11" value="소속"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="207" inputType="text" style="" id="column13" value="담당업무"
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="45" inputType="text" style="" id="column15"
								value="사내직통전화" blockSelect="false" displayMode="label" colSpan="3" rowSpan="">
							</w2:column>
						</w2:row>
					</w2:header>
					<w2:gBody style="" id="gBody1">
						<w2:row style="" id="row2">
							<w2:column removeBorderStyle="false" width="70" inputType="checkbox" style="" id="chk" value=""
								blockSelect="false" displayMode="label" checkboxLabel="선택" readOnly="false">
							</w2:column>
							<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="EMP_CD" value=""
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="EMP_NM" value=""
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="102" inputType="calendar" style="" id="JOIN_DATE"
								value="" blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="108" inputType="select" style="" id="POSITION_CD"
								value="" blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="155" inputType="select" style="" id="ORG_CD" value=""
								blockSelect="false" displayMode="label" hiddenClass="" allOption="" chooseOption="" ref="" textAlign="left">
								<w2:choices>
									<w2:itemset nodeset="data:dlt_memberOrganization">
										<w2:label ref="ORG_NM"></w2:label>
										<w2:value ref="ORG_CD"></w2:value>
									</w2:itemset>
								</w2:choices>
							</w2:column>
							<w2:column removeBorderStyle="false" width="207" inputType="text" style="" id="ASSIGNED_TASK"
								value="" blockSelect="false" displayMode="label" textAlign="left">
							</w2:column>
							<w2:column removeBorderStyle="false" width="45" inputType="text" style="" id="OFFICE_PHONE1" value=""
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="60" inputType="text" style="" id="OFFICE_PHONE2" value=""
								blockSelect="false" displayMode="label">
							</w2:column>
							<w2:column removeBorderStyle="false" width="60" inputType="text" style="" id="OFFICE_PHONE3" value=""
								blockSelect="false" displayMode="label" textAlign="">
							</w2:column>
						</w2:row>
					</w2:gBody>
				</w2:gridView>
			</xf:group>
			<xf:group class="tbbox" id="" style="">
				<xf:group adaptive="layout" class="w2tb tb" id="grp_memberBasicDetailTop" style="width:100%;" tagname="table"
					adaptiveThreshold="900">
					<w2:attributes>
						<w2:summary></w2:summary>
					</w2:attributes>
					<xf:group tagname="colgroup">
						<xf:group style="width:120px;" tagname="col"></xf:group>
						<xf:group style="" tagname="col"></xf:group>
						<xf:group style="width:120px;" tagname="col"></xf:group>
						<xf:group style="" tagname="col"></xf:group>
						<xf:group style="width:120px;" tagname="col"></xf:group>
						<xf:group style="" tagname="col"></xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th req" style="" tagname="th">사원코드</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input class="req" enterBlur="" id="ibx_empCd" mandatory="true" maxlength="6" minlength="6"
								ref="data:dlt_memberBasic.EMP_CD" style="">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th req" style="" tagname="th">사원명</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input allowChar="가-힣" class="req" id="ibx_empNm" mandatory="true" ref="data:dlt_memberBasic.EMP_NM"
								style="">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th req" style="" tagname="th">입사일</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<w2:inputCalendar calendarValueType="yearMonthDate" class="req" dateValidCheck="true" focusOnDateSelect="false"
								footerDiv="false" id="cal_joinDate" mandatory="true" ref="data:dlt_memberBasic.JOIN_DATE" renderDiv="true" renderType="component"
								rightAlign="false" style="width:120px;" weekStartsOn="0" validCheck="" validateRef="">
							</w2:inputCalendar>
						</xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th req" style="" tagname="th">주민번호</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input allowChar="0-9" applyFormat="" class="req" displayFormat="######-#######" displayFormatter=""
								id="ibx_residentNo" mandatory="true" maxlength="13" minlength="13" ref="data:dlt_memberBasic.RESIDENT_NO" style="">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">사원한자명</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input id="ibx_empCnNm" mandatory="" ref="data:dlt_memberBasic.EMP_CN_NM" style=""></xf:input>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">입사구분</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_JoinClass" ref="data:dlt_memberBasic.JOIN_CLASS_CD" style="" submenuSize="auto" userData1="">
								<xf:choices>
									<xf:item>
										<xf:label><![CDATA[선택]]></xf:label>
										<xf:value><![CDATA[]]>
										</xf:value>
									</xf:item>
								</xf:choices>
							</xf:select1>
						</xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th" style="" tagname="th">직위</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_Postion" ref="data:dlt_memberBasic.POSITION_CD" style="" submenuSize="auto">
								<xf:choices>
									<xf:item>
										<xf:label><![CDATA[선택]]></xf:label>
										<xf:value></xf:value>
									</xf:item>
								</xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">사원영문명</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input allowChar="a-z A-Z" id="ibx_empEnNm" ignoreChar="" mandatory="" ref="data:dlt_memberBasic.EMP_EN_NM"
								style="">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">최종발령일</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<w2:inputCalendar calendarValueType="yearMonthDate" class="mr5" dateValidCheck="true" displaymessage=""
								focusOnDateSelect="false" footerDiv="false" id="cal_lastAppointDate" mandatory="" ref="data:dlt_memberBasic.LAST_APPOINT_DATE"
								renderDiv="true" renderType="component" rightAlign="false" style="width:120px;" weekStartsOn="0">
							</w2:inputCalendar>
						</xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th" style="" tagname="th">직책</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_Duty" ref="data:dlt_memberBasic.DUTY_CD" style=""
								submenuSize="auto" title="">
								<xf:choices>
									<xf:item>
										<xf:label><![CDATA[선택]]></xf:label>
										<xf:value></xf:value>
									</xf:item>
								</xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group class="w2tb_th req" style="" tagname="th">소속</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="true" class="req" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_Org" ref="data:dlt_memberBasic.ORG_CD" style=""
								submenuSize="auto" chooseOptionLabel="" mandatory="true" title="">
								<xf:choices>
									<xf:itemset nodeset="data:dlt_memberOrganization">
										<xf:label ref="ORG_NM"></xf:label>
										<xf:value ref="ORG_CD"></xf:value>
									</xf:itemset>
								</xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">호칭변경일</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<w2:inputCalendar calendarValueType="yearMonthDate" class="mr5" dateValidCheck="true" focusOnDateSelect="false"
								footerDiv="false" id="cal_postionUpdatedDate" mandatory="" ref="data:dlt_memberBasic.POSITION_UPDATED_DATE" renderDiv="true"
								renderType="component" rightAlign="false" style="width:120px;" title="" weekStartsOn="0">
							</w2:inputCalendar>
						</xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th" style="" tagname="th">직군</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_JobFamily" ref="data:dlt_memberBasic.JOB_FAMILY_CD" style=""
								submenuSize="auto" chooseOptionLabel="" labelWidthAuto="" title="">
								<xf:choices></xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">직무</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:select1 allOption="" appearance="minimal" chooseOption="" class="" direction="auto" disabled="false"
								disabledClass="w2selectbox_disabled" id="sbx_Job" ref="data:dlt_memberBasic.JOB_CD" style=""
								submenuSize="auto" title="">
								<xf:choices>
									<xf:item>
										<xf:label><![CDATA[선택]]></xf:label>
										<xf:value></xf:value>
									</xf:item>
								</xf:choices>
							</xf:select1>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">담당업무</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input class="fl" id="ibx_assignedTask" ref="data:dlt_memberBasic.ASSIGNED_TASK" style=""></xf:input>
						</xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th req" style="" tagname="th">사내직통전화</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input allowChar="0-9" class="req" id="ibx_officePhone1" mandatory="true" maxlength="3"
								ref="data:dlt_memberBasic.OFFICE_PHONE1" style="width:40px;">
							</xf:input>
							<w2:span id="" label="~" style=""></w2:span>
							<xf:input allowChar="0-9" class="req" id="ibx_officePhone2" mandatory="true" maxlength="4"
								ref="data:dlt_memberBasic.OFFICE_PHONE2" style="width:40px;">
							</xf:input>
							<w2:span id="" label="~" style=""></w2:span>
							<xf:input allowChar="0-9" class="req" id="ibx_officePhone3" mandatory="true" maxlength="4"
								ref="data:dlt_memberBasic.OFFICE_PHONE3" style="width:40px;">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th req" style="" tagname="th">휴대폰</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input allowChar="0-9" class="req" id="ibx_cellPhone1" mandatory="true" maxlength="3"
								ref="data:dlt_memberBasic.CELL_PHONE1" style="width:40px;">
							</xf:input>
							<w2:span id="" label="~" style=""></w2:span>
							<xf:input allowChar="0-9" class="req" id="ibx_cellPhone2" mandatory="true" maxlength="4"
								ref="data:dlt_memberBasic.CELL_PHONE2" style="width:40px;">
							</xf:input>
							<w2:span id="" label="~" style=""></w2:span>
							<xf:input allowChar="0-9" class="req" id="ibx_cellPhone3" mandatory="" maxlength="4"
								ref="data:dlt_memberBasic.CELL_PHONE3" style="width:40px;">
							</xf:input>
						</xf:group>
						<xf:group class="w2tb_th" style="" tagname="th">이메일</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input class="fl" id="ibx_email" ref="data:dlt_memberBasic.EMAIL" style=""></xf:input>
						</xf:group>
					</xf:group>
				</xf:group>
			</xf:group>

			<xf:group class="btnbox" id="" style="">
				<xf:group class="fr" id="" style="">
					<xf:trigger class="btn_cm pt" ev:onclick="scwin.btn_saveMember_onclick" id="btn_saveMember" style="" type="button">
						<xf:label><![CDATA[저장]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
		</xf:group>

	</body>
</html>


<?xml version="1.0" encoding="UTF-8"?>

		<w2:type>COMPONENT</w2:type>
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection baseNode="map">
				<w2:dataMap baseNode="map" id="dma_fileDesc">
					<w2:keyInfo>
						<w2:key id="desc" name="" dataType="text"></w2:key>
						<w2:key id="test" name="" dataType="text"></w2:key>
					</w2:keyInfo>
					<w2:data use="true">
						<desc><![CDATA[

본 화면은 메인 화면의 Release 게시물을 관리하는 화면이다.
관리자에게만 권한이 있는 화면이다.

1. Release 게시물 조회

  - 메인화면의 Release 게시물을 조회할 수 있다.

2. Release 게시물 변경

  - 메인화면의 Release 게시물을 입력, 수정, 삭제 할 수 있다.

						]]></desc>
						<test><![CDATA[

1. 과정

- 화면 로딩시 자동 조회 된다.
- 입력, 수정, 삭제시에는 하단의 상세 부분에서 내용을 수정한다.

2. 결과

- gridView의 게시물을 조회하면 하단에 상세 내용이 표신된다.
  (Master&Detail 구조)
- 입력, 수정, 삭제 후 Release내용이 재 조회된다.

						]]></test>
					</w2:data>
				</w2:dataMap>
				<w2:dataMap baseNode="map" id="dma_search">
					<w2:keyInfo>
						<w2:key id="TOTAL_YN" name="총건수 조회여부" dataType="text" defaultValue="Y"></w2:key>
						<w2:key id="START_NUM" name="시작 순번" dataType="number" defaultValue="0"></w2:key>
						<w2:key id="END_NUM" name="끝 순번" dataType="number" defaultValue="5"></w2:key>
						<w2:key id="SORT_COLUMN" name=" 정렬 컬럼 아이디" dataType="text"></w2:key>
						<w2:key id="SORT_METHOD" name="정렬 방법(ASC, DESC)" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
				<w2:dataList id="dlt_release" baseNode="list" saveRemovedData="true" repeatNode="map" ev:oncelldatachange="" ev:onbeforerowpositionchange="scwin.dlt_release_onbeforerowpositionchange">
					<w2:columnInfo>
						<w2:column id="chk" name="선택" dataType="text" ignoreStatus="true" valueType=""></w2:column>
						<w2:column id="SEQ" name="순번" dataType="text"></w2:column>
						<w2:column id="TITLE" name="제목" dataType="text"></w2:column>
						<w2:column id="CONTENT" name="내용" dataType="text"></w2:column>
						<w2:column id="DATA_SEQ" name="데이터순번" dataType="text"></w2:column>
						<w2:column id="CREATED_DATE" name="작성일" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
			</w2:dataCollection>
			<w2:workflowCollection></w2:workflowCollection>
			<xf:submission id="sbm_selectRelease" ref='data:json,dma_search' target='data:json,{"id":"dlt_release","key":"dlt_release"}'
				action="/main/selectReleaseForMain" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler=""
				customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_selectRelease_submitdone" ev:submiterror="">
			</xf:submission>
			<xf:submission id="sbm_saveRelease" ref='data:json,[{"action":"modified","id":"dlt_release"},"dma_search"]'
				target='data:json,["dma_Result","dlt_release"]' action="/main/saveReleaseForMain" method="post" mediatype="application/json"
				encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="저장중입니다." ev:submit=""
				ev:submitdone="scwin.sbm_saveRelease_submitdone" ev:submiterror="" abortTrigger="">
			</xf:submission>
		</xf:model>
		<w2:layoutInfo></w2:layoutInfo>
		<w2:publicInfo method=""></w2:publicInfo>

		<w2:require as="udc_fileMultiUpload" type="page" variableClone="true" src="/cm/udc/fileMultiUpload.xml"></w2:require>

		<xf:group class="sub_contents flex_gvw" id="" style="">
			<w2:wframe id="" style="" src="../../cm/xml/contentHeader.xml"></w2:wframe>
			<xf:group class="dfbox" id="" style="">
				<w2:textbox class="" id="" label="릴리즈 내역" style="" tagname="h3"></w2:textbox>
				<xf:group class="fr" id="" style="">
					<xf:trigger class="btn_cm row_add" id="btn_add" style="" type="button" ev:onclick="scwin.btn_add_onclick"
						toolTip="data를 한 건 추가한다.">
						<xf:label><![CDATA[추가]]></xf:label>
					</xf:trigger>
					<xf:trigger class="btn_cm" id="btn_cancel" style="" type="button" ev:onclick="scwin.btn_cancel_onclick"
						toolTip="data를 직전 상태로 되돌린다. ">
						<xf:label><![CDATA[취소]]></xf:label>
					</xf:trigger>
				</xf:group>
			</xf:group>
			<xf:group adaptiveThreshold="" class="gvwbox" id="" style="">
				<w2:gridView autoFit="allColumn" autoFitMinWidth="800" class="wq_gvw"
					dataList="data:dlt_release" defaultCellHeight="26" id="grd_release" rowStatusWidth="" scrollByColumn="false"
					scrollByColumnAdaptive="false" style="height:150px;"
					rowStatusVisible="true" rowStatusHeaderValue="상태" rowNumHeaderValue="순서" rowNumVisible="true" rowNumWidth="50"
					keepDefaultColumnWidth="true" tooltipDisplay="false" focusMode="row" visibleRowNum="5">
					<w2:caption id="caption1" style="" value="this is a grid caption."></w2:caption>
					<w2:header id="header1" style="">
						<w2:row id="row1" style="">
							<w2:column removeBorderStyle="false" width="45" inputType="checkbox" style="" id="chk" value=""
								blockSelect="false" displayMode="label" checkboxLabel="선택" fixColumnWidth="true">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column18" inputType="text" removeBorderStyle="false"
								style="" value="제목" width="238" class="req">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column17" inputType="text" removeBorderStyle="false"
								style="" value="내용" width="365" class="">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="column16" inputType="text" removeBorderStyle="false"
								style="" value="작성일" width="90">
							</w2:column>
						</w2:row>
					</w2:header>
					<w2:gBody id="gBody1" style="">
						<w2:row id="row2" style="">
							<w2:column removeBorderStyle="false" width="65" inputType="checkbox" style="" id="chk" value=""
								blockSelect="false" displayMode="label" checkboxLabel="선택">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="TITLE" inputType="text" removeBorderStyle="false"
								style="" value="" width="178" textAlign="left">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="CONTENT" inputType="text" removeBorderStyle="false"
								style="" value="" width="315" textAlign="left">
							</w2:column>
							<w2:column blockSelect="false" displayMode="label" id="CREATED_DATE" inputType="calendar"
								removeBorderStyle="false" style="" value="" width="90" viewType="" readOnly="">
							</w2:column>
						</w2:row>
					</w2:gBody>
				</w2:gridView>
			<w2:pageList class="wq_pglist" displayButtonType="display" displayFormat="#" id="pgl_release" pageSize="5" pagingType="0" style="" ev:onclick="scwin.pgl_release_onclick" ev:onviewchange="scwin.pgl_release_onviewchange">
			</w2:pageList></xf:group>

			<xf:group class="tbbox" id="" style="">
				<xf:group adaptive="layout" adaptiveThreshold="900" class="w2tb tb" id="grp_content" style="" tagname="table">
					<w2:attributes>
						<w2:summary></w2:summary>
					</w2:attributes>
					<xf:group tagname="colgroup">
						<xf:group style="width:120px;" tagname="col"></xf:group>
						<xf:group tagname="col"></xf:group>
						<xf:group tagname="col" style="width:120px;"></xf:group>
						<xf:group style="" tagname="col"></xf:group>
					</xf:group>
					<xf:group style="" tagname="tr">
						<xf:group class="w2tb_th" style="" tagname="th">
							<w2:textbox class=" req" id="" label="제목" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group class="w2tb_td" style="" tagname="td">
							<xf:input class="req" id="ibx_title" placeholder="" style="width:100%;" ref="data:dlt_release.TITLE"></xf:input>
						</xf:group>
						<xf:group tagname="th" class="w2tb_th " text="">
							<w2:attributes></w2:attributes>
							<w2:textbox class=" req" id="" label="작성일" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes></w2:attributes>
							<w2:inputCalendar calendarValueType="yearMonthDate" focusOnDateSelect="false" footerDiv="true"
								id="cal_createDate" renderDiv="true" rightAlign="false" style="width: 120px;" alt="" class="req"
								ref="data:dlt_release.CREATED_DATE">
							</w2:inputCalendar>
						</xf:group>
					</xf:group>
					<xf:group tagname="tr">
						<xf:group tagname="th" class="w2tb_th">
							<w2:attributes>
								<w2:scope>row</w2:scope>
							</w2:attributes>
							<w2:textbox class=" req" id="" label="내용" ref="" style="" userData2=""></w2:textbox>
						</xf:group>
						<xf:group tagname="td" class="w2tb_td">
							<w2:attributes>
								<w2:colspan>3</w2:colspan>
								<w2:rowspan>1</w2:rowspan>
							</w2:attributes>
							<xf:textarea id="txt_content" style="width:100%;height: 94px;" class="req" ref="data:dlt_release.CONTENT"></xf:textarea>
						</xf:group>
					</xf:group>
				</xf:group>
			</xf:group>
			<xf:group id="" style="" class="section">
				<w2:udc_fileMultiUpload filter="gif, jpg, bmp, png, zip, txt, ppt, pptx, xls, xlsx, doc, docx, xml, csv, pdf"
					maxFileCount="10" style="width:100%;height:240px;" totalFileSize="2009715200" maxFileSize="536870912" fileGrpSeq="5" id="udc_fileMultiUpload" ev:onFileUploadDone="scwin.udc_fileMultiUpload_onFileUploadDone" subDir="BM005">
				</w2:udc_fileMultiUpload>
				<xf:group class="btnbox" id="" style="">
					<xf:group class="fr" id="" style="">
						<xf:trigger class="btn_cm pt" ev:onclick="scwin.btn_save_onclick" id="btn_save" style="" type="button" nextTabID="">
							<xf:label><![CDATA[저장]]></xf:label>
						</xf:trigger>
					</xf:group>
				</xf:group>
			</xf:group>
		</xf:group>


<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare"
	xmlns:xf="http://www.w3.org/2002/xforms">
	<head meta_programId="BM006M01" meta_programName="파일그룹 관리" meta_programDesc="파일그룹 관리하는 화면" meta_author="Inswave Systems" meta_date="2021.02.25">
		<w2:type>COMPONENT</w2:type>
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection baseNode="map">
				<w2:dataList baseNode="list" repeatNode="map" id="dlt_fileGroup" saveRemovedData="true">
					<w2:columnInfo>
						<w2:column id="FILE_GRP_SEQ" name="파일그룹순번" dataType="text"></w2:column>
						<w2:column id="FILE_GRP_SEQ_PARENT" name="파일그룹부모순번" dataType="text"></w2:column>
						<w2:column id="FILE_GRP_NM" name="파일그룹명" dataType="text"></w2:column>
						<w2:column id="MENU_DEPTH" name="메뉴레벨" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
				<w2:dataList baseNode="list" repeatNode="map" id="dlt_file" saveRemovedData="true">
					<w2:columnInfo>
						<w2:column id="FILE_SEQ" name="파일순번" dataType="number"></w2:column>
						<w2:column id="DATA_SEQ" name="데이터순번" dataType="number"></w2:column>
						<w2:column id="FILE_GRP_SEQ" name="파일그룹순번" dataType="number"></w2:column>
						<w2:column id="ORIGIN_FILE_NM" name="원본파일명" dataType="text"></w2:column>
						<w2:column id="FILE_SIZE" name="파일크기" dataType="text"></w2:column>
						<w2:column id="FILE_UPLOAD_DATE" name="파일업로드일시" dataType="text"></w2:column>
						<w2:column id="IS_DELETE" name="삭제여부" dataType="text"></w2:column>
					</w2:columnInfo>
				</w2:dataList>
				<w2:dataMap baseNode="map" id="dma_search">
					<w2:keyInfo>
						<w2:key id="FILE_GRP_SEQ" name="파일그룹순번" dataType="number"></w2:key>
						<w2:key id="ORIGIN_FILE_NM" name="원본파일명" dataType="text"></w2:key>
						<w2:key id="IS_DELETE" name="삭제여부" dataType="text"></w2:key>
						<w2:key id="START_NUM" name="시작번호" dataType="text"></w2:key>
						<w2:key id="END_NUM" name="마지막번호" dataType="text"></w2:key>
						<w2:key id="TOTAL_YN" name="총건수 조회여부" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
				<w2:dataMap baseNode="map" id="dma_fileGrp">
					<w2:keyInfo>
						<w2:key id="FILE_GRP_SEQ" name="파일그룹순번" dataType="text"></w2:key>
						<w2:key id="FILE_GRP_SEQ_PARENT" name="파일그룹부모순번" dataType="text"></w2:key>
						<w2:key id="FILE_GRP_NM" name="파일그룹명" dataType="text"></w2:key>
						<w2:key id="mapStatus" name="상태" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
			</w2:dataCollection>
			<w2:workflowCollection></w2:workflowCollection>
			<xf:submission id="sbm_selectFileGrp" ref="data:json,dma_search" target="data:json,dlt_fileGroup"
				action="/file/selectFileGrp" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler=""
				customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_selectFileGrp_submitdone" ev:submiterror=""
				abortTrigger="">
			</xf:submission>
			<xf:submission id="sbm_selectFile" ref="data:json,dma_search" target="data:json,dlt_file"
				action="/file/selectFileByFileGrp" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler=""
				customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_selectFile_submitdone" ev:submiterror=""
				abortTrigger="">
			</xf:submission>
			<xf:submission id="sbm_saveFileGrp" ref="data:json,dma_fileGrp" target="" action="/file/saveFileGrp" method="post"
				mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg=""
				ev:submit="" ev:submitdone="scwin.sbm_saveFileGrp_submitdone" ev:submiterror="" abortTrigger="">
			</xf:submission>
		</xf:model>
		<script type="text/javascript" lazy="false"><![CDATA[
scwin.pageItemCnt = 18;

/**
 * 초기 스크립트 수행 함수 정의
 */
scwin.onpageload = function () {
	com.win.setEnterKeyEvent(tbl_search, scwin.btn_search_onclick);
	com.data.setChangeCheckedDc([dlt_file, dlt_fileGroup]);
	dma_search.set("IS_DELETE", "N");
};

/**
 * 화면 초기화 데이터가 모두 로딩되면 발생하는 이벤트
 */
scwin.ondataload = function () {
	scwin.btn_search_onclick();
};

/**
 * 파일 그룹을 조회한다.
 */
scwin.btn_search_onclick = function () {
	com.sbm.execute(sbm_selectFileGrp);
};

/**
 * 파일 그룹 조회 후 콜백 함수
 */
scwin.sbm_selectFileGrp_submitdone = function (e) {
	if (dlt_fileGroup.getRowCount() > 0) {
		trv_fileGroup.findNodeByIndex(1, true);
		scwin.searchFile(1, "Y");
	}
};

/**
 * 파일 정보를 조회한다.
 */
scwin.searchFile = function (idx, totalYn) {
	dma_search.set("TOTAL_YN", totalYn);
	dma_search.set("START_NUM", (com.num.parseInt(idx) - 1) * scwin.pageItemCnt);
	dma_search.set("END_NUM", scwin.pageItemCnt);
	dma_search.set("FILE_GRP_SEQ", trv_fileGroup.getSelectedValue());
	com.sbm.execute(sbm_selectFile);
};

/**
 * 파일 그룹을 생성한다.
 */
scwin.btn_add_onclick = function () {
	var fileGrpSeq = 0;
	var fileGrpSeqParent = 0;

	if (dlt_fileGroup.getRowCount() > 0) {
		var selectRowIdx = dlt_fileGroup.getRowPosition();
		if (selectRowIdx === null) {
			com.win.alert(com.data.getMessage("MSG_CM_00033"));
		} else {
			var fileGrpSeq = dlt_fileGroup.getCellData(selectRowIdx, "FILE_GRP_SEQ");
			var fileGrpSeqParent = dlt_fileGroup.getCellData(selectRowIdx, "FILE_GRP_SEQ_PARENT");
		}
	}

	var data = {
		fileGrpSeq: fileGrpSeq, fileGrpSeqParent: fileGrpSeqParent,
		mode: "create", callbackFn: "scwin.addCallback"
	};
	var options = {
		id: "FilegroupPop",
		popupName: "파일 그룹 생성",
		modal: true,
		width: 600, height: 224
	};
	com.win.openPopup("/ui/BM/BM006P01.xml", options, data);
};

/**
 * 파일 그룹 등록 완료 후 콜백 함수
 */
scwin.addCallback = function () {
	scwin.btn_search_onclick();
};

/**
 * 파일 그룹을 수정한다.
 */
scwin.btn_modify_onclick = function () {
	var selectedData = dlt_fileGroup.getRowJSON(dlt_fileGroup.getRowPosition());
	var data = { data: selectedData, mode: "update", callbackFn: "scwin.modCallback" };
	var options = {
		id: "FilegroupPop",
		popupName: "파일 그룹 설정",
		modal: true,
		width: 600, height: 224
	};
	com.win.openPopup("/ui/BM/BM006P01.xml", options, data);
};

/**
 * 파일 그룹 수정 후 콜백 함수.
 */
scwin.modCallback = function (data) {
	trv_fileGroup.setLabelByValue(data.FILE_GRP_SEQ, data.FILE_GRP_NM);
	scwin.searchFile(1, "Y");
};

/**
 * 파일 그룹을 삭제한다.
 */
scwin.btn_delete_onclick = function () {
	if (trv_fileGroup.isLeaf() == false) {
		com.win.alert(com.data.getMessage("MSG_CM_00034"));
	} else if (dlt_file.getRowCount() > 0) {
		com.win.alert(com.data.getMessage("MSG_CM_00035"));
	} else {
		com.win.confirm(com.data.getMessage("MSG_CM_00036"),
			function (res) {
				if (res.clickValue === true) {
					dma_fileGrp.setJSON(dlt_fileGroup.getRowJSON(dlt_fileGroup.getRowPosition()));
					dma_fileGrp.set("mapStatus", "D");
					com.sbm.execute(sbm_saveFileGrp);
				};
			}
		);
	}
};

scwin.trv_fileGroup_onlabelclick = function (value, nodeElement, index) {
	scwin.searchFile(1, "Y");
};

scwin.sbm_selectFile_submitdone = function (e) {
	if (com.sbm.getResultCode(e) == gcm.MESSAGE_CODE.STATUS_SUCCESS) {
		var firstYn = dma_search.get("TOTAL_YN");
		if (firstYn == "Y") {
			var fileTotalCnt = e.responseJSON.TOTAL_CNT.CNT;
			var totalCnt = com.num.ceil(fileTotalCnt / scwin.pageItemCnt);
			tbx_fileCount.setValue(fileTotalCnt);
			pgl_file.setCount(totalCnt);
		}
	}
};

scwin.pgl_file_onclick = function (idx) {
	scwin.searchFile(idx, "N");
};

scwin.sbm_saveFileGrp_submitdone = function (e) {
	if (com.sbm.getResultCode(e) == gcm.MESSAGE_CODE.STATUS_SUCCESS) {
		scwin.btn_search_onclick();
	}
};

/**
 * 파일 사이즈를 적절한 포맷으로 변환해서 반환한다.
 */
scwin.displayFileSize = function (value) {
	return com.num.formatByte(value);
};
]]></script>
	</head>
	<body ev:onpageload="scwin.onpageload">
		<xf:group class="sub_contents flex_gvw" id="" style="">
			<w2:wframe id="wfm_header" style="" src="../../cm/xml/contentHeader.xml"></w2:wframe>
			<xf:group class="shbox" id="" style="">
				<xf:group class="shbox_inner" id="tbl_search" style="">
					<xf:group adaptive="layout" adaptiveThreshold="768" class="w2tb tb" id="" style="width:100%;" tagname="table">
						<w2:attributes>
							<w2:summary></w2:summary>
						</w2:attributes>
						<xf:group tagname="colgroup">
							<xf:group tagname="col" style="width:80px;"></xf:group><xf:group style="" tagname="col"></xf:group>
							<xf:group tagname="col" style="width:80px;"></xf:group><xf:group style="" tagname="col"></xf:group>
						</xf:group>
						<xf:group style="" tagname="tr">
							<xf:group class="w2tb_th " style="" tagname="th">
								<w2:textbox class="" id="" label="파일명" style=""></w2:textbox>
							</xf:group>
							<xf:group class="w2tb_td" style="" tagname="td">
								<xf:input class="" id="" placeholder="" style="width:100%;" ref="data:dma_search.ORIGIN_FILE_NM"></xf:input>
							</xf:group>
							<xf:group tagname="th" class="w2tb_th " style="">
								<w2:attributes>
									<w2:scope>row</w2:scope>
								</w2:attributes>
								<w2:textbox class="" id="" label="삭제여부" style=""></w2:textbox>
							</xf:group>
							<xf:group tagname="td" class="w2tb_td">
								<w2:attributes></w2:attributes>
								<xf:select1 id="" selectedIndex="1" appearance="full" style="" cols="" rows=""
									ref="data:dma_search.IS_DELETE" renderType="radiogroup">
									<xf:choices>
										<xf:item>
											<xf:label><![CDATA[전체]]></xf:label>
											<xf:value><![CDATA[]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[예]]></xf:label>
											<xf:value><![CDATA[Y]]></xf:value>
										</xf:item>
										<xf:item>
											<xf:label><![CDATA[아니요]]></xf:label>
											<xf:value><![CDATA[N]]></xf:value>
										</xf:item>
									</xf:choices>
								</xf:select1></xf:group></xf:group>
					</xf:group>
				</xf:group>
				<xf:group class="btn_shbox" id="" style="">
					<xf:trigger class="btn_cm sch" disabled="" id="btn_search" style="" type="button" clickEventElement="outerDiv" ev:onclick="scwin.btn_search_onclick">
						<xf:label><![CDATA[조회]]></xf:label>
					</xf:trigger>

				</xf:group>
			</xf:group>
			<xf:group id="" adaptive="" class="lybox">
				<xf:group id="" class="ly_column col_3">
					<xf:group style="" id="" class="dfbox">
						<w2:textbox style="" label="파일그룹" id="" class="" tagname="h3"></w2:textbox>
						<xf:group style="" id="" class="fr">

							<xf:trigger style="" id="btn_add" type="button" ev:onclick="scwin.btn_add_onclick" class="btn_cm ">
								<xf:label><![CDATA[등록]]></xf:label>
							</xf:trigger>
							<xf:trigger style="" id="btn_modify" type="button" ev:onclick="scwin.btn_modify_onclick"  class="btn_cm">
								<xf:label><![CDATA[수정]]></xf:label>
							</xf:trigger>
							<xf:trigger class="btn_cm" id="btn_delete" style="" ev:onclick="scwin.btn_delete_onclick"  type="button">
								<xf:label><![CDATA[삭제]]></xf:label>
							</xf:trigger>
						</xf:group>
					</xf:group>
					<xf:group id="" class="tvwbox scrollbar" style="height: 313px;">
						<w2:treeview tooltipGroupClass="false" dataType="listed" style="" id="trv_fileGroup" class="wq_tvw" ev:onlabelclick="scwin.trv_fileGroup_onlabelclick" >
							<w2:itemset nodeset="data:dlt_fileGroup">
									<w2:label ref="FILE_GRP_NM"></w2:label>
									<w2:value ref="FILE_GRP_SEQ"></w2:value>
									<w2:depth ref="MENU_DEPTH"></w2:depth>
									<w2:folder ref=""></w2:folder>
									<w2:checkbox ref=""></w2:checkbox>
									<w2:checkboxDisabled ref=""></w2:checkboxDisabled>
									<w2:image ref=""></w2:image>
									<w2:iconImage ref=""></w2:iconImage>
									<w2:selectedImage ref=""></w2:selectedImage>
									<w2:expandedImage ref=""></w2:expandedImage>
									<w2:leafImage ref=""></w2:leafImage>
							</w2:itemset>
						</w2:treeview>
					</xf:group>
				</xf:group>
				<xf:group style="" id="" class="ly_column col_7">
					<xf:group style="" id="" class="tbbox">
						<xf:group tagname="table" style="width:100%;" id="" class="w2tb tb" adaptive="layout" adaptiveThreshold="1024px" text="">
							<w2:attributes>
								<w2:summary></w2:summary>
							</w2:attributes>
							<xf:group tagname="caption"></xf:group>
							<xf:group tagname="colgroup">
								<xf:group tagname="col" style="width:130px;"></xf:group>
								<xf:group tagname="col" style=""></xf:group>
								<xf:group tagname="col" style="width:110px;"></xf:group>
								<xf:group tagname="col" style=""></xf:group>
								<xf:group tagname="col" style="width:90px;"></xf:group>
								<xf:group tagname="col" style=""></xf:group>
							</xf:group>
							<xf:group tagname="tr">
								<xf:group tagname="th" style="" class="w2tb_th">
									<w2:attributes>
										<w2:scope>row</w2:scope>
									</w2:attributes>
									<w2:span class="title" id="" label="파일 그룹 순번 " style=""></w2:span>
								</xf:group>
								<xf:group tagname="td" style="" class="w2tb_td">
									<w2:span class="txt" id="" label="" style="" ref="data:dlt_fileGroup.FILE_GRP_SEQ"></w2:span>
								</xf:group>
								<xf:group tagname="th" style="" class="w2tb_th">
									<w2:attributes>
										<w2:scope>row</w2:scope>
									</w2:attributes>
									<w2:span class="title" id="" label="파일 그룹명 " style=""></w2:span>
								</xf:group>
								<xf:group tagname="td" style="" class="w2tb_td">
									<w2:span class="txt" id="" label="" style="" ref="data:dlt_fileGroup.FILE_GRP_NM"></w2:span>
								</xf:group>
								<xf:group tagname="th" style="" class="w2tb_th">
									<w2:attributes>
										<w2:scope>row</w2:scope>
									</w2:attributes>
									<w2:span class="title" id="" label="파일 수 " style=""></w2:span>
								</xf:group>
								<xf:group tagname="td" style="" class="w2tb_td">
									<w2:span class="txt" id="tbx_fileCount" label="01" style=""></w2:span>
								</xf:group>
							</xf:group>
						</xf:group>
					</xf:group>
					<xf:group adaptiveThreshold="" style="" id="" class="gvwbox">
						<w2:gridView ev:ontextimageclick="scwin.grd_menu_ontextimageclick"
							rowStatusWidth="" adaptive="" focusMode="row" id="grd_menu" class="wq_gvw" ev:onrowindexchange="" useShiftKey="true" ev:oneditkeyup="scwin.grd_menu_oneditkeyup"
							fixedColumnWithHidden="true" dataList="data:dlt_file" ignoreCellClick="false" style="height:296px;" readOnly="true" defaultCellHeight="26" autoFit="allColumn" scrollByColumn="true" autoFitMinWidth="900">
							<w2:caption style="" id="caption1" value="this is a grid caption."></w2:caption>
							<w2:header style="" id="header1">
								<w2:row style="" id="row1">
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="column5"
										value="파일순번" blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="column4"
										value="데이터순번" blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="column3"
										value="원본파일명" blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="column2"
										value="파일크기" blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="column1"
										value="파일업로드일시" blockSelect="false" displayMode="label">
									</w2:column>
								</w2:row>
							</w2:header>
							<w2:gBody style="" id="gBody1">
								<w2:row style="" id="row2">
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="FILE_SEQ" value=""
										blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="DATA_SEQ" value=""
										blockSelect="false" displayMode="label">
									</w2:column>
									<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="ORIGIN_FILE_NM"
										value="" blockSelect="false" displayMode="label" textAlign="left">
									</w2:column>
									<w2:column removeBorderStyle="false" width="50" inputType="text" style="" id="FILE_SIZE" value=""
										blockSelect="false" displayMode="label" textAlign="right" displayFormatter="scwin.displayFileSize">
									</w2:column>
									<w2:column removeBorderStyle="false" width="100" inputType="text" style="" id="FILE_UPLOAD_DATE"
										value="" blockSelect="false" displayMode="label">
									</w2:column>
								</w2:row>
							</w2:gBody>
						</w2:gridView>

					<w2:pageList class="wq_pglist" displayButtonType="display" displayFormat="#" ev:onclick="scwin.pgl_file_onclick" id="pgl_file" pageSize="5" pagingType="0" style="" delimiter="">
					</w2:pageList></xf:group>

				</xf:group>
			</xf:group>

		</xf:group>

	</body>
</html>


<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms">
	<head meta_programId="BM006P01" meta_programName="파일그룹관리팝업" meta_programDesc="파일그룹관리팝업" meta_author="Inswave Systems" meta_date="2021.02.25">
		<w2:buildDate />
		<xf:model>
			<xf:instance>
				<data xmlns="" />
			</xf:instance>
			<w2:dataCollection baseNode="map">
				<w2:dataMap baseNode="map" id="dma_fileGrp">
					<w2:keyInfo>
						<w2:key id="FILE_GRP_SEQ" name="파일그룹순번" dataType="text"></w2:key>
						<w2:key id="FILE_GRP_SEQ_PARENT" name="파일그룹부모순번" dataType="text"></w2:key>
						<w2:key id="FILE_GRP_NM" name="파일그룹명" dataType="text"></w2:key>
						<w2:key id="mapStatus" name="상태" dataType="text"></w2:key>
					</w2:keyInfo>
				</w2:dataMap>
			</w2:dataCollection>
			<w2:workflowCollection></w2:workflowCollection>
			<xf:submission id="sbm_saveFileGrp" ref="data:json,dma_fileGrp" target="" action="/file/saveFileGrp" method="post" mediatype="application/json" encoding="UTF-8"
				instance="" replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sbm_saveFileGrp_submitdone"
				ev:submiterror="" abortTrigger="">
			</xf:submission>
		</xf:model>
		<w2:layoutInfo></w2:layoutInfo>
		<w2:publicInfo method=""></w2:publicInfo>

		<script type="text/javascript" lazy="false"><![CDATA[
/**
 * 초기 스크립트 수행 함수 정의
 */
scwin.onpageload = function () {
	scwin.param = com.data.getParameter();
	if (scwin.param.mode == "create") {
		grp_controlRow.show("");
		grp_fileGrpSeq.hide();
		dma_fileGrp.set("mapStatus", "C");
	} else if (scwin.param.mode == "update") {
		grp_controlRow.hide();
		grp_fileGrpSeq.show("");
		dma_fileGrp.setJSON(com.data.getParameter("data"));
		dma_fileGrp.set("mapStatus", "U");
	}

	scwin.closeCallbackFncName = scwin.param.callbackFn;
};

scwin.btn_confirm_onclick = function () {
	if (scwin.param.mode == "create") {
		var level = rad_level.getValue();
		if (level == "1") {
			dma_fileGrp.set("FILE_GRP_SEQ_PARENT", scwin.param.fileGrpSeqParent);
		} else {
			dma_fileGrp.set("FILE_GRP_SEQ_PARENT", scwin.param.fileGrpSeq);
		}
	}

	if (com.data.validateGroup(grp_content)) {
		com.sbm.execute(sbm_saveFileGrp);
	}
};

scwin.btn_cancel_onclick = function () {
	com.win.closePopup();
};

scwin.sbm_saveFileGrp_submitdone = function (e) {
	com.win.closePopup(dma_fileGrp.getJSON());
};
]]></script>
	</head>
	<body ev:onpageload="scwin.onpageload">
    <xf:group id="" class="pop_contents flex_gvw">
    	<xf:group style="" id="" class="tbbox">
    		<xf:group adaptive="layout" adaptiveThreshold="1024" tagname="table" style="" tabIndex="" id="" class="w2tb tb">
    			<w2:attributes>
    				<w2:summary></w2:summary>
    			</w2:attributes>
    			<xf:group tagname="colgroup">
    				<xf:group tagname="col" style="width:150px;"></xf:group>
    				<xf:group style="" tagname="col"></xf:group>
    			</xf:group>
    			<xf:group tagname="tr" style="" id="grp_fileGrpSeq">
    				<xf:group tagname="th" style="" class="w2tb_th">
    					<w2:attributes>
    						<w2:colspan>1</w2:colspan>
    						<w2:rowspan>1</w2:rowspan>
    					</w2:attributes>
    					<w2:textbox ref="" style="" userData2="" id="" label="파일그룹순번"></w2:textbox>
    				</xf:group>
    				<xf:group tagname="td" style="" class="w2tb_td">
    					<w2:attributes>
    						<w2:colspan>1</w2:colspan>
    						<w2:rowspan>1</w2:rowspan>
    					</w2:attributes>
    					<xf:input class="" id="" placeholder="" style="" disabled="true" ref="data:dma_fileGrp.FILE_GRP_SEQ"></xf:input>
    				</xf:group>
    			</xf:group>
    			<xf:group tagname="tr" style="">
    				<xf:group tagname="th" style="" class="w2tb_th">
    					<w2:attributes>
    						<w2:colspan>1</w2:colspan>
    						<w2:rowspan>1</w2:rowspan>
    					</w2:attributes>
    					<w2:textbox ref="" style="" userData2="" id="" label="파일그룹명"></w2:textbox>
    				</xf:group>
    				<xf:group tagname="td" style="" class="w2tb_td" id="grp_content">
    					<xf:input style="" id="" placeholder="" class="" mandatory="true" ref="data:dma_fileGrp.FILE_GRP_NM"></xf:input>
    				</xf:group>
    			</xf:group>
    		<xf:group tagname="tr" id="grp_controlRow">
    			<xf:group tagname="th" class="w2tb_th">
    				<w2:attributes>
    					<w2:scope>row</w2:scope>
    				</w2:attributes>
    				<w2:textbox id="" label="노드 생성 위치" ref="" style="" userData2=""></w2:textbox>
    			</xf:group>
    			<xf:group tagname="td" class="w2tb_td">
    				<w2:attributes></w2:attributes>
    				<xf:select1 appearance="full" cols="" disabled="" id="rad_level" ref="" renderType="radiogroup" rows=""
    					selectedIndex="1" style="">
    					<xf:choices>
    						<xf:item>
    							<xf:label><![CDATA[동일 레벨]]></xf:label>
    							<xf:value><![CDATA[1]]></xf:value>
    						</xf:item>
    						<xf:item>
    							<xf:label><![CDATA[하위 레벨]]></xf:label>
    							<xf:value><![CDATA[2]]></xf:value>
    						</xf:item>
    					</xf:choices>
    				</xf:select1>
    			</xf:group></xf:group></xf:group>
    	</xf:group>
    	<xf:group class="btnbox" id="" style="">
    		<xf:group class="fr" id="">
    			<xf:trigger class="btn_cm pt" id="btn_confirm" style="" type="button" ev:onclick="scwin.btn_confirm_onclick">
    				<xf:label><![CDATA[확인]]></xf:label>
    			</xf:trigger>
    			<xf:trigger class="btn_cm" id="btn_cancel" style="" type="button" ev:onclick="scwin.btn_cancel_onclick">
    				<xf:label><![CDATA[취소]]></xf:label>
    			</xf:trigger>
    		</xf:group>
    	</xf:group>
    </xf:group>
	</body>
</html>