Browse Source

mobile change docs

SBK 2 years ago
parent
commit
d857545c81

+ 2 - 2
mobile-src/.env.development

@@ -1,7 +1,7 @@
 VUE_APP_TITLE=develop
 VUE_APP_TITLE=develop
 VUE_APP_API_URL=/mobile/
 VUE_APP_API_URL=/mobile/
-VUE_APP_TYPE=portal
-_VUE_APP_TYPE=as
+_VUE_APP_TYPE=portal
+VUE_APP_TYPE=as
 VUE_APP_API_KEY=AIzaSyCmKjBJTt4K3D7hPAuXENuAJugEB4RnT1U
 VUE_APP_API_KEY=AIzaSyCmKjBJTt4K3D7hPAuXENuAJugEB4RnT1U
 VUE_APP_AUTH_DOMAIN=sgc-portal.firebaseapp.com
 VUE_APP_AUTH_DOMAIN=sgc-portal.firebaseapp.com
 VUE_APP_PROJECT_ID=sgc-portal
 VUE_APP_PROJECT_ID=sgc-portal

+ 64 - 22
mobile-src/docs/DB_SQL.sql

@@ -1,10 +1,31 @@
-CREATE TABLE SGC.TCS_SITE_DHS (
+CREATE TABLE SGC.TCS_SITE_TRADE (
 	CMPN_CD VARCHAR(10) NOT NULL,
 	CMPN_CD VARCHAR(10) NOT NULL,
 	SITE_CD VARCHAR(20) NOT NULL,
 	SITE_CD VARCHAR(20) NOT NULL,
-	DONG VARCHAR(100) NOT NULL,
-	HSNO VARCHAR(100) NOT NULL,
-	CNTPR_OCPH_NM VARCHAR(100),
-	CP_NO VARCHAR(100),
+	COVEND_ID NUMBER NOT NULL,
+	CONT_SEQ NUMBER DEFAULT 1 NOT NULL,
+	JOB_GB_CD VARCHAR(20),
+	CONT_ID VARCHAR(100),
+	CONT_MOD_ID VARCHAR(100),
+	MOD_NO VARCHAR(100),
+	PO_DOC_NO VARCHAR(100),
+	CONT_NM VARCHAR(1000),
+	CONT_DT VARCHAR(8),
+	COVEND_NM VARCHAR(100),
+	COVEND_CORP_REG_NO VARCHAR(20),
+	CONT_AMT NUMBER,
+	CONT_SUPPLY_AMT NUMBER,
+	CONT_TERM VARCHAR(100),
+	CONT_START_DT DATE,
+	CONT_END_DT DATE,
+	CONT_GB VARCHAR(20),
+	STATUS_CD VARCHAR(20),
+	TEMPLATE_CD VARCHAR(20),
+	TEMPLATE_NM VARCHAR(100),
+	CHG_CONT_YN VARCHAR(20),
+	CUR_GB VARCHAR(20),
+	ADJ_GB VARCHAR(20),
+	RMK_CN VARCHAR(4000),
+	CRT_SYS_CD VARCHAR(20),
 	WRTE_DT DATE DEFAULT sysdate,
 	WRTE_DT DATE DEFAULT sysdate,
 	WRTE_PR VARCHAR(20),
 	WRTE_PR VARCHAR(20),
 	MDFT_DT DATE,
 	MDFT_DT DATE,
@@ -18,33 +39,54 @@ STORAGE (
 )
 )
 LOGGING
 LOGGING
 NOPARALLEL;
 NOPARALLEL;
-COMMENT ON TABLE SGC.TCS_SITE_DHS IS '하자) 현장 동호수';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.CMPN_CD IS '회사 코드';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.CNTPR_OCPH_NM IS '계약 입주 자';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.CP_NO IS '핸드폰 번호';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.DONG IS '동';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.HSNO IS '호수';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.MDFT_DT IS '수정 일자';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.MDFT_PR IS '수정 자';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.SITE_CD IS '현장코드';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.WRTE_DT IS '작성 일자';
-COMMENT ON COLUMN SGC.TCS_SITE_DHS.WRTE_PR IS '작성 자';
+COMMENT ON TABLE SGC.TCS_SITE_TRADE IS '하자)현장업체계약';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.ADJ_GB IS '정산 구분';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CHG_CONT_YN IS '변경 계약 여부';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CMPN_CD IS '회사 코드';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_AMT IS '계약 금액';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_DT IS '계약 일자';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_END_DT IS '계약 만료일';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_GB IS '계약 구분';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_ID IS '계약 번호';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_MOD_ID IS '변경 계약번호';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_NM IS '계약 명';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_SEQ IS '계약순번';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_START_DT IS '계약 시작일';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_SUPPLY_AMT IS '공급 금액';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CONT_TERM IS '계약 기간';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.COVEND_CORP_REG_NO IS '업체 사업자번호';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.COVEND_ID IS '협력업체 ID';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.COVEND_NM IS '업체 명';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CRT_SYS_CD IS '생성시스템코드';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CUR_GB IS '통화 단위';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.JOB_GB_CD IS '협력업체유형코드[CS004]';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.MDFT_DT IS '수정 일자';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.MDFT_PR IS '수정 자';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.MOD_NO IS '변경 계약차수';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.PO_DOC_NO IS '발주 번호';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.RMK_CN IS '비고_내용';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.SITE_CD IS '현장코드';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.STATUS_CD IS '계약 상태';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.TEMPLATE_CD IS '계약서 코드';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.TEMPLATE_NM IS '계약서 코드명';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.WRTE_DT IS '작성 일자';
+COMMENT ON COLUMN SGC.TCS_SITE_TRADE.WRTE_PR IS '작성 자';
 
 
-CREATE UNIQUE INDEX SGC.PK_TCS_SITE_DHS ON SGC.TCS_SITE_DHS (
+CREATE UNIQUE INDEX SGC.PK_TCS_SITE_TRADE ON SGC.TCS_SITE_TRADE (
 	CMPN_CD ASC,
 	CMPN_CD ASC,
 	SITE_CD ASC,
 	SITE_CD ASC,
-	DONG ASC,
-	HSNO ASC
+	COVEND_ID ASC,
+	CONT_SEQ ASC
 )
 )
 LOGGING
 LOGGING
 TABLESPACE TS_SGCIDX
 TABLESPACE TS_SGCIDX
 PCTFREE 10
 PCTFREE 10
 INITRANS 2;
 INITRANS 2;
 
 
-ALTER TABLE SGC.TCS_SITE_DHS ADD CONSTRAINT PK_TCS_SITE_DHS
+ALTER TABLE SGC.TCS_SITE_TRADE ADD CONSTRAINT PK_TCS_SITE_TRADE
 PRIMARY KEY (
 PRIMARY KEY (
 	CMPN_CD,
 	CMPN_CD,
 	SITE_CD,
 	SITE_CD,
-	DONG,
-	HSNO
+	COVEND_ID,
+	CONT_SEQ
 );
 );

+ 73 - 10
mobile-src/docs/DB_SQL.ts

@@ -1,7 +1,7 @@
 /**
 /**
- * 하자) 현장 동호수
+ * 하자)현장업체계약
  */
  */
-export interface TcsSiteDhs {
+export interface TcsSiteTrade {
 
 
 	/** 회사 코드 */
 	/** 회사 코드 */
 	cmpnCd?: string;
 	cmpnCd?: string;
@@ -9,17 +9,80 @@ export interface TcsSiteDhs {
 	/** 현장코드 */
 	/** 현장코드 */
 	siteCd?: string;
 	siteCd?: string;
 
 
-	/**  */
-	dong?: string;
+	/** 협력업체 ID */
+	covendId?: number;
 
 
-	/** 호수 */
-	hsno?: string;
+	/** 계약순번 */
+	contSeq?: number;
 
 
-	/** 계약 입주 자 */
-	cntprOcphNm?: string;
+	/** 협력업체유형코드[CS004] */
+	jobGbCd?: string;
 
 
-	/** 핸드폰 번호 */
-	cpNo?: string;
+	/** 계약 번호 */
+	contId?: string;
+
+	/** 변경 계약번호 */
+	contModId?: string;
+
+	/** 변경 계약차수 */
+	modNo?: string;
+
+	/** 발주 번호 */
+	poDocNo?: string;
+
+	/** 계약 명 */
+	contNm?: string;
+
+	/** 계약 일자 */
+	contDt?: string;
+
+	/** 업체 명 */
+	covendNm?: string;
+
+	/** 업체 사업자번호 */
+	covendCorpRegNo?: string;
+
+	/** 계약 금액 */
+	contAmt?: number;
+
+	/** 공급 금액 */
+	contSupplyAmt?: number;
+
+	/** 계약 기간 */
+	contTerm?: string;
+
+	/** 계약 시작일 */
+	contStartDt?: string;
+
+	/** 계약 만료일 */
+	contEndDt?: string;
+
+	/** 계약 구분 */
+	contGb?: string;
+
+	/** 계약 상태 */
+	statusCd?: string;
+
+	/** 계약서 코드 */
+	templateCd?: string;
+
+	/** 계약서 코드명 */
+	templateNm?: string;
+
+	/** 변경 계약 여부 */
+	chgContYn?: string;
+
+	/** 통화 단위 */
+	curGb?: string;
+
+	/** 정산 구분 */
+	adjGb?: string;
+
+	/** 비고_내용 */
+	rmkCn?: string;
+
+	/** 생성시스템코드 */
+	crtSysCd?: string;
 
 
 	/** 작성 일자 */
 	/** 작성 일자 */
 	wrteDt?: string;
 	wrteDt?: string;

+ 174 - 48
mobile-src/docs/DB_SQL.xml

@@ -1,74 +1,158 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="sample.TcsSiteDhsMapper">
-	<!-- 하자) 현장 동호수 -->
-	<resultMap type="sample.dto.TcsSiteDhsVo" id="tcsSiteDhsMap">
+<mapper namespace="sample.TcsSiteTradeMapper">
+	<!-- 하자)현장업체계약 -->
+	<resultMap type="sample.dto.TcsSiteTradeVo" id="tcsSiteTradeMap">
 		<id property="cmpnCd" column="CMPN_CD" /><!-- 회사 코드 -->
 		<id property="cmpnCd" column="CMPN_CD" /><!-- 회사 코드 -->
 		<id property="siteCd" column="SITE_CD" /><!-- 현장코드 -->
 		<id property="siteCd" column="SITE_CD" /><!-- 현장코드 -->
-		<id property="dong" column="DONG" /><!-- 동 -->
-		<id property="hsno" column="HSNO" /><!-- 호수 -->
-		<id property="cntprOcphNm" column="CNTPR_OCPH_NM" /><!-- 계약 입주 자 -->
-		<id property="cpNo" column="CP_NO" /><!-- 핸드폰 번호 -->
+		<id property="covendId" column="COVEND_ID" /><!-- 협력업체 ID -->
+		<id property="contSeq" column="CONT_SEQ" /><!-- 계약순번 -->
+		<id property="jobGbCd" column="JOB_GB_CD" /><!-- 협력업체유형코드[CS004] -->
+		<id property="contId" column="CONT_ID" /><!-- 계약 번호 -->
+		<id property="contModId" column="CONT_MOD_ID" /><!-- 변경 계약번호 -->
+		<id property="modNo" column="MOD_NO" /><!-- 변경 계약차수 -->
+		<id property="poDocNo" column="PO_DOC_NO" /><!-- 발주 번호 -->
+		<id property="contNm" column="CONT_NM" /><!-- 계약 명 -->
+		<id property="contDt" column="CONT_DT" /><!-- 계약 일자 -->
+		<id property="covendNm" column="COVEND_NM" /><!-- 업체 명 -->
+		<id property="covendCorpRegNo" column="COVEND_CORP_REG_NO" /><!-- 업체 사업자번호 -->
+		<id property="contAmt" column="CONT_AMT" /><!-- 계약 금액 -->
+		<id property="contSupplyAmt" column="CONT_SUPPLY_AMT" /><!-- 공급 금액 -->
+		<id property="contTerm" column="CONT_TERM" /><!-- 계약 기간 -->
+		<id property="contStartDt" column="CONT_START_DT" /><!-- 계약 시작일 -->
+		<id property="contEndDt" column="CONT_END_DT" /><!-- 계약 만료일 -->
+		<id property="contGb" column="CONT_GB" /><!-- 계약 구분 -->
+		<id property="statusCd" column="STATUS_CD" /><!-- 계약 상태 -->
+		<id property="templateCd" column="TEMPLATE_CD" /><!-- 계약서 코드 -->
+		<id property="templateNm" column="TEMPLATE_NM" /><!-- 계약서 코드명 -->
+		<id property="chgContYn" column="CHG_CONT_YN" /><!-- 변경 계약 여부 -->
+		<id property="curGb" column="CUR_GB" /><!-- 통화 단위 -->
+		<id property="adjGb" column="ADJ_GB" /><!-- 정산 구분 -->
+		<id property="rmkCn" column="RMK_CN" /><!-- 비고_내용 -->
+		<id property="crtSysCd" column="CRT_SYS_CD" /><!-- 생성시스템코드 -->
 		<id property="wrteDt" column="WRTE_DT" /><!-- 작성 일자 -->
 		<id property="wrteDt" column="WRTE_DT" /><!-- 작성 일자 -->
 		<id property="wrtePr" column="WRTE_PR" /><!-- 작성 자 -->
 		<id property="wrtePr" column="WRTE_PR" /><!-- 작성 자 -->
 		<id property="mdftDt" column="MDFT_DT" /><!-- 수정 일자 -->
 		<id property="mdftDt" column="MDFT_DT" /><!-- 수정 일자 -->
 		<id property="mdftPr" column="MDFT_PR" /><!-- 수정 자 -->
 		<id property="mdftPr" column="MDFT_PR" /><!-- 수정 자 -->
 	</resultMap>
 	</resultMap>
 
 
-	<!-- 하자) 현장 동호수 - List -->
-	<select id="selectTcsSiteDhsList" parameterType="sample.dto.TcsSiteDhsVo" resultMap="tcsSiteDhsMap"><![CDATA[
+	<!-- 하자)현장업체계약 - List -->
+	<select id="selectTcsSiteTradeList" parameterType="sample.dto.TcsSiteTradeVo" resultMap="tcsSiteTradeMap"><![CDATA[
 	SELECT 
 	SELECT 
 		A.CMPN_CD AS CMPN_CD ,
 		A.CMPN_CD AS CMPN_CD ,
 		A.SITE_CD AS SITE_CD ,
 		A.SITE_CD AS SITE_CD ,
-		A.DONG AS DONG ,
-		A.HSNO AS HSNO ,
-		A.CNTPR_OCPH_NM AS CNTPR_OCPH_NM ,
-		A.CP_NO AS CP_NO ,
+		A.COVEND_ID AS COVEND_ID ,
+		A.CONT_SEQ AS CONT_SEQ ,
+		A.JOB_GB_CD AS JOB_GB_CD ,
+		A.CONT_ID AS CONT_ID ,
+		A.CONT_MOD_ID AS CONT_MOD_ID ,
+		A.MOD_NO AS MOD_NO ,
+		A.PO_DOC_NO AS PO_DOC_NO ,
+		A.CONT_NM AS CONT_NM ,
+		A.CONT_DT AS CONT_DT ,
+		A.COVEND_NM AS COVEND_NM ,
+		A.COVEND_CORP_REG_NO AS COVEND_CORP_REG_NO ,
+		A.CONT_AMT AS CONT_AMT ,
+		A.CONT_SUPPLY_AMT AS CONT_SUPPLY_AMT ,
+		A.CONT_TERM AS CONT_TERM ,
+		TO_CHAR(CONT_START_DT, 'YYYY-MM-DD') AS CONT_START_DT ,
+		TO_CHAR(CONT_END_DT, 'YYYY-MM-DD') AS CONT_END_DT ,
+		A.CONT_GB AS CONT_GB ,
+		A.STATUS_CD AS STATUS_CD ,
+		A.TEMPLATE_CD AS TEMPLATE_CD ,
+		A.TEMPLATE_NM AS TEMPLATE_NM ,
+		A.CHG_CONT_YN AS CHG_CONT_YN ,
+		A.CUR_GB AS CUR_GB ,
+		A.ADJ_GB AS ADJ_GB ,
+		A.RMK_CN AS RMK_CN ,
+		A.CRT_SYS_CD AS CRT_SYS_CD ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		A.WRTE_PR AS WRTE_PR ,
 		A.WRTE_PR AS WRTE_PR ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
 		A.MDFT_PR AS MDFT_PR
 		A.MDFT_PR AS MDFT_PR
 	FROM 
 	FROM 
-		TCS_SITE_DHS A 
+		TCS_SITE_TRADE A 
 	WHERE 
 	WHERE 
 		1=1
 		1=1
 	ORDER BY 
 	ORDER BY 
 		1
 		1
 	]]></select>
 	]]></select>
 
 
