@model NP.Model.VMUsersLeave
@Html.Partial("./Partial/SearchCaption")
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "name", "LeaveStatus" }, { "selected", Model.LeaveStatus }, { "valuetext", ":-선택;0:신청;1:완료;2:취소" } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "name", "searchtype" }, { "selected", Model.searchtype }, { "valuetext", "username:이름;userid:ID" } }) @Html.Partial("./Partial/Text", Model.stringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "searchtext", Value = Model.searchtext, PH = "검색어를 입력하세요.", CssClass = "esitem" }))
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } }) 완료처리 취소처리

@if (Model.UserLeaves.Any()) { foreach (var item in Model.UserLeaves) { } }
선택 아이디 요청일 처리상태
@if (item.status == 0 && item.userstatus == 98) { // 탈퇴신청이면서 회원상태는 탈퇴신청일때만 체크박스 } else if (item.status == 0 && item.userstatus != 98) { // 위 if절이 명확하지 않으면 readonly 처리 (조작된 데이터로 예상) } @if (item.status != 1 && item.userstatus != 99) { @item.userid @string.Format("({0})", item.username) } else { @item.userid } @item.levdate.ToString("yy-MM-dd HH:mm") @if (item.status != 1 && item.userstatus == 99) { @this.LeaveStatusToText(item.status) (관리자탈퇴) } else { @this.LeaveStatusToText(item.status) }
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
@section scripts{ } @functions{ /// /// 탈퇴 신청 히스토리의 상태코드 값을 텍스트로 반환 /// /// /// public string LeaveStatusToText(byte status) { string result = string.Empty; switch (status) { case 0: result = "신청"; break; case 1: result = "완료"; break; case 2: result = "취소"; break; default: break; } return result; } }