This commit is contained in:
parent
3bb2654557
commit
d83ee62e75
|
|
@ -63,11 +63,11 @@ namespace NP.BO.Controllers
|
|||
{
|
||||
vm.stringval12 = DateTime.Now.Year.ToString();
|
||||
}
|
||||
if (vm.viewidx == 0 && !IsPost() && string.IsNullOrEmpty(vm.stringval10))
|
||||
if (vm.viewidx == 0 && !string.IsNullOrEmpty(vm.stringval10))
|
||||
{
|
||||
vm.stringval10 = vm.stringval10 ?? DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01");
|
||||
}
|
||||
if (vm.viewidx == 0 && !IsPost() && string.IsNullOrEmpty(vm.stringval11))
|
||||
if (vm.viewidx == 0 && !string.IsNullOrEmpty(vm.stringval11))
|
||||
{
|
||||
vm.stringval11 = vm.stringval11 ?? DateTime.Now.AddMonths(1).ToString("yyyy-MM-01");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ else
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
@*<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">썸네일이미지</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.Partial("./Partial/File", Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).ToList(), new ViewDataDictionary {
|
||||
|
|
@ -71,7 +71,7 @@ else
|
|||
<br />
|
||||
<img id="fgnothumb" src="@(Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).Count() > 0 && !string.IsNullOrEmpty(Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).First().fileurl) ? string.Format("{0}{1}", Model.Files, Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).First().fileurl) : "/img/common/profile_sample.jpg")" style="max-width: 100px; max-height: 50px; border-radius: 5px;" />
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label req" id="lblcontents">@(Model.Board.bno > 0 && Model.Board.disptype == 1 ? "Answer" : "내용")</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.TextAreaFor(m => m.Board.contents, new { @class = "form-control", @style = "resize: none; width: 90%; height: 120px; padding: 3px 5px;" })</div>
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ else
|
|||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
@*<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">썸네일이미지</label>
|
||||
<div class="col-sm-8 col-md-10">
|
||||
@Html.Partial("./Partial/File", Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).ToList(), new ViewDataDictionary {
|
||||
|
|
@ -91,7 +91,7 @@ else
|
|||
<br />
|
||||
<img id="fgnothumb" src="@(Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).Count() > 0 && !string.IsNullOrEmpty(Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).First().fileurl) ? string.Format("{0}{1}", Model.Files, Model.FileList.Where(w=>w.fgno == Model.Board.fgnothumb).First().fileurl) : "/img/common/profile_sample.jpg")" style="max-width: 100px; max-height: 50px; border-radius: 5px;" />
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label req">내용</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.TextAreaFor(m => m.Board.contents, new { @class = "form-control", @style = "resize: none; width: 90%; height: 120px; padding: 3px 5px;" })</div>
|
||||
|
|
|
|||
|
|
@ -298,11 +298,18 @@
|
|||
});
|
||||
|
||||
if ("@Model.stringval10" == null || "@Model.stringval10" == "" || "@Model.stringval10" == undefined) {
|
||||
$("#stringval10").val("");
|
||||
}
|
||||
if ("@Model.stringval11" == null || "@Model.stringval11" == "" || "@Model.stringval11" == undefined) {
|
||||
$("#stringval11").val("");
|
||||
}
|
||||
|
||||
@*if ("@Model.stringval10" == null || "@Model.stringval10" == "" || "@Model.stringval10" == undefined) {
|
||||
$("#stringval10").val("@DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01")");
|
||||
}
|
||||
if ("@Model.stringval11" == null || "@Model.stringval11" == "" || "@Model.stringval11" == undefined) {
|
||||
$("#stringval11").val("@DateTime.Now.AddMonths(1).ToString("yyyy-MM-01")");
|
||||
}
|
||||
}*@
|
||||
});
|
||||
function cbgetcm() {
|
||||
if (capResult.obj != null && capResult.obj.length > 0) {
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -186,7 +186,7 @@
|
|||
.lctcWeek th,
|
||||
.lctcWeek td {display:block; width:100%;}
|
||||
.lctcWeek table {border-top:solid 1px #d6d6d6;}
|
||||
.lctcWeek tr {position:relative; padding:15px 0; padding-left:95px; padding-right:70px; border-bottom:solid 1px #d6d6d6;}
|
||||
.lctcWeek tr {position:relative;padding:15px 0; padding-right:70px;border-bottom:solid 1px #d6d6d6;}
|
||||
.lctcWeek th,
|
||||
.lctcWeek td {padding:0; border-top:none; border-bottom:none;}
|
||||
.lctcWeek th {width:80px; position:absolute; left:0; top:15px;}
|
||||
|
|
|
|||
Loading…
Reference in New Issue