@model NP.Model.VMLect @{ int i = 1; }
설문정보
@string.Format("{0} | {1} | {2} | {3}반", Model.CMRS.tmname, Model.CMRS.cshapename, Model.CMRS.cname, Model.CMRS.classno)
@Model.CMRS.rstime.ToShortDateString() ~ @Model.CMRS.retime.ToShortDateString() ( @Model.CMRS.sssename2 )
@string.Format("{0}명 / {1}명 ({2}%)", Model.CMRS.countok, Model.CMRS.countlect, (Model.CMRS.countok / (Model.CMRS.countlect * 1.0) * 100).ToString("#,0.#"))
@string.Format("{0} / {1}", Model.CMRS.rstypename, Model.CMRS.rscname)
@* 엑셀다운로드*@ 엑셀다운로드 목록
@foreach (var d in Model.RSCQs.Select(s => s.rscqno).Distinct()) { var item = Model.RSCQs.Where(w => w.rscqno == d).First(); @if (item.atype > 0) { } else { var _max = 0; foreach (var qi in Model.RSCQs.Where(w => w.rscqno == d)) { bool ismax = false; if (qi.acount > 0 && _max <= Convert.ToInt32(qi.scount / (qi.acount * 1.0) * 100)) { ismax = true; _max = Convert.ToInt32(qi.scount / (qi.acount * 1.0) * 100); } } }
[설문@(i++)]
@Html.Raw(item.qtext)
@Html.Raw(item.atext ?? "-")
@(qi.acount < 1 ? 0 : Convert.ToInt32(qi.scount / (qi.acount * 1.0) * 100))%(@(qi.scount)명 선택)@qi.qitext
}
@Html.HiddenFor(m => m.intval)
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
@section styles{ } @section scriptsHeader{ @Html.Partial("./Partial/ExcelCommentBox") } @section scripts{ }