using NP.Model.ENUM;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Text;
namespace NP.Model
{
[Serializable]
public class Users : BaseModel
{
///
/// 회원번호
///
public int userno { get; set; }
///
/// 회원유형 1: 교육생,11: 강사,81: 고객사관리자,91: 통합관리자, 92: 일반관리자
///
public int usertype { get; set; }
///
/// 가입유형 0:일반회원가입,1:google,2:naver,3:kakao
///
public int jointype { get; set; }
///
/// sns아이디
///
public String snsid { get; set; }
public String usertypestr { get; set; }
public String usertypename
{
get
{
return usertype == 1 ? "교육생" : usertype == 11 ? "교강사" : usertype == 81 ? "고객사관리자" : usertype == 91 ? "통합관리자" : usertype == 92 ? "일반관리자" : usertype == 95 ? "일반관리자" : "-";
}
}
///
/// 구분 강사: 0: 온라인, 1: 오프라인, 2:온/오프라인
///
public int userkind { get; set; }
public String userkindname
{
get
{
return userkind == 0 ? "온라인" : userkind == 1 ? "오프라인" : userkind == 2? "온/오프라인" : "-";
}
}
///
/// 50 uiusersuserid 아이디 asis:아이디,신규회원:이메일 userid, email cross unique check
///
public String userid { get; set; }
///
/// 200 kisa-sha256 비번 홈페이지회원/인사담당자만 비번입력
///
public String userpass { get; set; }
///
/// 50 이름
///
public String username { get; set; }
///
/// 50 영문이름
///
public String usernameeng { get; set; }
///
/// 주민번호
///
public String rrnum { get; set; }
public int? gender { get; set; }
public String gender2 { get; set; }
///
/// 200 uiusersemail ev50 이메일 userid, email cross unique check
///
public String email { get; set; }
public String email1 { get; set; }
public String email2 { get; set; }
///
/// 이메일정보수신
///
public int isacceptemail { get; set; }
///
/// 휴대폰정보수신
///
public int isacceptmobile { get; set; }
///
/// 200 ev50 모바일번호 "-"생성
///
public String mobile { get; set; }
public String mobile1 { get; set; }
public String mobile2 { get; set; }
public String mobile3 { get; set; }
///
/// 200 ev50 일반전화 고객사담당자의 Dir.Number와 공용"-"생성
///
public String telno { get; set; }
///
/// fkusersassign 소속 assign.asno
///
public int? asno { get; set; }
public string asno2 { get; set; }
public String asname { get; set; }
public String ceoname { get; set; }
///
/// 강사소속
///
public String pasname { get; set; }
///
/// 50 부서
///
public String depart { get; set; }
///
/// fkuserscc 직급 comcode.cgroup= jobposition
///
public int? ccposition { get; set; }
public String ccpositionname { get; set; }
public String ccpositionetc { get; set; }
public String ccposition2 { get; set; }
///
/// fkusersfg 프로필사진파일
///
public Int64? fgnoprofile { get; set; }
///
/// 직무 comcode.cgroup= job 콤마로연결
///
public String ccjobs { get; set; }
///
/// 200 ev50 주민등록번호
///
public String userpno { get; set; }
public String userpno1 { get; set; }
public String userpno2 { get; set; }
///
/// 50 은행
///
public String bankname { get; set; }
///
/// 200 ev50 계좌번호 "-"포함
///
public String bankno { get; set; }
///
/// 6 우편번호
///
public String post { get; set; }
///
/// 200 주소
///
public String address1 { get; set; }
///
/// 200 상세주소
///
public String address2 { get; set; }
///
/// 소개 에디터
///
public String introhtml { get; set; }
///
/// 상태 1: 활성, 8: 휴면, 9: 비활성(정지, 삭제), 98:탈퇴신청, 99: 탈퇴
///
public int status { get; set; }
/// 상태에 따른 한글명칭
public string statusname
{
get
{
switch (status)
{
case 1: return "활성";
case 8: return "휴면";
case 9: return "비활성";
case 98: return "탈퇴신청";
case 99: return "탈퇴";
default: return "";
}
}
}
///
/// 공정거래업무경력
///
public int? kfcfyear { get; set; }
///
/// 사업장과의관계 1:자사근로자, 2:타사근로자
///
public int isassignuser { get; set; }
public int savefrontbuy { get; set; }
///
/// varchar 10 연합회교육이력 "10101(공정거래일반,불공정거래행위,부당한공동행위,하도급거래,부당내부거래)
///
public String edus { get; set; }
///
/// default now() 마지막로그인시간 1년유휴로직대상
///
public DateTime logintime {get;set;}
public int loginkey { get; set; }
///
/// 휴면알림메일 발송일자 사용자 로그인 시 널로 변경
///
public DateTime? send335time {get;set;}
///
/// 비밀번호찾기 클릭시간 인증요청 후 24시간이내 비번 변경 가능
///
public DateTime? pwcalltime {get;set;}
///
/// 비밀번호찾기 클릭인증코드
///
public int? pwcallno {get;set;}
public int? eastereggkey { get; set; }
///
/// 생년월일
///
public String birthday { get; set; }
///
/// 직위
///
public String uduty { get; set; }
///
/// 학력
///
public int slevel { get; set; }
public String MobileFormat
{
get
{
return string.IsNullOrEmpty(mobile) || mobile.Replace("-", "").Length < 10 ? (mobile ?? "") : mobile.Replace("-", "").Length == 10 ? string.Format("{0}-{1}-{2}", mobile.Replace("-", "").Substring(0, 3), mobile.Replace("-", "").Substring(3, 3), mobile.Replace("-", "").Substring(6)) : string.Format("{0}-{1}-{2}", mobile.Replace("-", "").Substring(0, 3), mobile.Replace("-", "").Substring(3, 4), mobile.Replace("-", "").Substring(7));
}
}
public String TelNoName
{
get
{
return string.IsNullOrEmpty(telno) ? "-" : telno.Contains("-") ? telno : telno.Length == 11 ? string.Format("{0}-{1}-{2}", telno.Substring(0, 3), telno.Substring(3, 4), telno.Substring(7)) : telno.Length == 10 ? string.Format("{0}-{1}-{2}", telno.Substring(0, 3), telno.Substring(3, 3), telno.Substring(6)) : telno;
}
}
public String AddressFull
{
get
{
return string.Format("{0} {1} {2}", post ?? "", address1 ?? "", address2 ?? "");
}
}
public String brno { get; set; }
public String aspost { get; set; }
public String asaddress1 { get; set; }
public String asaddress2 { get; set; }
public String asbtype{ get; set; }
public String asbkind{ get; set; }
public String asmanname { get; set; }
public IList Us { get; set; }
public int isjoin { get; set; }
public String isjoinname
{
get
{
return isjoin == 1 ? "회원" : "비회원";
}
}
public String subdomain { get; set; }
public String di { get; set; }
public String ci { get; set; }
public String vssn { get; set; }
public int ischkatt { get; set; }
public short lectcomp { get; set; }
public short playbar { get; set; }
public short isplay { get; set; }
public AuthPlatform authplatform { get; set; }
}
///
/// 세션에 저장되는 최소한의 계정정보(값이 많지 않도록 유지)
///
[Serializable]
public class SSUserInfo
{
public int UserNo { get; set; }
public String UserId { get; set; }
public String UserName { get; set; }
///
/// 1: 교육생,11: 강사,81: 고객사관리자,91: 통합관리자, 92: 일반관리자
///
public int UserType { get; set; }
///
/// 소속 assign.asno
///
public int ASNo { get; set; }
public String UserInfo { get; set; }
///
/// 로그인시간 190115152959 yyMMddhhmmss
///
public String LoginTime { get; set; }
public String LoginIP { get; set; }
public int LoginKey { get; set; }
///
/// 통합관리자
///
public bool IsSysAdmin { get { return UserType == 91; } }
///
/// 일반관리자
///
public bool IsSubAdmin { get { return UserType > 91; } }
///
/// 일반관리자+통합관리자
///
public bool IsAdmin { get { return UserType > 90; } }
///
/// 고객사관리자
///
public bool IsSiteAdmin { get { return UserType == 81; } }
public bool IsStudent { get { return UserType == 1; } }
///
/// 강사
///
public bool IsTeacher{ get { return UserType == 11; } }
///
/// 관리자(usertype:96)
///
public bool IsSubAdmin96 { get { return UserType == 96; } }
///
/// 관리자(usertype:97:과제채점강사)
///
public bool IsSubAdmin97 { get { return UserType == 97; } }
}
///
/// 소속
///
[Serializable]
public class Assign : BaseModel
{
///
/// 소속키
///
public int asno { get; set; }
///
/// uiassignascode 회원번호코드 마지막등록번호 + 1
///
public int ascode { get; set; }
///
/// 회원여부 (0:비회원,1:회원)
///
public int isjoin { get; set; }
public String isjoinname
{
get
{
return isjoin == 1 ? "회원" : "비회원";
}
}
///
/// 회원가입비년도
///
public String joinyear{get;set;}
///
/// 회원가입비
///
public int joinprice { get; set; }
///
/// 회비
///
public int mprice {get;set;}
///
/// 100 법인명
///
public String asname {get;set;}
///
/// 50 대표자명
///
public String ceoname {get;set;}
///
/// 10 사업자등록번호
///
public String brno { get;set;}
public String brnofmt
{
get
{
return (brno ?? "").Length == 10 ? string.Format("{0}-{1}-{2}", brno.Substring(0, 3), brno.Substring(3,2), brno.Substring(5)) : brno??"";
}
}
///
/// 13 법인등록번호
///
public String grno { get;set;}
public String grnofmt
{
get
{
return (grno ?? "").Length == 13 ? string.Format("{0}-{1}", grno.Substring(0, 6), grno.Substring(6, 7)) : brno;
}
}
///
/// 50 업태
///
public String btype { get;set;}
///
/// 50 업종
///
public String bkind {get;set;}
///
/// 매출액
///
public Int64 salesamount {get;set;}
///
/// 100 홈페이지
///
public String homeurl { get;set;}
///
/// 상시종업원수
///
public int mcount {get;set;}
///
/// 창립일
///
public DateTime? aday {get;set;}
public String adaytext
{
get
{
return aday == null ? "" : aday.Value.ToString("yyyy-MM-dd");
}
}
///
/// 회원사구분 0:기업,1:단체,2:일반
///
public int? astype {get;set;}
public String astypename { get; set; }
///
/// 계열 0:제조,1:건설,2:유통,3:서비스,4:제조제약,9:기타
///
public int? asctg {get;set;}
public String asctgname { get; set; }
///
/// 주요키워드 0:삼성,1:현대,2:SK,3:LG,4:기업,5:단체,6:법무,7:롯데
///
public int? askey {get;set;}
public String askeyname { get; set; }
///
/// 6 우편번호
///
public String post { get;set;}
///
/// 200 주소
///
public String address1 {get;set;}
///
/// 200 상세주소
///
public String address2 { get;set;}
///
/// 사업자등록증 사본 파일번호
///
public Int64? fgnobno { get; set; }
///
/// 통장사본 파일번호
///
public Int64? fgnobank { get; set; }
///
/// 가입일
///
public DateTime? joindate {get;set;}
public String joindatetext
{
get
{
return joindate == null ? "" : joindate.Value.ToString("yyyy-MM-dd");
}
}
public int? joindateyear { get; set; }
///
/// 탈퇴일
///
public DateTime? exitdate {get;set;}
public String exitdatetext
{
get
{
return exitdate == null ? "" : exitdate.Value.ToString("yyyy-MM-dd");
}
}
///
/// 상태 0:삭제,1:가입,2:탈퇴,9:정지
///
public int status {get;set;}
public String statusname
{
get
{
return status == 1 ? "가입" : status == 2 ? "탈퇴" : status == 9 ? "정지" : "삭제?";
}
}
public int ismain { get; set; }
///
/// 사이트생성여부
///
public int issite {get;set;}
///
/// 50 사이트서브도메인
///
public String subdomain {get;set;}
///
/// 100 사이트명칭
///
public String sitename { get;set;}
///
/// fkassignfg 사이트로고 filegroup.fgno
///
public Int64? sitelogo {get;set;}
///
/// 사이트푸터 에디터
///
public String sitefooter { get; set; }
///
/// 원격로그인용 고객사사이트 서버 IP 최대3개
///
public String siteip { get; set; }
///
/// 가입비 납부일자
///
public DateTime? fdate { get; set; }
public int fstatus { get; set; }
public int fprice { get; set; }
public int fnstatus { get; set; }
public String fnstatusname
{
get
{
return fnstatus == 1 ? "납부" : "미납";
}
}
public int fnprice { get; set; }
///
/// 200 사업장주소
///
public String adr1 { get; set; }
///
/// 200 담당자주소
///
public String adr2 { get; set; }
///
/// 고용보험관리번호
///
public String eino { get; set; }
///
/// 담당자명
///
public String mname { get; set; }
///
/// 담당자연락처
///
public String mphone { get; set; }
public String mphone1 { get; set; }
public String mphone2 { get; set; }
public String mphone3 { get; set; }
public String MphoneFormat
{
get
{
return string.IsNullOrEmpty(mphone) || mphone.Replace("-", "").Length < 10 ? (mphone ?? "") : mphone.Replace("-", "").Length == 10 ? string.Format("{0}-{1}-{2}", mphone.Replace("-", "").Substring(0, 3), mphone.Replace("-", "").Substring(3, 3), mphone.Replace("-", "").Substring(6)) : string.Format("{0}-{1}-{2}", mphone.Replace("-", "").Substring(0, 3), mphone.Replace("-", "").Substring(3, 4), mphone.Replace("-", "").Substring(7));
}
}
///
/// 계산서 수신 이메일
///
public String taxemail { get; set; }
public String taxemail1 { get; set; }
public String taxemail2 { get; set; }
}
[Serializable]
public class AssignFee : BaseModel
{
///
/// fkassignfeeassign 소속키 assign.asno
///
public int asno {get;set;}
///
/// 년도
///
public int fyear {get;set;}
///
/// 회비
///
public int fprice {get;set;}
///
/// 납부일자
///
public DateTime? fdate { get; set; }
public String fdatetext
{
get
{
return fdate == null ? "" : fdate.Value.ToString("yyyy-MM-dd");
}
}
///
/// 200 메모
///
public String fmemo {get;set;}
///
/// 상태 0:미납,1:납부
///
public int status {get;set;}
///
/// 삭제여부
///
public int isdel {get;set;}
}
[Serializable]
public class AssignMan : Assign
{
///
/// 담당자키
///
public int asmno {get;set;}
///
/// 업무구분 0:공정거래담당인원,1:업무담당자,2:회비담당자,3:공정거래담당자
///
public int mtype {get;set;}
///
/// 정/부구분 0:정,1:부
///
public int jtype { get; set; }
public String mtypename
{
get
{
return mtype == 0 ? "공정거래담당임원" : mtype == 1 ? "업무담당자" : mtype == 2 ? "회비담당자" : mtype == 3 ? "공정거래담당자" : mtype == 4 ? "경쟁저널" : "-";
}
}
///
/// 50 부서
///
public String depart {get;set;}
///
/// 50 성명
///
public String mname {get;set;}
///
/// 50 직위
///
public String position {get;set;}
///
/// ev50 전화번호
///
public String telno {get;set;}
///
/// ev50 모바일번호
///
public String mobile {get;set;}
///
/// ev50 전화번호
///
public String fax {get;set;}
///
/// ev50 이메일
///
public String email {get;set;}
///
/// 200 사업장주소
///
public String adr1 {get;set;}
///
/// 200 담당자주소
///
public String adr2 {get;set;}
///
/// 담당자 우편주소
///
public String post2 { get; set; }
public String mjtypename
{
get
{
return string.Format("{0}({1})", mtypename, jtype == 0 ? "정" : "부");
}
}
}
[Serializable]
public class Councel : BaseModel
{
///
/// 상담번호
///
public int bno { get; set; }
///
/// 구분
///
public int userno { get; set; }
///
/// 질문
///
public String qtext { get; set; }
///
/// 답변
///
public String atext { get; set; }
public int bldgcat { get; set; }
public String bldgcatname { get; set; }
public String coname{get; set;}
public String coid{get; set;}
}
///
/// 회원 탈퇴 히스토리
///
[Serializable]
public class UserLeave
{
/// 탈퇴 히스토리 고유번호
public int levno { get; set; }
/// 회원 고유번호 (user 테이블 FK)
public int userno { get; set; }
/// 회원 아이디
public string userid { get; set; }
/// 회원 이름
public string username { get; set; }
/// 처리상태: 0=신청, 1=완료, 2=취소
public byte status { get; set; }
/// 회원상태 (1:활성, 8:휴면, 9:비활성 ,98:탈퇴신청, 99:탈퇴)
public int userstatus { get; set; }
/// 탈퇴 처리일시
public DateTime levdate { get; set; }
/// 탈퇴처리 회원번호
public long uno { get; set; }
/// 탈퇴 처리 IP
public string uip { get; set; }
/// 페이지 총 카운트
public int pagetotalcount { get; set; }
}
}