-	<!-- 하자) 현장 동호수 - View -->
-	<select id="selectTcsSiteDhsView" parameterType="sample.dto.TcsSiteDhsVo" resultMap="tcsSiteDhsMap"><![CDATA[
+	<!-- 하자)현장업체계약 - View -->
+	<select id="selectTcsSiteTradeView" parameterType="sample.dto.TcsSiteTradeVo" resultMap="tcsSiteTradeMap"><![CDATA[
 	SELECT 
 	SELECT 
 		A.CMPN_CD AS CMPN_CD ,
 		A.CMPN_CD AS CMPN_CD ,
 		A.SITE_CD AS SITE_CD ,
 		A.SITE_CD AS SITE_CD ,
-		A.DONG AS DONG ,
-		A.HSNO AS HSNO ,
-		A.CNTPR_OCPH_NM AS CNTPR_OCPH_NM ,
-		A.CP_NO AS CP_NO ,
+		A.COVEND_ID AS COVEND_ID ,
+		A.CONT_SEQ AS CONT_SEQ ,
+		A.JOB_GB_CD AS JOB_GB_CD ,
+		A.CONT_ID AS CONT_ID ,
+		A.CONT_MOD_ID AS CONT_MOD_ID ,
+		A.MOD_NO AS MOD_NO ,
+		A.PO_DOC_NO AS PO_DOC_NO ,
+		A.CONT_NM AS CONT_NM ,
+		A.CONT_DT AS CONT_DT ,
+		A.COVEND_NM AS COVEND_NM ,
+		A.COVEND_CORP_REG_NO AS COVEND_CORP_REG_NO ,
+		A.CONT_AMT AS CONT_AMT ,
+		A.CONT_SUPPLY_AMT AS CONT_SUPPLY_AMT ,
+		A.CONT_TERM AS CONT_TERM ,
+		TO_CHAR(CONT_START_DT, 'YYYY-MM-DD') AS CONT_START_DT ,
+		TO_CHAR(CONT_END_DT, 'YYYY-MM-DD') AS CONT_END_DT ,
+		A.CONT_GB AS CONT_GB ,
+		A.STATUS_CD AS STATUS_CD ,
+		A.TEMPLATE_CD AS TEMPLATE_CD ,
+		A.TEMPLATE_NM AS TEMPLATE_NM ,
+		A.CHG_CONT_YN AS CHG_CONT_YN ,
+		A.CUR_GB AS CUR_GB ,
+		A.ADJ_GB AS ADJ_GB ,
+		A.RMK_CN AS RMK_CN ,
+		A.CRT_SYS_CD AS CRT_SYS_CD ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		A.WRTE_PR AS WRTE_PR ,
 		A.WRTE_PR AS WRTE_PR ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
 		A.MDFT_PR AS MDFT_PR
 		A.MDFT_PR AS MDFT_PR
 	FROM 
 	FROM 
-		TCS_SITE_DHS A 
+		TCS_SITE_TRADE A 
 	WHERE 
 	WHERE 
 		CMPN_CD = #{cmpnCd} AND
 		CMPN_CD = #{cmpnCd} AND
 		SITE_CD = #{siteCd} AND
 		SITE_CD = #{siteCd} AND
-		DONG = #{dong} AND
-		HSNO = #{hsno}
+		COVEND_ID = #{covendId} AND
+		CONT_SEQ = #{contSeq}
 	]]></select>
 	]]></select>
 
 
