using System; using System.Collections.Generic; using System.Security.Policy; using System.Text; namespace NP.Model { /// /// 기수 /// [Serializable] public class Term : BaseModel { /// /// 기수키 /// public int tmno {get;set;} /// /// 기수년도 /// public int tyear { get; set; } /// /// 기수 /// public int tseq { get; set; } public String tmname { get { return tyear + "년 " + tseq + "기"; } } /// /// 수강신청 시작 /// public DateTime? rstime {get;set;} /// /// 수강신청 종료 저장 시 23:59:59 추가 /// public DateTime? retime {get;set;} /// /// 학습시작 /// public DateTime? sstime {get;set;} /// /// 학습종료 저장 시 23:59:59 추가 /// public DateTime? setime {get;set;} /// /// 성적처리시작 /// public DateTime? gstime {get;set;} /// /// 성적처리종료 저장 시 23:59:59 추가 /// public DateTime? getime {get;set;} } /// /// 과정/강좌 /// [Serializable] public class CM : BaseModel { /// /// 강좌/과정키, 패키지강좌의 강좌키 /// public int cmno {get;set;} public String cmnos { get; set; } public int orgcmno { get; set; } /// /// 과정여부 0:강좌,1:과정,2:패키지 /// public int ismaster {get;set;} public String ismastername { get { return ismaster == 0 ? "강좌" : ismaster == 1 ? "과정" : ismaster == 2 ? "패키지" : "-"; } } /// /// fkcmcg 과정분류 CG.CGNo /// public int cgno {get;set;} public String cgname { get; set; } public int pcgno { get; set; } public String pcgname { get; set; } /// /// fkcmcm 과정키 cm.cmno /// public int? pcmno {get;set;} public String pcname { get; set; } /// /// 100 과정명 /// public String cname {get;set;} /// /// 100 키워드 /// public String kname { get; set; } /// /// fkcmterm 기수키 term.tmno /// public int? tmno {get;set;} /// /// 기수년도 /// public int tyear { get; set; } /// /// 기수 /// public int tseq { get; set; } public String tmname { get { return tyear < 1 ? "" : (tyear + "년 " + tseq + "기"); } } /// /// 반 /// public int? classno {get;set;} public String cnameclassno { get { return string.Format("{0}({1})", cname, classno); } } /// /// 신청시작 /// public DateTime? rstime {get;set;} /// /// 신청종료 /// public DateTime? retime {get;set;} public int isnewcm { get { return retime == null ? 0 : rstime <= DateTime.Now && rstime.Value.AddDays(7) >= DateTime.Now ? 1 : 0; } } public String retimeymd { get { return retime == null ? "" : retime.Value.ToString("yyyy-MM-dd"); } } public String rsrename { get { return rstime == null && retime == null ? "" : string.Format("{0}~{1}", rstime == null ? "" : rstime.Value.ToString("yyyy-MM-dd"), retime == null ? "" : retime.Value.ToString("yyyy-MM-dd")); } } public String rsretimeToDay { get { return rstime == null && retime == null ? "" : string.Format("{0}", Convert.ToDateTime(retime).DayOfYear - Convert.ToDateTime(rstime).DayOfYear); } } public int isrequesting { get { return retime == null || rstime == null ? 0 : rstime.Value < DateTime.Now && retime.Value > DateTime.Now ? 1 : 0; } } /// /// 학습시작 /// public DateTime? sstime {get;set;} public String sstimeymd { get { return sstime == null ? "" : sstime.Value.ToString("yyyy-MM-dd"); } } public String sstimeymd2 { get { return sstime == null ? "" : sstime.Value.ToString("yyyy.MM.dd"); } } public String ssrename { get { return sstime == null && setime == null ? "" : string.Format("{0}~{1}", sstime == null ? "" : sstime.Value.ToString("yyyy-MM-dd"), setime == null ? "" : setime.Value.ToString("yyyy-MM-dd")); } } public String ssretimeToDay { get { return sstime == null && setime == null ? "" : string.Format("{0}", Convert.ToDateTime(setime).DayOfYear - Convert.ToDateTime(sstime).DayOfYear); } } /// /// 학습종료 /// public DateTime? setime {get;set;} public String setimeymd { get { return setime == null ? "" : setime.Value.ToString("yyyy-MM-dd"); } } public String setimeymd2 { get { return setime == null ? "" : setime.Value.ToString("yyyy.MM.dd"); } } public int ssseterm { get { return sstime == null || setime == null ? 0 : (Convert.ToInt32((setime.Value - sstime.Value).TotalDays) + 1); } } public String sssename { get { return sstime == null && setime == null ? "" : string.Format("{0}~{1}", sstime == null ? "" : sstime.Value.ToString("yy.MM.dd"), setime == null ? "" : setime.Value.ToString("yy.MM.dd")); } } public String sssename2 { get { return sstime == null && setime == null ? "" : string.Format("{0}~{1}", sstime == null ? "" : sstime.Value.ToString("yyyy-MM-dd"), setime == null ? "" : setime.Value.ToString("yyyy-MM-dd")); } } public String sssename3 { get { return sstime == null && setime == null ? "" : string.Format("{0}~{1}", sstime == null ? "" : sstime.Value.ToString("yyyy.MM.dd"), setime == null ? "" : setime.Value.ToString("yyyy.MM.dd")); } } /// /// 성적처리시작 /// public DateTime? gstime {get;set;} /// /// 성적처리종료 /// public DateTime? getime {get;set;} public String getimeymd { get { return getime == null ? "" : getime.Value.ToString("yyyy-MM-dd"); } } /// /// 강의유형 0: 온라인, 1: 오프라인, 2: 혼합(온+오프) /// public int cshape {get;set;} public String cshapename { get { return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; } } /// /// 회원수강료 /// public int infee {get;set;} /// /// 비회원수강료 /// public int outfee {get;set;} public int fee { get; set; } /// /// 정원 0: 제한없음 /// public int quota {get;set;} public String quotastr { get { return quota == 0 ? "제한없음" : quota + "명"; } } /// /// 과정소개/패키지메모 에디터 /// public String introhtml {get;set;} /// /// 학습대상 에디터 /// public String targethtml {get;set;} /// /// 학습목표 에디터 /// public String goalhtml {get;set;} /// /// 학습내용 에디터 /// public String contenthtml {get;set;} /// /// 200 학습장소 오프라인강좌전용 comcode.cgroup=studyplace /// public int? studyplace { get; set; } public String studyplacename { get; set; } /// /// 학습시간 단위: Hour /// public float studytime {get;set;} /// /// fkcmcc 자격증 ComCode.CGroup=Cert /// public int? certcc {get;set;} /// /// fkcmcc2 급수 ComCode.CGroup=CertGrade /// public int? certgradecc {get;set;} public String certgradeccname { get; set; } /// /// 100 추천직무 ComCode.CGroup=Job, 콤마로분리 /// public String jobcc {get;set;} /// /// 추천직급 0:사원,1:대리급,2:과장급 /// public String jobpositiongrade {get;set;} /// /// 난이도 0:입문,1:기초,2:초급,3:중급 /// public int? difficulty {get;set;} public String difficultyname { get { return difficulty == 0 ? "입문" : difficulty == 1 ? "기초" : difficulty == 2 ? "중급" : difficulty == 3 ? "고급" : "-"; } } /// /// 환급여부 0:환급아님,1:환급 /// public int isrefund {get;set;} /// /// 순차학습방식 여부 /// public int isseq { get; set; } public String usernos { get; set; } public String bknos { get; set; } public String cmnospre { get; set; } public String cmnosnext { get; set; } public String ncsnos { get; set; } /// /// 패키지키 cm.cmno fkcmpccm /// public int pcno { get; set; } /// /// 순서 /// public int dseq { get; set; } /// /// 회원가 패키지생성시점 /// public int orginfee { get; set; } /// /// 비회원가 패키지생성시점 /// public int orgoutfee { get; set; } /// /// 할인율 /// public int drate { get; set; } public IList Ds { get; set; } public int countlect { get; set; } public int lectstatus { get; set; } public int countstandby { get; set; } public int countcomplete { get; set; } public int countnoresult { get; set; } public int isjoin { get; set; } public int isrequested { get; set; } public int ispre { get; set; } public String cgcode { get; set; } public String pcgcode { get; set; } public int isbig { get; set; } public String tasteurl { get; set; } public String tasteurl2 { get { return string.IsNullOrEmpty(tasteurl) ? isbig == 1 ? "/img/online/fair_sample01.jpg" : "/img/main/main_edu_thumb02.jpg" : (NP.Model.Base.Files+ tasteurl); } } public Int64 cmino { get; set; } public String tasteurlpc { get; set; } public String tasteurlmobile { get; set; } /// /// 공문증빙파일 /// public Int64? fgnocm { get; set; } public int countsuccess { get; set; } public int countstanbypay { get; set; } public int countstanbydraw { get; set; } /// /// 기술인분류 /// public String typeman { get; set; } public String typemans { get; set; } /// /// 교육목적 /// public String typeedu { get; set; } public String typeedus { get; set; } /// /// 등급 /// public String typegrade { get; set; } public String typegrades { get; set; } /// /// 직무분야 /// public String typejob { get; set; } public String typejobs { get; set; } /// /// 집합교육출석필수 /// public int? isoffabs { get; set; } /// /// 이수증발급여부 /// public int? iscertificate { get; set; } public int? lectcnt { get; set; } public String applicableCM { get; set; } public int? standbyPerson { get; set; } /// /// 출석수료기준 /// public int attendcut { get; set; } /// /// 시험수료기준 /// public int finalcut { get; set; } public String username { get; set; } public Int64 lectnocheck { get; set; } public int ischkatt { get; set; } } [Serializable] public class CMInning : BaseModel { /// /// 회차키 /// public Int64 cmino { get; set; } /// /// fkcminningcm 과명키 cm.cmno /// public int cmno {get;set;} /// /// 주차 /// public int week {get;set;} /// /// 회차 /// public int iseq {get;set;} /// /// 학습방식 0:오프라인,1:온라인 /// public int isonline {get;set;} public String tasteurl { get; set; } public String isonlinename { get { return isonline == 0 ? "오프라인" : "온라인"; } } public String isonlinename2 { get { return isonline == 0 ? "OFF" : "ON"; } } /// /// 200 강의주제 /// public String ititle {get;set;} /// /// 500 강의내용 오프라인전용 /// public String icontent {get;set;} /// /// 학습시점 오프라인전용 , 1 ~ 365 /// public int? iday {get;set;} /// /// 시작시간 오프라인전용, 0011 0시11분 /// public String ist {get;set;} /// /// 종료시간 오프라인전용, 0930 9시30분 /// public String iet {get;set;} public Int64? fgnotf { get; set; } /// /// fkcminningct 강의콘텐츠 ct.ctno /// public int? ctno {get;set;} public String ctname { get; set; } /// /// 맛보기여부 0:아님,1:맛보기 /// public int istaste {get;set;} /// /// 온라인학습시간(분) /// public int sttime { get; set; } /// /// 출석인정시간 단위: minute 0: 진입 시 출석인정(중간출석사용안함), 공경연은 출석인정 필수입력 /// public int atime {get;set;} public String atimename { get { return isonline == 1 ? string.Format("{0}분", atime) : "-"; } } /// /// 중간출석팝업시작 단위: minute 0: 중간출석사용안함 /// public int mstime {get;set;} /// /// 중간출석팝업종료 단위: minute 0: 중간출석사용안함 /// public int metime {get;set;} /// /// fkcminningu 강사 users.userno cmprofessor /// public int userno {get;set;} public String username { get; set; } /// /// fkcminningfg 오프라인출결근거자료 filegroup.fgno /// public Int64? fgno {get;set;} public IList Ds { get; set; } /// /// 기수키 /// public int tmno { get; set; } /// /// 기수년도 /// public int tyear { get; set; } /// /// 기수 /// public int tseq { get; set; } public String tmname { get { return tyear + "년 " + tseq + "기"; } } public String cname { get; set; } /// /// 반 /// public int? classno { get; set; } public String cnameclassno { get { return string.Format("{0}({1})", cname, classno); } } public DateTime idate { get; set; } public String idateymd { get { return idate.ToString("yyyy-MM-dd"); } } /// /// 강의유형 0: 온라인, 1: 오프라인, 2: 혼합(온+오프) /// public int cshape { get; set; } public String cshapename { get { return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; } } public Int64 lectno { get; set; } public String lectnos { get; set; } /// /// null: 입력전, 0: 결석, 1: 입실/학습시작:결석상태, 2: 출석 /// public int? istatus { get; set; } public String istatusname { get { return istatus == null ? "입력전" : istatus < 2 ? "결석" : "출석"; } } public int isokmid { get; set; } /// /// 콘텐트유형 0:mp4,1:html/flash,2:iframe,3:url "mp4,html,flash: /files/contents/ctno/콘텐츠코드/학습콘텐츠페이지값 iframe,url: 학습콘텐츠페이지값" /// public int ctype { get; set; } public String ccode { get; set; } public String srcp { get; set; } public String srcm { get; set; } //50메가 이상의 mp4유형의 콘텐츠는 blob를 사용하지 않는다. public int isoversize { get; set; } public int ismenu { get; set; } public int mtime { get; set; } } /// /// 과정분류 /// [Serializable] public class CG : BaseModel { /// /// 과정분류키 /// public int cgno { get; set; } /// /// fkcgcg 상위분류키 CG.CGNo /// public int? pcgno { get; set; } public String pcgname { get; set; } /// /// 20 분류명 /// public String cgname { get; set; } /// /// 20 분류코드 /// public String cgcode { get; set; } ///// ///// 사용여부 0: 사용안함, 1: 사용함 front 신청화면, 과정/강좌설정화면 사용여부 ///// //public int isuse { get; set; } /// /// 보수교육여부 /// public int iscover { get; set; } /// /// 삭제여부 0: 삭제안함, 1: 삭제됨 삭제 시 IsUse = 0 /// public int isdel { get; set; } } /// /// 과정/강좌 담당자 /// [Serializable] public class CMPR : CM { /// /// fkcmmanu 강사/운영자번호 users.userno /// public int userno {get;set;} /// /// 강의료 /// public int pfee {get;set;} public String username { get; set; } public IList CMPRs { get; set; } } /// /// 교재 /// [Serializable] public class Book : BaseModel { public IList Files { get; set; } /// /// 교재키 /// public int bkno {get;set;} /// /// 100 교재명 /// public String bkname {get;set;} /// /// 100 저자 /// public String author {get;set;} /// /// 100 출판사 /// public String publisher {get;set;} /// /// 출판일 /// public DateTime? pubdate {get;set;} public String pubdateymd { get { return pubdate == null ? "-" : pubdate.Value.ToString("yyyy.MM.dd"); } } /// /// fkbookfg 썸네일 /// public Int64? fgnothumb {get;set;} public String thumburl { get { return string.IsNullOrEmpty(fileurl) ? "/img/online/fair_book_sample01.jpg" : (NP.Model.Base.Files + fileurl); } } /// /// fkbookfg2 상세이미지 /// public Int64? fgno {get;set;} public int price {get;set;} /// /// 교재소개 에디터 /// public String introhtml {get;set;} /// /// 목차 /// public String contents {get;set;} public int cmno { get; set; } } /// /// 수강 /// [Serializable] public class Lect : BaseModel { /// /// 수강키 /// public Int64 lectno { get; set; } /// /// fklectcm 강좌키 cm.cmno /// public int cmno { get; set; } public String cmno2 { get; set; } public String cname { get; set; } public float studytime { get; set; } /// /// 반 /// public int classno { get; set; } public String cnameclassno { get { return string.Format("{0}({1})", cname, classno); } } public int tyear { get; set; } public int tseq { get; set; } public int tmno { get; set; } public String tmname { get { return string.Format("{0}년 {1}기", tyear, tseq); } } public int cgno { get; set; } public String cgname { get; set; } public String pcgcode { get; set; } /// /// fklectpay 결제키 pay.payno /// public Int64? payno { get; set; } public int payuserno { get; set; } public int pstatus { get; set; } public int rstatus { get; set; } public String pstatusname { get { if (rstatus > 0) { return "환불완료"; } switch (pstatus) { case 1: return "결제완료"; case 21: return "결제대기"; case 22: return "입금대기"; case 41: case 42: case 43: return "결제취소"; case 51: return "심사중"; case 52: return "미승인"; default: return "-"; } } } public String pstatusname3 { get { switch (pstatus) { case 1: case 21: case 22: case 53: return "수강승인"; case 41: case 42: case 43: case 52: return "수강취소"; case 55: return "대기중"; default: return "-"; } } } /// /// fklectpayitem 결제상품키 payitem.pino /// public Int64? pino { get; set; } /// /// fklectusers 수강생키 /// public int userno { get; set; } /// /// 1:정상,3:신청중(심사전),4:자격승인,5:자격미승인,8:수강취소(환불 등) /// public int status { get; set; } public String statusname { get { return status == 3 || status == 2 ? "신청중" : status == 8 || status == 5 || status == 9 ? "수강취소" : status == 4 ? "수강승인" : status == 1 ? "수강중" : "?"; } } /// /// 수료여부 null:미처리,0:미수료,1:수료 /// public int? iscomplete { get; set; } public String iscompletename { get { return iscomplete == 1 ? "수료" : iscomplete == 0 ? "미수료" : "-"; } } /// /// fklectcm2 강좌변경전의강좌키 cm.cmno /// public int? orgcmno { get; set; } /// /// 출석율% /// public int attrate { get; set; } public int countinning { get; set; } public int countattok { get; set; } /// /// 환급신청여부 환급강좌 기준 /// public int isrebate { get; set; } public String isrebatename { get { return isrebate == 1 ? "환급" : "비환급"; } } /// /// 패키지강좌여부 0:일반강좌,1:패키지구매강좌 /// public int ispc { get; set; } public String email { get; set; } public String emailhide { get { return string.IsNullOrEmpty(email) ? "-" : (((email.Split('@')[0].Length < 4 ? email.Split('@')[0] : email.Split('@')[0].Substring(0, 4)) + "****") + "@" + email.Split('@')[1]); } } public String username { get; set; } public String usernameid { get { return string.Format("{0}({1})", username, userid); } } public String mobile { get; set; } public String asname { get; set; } public int ustatus { get; set; } public String depart { get; set; } public String ccpositionname { get; set; } public int isjoin { get; set; } public String isjoinname { get { return isjoin == 1 ? "회원" : "비회원"; } } public String userid { get; set; } public String telno { get; set; } public int ptype { get; set; } public int ispg { get; set; } public String ptypename { get; set; } public String ptypename2 { get { return ptype == 1 ? "신용카드" : ptype == 2 ? "계좌이체" : ptype == 3 ? "가상계좌" : ptype == 4 ? "현금" : ptype == 5 ? "복합" : ptype == 6 ? "무료" : ptype == 9 ? "위탁" : "-"; } } public int? pcno { get; set; } public String pcno2 { get; set; } public String pcname { get; set; } public int payamt { get; set; } public int pipayamt { get; set; } public int payamtcash { get; set; } public int payamtcard { get; set; } public String payamt2 { get; set; } public String payamtcash2 { get; set; } public String payamtcard2 { get; set; } public int ex0cnt { get; set; } public int ex1cnt { get; set; } public int sd0cnt { get; set; } public int sd1cnt { get; set; } public int rs0cnt { get; set; } public int ex0lectcnt { get; set; } public int ex1lectcnt { get; set; } public int sd0lectcnt { get; set; } public int sd1lectcnt { get; set; } public int rs0lectcnt { get; set; } public int ex0lectpoint { get; set; } public int ex1lectpoint { get; set; } public int sd0lectpoint { get; set; } public int sd1lectpoint { get; set; } public int rs0lectpoint { get; set; } public int estidx { get; set; } public DateTime? sstime { get; set; } public DateTime? setime { get; set; } public int aportion { get; set; } public int mportion { get; set; } public int fportion { get; set; } public int sportion { get; set; } public int dportion { get; set; } public int apoint { get; set; } public int mpoint { get; set; } public int fpoint { get; set; } public int spoint { get; set; } public int dpoint { get; set; } public int r0point { get; set; } public int tpoint { get; set; } public int acut { get; set; } public int mcut { get; set; } public int fcut { get; set; } public int scut { get; set; } public int dcut { get; set; } public int cut { get; set; } public DateTime payoktime { get; set; } public DateTime? stime { get; set; } public DateTime? etime { get; set; } public String sip { get; set; } public String eip { get; set; } public int ispaied { get; set; } public int quota { get; set; } public int countlect { get; set; } /// /// 회원수강료 /// public int infee { get; set; } /// /// 비회원수강료 /// public int outfee { get; set; } public DateTime? rstime { get; set; } public DateTime? retime { get; set; } public int kfcfyear { get; set; } public int isassignuser { get; set; } public String edus { get; set; } public string ckfcfyear { get { return kfcfyear == 0 ? "" : kfcfyear + "년"; } } public String assignuser { get { return isassignuser == 1 ? "자사근로자" : "타사근로자"; } } public String edu { get { if (string.IsNullOrEmpty(edus)) { return ""; } else { int e1 = Convert.ToInt32(edus.Substring(0, 1)); int e2 = Convert.ToInt32(edus.Substring(1, 1)); int e3 = Convert.ToInt32(edus.Substring(2, 1)); int e4 = Convert.ToInt32(edus.Substring(3, 1)); int e5 = Convert.ToInt32(edus.Substring(4, 1)); return (e1 > 0 ? "공정거래일반 : " + e1 + "회\n" : "") + (e2 > 0 ? "불공정거래행위 : " + e2 + "회\n" : "") + (e3 > 0 ? "부당한공동행위 : " + e3 + "회\n" : "") + (e4 > 0 ? "하도급거래 : " + e4 + "회\n" : "") + (e5 > 0 ? "부당내부거래 : " + e5 + "회" : ""); } } } /// /// 강의유형 0: 온라인, 1: 오프라인, 2: 혼합(온+오프) /// public int cshape { get; set; } public String cshapename { get { return cshape == 0 ? "ON" : cshape == 1 ? "OFF" : cshape == 2 ? "혼합" : "-"; } } public String certgradeccname { get; set; } public String rsrename { get { return rstime == null && retime == null ? "" : string.Format("{0}~{1}", rstime == null ? "" : rstime.Value.ToString("yyyy.MM.dd"), retime == null ? "" : retime.Value.ToString("yyyy.MM.dd")); } } public Int64? fgno { get; set; } public int? cntpkg { get; set; } public int isgroup { get; set; } public DateTime oktime { get; set; } public String oktimeforrenew { get { return oktime == null ? "-" : oktime.ToString("yy.MM.dd"); } } public int isacceptemail { get; set; } /// /// 교육일정시작일 /// public DateTime estart { get; set; } /// /// 교육일정종료일 /// public DateTime eend { get; set; } /// /// 직위 /// public String uduty { get; set; } public String lectnos { get; set; } public String cmnos { get; set; } public int ispassat { get; set; } public DateTime? completetime { get; set; } public String studyplacename { get; set; } public int taxno { get; set; } public DateTime taxdate { get; set; } public DateTime? taxdate2 { get; set; } public Int64 cmisno { get; set; } /// /// 기술인분류 /// public String typemanname { get; set; } /// /// 교육목적 /// public String typeeduname { get; set; } /// /// 직무분야 /// public String typejobname { get; set; } /// /// 등급 /// public String typegradename { get; set; } public String estartstring { get { return (estart != null && estart > Convert.ToDateTime("1900-01-01")) ? estart.ToShortDateString() : ""; } } public String pgkey { get; set; } public String itemname { get; set; } } /// /// 자격검정시험 /// [Serializable] public class Exam : BaseModel { /// /// 시험키 /// public int exno { get; set; } /// /// 과정분류키 /// public int cgno { get; set; } public int pcgno { get; set; } /// /// 시험명 /// public string exname { get; set; } /// /// 회원가 /// public int infee { get; set; } /// /// 비회원가 /// public int outfee { get; set; } public int fee { get; set; } /// /// 자격증 /// public int certcc { get; set; } /// /// 급수 /// public int certgradecc { get; set; } /// /// 접수시작 /// public DateTime rstime { get; set; } /// /// 접수종료 /// public DateTime retime { get; set; } /// /// 응시시작 /// public DateTime estime { get; set; } /// /// 응시종료 /// public DateTime eetime { get; set; } /// /// 응시장소 /// public string elocation { get; set; } /// /// 자격증발급일 /// public DateTime certdate { get; set; } /// /// 자격증유효기간 /// public DateTime certindate { get; set; } /// /// 공고내용 /// public string introhtml { get; set; } /// /// 공개여부 /// public int isopen { get; set; } /// /// 결과공개여부 /// public int isresultopen { get; set; } /// /// 점수입력여부 0:입력전, 1: 입력 /// public int isscored { get; set; } /// /// 원서접수일정 /// /// /// /// public string GetRegdate() { return rstime.ToString("yy-MM-dd") + " ~ " + retime.ToString("yy-MM-dd"); } /// /// 응시일 /// /// /// /// public string GetExamdate() { return estime.ToString("yy-MM-dd HH:MM"); } /// /// 첨부파일번호 FileGroup.FGNo /// public Int64? fgno { get; set; } public String pcgname { get; set; } public String cgname { get; set; } public String gradename { get; set; } } /// /// 학습콘텐츠 /// [Serializable] public class CT : BaseModel { public String ctindex { get; set; } /// /// 콘텐츠키 /// public int ctno { get; set; } /// /// fkctcm 과정키 /// public int cmno { get; set; } public String cmno2 { get; set; } public String cname { get; set; } /// /// fkctccdiff 난이도 comcode.ccode /// public int? qdiff { get; set; } /// /// fkctcc1 코드1 comcode.ccode /// public int? cc1 { get; set; } /// /// fkctcc2 코드2 comcode.ccode /// public int? cc2 { get; set; } /// /// fkctcc3 코드3 comcode.ccode /// public int? cc3 { get; set; } /// /// fkctcc4 코드4 comcode.ccode /// public int? cc4 { get; set; } /// /// fkctcc5 코드5 comcode.ccode /// public int? cc5 { get; set; } public String qdiffname { get; set; } public String ccname1 { get; set; } public String ccname2 { get; set; } public String ccname3 { get; set; } public String ccname4 { get; set; } public String ccname5 { get; set; } /// /// 콘텐트유형 0:mp4,1:html/flash,2:iframe,3:url "mp4,html,flash: /files/contents/ctno/콘텐츠코드/학습콘텐츠페이지값 iframe,url: 학습콘텐츠페이지값" /// public int ctype { get; set; } public String ctypename { get { return ctype == 0 ? "VOD" : ctype == 1 ? "HTML/FLASH" : ctype == 2 ? "IFRAME" : ctype == 3 ? "URL" : "-"; } } /// /// 30 uictccode 콘텐츠코드 /// public String ccode { get; set; } /// /// 200 not null 콘텐츠명 /// public String ctname { get; set; } /// /// 썸네일이미지 /// public Int64? fgnothumb { get; set; } /// /// 업로드한 콘텐츠파일 (mp4 or zip(html/flash) /// public Int64? fgno { get; set; } /// /// fkctfg2 교안 pdf,ppt,pptx,xls,xlsx,hwp,doc,docx,jpg,gif,png /// public Int64? fgnotf { get; set; } public String tfurl { get; set; } /// /// 목차사용여부 1: LMS가 페이지핸들링, 0: 콘텐츠가핸들링(인터페이스필요) /// public int ismenu { get; set; } public String ismenu2 { get; set; } public IList Ds {get;set;} public int pseq { get; set; } public String cpname { get; set; } public String srcp { get; set; } public String srcm { get; set; } /// /// 삭제여부 /// public int isdel { get; set; } //public int isuse { get; set; } public String isuse2 { get; set; } /// /// 50메가 이상의 mp4 유형은 blob로 학습콘텐츠실행하지 않는다. /// public int isoversize { get; set; } public int? isoversize2 { get; set; } } /// /// 콘텐츠페이지 /// [Serializable] public class CTPage : BaseModel { /// /// 콘텐츠페이지키 /// public int cpno {get;set;} /// /// fkctpagect 콘텐츠키 ct.ctno /// public int ctno {get;set;} /// /// 페이지순서 /// public int pseq {get;set;} /// /// 200 페이지제목 /// public String cpname {get;set;} /// /// 500 pc용콘텐츠 파일명/iframe/url /// public String srcp {get;set;} /// /// 500 mobile용콘텐츠 파일명/iframe/url /// public String srcm {get;set;} /// /// 삭제여부 /// public int isdel {get;set;} public int isnow { get; set; } public int iseq { get; set; } public String ititle { get; set; } public int ctype { get; set; } public String ccode { get; set; } public int ismenu { get; set; } /// /// 50메가 이상의 mp4 유형은 blob로 학습콘텐츠실행하지 않는다. /// public int isoversize { get; set; } public int isokmid { get; set; } public int mstime { get; set; } public int metime { get; set; } /// /// 마지막학습페이지 /// public int lastpseq { get; set; } /// /// mp4 최근 실행 cuurentTime /// public int psec { get; set; } } /// /// 과정/강좌 평가기준/비율 /// [Serializable] public class CMEV : BaseModel { /// /// fkcmevcm 과정키 cm.cmno /// public int cmno {get;set;} /// /// 출석 비율 /// public int attend {get;set;} /// /// 출석수료기준 /// public int attendcut {get;set;} /// /// 출석비율(환급) /// public int attendrfd {get;set;} /// /// 출석수료기준(환급) /// public int attendcutrfd {get;set;} /// /// 진행평가 비율 /// public int mid {get;set;} /// /// 진행평가수료기준 /// public int midcut {get;set;} /// /// 진행평가비율(환급) /// public int midrfd {get;set;} /// /// 진행평가수료기준(환급) /// public int midcutrfd {get;set;} /// /// 최종평가 비율 /// public int final {get;set;} /// /// 최종평가수료기준 /// public int finalcut {get;set;} /// /// 최종평가비율(환급) /// public int finalrfd {get;set;} /// /// 최종평가수료기준(환급) /// public int finalcutrfd {get;set;} /// /// 과제 비율 /// public int subject {get;set;} /// /// 과제수료기준 /// public int subjectcut {get;set;} /// /// 과제비율(환급) /// public int subjectrfd {get;set;} /// /// 과제수료기준(환급) /// public int subjectcutrfd {get;set;} /// /// 토론 비율 /// public int discuss {get;set;} /// /// 토론수료기준 /// public int discusscut {get;set;} /// /// 비율(환급) /// public int discussrfd {get;set;} /// /// 토론수료기준(환급) /// public int discusscutrfd {get;set;} /// /// 기타 비율 /// public int etc {get;set;} /// /// 기타수료기준 /// public int etccut {get;set;} /// /// 기타비율(환급) /// public int etcrfd {get;set;} /// /// 기타수료기준(환급) /// public int etccutrfd {get;set;} /// /// 수료기준(총점) /// public int cut { get; set; } /// /// 수료기준(환급)(총점) /// public int cutrfd { get; set; } public int isoffabs { get; set; } public String ev0 { get { var rtn = ""; if (attendcut > 0) { rtn += ", 진도 " + attendcut + "%이상"; } if (midcut > 0) { rtn += ", 진행평가 " + midcut + "점이상"; } if (finalcut > 0) { rtn += ", 최종평가 " + finalcut + "점이상"; } if (subjectcut > 0) { rtn += ", 과제 " + subjectcut + "점이상"; } if (discusscut > 0) { rtn += ", 토론 " + discusscut + "점이상"; } if (cut > 0) { rtn += ", 총점 " + cut + "점이상"; } return rtn == "" ? "" : rtn.Substring(2); } } public String ev1 { get { var rtn = ""; if (attendcutrfd > 0) { rtn += ", 진도 " + attendcutrfd + "%이상"; } if (midcutrfd > 0) { rtn += ", 진행평가 " + midcutrfd + "점이상"; } if (finalcutrfd > 0) { rtn += ", 최종평가 " + finalcutrfd + "점이상"; } if (subjectcutrfd > 0) { rtn += ", 과제 " + subjectcutrfd + "점이상"; } if (discusscutrfd > 0) { rtn += ", 토론 " + discusscutrfd + "점이상"; } if (cutrfd > 0) { rtn += ", 총점 " + cutrfd + "점이상"; } return rtn == "" ? "" : rtn.Substring(2); } } } /// /// 시험평가,과제,토론,설문,강의평가 등의 평가정보 가상통합모델 /// [Serializable] public class EST : BaseModel { /// /// 0: 진행평가,최종평가, 1: 과제/토론, 2: 설문 /// public int gubun { get; set; } /// /// 1: 진행평가, 2: 최종평가, 11: 과제평가, 21: 토론평가, 31: 사전설문, 32: 강의평가설문 /// public int estkind { get; set; } public String estkindname { get { return estkind == 1 ? "진행평가" : estkind == 2 ? "최종평가" : estkind == 11 ? "과제" : estkind == 21 ? "토론" : estkind == 31 ? "사전설문" : estkind == 32 ? "강의평가설문" : "-"; } } /// /// 시험키 /// public int exno {get;set;} /// /// 과제/토론키 /// public int sdno { get; set; } /// /// fkcmevex 과정키 cm.cmno /// public int cmno {get;set;} /// /// 평가구분 0:진행평가,1:최종평가 /// public int extype {get;set;} /// /// 평가구분 0:과제, 1:토론 /// public int sdtype { get; set; } /// /// 100 시험명 /// public String exname {get;set;} /// /// 과제/토론명 /// public String sdname { get; set; } /// /// 500 시험설명 /// public String edesc {get;set;} /// /// 과제/토론설명 /// public String sddesc { get; set; } /// /// 제한시간(분) /// public int etime {get;set;} /// /// 시험 참여조건 출석율 /// public int econdition {get;set;} /// /// 과제/토론 참여조건 /// public int sdcondition { get; set; } /// /// 시험출력방식 0:전체,1,…n개씩 출력 /// public int evtype {get;set;} /// /// 출제방식설정 0:고정,1:임의 /// public int eqtype {get;set;} /// /// 문제섞기 0:안섞기,1:섞기 /// public int israndq {get;set;} /// /// 보기섞기 0:안섞기,1:섞기 /// public int israndqi {get;set;} /// /// 문항수 /// public int qcount {get;set;} /// /// 화면유지여부 0:유지안함,1:유지:창전환시자동제출 /// public int isblur {get;set;} /// /// 총점 /// public int tpoint {get;set;} /// /// 이어보기횟수 null:무제한,1:1회,2:2회,0:미허용 /// public int? relaylimit {get;set;} /// /// 임시저장기능사용여부 0:사용안함,1:사용 /// public int isusebackup {get;set;} /// /// 순차풀이여부 0:비순차,1:순차 /// public int isseq {get;set;} } /// /// 과정/강좌 시험 /// [Serializable] public class CMEX : BaseModel { /// /// 시험키 /// public int exno {get;set;} public int orgexno { get; set; } /// /// fkcmevex 과정키 cm.cmno /// public int cmno {get;set;} /// /// 평가구분 0:진행평가,1:최종평가 /// public int extype {get;set;} /// /// 100 시험명 /// public String exname {get;set;} /// /// 500 시험설명 /// public String edesc {get;set;} /// /// 제한시간(분) /// public int etime {get;set;} public int rtime { get; set; } /// /// 참여조건 출석율 /// public int econdition {get;set;} /// /// 시험출력방식 0:전체,1,…n개씩 출력 /// public int evtype {get;set;} /// /// 출제방식설정 0:고정,1:임의 /// public int eqtype {get;set;} /// /// 문제섞기 0:안섞기,1:섞기 /// public int israndq {get;set;} /// /// 보기섞기 0:안섞기,1:섞기 /// public int israndqi {get;set;} /// /// 문항수 /// public int qcount {get;set;} /// /// 화면유지여부 0:유지안함,1:유지:창전환시자동제출 /// public int isblur {get;set;} /// /// 총점 /// public int tpoint {get;set;} /// /// 이어보기횟수 null:무제한,1:1회,2:2회,0:미허용 /// public int? relaylimit {get;set;} /// /// 임시저장기능사용여부 0:사용안함,1:사용 /// public int isusebackup {get;set;} /// /// 순차풀이여부 0:비순차,1:순차 /// public int isseq {get;set;} /// /// 시험결과공개여부 /// public int isresultopen { get; set; } public IList cmexlayers { get; set; } public IList cmexqs { get; set; } } /// /// 과정/강좌 시험문항풀 /// [Serializable] public class CMEXQ : Question { /// /// 시험문항키 /// public int eqno {get;set;} /// /// fkcmexqcmex 과정시험키 cmex.exno /// public int exno {get;set;} /// /// 순번 /// public int qseq {get;set;} /// /// fkcmexq 문제번호 question.qno /// public int qno {get;set;} /// /// 정답점수 /// public int rpoint {get;set;} public String eqtypes { get { return string.Format("{0}:{1}:{2}:{3}:{4}:{5}", qdiff, cc1, cc2, cc3, cc4, cc5); } } public String eqtypenames { get { return string.Format("{0}:{1}:{2}:{3}:{4}:{5}", qdiffname ?? "-", ccname1 ?? "-", ccname2 ?? "-", ccname3 ?? "-", ccname4 ?? "-", ccname5 ?? "-"); } } public int rightrate { get; set; } public int selectrate { get; set; } } /// /// 과정/강좌시험임의출제범위 /// [Serializable] public class CMEXLayer : BaseModel { /// /// fkcmexlayercmex cmex.exno /// public int exno {get;set;} /// /// fkcmexlayercm cm.cmno 0:선택안함 /// public int? cmno {get;set;} /// /// 난이도 comcode.ccode 0:선택안함 /// public int qdiff {get;set;} public String qdiffname { get; set; } /// /// 분류1 comcode.ccode 0:선택안함 /// public int cc1 {get;set;} /// /// 분류2 comcode.ccode 0:선택안함 /// public int cc2 { get;set;} /// /// 분류3 comcode.ccode 0:선택안함 /// public int cc3 { get;set;} /// /// 분류4 comcode.ccode 0:선택안함 /// public int cc4 { get;set;} /// /// 분류5 comcode.ccode 0:선택안함 /// public int cc5 { get;set;} public String ccname1 { get; set; } public String ccname2 { get; set; } public String ccname3 { get; set; } public String ccname4 { get; set; } public String ccname5 { get; set; } /// /// 출제문항수 /// public int? qcount {get;set;} /// /// 문항당배점 /// public int rpoint {get;set;} public int trpoint { get; set; } } /// /// 문제은행 /// [Serializable] public class Question : BaseModel { /// /// 문제키 /// public int qno {get;set;} /// /// fkquestioncm 과정키 cm.cmno /// public int? cmno {get;set;} public String cmno2 { get; set; } public String cname { get; set; } /// /// fkctccdiff 난이도 comcode.ccode 0:선택안함 /// public int qdiff {get;set;} public String qdiffname { get; set; } /// /// fkctcc1 코드1 comcode.ccode 0:선택안함 /// public int cc1 {get;set;} /// /// fkctcc2 코드2 comcode.ccode 0:선택안함 /// public int cc2 {get;set;} /// /// fkctcc3 코드3 comcode.ccode 0:선택안함 /// public int cc3 {get;set;} /// /// fkctcc4 코드4 comcode.ccode 0:선택안함 /// public int cc4 {get;set;} /// /// fkctcc5 코드5 comcode.ccode 0:선택안함 /// public int cc5 {get;set;} public String ccname1 { get; set; } public String ccname2 { get; set; } public String ccname3 { get; set; } public String ccname4 { get; set; } public String ccname5 { get; set; } /// /// 문제유형 0:객관식,1:단답형,2:서술형 /// public int atype {get;set; } public string atypename { get { return atype == 0 ? "객관식" : atype == 1 ? "단답형" : atype == 2 ? "서술형" : "-"; } } /// /// 기본점수 /// public int dpoint {get;set;} /// /// 문제 /// public String qtext {get;set;} /// /// 문제(html제거) /// public String qtextstring {get;set;} /// /// 해설(시험전용) /// public String qdesc {get;set;} /// /// 정답갯수 /// public int rightcount { get; set; } /// /// 단답형공백자동제거비교 /// public int ispassspace {get;set;} /// /// 단답형대소문자제외비교 /// public int isignorecase {get;set;} public IList Qs { get; set; } public IList QIs { get; set; } /// /// 문제은행일괄등록 시 객관식 정답번호 , 다중(콤마로 분리) /// public String isrights { get; set; } public String qitext1 { get; set; } public String qitext2 { get; set; } public String qitext3 { get; set; } public String qitext4 { get; set; } public String qitext5 { get; set; } public String qitext6 { get; set; } public String qitext7 { get; set; } public String qitext8 { get; set; } public String qitext9 { get; set; } public String qitext10 { get; set; } } /// /// 문제은행보기 /// [Serializable] public class QuestionItem : BaseModel { /// /// 보기번호 /// public Int64 qino { get; set; } /// /// 문제번호 fk_questionitem_question question.QNo /// public Int64 qno { get; set; } /// /// 파일그룹번호 fk_questionitem_filegroup filegroup.FGNo /// public Int64? fgno { get; set; } /// /// 정답여부 0: 정답아님, 1: 정답 /// public int isright { get; set; } /// /// 보기내용 /// public String qitext { get; set; } /// /// 0: 객관식, 1: 주관식 /// public int atype { get; set; } public int selectrate { get; set; } public int selectcount { get; set; } public int countselect { get; set; } public int avgselect { get; set; } } /// /// 콘텐츠-설문지 /// [Serializable] public class RSC : BaseModel { /// /// 설문키 /// public int rscno { get; set; } /// /// 설문유형 0:강의평가,1:사전설문 /// public int rstype{ get; set; } public String rstypename { get { return rstype == 0 ? "강의평가" : rstype == 1 ? "사전설문" : "-"; } } /// /// 200 설문명 /// public String rscname { get; set; } public IList Ds { get; set; } public IList Dsin { get; set; } public IList Dsup { get; set; } public String QNos { get; set; } public String QNosin { get; set; } public String QNosup { get; set; } } [Serializable] public class RSCQ : Question { /// /// 설문문항키 /// public int rscqno { get; set; } /// /// fkrscqrsc 설문키 rsc.rscno /// public int rscno { get; set; } /// /// fkrscqq 문제키 question.qno /// //public int qno { get; set; } /// /// 순서 /// public int dseq { get; set; } public String eqtypes { get { return string.Format("{0}:{1}:{2}:{3}:{4}:{5}", qdiff, cc1, cc2, cc3, cc4, cc5); } } public String eqtypenames { get { return string.Format("{0}:{1}:{2}:{3}:{4}:{5}", qdiffname ?? "-", ccname1 ?? "-", ccname2 ?? "-", ccname3 ?? "-", ccname4 ?? "-", ccname5 ?? "-"); } } public int rsno { get; set; } public int qino { get; set; } public String qitext { get; set; } public String atext { get; set; } public int acount { get; set; } public int scount { get; set; } } /// /// 과제토론 /// [Serializable] public class CMSD : BaseModel { /// /// 과제토론키 /// public int sdno {get;set;} /// /// 과제토론구분 0:과제, 1: 토론 /// public int sdtype {get;set;} /// /// fkcmsdcm 과정키 cm.cmno /// public int cmno {get;set;} /// /// 100 과제토론명 /// public String sdname {get;set;} /// /// 500 과제토론평가내용 /// public String sddesc {get;set;} /// /// 만점 /// public int tpoint {get;set;} /// /// 참여조건 출석율 /// public int sdcondition {get;set;} /// /// fkcmsdfg 파일 filegroup.fgno /// public Int64? fgno {get;set;} public Int64? sdfgno { get; set; } public DateTime sstime { get; set; } public DateTime setime { get; set; } } /// /// 강좌/과정 설문(강의평가,사전설문) /// [Serializable] public class CMRS : CMBase { /// /// 과정설문키 /// public int rsno {get;set;} /// /// fkcmrscm 과정키 cm.cmno /// public int cmno {get;set;} /// /// fkcmrsrsc 설문키 rsc.rscno /// public int rscno {get;set;} public String rscname { get; set; } /// /// 평가구분 0:강의평가,1:사전설문 /// public int rstype {get;set;} public String rstypename { get { return rstype == 0 ? "강의평가" : "사전설문"; } } /// /// 100 설문평가명 /// public string rsname {get;set;} /// /// 참여조건 출석율 /// public int rscondition {get;set;} public int attrate { get; set; } public int isrsok { get; set; } } [Serializable] public class CMBase : BaseModel { /// /// 기수키 /// public int tmno { get; set; } /// /// 기수년도 /// public int tyear { get; set; } /// /// 기수 /// public int tseq { get; set; } public String tmname { get { return tyear + "년 " + tseq + "기"; } } public int countlect { get; set; } public int countok { get; set; } public string cname { get; set; } /// /// 반 /// public int? classno { get; set; } public String cnameclassno { get { return string.Format("{0}({1})", cname, classno); } } /// /// 강의유형 0: 온라인, 1: 오프라인, 2: 혼합(온+오프) /// public int cshape { get; set; } public String cshapename { get { return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; } } public String cgname { get; set; } /// /// 수강신청 시작 /// public DateTime rstime { get; set; } /// /// 수강신청 종료 저장 시 23:59:59 추가 /// public DateTime retime { get; set; } /// /// 학습시작 /// public DateTime sstime { get; set; } /// /// 학습종료 /// public DateTime setime { get; set; } public int ssseterm { get { return Convert.ToInt32((setime - sstime).TotalDays) + 1; } } public String sssename { get { return string.Format("{0}~{1}", sstime.ToString("yy.MM.dd"), setime.ToString("yy.MM.dd")); } } public String sssename2 { get { return string.Format("{0}~{1}", sstime.ToString("yyyy-MM-dd"), setime.ToString("yyyy-MM-dd")); } } } /// /// 과정/강좌 메뉴 /// [Serializable] public class CMMenu:BaseModel { /// /// fkcmmenucm 과정키 cm.cmno /// public int cmno {get;set;} /// /// 강의계획메뉴 0:비활성, 1:활성 /// public int isplan {get;set;} /// /// 학습메뉴 0:비활성, 1:활성 /// public int iscontent {get;set;} /// /// 평가메뉴 0:비활성, 1:활성 /// public int isev {get;set;} /// /// 설문메뉴 0:비활성, 1:활성 /// public int isrs { get; set; } /// /// 성적메뉴 0:비활성, 1:활성 /// public int isgrade {get;set;} /// /// 500 강의실게시판목록 boardmaster.bmno 콤마로분리 /// public String bmnos {get;set;} public int bmno { get; set; } } [Serializable] public class CMLect : BaseModel { public int tyear { get; set; } public int tseq { get; set; } public String pcgname { get; set; } public String cgname { get; set; } public String pcname { get; set; } public String cname { get; set; } public int classno { get; set; } public String cnameclassno { get { return string.Format("{0}({1})", cname, classno); } } public DateTime sstime { get; set; } public DateTime setime { get; set; } public String sssename { get { return string.Format("{0}~{1}", sstime.ToString("yy.MM.dd"), setime.ToString("yy.MM.dd")); } } public int infee { get; set; } public int outfee { get; set; } public String asname { get; set; } public int isjoin { get; set; } public String isjoinname { get { return isjoin == 1 ? "회원" : "비회원"; } } public String asctgname { get; set; } public int isrebate { get; set; } public String isrebatename { get { return isrebate == 1 ? "환급" : "비환급"; } } public String username { get; set; } public String userid { get; set; } public String usernameid { get { return string.Format("{0}({1})", username, userid); } } public String ccpositionname { get; set; } public int iscomplete { get; set; } public String iscompletename { get { return iscomplete == 1 ? "수료" : "미수료"; } } public String iscompleteye { get { return iscomplete == 1 ? "Y" : ""; } } public String depart { get; set; } public String mobile { get; set; } public String email { get; set; } public int attrate { get; set; } public int payamt { get; set; } } [Serializable] public class CMCalc : CM { /// /// 교육장장사용료 /// public int feeloc {get;set;} /// /// 교재인쇄비 /// public int feebkpr {get;set;} /// /// 다과음료비 /// public int feebrt {get;set;} /// /// 소모품비 /// public int feemat {get;set;} /// /// 식대 /// public int feefoo {get;set;} /// /// 기타 /// public int feeetc {get;set;} /// /// 인쇄부수 /// public int prtcnt {get;set;} public String itime { get; set; } public String profnames { get; set; } public int infeetotal { get; set; } public int outfeetotal { get; set; } public int incount { get; set; } public int outcount { get; set; } public int pfee { get; set; } public int totcount { get; set; } public String managers { get; set; } public String username { get; set; } public String userpno { get; set; } public String bankname{ get; set; } public String bankno { get; set; } public String post{ get; set; } public String address1{ get; set; } public String address2 { get; set; } } /// /// 학습독려설정 /// [Serializable] public class SCDLect : BaseModel { /// /// 설정키 /// public int scdno {get;set;} /// /// 교육종료일dday /// public int dday {get;set;} /// /// 독려시기 /// public int dtime {get;set;} /// /// 알림톡발송여부 /// public int istalk {get;set;} /// /// 메일발송여부 /// public int isemail {get;set;} /// /// sms발송여부 /// public int issms { get; set; } public IList Ds { get; set; } public int userno { get; set; } public String username { get; set; } public int cmexno { get; set; } public String cname { get; set; } public DateTime stime { get; set; } public String email { get; set; } public String mobile { get; set; } public String place { get; set; } } [Serializable] public class LectRS : CMRS { /// /// fklectrslect 수강키 lect.lectno /// public Int64 lectno {get;set;} /// /// fklectrsrscq 설문문항키 rscq.rscqno /// public int rscqno {get;set;} /// /// fklectrsqno 설문문제키 rscq.qno /// public int qno {get;set;} /// /// 2000 응답내용 객관식:questionitem.qino(콤마로연결), 주관식:답 /// public String atext {get;set;} public String asname { get; set; } public String username { get; set; } public String userid { get; set; } public String ccpositionname { get; set; } public int isrebate { get; set; } public String isrebatename { get { return isrebate == 1 ? "환급" : "비환급"; } } public int userno { get; set; } public IList Ds { get; set; } } [Serializable] public class ExamUser : Exam { /// /// 시험키 exam.exno /// //public int exno {get; set;} //public String exname { get; set; } /// /// 사용자키 users.userno /// public int userno {get; set;} /// /// 상태 1:승인,8:검토중,9:미승인 /// public int status {get; set;} /// /// 결제번호 pay.payno /// public int? payno { get; set; } /// /// 결제상품구매번호 payitem.pino /// public int? pino { get; set; } /// /// 결제상태 1:결제완료,2:입금대기,3:환불요청,4:부분환불,5:전액환불,6:결제취소,9:승인전 /// public int pstatus {get; set;} /// /// 컴플라이언스경영점수 null:점수입력전 /// public float? epoint1 {get; set;} public string epoint21 { get; set; } /// /// 사회적책임경영점수 null:점수입력전 /// public float? epoint2 {get; set;} public string epoint22 { get; set; } /// /// 리스크관리경영점수 null:점수입력전 /// public float? epoint3 {get; set;} public string epoint23 { get; set; } /// /// 평균점수 소수점1, 소수전2반올림 /// public float avrg {get; set;} /// /// 합격여부 null:처리전,0:불,1:합 /// public int? ispass {get; set;} public string ispass2 { get; set; } public DateTime firstcertdate { get; set; } /// /// 자격증발급일 /// //public DateTime certdate {get; set;} public String datestr { get { string day = certdate.ToString("dd"); if (certdate.Day < 10) { if (day == "01") { return "1st"; } else if (day == "02") { return "2nd"; } else if (day == "03") { return "3rd"; } else { return day.Substring(1) + "th"; } } else { if (day == "21") { return "21st"; } else if (day == "22") { return "22nd"; } else if (day == "23") { return "23rd"; } else if (day == "31") { return "31st"; } else { return day + "th"; } } } } /// /// 자격증유효기간 /// //public DateTime certindate { get; set; } public String indatestr { get { string day = certindate.ToString("dd"); if(certindate.Day < 10) { if (day == "01"){return "1st";} else if(day == "02"){return "2nd";} else if(day == "03"){return "3rd";} else{return day.Substring(1) + "th";} } else { if(day == "21"){return "21st";} else if(day == "22"){return "22nd";} else if(day == "23"){return "23rd";} else if(day == "31"){return "31st";} else{return day + "th";} } } } public string userid { get; set; } public string userid2 { get; set; } public string asname { get; set; } public string username { get; set; } public string username2 { get; set; } public int countsame { get; set; } //public int isscored { get; set; } public IList Ds { get; set; } public string usernameeng { get; set; } public string userpno { get; set; } //public int? certcc { get; set; } //public int? certgradecc { get; set; } } //자격검정갱신 [Serializable] public class ExamUserRenew : BaseModel{ /// /// 시험키 갱신 시 등록 /// public int exno { get; set; } /// /// 사용자키 users.userno /// public int userno {get; set;} /// /// 갱신처리시간 /// public DateTime certtime {get; set;} public String certtimeymd { get { return certtime.ToString("yyyy-MM-dd"); } } /// /// 자격증발급일 /// public DateTime certdate {get; set;} public String certdateymd { get { return certdate.ToString("yyyy-MM-dd"); } } /// /// 자격증유효기간 /// public DateTime certindate {get; set;} public String certindateymd { get { return certindate.ToString("yyyy-MM-dd"); } } /// /// 갱신사유 /// public String renewreason { get; set; } public String username { get; set; } public String certprovedate { get { return certdate.ToString("yyyy-MM-dd")+" ~ "+certindate.ToString("yyyy-MM-dd"); } } public String reason { get { return "(" + certtime.ToString("yyyy-MM-dd") + " " + username + "등록, " + (renewreason ?? "-") + ")"; } } public int isfirst { get; set; } public int certidx { get; set; } } [Serializable] public class EduB2B : BaseModel { /// /// 신청키 /// public int eduno {get;set;} /// /// 신청교육 0:준법교육;1:위탁교육(온라인);2:위탁교육(오프라인);3:ISO 내부심사원교육 /// public int etype {get;set;} public String etypename { get { return etype == 0 ? "준법교육" : etype == 1 ? "기업 맞춤형 온라인교육" : etype == 2 ? "위탁교육(OFF)" : etype == 3 ? "ISO 내부심사원교육" : "-"; } } /// /// fkedub2bu 신청자 users.userno /// public int userno {get;set;} /// /// 희망교육일 /// public DateTime? edate {get;set;} public String edateymd { get { return edate == null ? "-" : edate.Value.ToString("yyyy-MM-dd"); } } /// /// 500 교육주제(분야) /// public String esubject {get;set;} /// /// 500 교육대상 /// public String etarget {get;set;} /// /// 교육인원 /// public int ecount {get;set;} /// /// 100 교육장소 /// public String eplace {get;set;} /// /// 500 기타 요청사항 /// public String ecomment {get;set;} /// /// 200 회사명 /// public String compname {get;set;} /// /// 50 대표자 /// public String ceoname {get;set;} /// /// 10 사업자등록번호 /// public String brno {get;set;} /// /// 200 주소 /// public String addr {get;set;} /// /// 50 업태 /// public String btype {get;set;} /// /// 50 업종 /// public String bkind {get;set;} /// /// 50 담당자 /// public String manname {get;set;} /// /// 200 ev50 이메일 /// public String email {get;set;} public String username { get; set; } public String userid { get; set; } public String asname{ get; set; } public long? fgno { get; set; } public String telno { get; set; } } /// /// 회차학습이력 /// [Serializable] public class LectInning : CMInning { /// /// 누적학습시간(초) /// public int totstudy {get;set;} public int totstudymin { get { return Convert.ToInt32(totstudy / 60.0); } } public String totstudymin2 { get { return totstudy < 60 ? string.Format("{0}초",totstudy) : string.Format("{0}분", Convert.ToInt32(totstudy / 60.0)); } } /// /// 최초학습시간 오프라인회차는 입실 /// public DateTime? stime {get;set;} public String stimehm { get { return stime == null ? "" : stime.Value.ToString("HH:mm"); } } public String stimeymdhms { get { return stime == null ? "-" : stime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } /// /// 최근학습시간 오프라인회차는 퇴실 /// public DateTime? etime {get;set;} public String etimehm { get { return etime == null ? "" : etime.Value.ToString("HH:mm"); } } public String etimeymdhms { get { return etime == null ? "-" : etime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } public int? ispcs { get; set; } public String ispcsname { get { return ispcs == null ? "-" : ispcs == 1 ? "P" : "M"; } } public int? ispce { get; set; } public String ispcename { get { return ispce == null ? "-" : ispce == 1 ? "P" : "M"; } } public String sip { get; set; } public String eip { get; set; } /// /// 출석수동정정일 /// public DateTime? statustime {get;set;} public String statustimename { get { return statustime == null ? "" : statustime.Value.ToString("yy-MM-dd HH:mm"); } } /// /// 100 출석수동정정사유 /// public String statusreason {get;set;} public int? statususerno { get; set; } public String statususerid { get; set; } public String statususername { get; set; } public String asname { get; set; } public String userid { get; set; } public int isrebate { get; set; } public DateTime sstime { get; set; } public DateTime setime { get; set; } public int isseq { get; set; } public int preistatus { get; set; } public Int64 precmino { get; set; } public String tfurl { get; set; } } [Serializable] public class LectInningPage : LectInning { /// /// 학습이력키 학습회차진입시생성 /// public Int64 logno {get;set;} //public Int64 lectno {get;set;} fklectinninglect 수강키 lect.lectno //public Int64 cmino {get;set;} fklectinningpagecmi 회차키 cminning.cino /// /// fklectinningpagectpage 학습페이지키 ctpage.cpno /// public int cpno {get;set;} /// /// 누적학습시간(초) /// //public int totstudy {get;set;} /// /// 최초학습시간 /// //public DateTime stime {get;set;} /// /// 최근학습시간 /// //public DateTime etime {get;set;} /// /// 학습pc여부 0:모바일,1:pc /// public int ispc {get;set;} public int litotstudy { get; set; } public int litotstudymin { get { return Convert.ToInt32(litotstudy / 60.0); } } public DateTime? listime { get; set; } public String listimeymdhms { get { return listime == null ? "-" : listime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } public DateTime? lietime { get; set; } public String lietimeymdhms { get { return lietime == null ? "-" : lietime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } } public String lisip { get; set; } public String lisips { get { return listime == null ? "" : lisip; } } public String lieip { get; set; } public String lieips { get { return lietime == null ? "" : lieip; } } public int? liispcs { get; set; } public String liispcsname { get { return listime == null ? "-" : liispcs == null ? "-" : liispcs == 1 ? "P" : "M"; } } public int? liispce { get; set; } public String liispcename { get { return lietime == null ? "-" : liispce == null ? "-" : liispce == 1 ? "P" : "M"; } } public int pseq { get; set; } public String pseqname { get { return (pseq < 1 ? 1 : pseq).ToString(); } } public String webkitinfo { get; set; } public String istatusname2 { get { return istatus == null ? "입력전" : sstime < DateTime.Now && setime > DateTime.Now ? istatus < 2 ? "학습중" : "출석" : istatus < 2 ? "결석" : "출석"; } } public int isrelay { get; set; } } /// /// 강좌평가(시험) /// [Serializable] public class LectEX : CMEX { /// /// fklectexlect 수강키 lect.lectno /// public Int64 lectno {get;set;} /// /// fklectexcmex 과정시험키 cmex.exno /// //public int exno {get;set;} /// /// 응시시작 /// public DateTime? estart {get;set;} public String estartymdhm { get { return estart == null ? "" : estart.Value.ToString("yyyy-MM-dd HH:mm"); } } /// /// 응시종료 /// public DateTime? eend {get;set;} public String eendymdhm { get { return eend == null ? "" : eend.Value.ToString("yyyy-MM-dd HH:mm"); } } public String eseterm { get { return estart == null || eend == null ? "" : string.Format("{0}분", Convert.ToInt32((eend - estart).Value.TotalMinutes)); } } /// /// 총점 /// //public int tpoint {get;set;} /// /// 제출횟수 /// public int recount {get;set;} /// /// 재채점시간 /// public DateTime? rechecktime {get;set;} /// /// cmex.relaylimit연계 이어보기필터, 접근기준 /// public int entercount {get;set;} /// /// 이어보기 포커스용 /// public int cblock {get;set;} public int userno { get; set; } /// /// 환급신청여부 환급강좌 기준 /// public int isrebate { get; set; } public String isrebatename { get { return isrebate == 1 ? "환급" : "비환급"; } } public String asname { get; set; } public String username { get; set; } public String usernameid { get { return string.Format("{0}({1})", username, userid); } } public String userid { get; set; } public String eip { get; set; } public int estate { get { return eend != null ? 2 : estart != null ? 1 : 0; } } public String estatename { get { return eend != null ? "완료" : estart != null ? "응시중" : "미응시"; } } public int extpoint { get; set; } public DateTime sstime { get; set; } public DateTime setime { get; set; } public Int64 exlectno { get; set; } public IList UED { get; set; } public int issubmit { get; set; } } [Serializable] public class LectEXQ : LectEX { /// /// fklectexqlect 수강키 lect.lectno /// //public Int64 lectno {get;set;} /// /// fklectexqcmex 과정시험키 cmex.exno /// //public int exno {get;set;} /// /// fklectexqcmexq 과정시험문항키 cmexq.eqno /// public int eqno {get;set;} /// /// 2000 응답내용 객관식:questionitem.qino(콤마로연결), 주관식:답 /// public String atext {get;set;} public bool AOK { get { return !string.IsNullOrEmpty((atext ?? "").Trim()); } } /// /// 500 객관식보기번호나열 콤마로연결 /// public String qinos {get;set;} /// /// 취득점수 /// public int cpoint {get;set;} /// /// 문제점수 /// public int dpoint {get;set;} /// /// 정답여부 null:채점대기중,0:오답,1:정답 /// public int? iscorrect {get;set;} /// /// 순서 /// public int qseq {get;set;} /// /// 재채점시간 /// //public DateTime? rechecktime {get;set;} public int qno { get; set; } /// /// 0:객관식,1:단답형,2:주관식 /// public int atype { get; set; } public String qtext { get; set; } public String qdesc { get; set; } public String atypename { get { return atype == 0 ? "객관식" : atype==1 ?"단답형": "서술형"; } } public int rpoint { get; set; } public int ispassspace { get; set; } public int isignorecase { get; set; } public int ddddd { get; set; } public int rightcount { get; set; } } /// /// 수강생 과제제출내역 /// [Serializable] public class LectSD : CMSD { /// /// fklectsdlect 수강키 lect.lectno /// public Int64 lectno {get;set;} /// /// fklectsdcmsd 과정과제키 cmsd.sdno /// //public int sdno {get;set;} /// /// 과제제출내용 /// public String atext {get;set;} /// /// fklectsdfg 제출파일 /// public Int64? fgnocm {get;set;} /// /// 모사율 /// public int? copyrate {get;set;} public String copyratename { get { return copyrate == null ? "-" : string.Format("{0}%", copyrate.Value); } } /// /// 모사답안신고여부 /// public int iscopy {get;set;} /// /// 점수 /// public int? cpoint {get;set;} public String cpoint2 { get { return cpoint == null ? "-" : cpoint.ToString(); } } /// /// 1000 피드백 /// public String feedb {get;set;} public String feedbox { get { return string.IsNullOrEmpty(feedb) ? "X" : "O"; } } /// /// 제출일 /// public DateTime? submittime{get;set;} /// /// 50 제출ip /// public String submitip {get;set;} public String submittimeip { get { return submittime == null ? "" : string.Format("{0}
{1}", submittime.Value.ToString("yyyy-MM-dd HH:mm:ss"), submitip); } } /// /// 평가일 /// public DateTime? checktime {get;set;} /// /// 50 평가ip /// public String checkip {get;set;} public String checktimeip { get { return checktime == null ? "" : string.Format("{0}
{1}", checktime.Value.ToString("yyyy-MM-dd HH:mm:ss"), checkip); } } public int userno { get; set; } /// /// 환급신청여부 환급강좌 기준 /// public int isrebate { get; set; } public String isrebatename { get { return isrebate == 1 ? "환급" : "비환급"; } } public String asname { get; set; } public String username { get; set; } public String usernameid { get { return string.Format("{0}({1})", username, userid); } } public String userid { get; set; } public int sdstate { get { return submittime != null ? 1 : 0; } } public String sdstatename { get { return submittime != null ? "제출" : "미제출"; } } public String lectnos { get; set; } public Int64 bno { get; set; } } /// /// 토론글 /// [Serializable] public class LectSDBoard : LectSD { /// /// 토론글키 /// public Int64 bno {get;set;} /// /// fklectsdboardlect 수강키 lect.lectno /// //public Int64 lectno {get;set;} /// /// fklectsdboardcmsd 과정노론키 cmsd.sdno /// //public int sdno {get;set;} /// /// 200 제목 /// public String subject {get;set;} /// /// 내용 /// public String contents {get;set;} /// /// fklectsdboardfg 첨부파일번호 FileGroup.FGNo /// //public Int64? fgno {get;set;} /// /// 읽은 수 본인은 제외 /// public int rcount {get;set;} /// /// 작성IP /// public String cip { get; set; } /// /// 삭제여부 0: 정상, 1: 삭제 /// public int isdel {get;set;} } /// /// 혼합교육강좌 /// [Serializable] public class CMinningscd : BaseModel { /// /// 일정키 /// public Int64 cmisno { get; set; } /// /// 회차키 /// public Int64 cmino { get; set; } /// /// 교육시작 /// public DateTime estart { get; set; } public string estart2 { get; set; } /// /// 교육종료 /// public DateTime eend { get; set; } public string eend2 { get; set; } /// /// 제한인원 /// public int quota { get; set; } /// /// 순서 /// public int? scdseq { get; set; } /// /// 등록인원 /// public int? regmem { get; set; } /// /// 장소 /// public String studyplace { get; set; } /// /// 장소명 /// public String studyplacename { get; set; } /// /// 내용요약 /// public String scdInfoSummary { get; set; } /// /// 등록가능인원수 /// public int remainPeople { get; set; } /// /// 교육일자종료여부 /// public bool isEnd { get; set; } public int? termend { get; set; } public int? peopleend { get; set; } } }