package kr.co.kihyun.prop;

public class QueryStringList {
	public static String NoticeFileSql="SELECT " +
			"PASSWD, DOC_ID, USER_ID, POPUP_YN, STEP, GROUP_ID, CONTENTS, UPPER_ID, " +
			"VISIT, WRITE_DATE, ATTACHMENTS, REP_LEVEL, TITLE, ID " +
			"FROM MOUMI_BOARD WHERE ID =? ";
	public static String NoticeWithOutFileSql="SELECT " +
			"PASSWD, DOC_ID, USER_ID, POPUP_YN, STEP, GROUP_ID, CONTENTS, UPPER_ID, " +
			"VISIT, WRITE_DATE, REP_LEVEL, TITLE, ID " +
			"FROM MOUMI_BOARD WHERE ID =? ";
	public static String ReportVersionFileSql="SELECT attachments FROM MOUMI_TOT_REPORT_VERSION where id=? ";
	public static String CheckMigulhamSql="SELECT "+
			"   TRIM(DECODE(A.SANC_STTUS_CODE,'1','결재대기', '2', '결재', '3', '병렬결재', '4', '협조', '공람' ) ) AS r1 "+
			" , TRIM(DECODE(B.SANC_PRG_CODE ,'1','예결함','2','미결함','3','기결함','4','협조함','5','삭제함'))as r2 "+
			" , TRIM(DECODE(B.CONFM_SC_CODE, '1','결재대기','2','결재완료')) as r3 "+
			" FROM " +
			"	TN_BCMCFMRT001 A, TN_BCMCFMRT002 B "+
			" WHERE" +
			"	  A.SANC_DOCT_IDNT_VALUE = B.SANC_DOCT_IDNT_VALUE "+
			" AND A.DOCT_KND_CODE = B.DOCT_KND_CODE "+
			" AND A.ORG_CODE = B.ORG_CODE "+
			" AND A.SSUBB_SYS_CODE = B.SSUBB_SYS_CODE "+
			" AND A.SANC_SNO = B.SANC_SNO "+
			" AND A.SCHUL_CRSE_SC_CODE = B.SCHUL_CRSE_SC_CODE "+
			" AND A.DOCT_KND_CODE = 'C21' "+
			" AND A.SANC_STTUS_CODE = '1' "+
			" AND B.SANC_PRG_CODE = '2' "+
			" AND B.CONFM_SC_CODE = '1' "+
			" AND A.SANC_DOCT_IDNT_VALUE  LIKE 'C21|' || ? || '%' " +
			" AND NVL(A.DELT_YN, 'N') = 'N' "+
			" AND NVL(B.DELT_YN, 'N') = 'N' " ;
	public static String SelectReportVersionSql="SELECT "+
			"ID"+
			",REPORT_ID "+
			  ",ACPT_CODE "+
			  ",APPRO "+
			  ",DOC_TYPE "+
			  //",ATTACHMENTS "+
			  ",CURRENT_REPOADM_ID "+
			  ",DATA "+
			  ",DEL_TYPE "+
			  ",DEPT_ID "+
			  ",USER_ID "+
			  ",NOTE "+
			  ",NUM "+
			  ",PRSS "+
			  ",RECOG "+
			  ",REG_DATE "+
			  ",REP_DOC_ID "+
			  ",DOWN_DOC_ID "+
			  ",SUBMIT_DATE "+
			  ",TABLE_NUM "+
			  ",TOT_DATA "+
			  ",DOC_ID "+
			  ",TYPE "+
			  ",MNG_CODE "+
			  ",OWNER_EMAIL "+
			  ",SP_CM_DEC_FU(OWNER_NAME) as OWNER_NAME"+
			  ",OWNER_PHONE "+
			  ",ACPT_DOC_CODE "+
			  ",SECU_YN "+
			  ",MODIFIER_ID "+
			  ",SP_CM_DEC_FU(MODIFIER_NAME) as MODIFIER_NAME"+
			  ",MODIFIER_DEPT_ID "+
			  ",MODIFIER_DEPT_NAME "+
			  " FROM MOUMI_TOT_REPORT_VERSION"+
			  " where REPORT_ID=? ORDER BY ID ";
}