-	<!-- 하자) 현장 동호수 - Insert -->
-	<insert id="insertTcsSiteDhs" parameterType="sample.dto.TcsSiteDhsVo"><![CDATA[
+	<!-- 하자)현장업체계약 - Insert -->
+	<insert id="insertTcsSiteTrade" parameterType="sample.dto.TcsSiteTradeVo"><![CDATA[
 	INSERT INTO 
 	INSERT INTO 
-		TCS_SITE_DHS
+		TCS_SITE_TRADE
 	(
 	(
 		A.CMPN_CD AS CMPN_CD ,
 		A.CMPN_CD AS CMPN_CD ,
 		A.SITE_CD AS SITE_CD ,
 		A.SITE_CD AS SITE_CD ,
-		A.DONG AS DONG ,
-		A.HSNO AS HSNO ,
-		A.CNTPR_OCPH_NM AS CNTPR_OCPH_NM ,
-		A.CP_NO AS CP_NO ,
+		A.COVEND_ID AS COVEND_ID ,
+		A.CONT_SEQ AS CONT_SEQ ,
+		A.JOB_GB_CD AS JOB_GB_CD ,
+		A.CONT_ID AS CONT_ID ,
+		A.CONT_MOD_ID AS CONT_MOD_ID ,
+		A.MOD_NO AS MOD_NO ,
+		A.PO_DOC_NO AS PO_DOC_NO ,
+		A.CONT_NM AS CONT_NM ,
+		A.CONT_DT AS CONT_DT ,
+		A.COVEND_NM AS COVEND_NM ,
+		A.COVEND_CORP_REG_NO AS COVEND_CORP_REG_NO ,
+		A.CONT_AMT AS CONT_AMT ,
+		A.CONT_SUPPLY_AMT AS CONT_SUPPLY_AMT ,
+		A.CONT_TERM AS CONT_TERM ,
+		TO_CHAR(CONT_START_DT, 'YYYY-MM-DD') AS CONT_START_DT ,
+		TO_CHAR(CONT_END_DT, 'YYYY-MM-DD') AS CONT_END_DT ,
+		A.CONT_GB AS CONT_GB ,
+		A.STATUS_CD AS STATUS_CD ,
+		A.TEMPLATE_CD AS TEMPLATE_CD ,
+		A.TEMPLATE_NM AS TEMPLATE_NM ,
+		A.CHG_CONT_YN AS CHG_CONT_YN ,
+		A.CUR_GB AS CUR_GB ,
+		A.ADJ_GB AS ADJ_GB ,
+		A.RMK_CN AS RMK_CN ,
+		A.CRT_SYS_CD AS CRT_SYS_CD ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		TO_CHAR(WRTE_DT, 'YYYY-MM-DD') AS WRTE_DT ,
 		A.WRTE_PR AS WRTE_PR ,
 		A.WRTE_PR AS WRTE_PR ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
 		TO_CHAR(MDFT_DT, 'YYYY-MM-DD') AS MDFT_DT ,
@@ -76,10 +160,31 @@
 	) VALUES (
 	) VALUES (
 		#{cmpnCd} ,
 		#{cmpnCd} ,
 		#{siteCd} ,
 		#{siteCd} ,
-		#{dong} ,
-		#{hsno} ,
-		#{cntprOcphNm} ,
-		#{cpNo} ,
+		#{covendId} ,
+		#{contSeq} ,
+		#{jobGbCd} ,
+		#{contId} ,
+		#{contModId} ,
+		#{modNo} ,
+		#{poDocNo} ,
+		#{contNm} ,
+		#{contDt} ,
+		#{covendNm} ,
+		#{covendCorpRegNo} ,
+		#{contAmt} ,
+		#{contSupplyAmt} ,
+		#{contTerm} ,
+		SYSDATE ,
+		SYSDATE ,
+		#{contGb} ,
+		#{statusCd} ,
+		#{templateCd} ,
+		#{templateNm} ,
+		#{chgContYn} ,
+		#{curGb} ,
+		#{adjGb} ,
+		#{rmkCn} ,
+		#{crtSysCd} ,
 		SYSDATE ,
 		SYSDATE ,
 		#{wrtePr} ,
 		#{wrtePr} ,
 		SYSDATE ,
 		SYSDATE ,
@@ -87,17 +192,38 @@
 	)
 	)
 	]]></insert>
 	]]></insert>
 
 
