using System; using System.Collections.Generic; using System.Text; namespace NP.Model { /// /// 환경설정 /// [Serializable] public class SystemConfig : BaseModel { public int ConfigNo { get; set; } /// /// project수정권한 0: 모두, 1: 담당자(pm, coworker, developer), 2: 관리자(usertype==34) /// public int ProjectModify { get; set; } /// /// 최소추천이력서수 /// public int FinalResumeCount { get; set; } } [Serializable] public partial class Menu : BaseModel { /// /// 메뉴코드 /// public int menuno { get; set; } /// /// 메뉴명 /// public String menuname { get; set; } /// /// 상위메뉴코드 /// public int? pmenuno { get; set; } public int? ppmenuno { get; set; } /// /// 상위메뉴명 /// public String pmenuname { get; set; } /// /// 메뉴URL 최상위 루트부터 입력 ex) /Account/Index /// public String menuurl { get; set; } /// /// 메뉴(depth) 0 > 1 > 2 > …, 0그룹(Back, Front) /// public int menulevel { get; set; } /// /// 순서 /// public int menuorder { get; set; } /// /// 3단계메뉴 숨김, 등록 메뉴 등 (0: 안숨김, 1: 숨김메뉴) /// public int ishid { get; set; } } public partial class Menu { /// /// 권한그룹코드 /// public int authno { get; set; } /// /// 권한그룹명 /// public String authname { get; set; } /// /// 31: 컨설턴트, 32: DB담당, 33: 회계담당, 34: 통합관리자 /// public int usertype { get; set; } /// /// 메뉴Rout ex) /0/0/0/1/2/3/ : 0은 빈값과 같음 /상위메뉴/하위메뉴/ /// public String menurout { get; set; } public String menunos { get; set; } public int isdel { get; set; } } /*엑셀 다운로드 기록*/ public partial class Excellog { public int edno { get; set; } public int userno { get; set; } public string userid { get; set; } public string username { get; set; } public DateTime actiontime { get; set; } public string position { get; set; } public string comment { get; set; } public string userip { get; set; } } /*엑셀을 다운로드 기록 끝*/ [Serializable] public class AuthGroup : BaseModel { /// /// 권한그룹 /// public int authno { get; set; } /// /// 권한그룹명 /// public String authname { get; set; } } [Serializable] public class UserAuth : AuthGroup { public int usertype { get; set; } public String usertypename { get; set; } /// /// 0: 매핍안된 데이터, 1: 매핑된 데이터 /// public int ismaped { get; set; } public IList userauths { get; set; } } /// /// 서비스정의 /// [Serializable] public class SVCInfo : BaseModel { /// /// 서비스유형번호 /// public int SVCNo { get; set; } /// /// 서비스유형명 /// public String SVCName { get; set; } /// /// 응시제한인원 /// public int LimitTest { get; set; } /// /// 첨부이미지제한 0: 불가, 1: 가능 /// public int LimitFile { get; set; } /// /// 첨부이미지용량제한 단위: GigaByte /// public int LimitFileSize { get; set; } /// /// 동시접속제한인원 최근 1분간 접속요청한 회원 수 기준 /// public int LimitRealTime { get; set; } /// /// 서버사용형태 0: 공용서버, 1: 독립서버 /// public int ServerType { get; set; } /// /// 통계제공형태 0: 기본제공, 1: BigData기반고급통계제공 /// public int StatisticType { get; set; } } /// /// 로그 /// public class ActLog :BaseModel { /// /// 유형 10:사용자목록조회,20:사용자정보조회,30:사용자정보수정,40:사용자권한입장,41:교강사권한입장, 50: 고객사, 51: 고객사담당자정보수정, 60: 결제상세정보조회, 70: 배송상세정보조회, 80: 시험정보조회, 90: 첨부파일 /// public int logtype {get;set;} public String logtypename { get { switch (logtype) { case 10:return "사용자목록조회"; case 20: return "사용자정보조회"; case 30: return "사용자정보수정"; case 40: return "사용자권한입장"; case 41: return "교/강사권한입장"; case 50: return "고객사정보조회"; case 51: return "고객사담당자정보수정"; case 60: return "결제상세정보조회"; case 70: return "배송상세정보조회"; case 80: return "시험정보조회"; default: return "-"; } } } /// 11: 수강생목록, 12: 교강사목록, 13: 운영자목록, 21: 사용자,31: 고객사, 32: 고객사담당자, 41: 결제정보, 51: 입장, 91: 파일다운로드, 92: 파일삭제 /// /// public int logtarget { get; set; } /// /// users.userno, assign.asno, assignman.asmno, filegroup.fgno, fileinfo.fileno /// public Int64? userno { get; set; } /// /// 100 로그상세내용 김신(userid) /// public String logdata {get;set;} public String cnoid { get; set; } public String userid { get; set; } public String username { get; set; } } ///// ///// 개인정보접근이력 ///// //[Serializable] //public class PrivateView : BaseModel //{ // /// // /// 접근유형번호 // /// // public int ViewNo { get; set; } // /// // /// 접근유형코드 (comcode.cgroup:PRIVATE) // /// // public int? CCode { get; set; } // public String CName { get; set; } // /// // /// 0: 목록, 1: 상세 // /// // public int ViewTarget { get; set; } // public String ViewTargetName // { // get // { // return this.ViewTarget == 0 ? "목록" : "상세"; // } // } // /// // /// 접근자 users.userno // /// // public Int64 UserNo { get; set; } // /// // /// 계정유형 comcode.cgroup:USERTYPE // /// // public int UserType { get; set; } // /// // /// 계정유형명(시점의 이름) // /// // public String UserTypeName { get; set; } // /// // /// 권한코드 authgroup.authno를 콤마(,)로 연결 // /// // public String AuthNos { get; set; } // /// // /// 권한명 authgroup.authno를 콤마(,)로 연결(시점의 이름) // /// // public String AuthNames { get; set; } // /// // /// 접근일시 // /// // public DateTime ViewTime { get; set; } // public String ViewTimeM // { // get // { // return ViewTime.ToString("yyyy-MM-dd HH:mm"); // } // } // /// // /// 접근작업 0: 조회, 1: 접근, 2: 수정, 3: 삭제, 4: 해지 // /// // public int ViewProcess { get; set; } // public String ViewProcessName // { // get // { // return this.ViewProcess == 0 ? "조회" : ViewProcess == 1 ? "접근" : ViewProcess == 2 ? "접근" : ViewProcess == 3 ? "삭제" : ViewProcess == 4 ? "해지" : "-"; // } // } // /// // /// 접근항목 권한명: 운영자, id: sysadmin // /// // public String ViewItem { get; set; } // public String ViewItemText // { // get // { // if (ViewTarget > 0) // { // return "(" + ViewItem + ")"; // } // return ""; // } // } // /// // /// 접근내용 작업데이터 // /// // public String ViewData { get; set; } // public String UserName { get; set; } // public String UserId { get; set; } // public String UserNameId // { // get // { // return this.UserName + "(" + this.UserId + ")"; // } // } //} /// /// 배너관리 /// [Serializable] public class Banner : BaseModel { public int bno { get; set; } /// /// 100 배너제목 /// public String btitle { get; set; } /// /// fkbannerfg 배너이미지 /// public Int64 fgno { get; set; } /// /// 모바일배너이미지 /// public Int64 fgno2 { get; set; } /// /// 100 배너설명 /// public String bdesc { get; set; } /// /// 100 링크 http로시작하면 외부 아니면 내부 /// public String burl { get; set; } /// /// 배너위치 (1:온라인강의메인, 0: 마이페이지) /// public int ismain { get; set; } /// /// 배너순서 /// public int bseq { get; set; } /// /// 공개여부 /// public int isopen { get; set; } } /// /// 팝업관리 /// [Serializable] public class Popup : BaseModel { /// /// 팝업번호 /// public int pno {get;set;} /// /// 100 제목 /// public String ptitle {get;set;} /// /// 내용 /// public String pcontents {get;set;} /// /// 상단좌표 /// public int toppx {get;set;} /// /// 좌측좌표 /// public int leftpx {get;set;} /// /// 너비 /// public int pwidth { get; set; } /// /// 높이 /// public int pheight{ get; set; } /// /// 100 링크주소 http를 포함하여 입력 유도 /// public String purl {get;set;} /// /// z-index /// public int zindex { get; set; } /// /// 여부 0: 비공개, 1: 공개 /// public int isopen {get;set;} } /// /// 페이지관리 /// [Serializable] public class MenuPage : BaseModel{ /// /// 페이지번호 /// public int pno {get;set;} /// /// fkpagepage 부모페이지번호 /// public int? ppno {get;set;} public String ppagename { get; set; } /// /// 메뉴depth 0, 1, 2, 3 /// public int pdepth {get;set;} /// /// 페이지유형 0: 폴더메뉴, 1: HTML, 2: 개발소스, 3: 게시판, 4: 고객사마이페이지공지사항 /// public int pagetype {get;set;} /// /// 게시판 boardmaster.bmno /// public int? bmno { get; set; } /// /// 메뉴순서 /// public int porder {get;set;} /// /// 100 페이지이름 /// public String pagename {get;set;} /// /// 100 페이지설명 /// public String pagedesc {get;set;} /// /// 50 페이지URL /Account/Join /// public String pageurl {get;set;} /// /// 페이지html 에디터 /// public String pagehtml {get;set;} /// /// 메뉴사용여부 0: 숨김, 1: 보임, 2: GNB숨김(pdepth=0), 3: 탭메뉴, 4:팝업, 5: 탭하위메뉴, 6:하위숨김메뉴 /// public int isopen { get; set; } /// /// 메뉴권한 0: 전체, 1:교육생 /// public int usertype { get; set; } public String refcode { get; set; } /// /// 이미지활용코드 대메뉴별이미지구분자 용도 등 /// public String imagecode { get; set; } public String bgtitle { get; set; } public String bgtitle2 { get; set; } public String bgdesc { get; set; } public String bgdesc2 { get; set; } public String topimagecode { get; set; } public bool haschild { get; set; } public int m0 { get; set; } public int m1 { get; set; } public int m2 { get; set; } public int m3 { get; set; } public int m4 { get; set; } } /// /// 권한변경이력 /// [Serializable] public class AuthLog : BaseModel { /// /// 변경유형 0: 사용자유형의 메뉴권한변경, 1: 사용자의 권한유형변경, 2: 사용자권한신규등록 /// public int logtype { get; set; } public String usertypeorgstr { get; set; } public String usertypenewstr { get; set; } public String logtypename { get { if (logtype == 0) { return usertypeorgstr + " 권한을 변경하였습니다."; } else if(logtype == 2) { return usertypeorgstr + "권한을 신규로 저장했습니다."; } else { return usertypeorgstr + " 권한을 " + usertypenewstr + " 권한으로 변경하였습니다."; } } } /// /// 변경/생성된 운영자 /// public int? userno { get; set; } public int? usertypeorg {get;set;} public int? usertypenew { get; set; } public String userid { get; set; } public String username { get; set; } } /// /// 로그인이력 /// [Serializable] public class LoginLog : BaseModel { /// /// 로그번호 /// public Int64 LogNo {get;set;} /// /// fkloginlogadmin 운영자번호 /// public Int64? AdminNo {get;set;} public String AdminName { get; set; } /// /// 접속상황 0: 정상(로그인성공), 1: 정상(외부아이피), 2: 비밀번호오류, 3: 아이디오류, 4: 외부아이피차단, 5: 퇴사자, 6: 사용안함, 7: 크래킹공격 /// public int LoginStatus{get;set;} public String LoginStatusName { get { return LoginStatus == 0 ? "정상(내부)" : LoginStatus == 1 ? "정상(외부)" : LoginStatus == 2 ? "비밀번호오류" : LoginStatus == 3 ? "아이디오류" : LoginStatus == 4 ? "외부아이피차단" : LoginStatus == 5 ? "퇴사자" : LoginStatus == 6 ? "사용안함" : LoginStatus == 7 ? "크래킹공격" : "-"; } } /// /// 50 로그인값들 아이디 등 /// public String LoginData { get; set; } } /// /// ncs /// [Serializable] public class NCS : BaseModel { public int ncsno { get; set; } public String ncsname { get; set; } public String ncscode { get; set; } public int ntno { get; set; } /// /// 표준구분 (0:국가표준) /// public int ntype { get; set; } public String tname { get; set; } public String tcode { get; set; } public int nmno { get; set; } public String mname { get; set; } public String mcode { get; set; } public String macode { get; set; } public int nbno { get; set; } public String bname { get; set; } public String bcode { get; set; } public String bacode { get; set; } public int ndno { get; set; } public String dname { get; set; } public String dcode { get; set; } public String dacode { get; set; } public int nuno { get; set; } public String uname { get; set; } public String ucode { get; set; } public int neno { get; set; } public String ename { get; set; } public String ecode { get; set; } public int ndepth { get; set; } public String ndepthname { get { return ndepth == 0 ? "t" : ndepth == 1 ? "m" : ndepth == 2 ? "b" : ndepth == 3 ? "d" : ndepth == 4 ? "u" : "X"; } } public String pndepthname { get { return ndepth == 0 ? "" : ndepth == 1 ? "t" : ndepth == 2 ? "m" : ndepth == 3 ? "b" : ndepth == 4 ? "d" : "X"; } } public String acode { get; set; } public int pno { get; set; } public int? notno { get; set; } public int isact { get; set; } public IList NCSs { get; set; } } [Serializable] public class PageLog : BaseModel { public int logsite { get; set; } public int? userno { get; set; } public int? menuno { get; set; } public int? pno { get; set; } public String loginfo { get; set; } } }