@model NP.Model.VMUser
@if (Model.viewname == "user" || Model.viewname == "professor") { @Html.HiddenFor(m => m.User.usertype) } else { @Html.Partial("./Partial/Select", Model.userauths, new ViewDataDictionary { { "name", "User.usertype" }, { "selected", Model.User.usertype }, { "df", ":-권한선택" }, { "special", "reg" } }) }
@Html.TextBoxFor(m => m.User.userid, new { @class = "form-control disp-init ff", @style = "width: 300px;", @maxlength = "50" })
@Html.PasswordFor(m => m.User.userpass, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "20" })
@Html.TextBoxFor(m => m.User.username, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })
@Html.HiddenFor(m=>m.User.jointype)
@if (Model.viewname == "user") {
@Html.HiddenFor(m => m.User.userpno) @Html.TextBox("userpno1", (Model.User.userpno ?? "").Length > 5 ? Model.User.userpno.Substring(0, 6) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "6" }) - @Html.TextBox("userpno2", (Model.User.userpno ?? "").Length > 12 ? Model.User.userpno.Substring(6, 7) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "7" })
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:예;0:아니오" }, { "checked", Model.User.ischkatt }, { "name", "User.ischkatt" } })
}
@Html.TextBoxFor(m => m.User.email, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" }) @if (Model.viewname == "user") { }
@Html.TextBoxFor(m => m.User.mobile, new { @class = "form-control disp-init mobilefmt nocomma", @data_zero = "1", @style = "width: 300px;", @maxlength = "13" }) @if (Model.viewname == "user") { }
@if (Model.viewname == "user") {
@Html.TextBoxFor(m => m.User.birthday, new { @readonly = "readonly", @style = "width: 300px; background-color: #ddd;", @class = "postno form-control disp-init" })
} @if (Model.viewname == "user") {
@Html.TextBoxFor(m => m.User.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) 주소찾기(클릭 후 상단검색)
@Html.TextBoxFor(m => m.User.address1, new { @readonly = "readonly", @style = "background-color: #ddd; width: 300px;", @class = "postadr form-control disp-init", @placeholder = "주소" }) @Html.TextBoxFor(m => m.User.address2, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 400px;" })
}
@Html.HiddenFor(m => m.User.asno)
    @if (Model.User.asno > 0) {
  • X
  • }
@if (Model.viewname == "user") {
@Html.TextBoxFor(m => m.User.uduty, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "0:기타;1:고졸;2:학사;3:석사;4:박사" }, { "checked", Model.User.slevel }, { "name", "User.slevel" } })
} @if (Model.viewname == "professor" || Model.viewname == "admin") { if (Model.viewname == "professor") {
@Html.TextBoxFor(m => m.User.pasname, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })
}
@Html.TextBoxFor(m => m.User.depart, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })
@Html.Partial("./Partial/Select", Model.ComCodes.Where(w => w.cgroup == "jobposition"), new ViewDataDictionary { { "special", "reg" }, { "name", "User.ccposition" }, { "selected", Model.User.ccposition }, { "df", ":-직급선택" }, { "class", "disp-init" } }) @Html.TextBoxFor(m => m.User.ccpositionetc, new { @class = "form-control disp-init", @style = "width: 100px;" + (Model.User.ccposition == null || (Model.ComCodes.Where(w => w.ccode == Model.User.ccposition).FirstOrDefault() ?? new NP.Model.ComCode()).refcode != "9" ? "display:none;" : ""), @maxlength = "40" })
if (Model.viewname == "professor") {
@Html.Partial("./Partial/File", Model.FileList, new ViewDataDictionary { { "name", "User.fgnoprofile" },{"value", Model.User.fgnoprofile },{ "fname", "file"}, {"width", null },{"table", "users" },{ "column", "fgnoprofile"},{"filecount", 1 }, {"readmode", 0 },{"hidemode", 0 }, { "isimage", 1 },{ "imageid", "imgprofile" },{ "dftsrc", "/img/common/profile_sample.jpg" }, { "fileext", "" }, { "loginfo",Model.User.userno+"|9"} })
} } @if (Model.viewname == "user" || Model.viewname == "professor") { if (Model.viewname == "professor") {
@Html.HiddenFor(m => m.User.userpno) @Html.TextBox("userpno1", (Model.User.userpno ?? "").Length > 5 ? Model.User.userpno.Substring(0, 6) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "6" }) - @Html.TextBox("userpno2", (Model.User.userpno ?? "").Length > 12 ? Model.User.userpno.Substring(6, 7) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "7" })
@Html.TextBoxFor(m => m.User.bankname, new { @class = "form-control disp-init", @style = "width: 200px;", @maxlength = "50", @placeholder = "은행입력" }) @Html.TextBoxFor(m => m.User.bankno, new { @class = "form-control disp-init", @style = "width: 400px;", @maxlength = "30", @placeholder = "계좌번호입력" })
@Html.TextBoxFor(m => m.User.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) 주소찾기(클릭 후 상단검색)
@Html.TextBoxFor(m => m.User.address1, new { @readonly = "readonly", @style = "background-color: #ddd; width: 300px;", @class = "postadr form-control disp-init", @placeholder = "주소" }) @Html.TextBoxFor(m => m.User.address2, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 400px;" })
@Html.TextAreaFor(m => m.User.introhtml, new { @class = "form-control", @style = "resize: none; width: 90%; height: 80px; padding: 3px 5px;" })
} }
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:활성;8:휴면;9:비활성" }, { "checked", Model.User.status }, { "name", "User.status" } })
 
저장 @if (Model.User.userno > 0 && Model.viewname == "user") { 탈퇴 } else if (Model.User.userno > 0 && Model.viewname == "professor") { 삭제 } 목록
@Html.HiddenFor(m => m.intval) @Html.HiddenFor(m => m.User.userno)
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
close
@Html.Partial("./Partial/AssignBox", "bindAssign;고객사 검색;1") @section styles{ @Html.Partial("./Partial/Summernotestyle") } @section scriptsHeader{ @Html.Partial("./Partial/ScriptPost") @Html.Partial("./Partial/FileScript") @Html.Partial("./Partial/ScriptDate") @if (Model.viewname == "professor") { @Html.Partial("./Partial/Summernote") } } @section scripts{ }