-	<!-- 하자) 현장 동호수 - Update -->
-	<update id="updateTcsSiteDhs" parameterType="sample.dto.TcsSiteDhsVo"><![CDATA[
+	<!-- 하자)현장업체계약 - Update -->
+	<update id="updateTcsSiteTrade" parameterType="sample.dto.TcsSiteTradeVo"><![CDATA[
 	UPDATE 
 	UPDATE 
-		TCS_SITE_DHS
+		TCS_SITE_TRADE
 	SET
 	SET
 		CMPN_CD = #{cmpnCd} ,
 		CMPN_CD = #{cmpnCd} ,
 		SITE_CD = #{siteCd} ,
 		SITE_CD = #{siteCd} ,
-		DONG = #{dong} ,
-		HSNO = #{hsno} ,
-		CNTPR_OCPH_NM = #{cntprOcphNm} ,
-		CP_NO = #{cpNo} ,
+		COVEND_ID = #{covendId} ,
+		CONT_SEQ = #{contSeq} ,
+		JOB_GB_CD = #{jobGbCd} ,
+		CONT_ID = #{contId} ,
+		CONT_MOD_ID = #{contModId} ,
+		MOD_NO = #{modNo} ,
+		PO_DOC_NO = #{poDocNo} ,
+		CONT_NM = #{contNm} ,
+		CONT_DT = #{contDt} ,
+		COVEND_NM = #{covendNm} ,
+		COVEND_CORP_REG_NO = #{covendCorpRegNo} ,
+		CONT_AMT = #{contAmt} ,
+		CONT_SUPPLY_AMT = #{contSupplyAmt} ,
+		CONT_TERM = #{contTerm} ,
+		CONT_START_DT = SYSDATE ,
+		CONT_END_DT = SYSDATE ,
+		CONT_GB = #{contGb} ,
+		STATUS_CD = #{statusCd} ,
+		TEMPLATE_CD = #{templateCd} ,
+		TEMPLATE_NM = #{templateNm} ,
+		CHG_CONT_YN = #{chgContYn} ,
+		CUR_GB = #{curGb} ,
+		ADJ_GB = #{adjGb} ,
+		RMK_CN = #{rmkCn} ,
+		CRT_SYS_CD = #{crtSysCd} ,
 		WRTE_DT = SYSDATE ,
 		WRTE_DT = SYSDATE ,
 		WRTE_PR = #{wrtePr} ,
 		WRTE_PR = #{wrtePr} ,
 		MDFT_DT = SYSDATE ,
 		MDFT_DT = SYSDATE ,
@@ -105,18 +231,18 @@
 	WHERE
 	WHERE
 		CMPN_CD = #{cmpnCd} AND
 		CMPN_CD = #{cmpnCd} AND
 		SITE_CD = #{siteCd} AND
 		SITE_CD = #{siteCd} AND
-		DONG = #{dong} AND
-		HSNO = #{hsno}
+		COVEND_ID = #{covendId} AND
+		CONT_SEQ = #{contSeq}
 	]]></update>
 	]]></update>
 
 
-	<!-- 하자) 현장 동호수 - Delete -->
-	<delete id="deleteTcsSiteDhs" parameterType="sample.dto.TcsSiteDhsVo"><![CDATA[
+	<!-- 하자)현장업체계약 - Delete -->
+	<delete id="deleteTcsSiteTrade" parameterType="sample.dto.TcsSiteTradeVo"><![CDATA[
 	DELETE 
 	DELETE 
-		TCS_SITE_DHS
+		TCS_SITE_TRADE
 	WHERE
 	WHERE
 		CMPN_CD = #{cmpnCd} AND
 		CMPN_CD = #{cmpnCd} AND
 		SITE_CD = #{siteCd} AND
 		SITE_CD = #{siteCd} AND
-		DONG = #{dong} AND
-		HSNO = #{hsno}
+		COVEND_ID = #{covendId} AND
+		CONT_SEQ = #{contSeq}
 	]]></delete>
 	]]></delete>
 </mapper>
 </mapper>

+ 15 - 15
mobile-src/docs/DB_SQLMapper.java

@@ -3,51 +3,51 @@ package sample.persistence;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Mapper;
 import java.util.List;
 import java.util.List;
 
 
-import sample.dtoTcsSiteDhsVo;
+import sample.dtoTcsSiteTradeVo;
 
 
 /**
 /**
- * 하자) 현장 동호수 Mapper
- * fileName : TcsSiteDhsMapper.java
+ * 하자)현장업체계약 Mapper
+ * fileName : TcsSiteTradeMapper.java
  *
  *
  * @author outmind0@gmail.com
  * @author outmind0@gmail.com
- * @since 2022-10-27
+ * @since 2022-10-28
  */
  */
 @Mapper
 @Mapper
-public interface TcsSiteDhsMapper {
+public interface TcsSiteTradeMapper {
 
 
 	/**
 	/**
-	 * 하자) 현장 동호수 - List
+	 * 하자)현장업체계약 - List
 	 * @param vo
 	 * @param vo
 	 * @return 
 	 * @return 
 	 */
 	 */
-	List<TcsSiteDhsVo> selectTcsSiteDhsList(TcsSiteDhsVo vo);
+	List<TcsSiteTradeVo> selectTcsSiteTradeList(TcsSiteTradeVo vo);
 
 
 	/**
 	/**
-	 * 하자) 현장 동호수 - View
+	 * 하자)현장업체계약 - View
 	 * @param vo
 	 * @param vo
 	 * @return 
 	 * @return 
 	 */
 	 */
-	TcsSiteDhsVo selectTcsSiteDhsView(TcsSiteDhsVo vo);
+	TcsSiteTradeVo selectTcsSiteTradeView(TcsSiteTradeVo vo);
 
 
 	/**
 	/**
-	 * 하자) 현장 동호수 - Insert
+	 * 하자)현장업체계약 - Insert
 	 * @param vo
 	 * @param vo
 	 * @return 
 	 * @return 
 	 */
 	 */
-	void insertTcsSiteDhs(TcsSiteDhsVo vo);
+	void insertTcsSiteTrade(TcsSiteTradeVo vo);
 
 
 	/**
 	/**
-	 * 하자) 현장 동호수 - Update
+	 * 하자)현장업체계약 - Update
 	 * @param vo
 	 * @param vo
 	 * @return 
 	 * @return 
 	 */
 	 */
-	void updateTcsSiteDhs(TcsSiteDhsVo vo);
+	void updateTcsSiteTrade(TcsSiteTradeVo vo);
 
 
 	/**
 	/**
-	 * 하자) 현장 동호수 - Delete
+	 * 하자)현장업체계약 - Delete
 	 * @param vo
 	 * @param vo
 	 * @return 
 	 * @return 
 	 */
 	 */
-	void deleteTcsSiteDhs(TcsSiteDhsVo vo);
+	void deleteTcsSiteTrade(TcsSiteTradeVo vo);
 
 
 }
 }

+ 117 - 12
mobile-src/docs/DB_SQLVo.java

@@ -4,15 +4,15 @@ import lombok.Getter;
 import lombok.Setter;
 import lombok.Setter;
 
 
 /**
 /**
- * 하자) 현장 동호수 Vo
- * fileName : TcsSiteDhsVo.java
+ * 하자)현장업체계약 Vo
+ * fileName : TcsSiteTradeVo.java
  *
  *
  * @author outmind0@gmail.com
  * @author outmind0@gmail.com
- * @since 2022-10-27
+ * @since 2022-10-28
  */
  */
 @Getter
 @Getter
 @Setter
 @Setter
-public class TcsSiteDhsVo {
+public class TcsSiteTradeVo {
 
 
 	/**
 	/**
 	 *회사 코드
 	 *회사 코드
@@ -25,24 +25,129 @@ public class TcsSiteDhsVo {
 	 private String siteCd;
 	 private String siteCd;
 
 
 	/**
 	/**
-	 *
+	 *협력업체 ID
 	 */
 	 */
-	 private String dong;
+	 private Integer covendId;
 
 
 	/**
 	/**
-	 *호수
+	 *계약순번
 	 */
 	 */
-	 private String hsno;
+	 private Integer contSeq;
 
 
 	/**
 	/**
-	 *계약 입주 자
+	 *협력업체유형코드[CS004]
 	 */
 	 */
-	 private String cntprOcphNm;
+	 private String jobGbCd;
 
 
 	/**
 	/**
-	 *핸드폰 번호
+	 *계약 번호
 	 */
 	 */
-	 private String cpNo;
+	 private String contId;
+
+	/**
+	 *변경 계약번호
+	 */
+	 private String contModId;
+
+	/**
+	 *변경 계약차수
+	 */
+	 private String modNo;
+
+	/**
+	 *발주 번호
+	 */
+	 private String poDocNo;
+
+	/**
+	 *계약 명
+	 */
+	 private String contNm;
+
+	/**
+	 *계약 일자
+	 */
+	 private String contDt;
+
+	/**
+	 *업체 명
+	 */
+	 private String covendNm;
+
+	/**
+	 *업체 사업자번호
+	 */
+	 private String covendCorpRegNo;
+
+	/**
+	 *계약 금액
+	 */
+	 private Integer contAmt;
+
+	/**
+	 *공급 금액
+	 */
+	 private Integer contSupplyAmt;
+
+	/**
+	 *계약 기간
+	 */
+	 private String contTerm;
+
+	/**
+	 *계약 시작일
+	 */
+	 private String contStartDt;
+
+	/**
+	 *계약 만료일
+	 */
+	 private String contEndDt;
+
+	/**
+	 *계약 구분
+	 */
+	 private String contGb;
+
+	/**
+	 *계약 상태
+	 */
+	 private String statusCd;
+
+	/**
+	 *계약서 코드
+	 */
+	 private String templateCd;
+
+	/**
+	 *계약서 코드명
+	 */
+	 private String templateNm;
+
+	/**
+	 *변경 계약 여부
+	 */
+	 private String chgContYn;
+
+	/**
+	 *통화 단위
+	 */
+	 private String curGb;
+
+	/**
+	 *정산 구분
+	 */
+	 private String adjGb;
+
+	/**
+	 *비고_내용
+	 */
+	 private String rmkCn;
+
+	/**
+	 *생성시스템코드
+	 */
+	 private String crtSysCd;
 
 
 	/**
 	/**
 	 *작성 일자
 	 *작성 일자

File diff suppressed because it is too large
+ 0 - 0
mobile-src/docs/api/classes/ApiService.html


+ 28 - 11
mobile-src/docs/translate-en.json

@@ -1,13 +1,30 @@
 {
 {
-	"BTN_ADDHOME": "Add Home",
-	"BTN_CANCEL": "Cancellation",
-	"BTN_CLEAR": "Removal",
-	"BTN_CLOSE": "Close",
-	"DEFT": {
-		"BTN_ATTACH_PHOTO": "Photo attachment",
-		"BTN_DELETE_SELECTED": "Delete Selection",
-		"BTN_DOWNLOAD_SELECTED": "Download",
-		"BTN_PHOTO_AFTER": "Post-work Pictures",
-		"BTN_PHOTO_BEFORE": "Pre-work Pictures"
-	}
+	"TIT_AS_PAGE": "Hi, good morning.",
+	"TIT_DEPTDONE": "Check for defect fee",
+	"TIT_DEPTDONEVIEW": "Details of completion",
+	"TIT_DEPTING": "Defect handling",
+	"TIT_DEPTINGVIEW": "Details of defects",
+	"TIT_DEPTMANG": "Defect operation instruction",
+	"TIT_DEPTMANGVIEW": "Defect operation instruction details",
+	"TIT_DEPTQUE": "Defect inquiry and completion processing",
+	"TIT_DEPTQUEVIEW": "Details of defect inquiry and completion processing",
+	"TIT_ERROR": "An error has occurred.",
+	"TIT_FINDID": "Find ID",
+	"TIT_FINDPW": "Find Password",
+	"TIT_HOME": "The main",
+	"TIT_FINDSITE": "Search for defect companies",
+	"TIT_LOGIN": "Login",
+	"TIT_NOTICE": "Notification",
+	"TIT_PO_PAGE": "Employees",
+	"TIT_ROOMAPP": "Approval for reservation of meeting room",
+	"TIT_ROOMREV": "Reservation of the conference room",
+	"TIT_ROOMREV_WRITE": "Register Room Reservation",
+	"TIT_ROOMREVVIEW": "Reserving a Meeting Room",
+	"TIT_TEST": "Testing",
+	"TIT_MAPVIEW": "View Site Map",
+	"TIT_ADDRESS": "Field Address Book",
+	"TIT_PUSHDEV": "Test Mobile Alerts",
+	"TIT_SAMPLE": "Design Guide",
+	"TIT_SERVER_ERROR": "Error",
+	"TIT_SETTING": "setting"
 }
 }

+ 28 - 11
mobile-src/docs/translate-ko.json

@@ -1,13 +1,30 @@
 {
 {
-	"BTN_ADDHOME": "홈 추가하기",
-	"BTN_CANCEL": "취소",
-	"BTN_CLEAR": "제거",
-	"BTN_CLOSE": "닫기",
-	"DEFT": {
-		"BTN_ATTACH_PHOTO": "사진첨부",
-		"BTN_DELETE_SELECTED": "선택삭제",
-		"BTN_DOWNLOAD_SELECTED": "다운로드",
-		"BTN_PHOTO_AFTER": "작업 후 사진",
-		"BTN_PHOTO_BEFORE": "작업 전 사진"
-	}
+	"TIT_AS_PAGE": "안녕하세요 좋은 아침입니다.",
+	"TIT_DEPTDONE": "하자완료조회",
+	"TIT_DEPTDONEVIEW": "완료상세내용",
+	"TIT_DEPTING": "하자처리",
+	"TIT_DEPTINGVIEW": "하자상세내용",
+	"TIT_DEPTMANG": "하자작업지시",
+	"TIT_DEPTMANGVIEW": "하자작업지시상세",
+	"TIT_DEPTQUE": "하자조회및완료처리",
+	"TIT_DEPTQUEVIEW": "하자조회및완료처리상세",
+	"TIT_ERROR": "오류가 발생하였습니다.",
+	"TIT_FINDID": "아이디 찾기",
+	"TIT_FINDPW": "비밀번호 찾기",
+	"TIT_HOME": "메인",
+	"TIT_FINDSITE": "하자 업체 검색",
+	"TIT_LOGIN": "로그인",
+	"TIT_NOTICE": "알림",
+	"TIT_PO_PAGE": "임직원",
+	"TIT_ROOMAPP": "회의실예약승인",
+	"TIT_ROOMREV": "회의실예약",
+	"TIT_ROOMREV_WRITE": "회의실 예약 등록",
+	"TIT_ROOMREVVIEW": "회의실 예약",
+	"TIT_TEST": "테스트",
+	"TIT_MAPVIEW": "현장 지도보기",
+	"TIT_ADDRESS": "현장 주소록",
+	"TIT_PUSHDEV": "모바일 알림 테스트",
+	"TIT_SAMPLE": "디자인 가이드",
+	"TIT_SERVER_ERROR": "오류",
+	"TIT_SETTING": "설정"
 }
 }

+ 1 - 1
mobile-src/docs/translate.json

@@ -1,5 +1,5 @@
 {
 {
-	"TIT_AS_PAGE": "협력업체",
+	"TIT_AS_PAGE": "안녕하세요 좋은 아침입니다.",
 	"TIT_DEPTDONE": "하자완료조회",
 	"TIT_DEPTDONE": "하자완료조회",
 	"TIT_DEPTDONEVIEW": "완료상세내용",
 	"TIT_DEPTDONEVIEW": "완료상세내용",
 	"TIT_DEPTING": "하자처리",
 	"TIT_DEPTING": "하자처리",

+ 5 - 3
mobile-src/scripts/db2mapper.js

@@ -365,7 +365,7 @@ showLogo(() => {
                     tableInfo.pkeys = [];
                     tableInfo.pkeys = [];
                     lines.forEach((line,idx) => {
                     lines.forEach((line,idx) => {
                         var found = null;
                         var found = null;
-                        if (line.startsWith('CREATE TABLE ') && (found = line.match(/([A-Z_]+)[ \(]*$/))) {
+                        if (line.startsWith('CREATE TABLE ') && (found = line.match(/([A-Z_]+)[ \(]*[\r\n]*$/))) {
                             if (tableInfo.name != '') {
                             if (tableInfo.name != '') {
                                 throw 'Cannot use in muti-table!!';
                                 throw 'Cannot use in muti-table!!';
                             }
                             }
@@ -390,12 +390,14 @@ showLogo(() => {
                             }
                             }
                         } else if (line.startsWith('\t') && (found = line.match(/([A-Z][A-Z0-9_]+) (TIMESTAMP|VARCHAR|NUMBER|CHAR|DATE)/))) {
                         } else if (line.startsWith('\t') && (found = line.match(/([A-Z][A-Z0-9_]+) (TIMESTAMP|VARCHAR|NUMBER|CHAR|DATE)/))) {
                             tableInfo.colunms.push({
                             tableInfo.colunms.push({
-                                name : found[1],
-                                type : found[2],
+                                name : found[1] || '',
+                                type : found[2] || '',
                                 comments : 'Unknown'
                                 comments : 'Unknown'
                             });
                             });
                         }
                         }
                     });
                     });
+
+                    console.log(tableInfo);
                     
                     
                     runFormatProcess(folderName,formatList, function(cnt) {
                     runFormatProcess(folderName,formatList, function(cnt) {
                         console.log('Success Format '.green + ' - ' + (cnt + " cnt").red);
                         console.log('Success Format '.green + ' - ' + (cnt + " cnt").red);

+ 1 - 1
mobile-src/src/public-api.ts

@@ -4,4 +4,4 @@ export * from './services/common.service';
 export * from './services/api.service';
 export * from './services/api.service';
 export * from './services/shared.service';
 export * from './services/shared.service';
 export * from './services/code.service';
 export * from './services/code.service';
-export * from './services/utils.service';
+export * from './services/utils.service';

+ 8 - 0
mobile-src/src/services/api.service.ts

@@ -3,6 +3,14 @@ import { ILogerService, ConsoleLogType } from './common.interface';
 
 
 /**
 /**
  * Api service
  * Api service
+ * 
+ * Axios 를 이용하여 서버와 통신을 하는 서비스입니다
+ * 
+ * ```ts
+ * apiService.get("api/codes/AS001").then(result => {
+ * 	console.log(result);
+ * })
+ * ```
  */
  */
 export class ApiService implements ILogerService {
 export class ApiService implements ILogerService {
 	/**
 	/**

+ 11 - 0
src/main/webapp/ubi4/license/License_PROD.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="EUC-KR"?>
+<UbiReport-License>
+  <!--Copyright (c) 2002 by UbiDecision co.,Ltd. All Rights Reserved. UbiReport License-->
+  <License Product="UbiGateway" Product-Version="4.0" eform="false" report="true" Issuer="UbiDecision" IssueDate="2022-08-25" Ip="SGCPORTAL-WEB" Type="Registration" Vesrion-Type="Basic" Expiration="" Kind="00100">
+    <Key>7a76473831696c653330702f6b6470354756763337796f6152555530333372730a444e6b74672b536e77375674333372326431452b796d5951337479305575656f4e34706762326c6154687a3967592f4f5331315343365a4e69487359504d695236646e665767625973526b63522f6662366c5231682b624777537777393147775053774b44713442645435716a57467466594b42764f34664869514a42724973554a434b6f487871574d52334350306467577431684f77546f45374934324165626f526767534d385446317332556e41624175474a5871445653617270424859613339662f31413671446e63525263436773644a4f49585a644b70564c4a5074502b706e325966314837343d</Key>
+  </License>
+  <License Product="UbiGateway" Product-Version="4.0" eform="false" report="true" Issuer="UbiDecision" IssueDate="2022-08-25" Ip="SGCPORTAL-DEV" Type="Registration" Vesrion-Type="Basic" Expiration="" Kind="00100">
+    <Key>366c46627641754a434c447141674a387767306674682f306d797072764a74690a797856506f63526377544f436b37454844506975703837702b513643335547413162525334646f6e794a63524d696b62354637632f514c5954477571764b37337173584c764e5a5644334144775a4d53743651526354727a32484f35587344467348536167437777393675736d3931504f64743248766a426a65746a776f6952654d56506871414e306c6978724d62496444652b39454e6d6e64586d64436e4c735931383747372b6b6858674a575145426c41536559434b344d5650382f716137492b5a376d5363312b6c323850736c2f677a76516576476f694a6f634a57774d5462765a4c307375536f3d</Key>
+  </License>
+</UbiReport-License>
+

Some files were not shown because too many files changed in this diff