226 lines
11 KiB
Plaintext
226 lines
11 KiB
Plaintext
|
|
@model NP.Model.VMMM
|
||
|
|
@{
|
||
|
|
var NMonth = Model.RMonth.ToString().Substring(4, 2) == "12" ? ((Convert.ToInt32(Model.RMonth.ToString().Substring(0, 4)) + 1) + "01") : (Model.RMonth.ToString().Substring(0, 4) + (Convert.ToInt32(Model.RMonth.ToString().Substring(4, 2)) + 1).ToString("00"));
|
||
|
|
}
|
||
|
|
<form id="mform" method="post">
|
||
|
|
<br />
|
||
|
|
<div class="rowvm" style="border: 1px solid #ddd; padding: 10px;">
|
||
|
|
<a href="#" onclick="admingo(-1)" class="btn btn-md btn-default">< 이전</a>
|
||
|
|
@Html.Partial("./Partial/Select", Model.Admins, new ViewDataDictionary { { "special", "reg" }, { "name", "AdminNo" }, { "selected", Model.AdminNo }, { "onchange", "submitnew(null, 1, true);" } })
|
||
|
|
<a href="#" onclick="admingo(1)" class="btn btn-md btn-default">다음 ></a>
|
||
|
|
</div>
|
||
|
|
<div class="rowvm" style="border: 1px solid #ddd; padding: 10px; margin-top: 1px;">
|
||
|
|
<a href="#" onclick="days(0)" class="btn btn-md btn-info">오늘</a>
|
||
|
|
<a href="#" onclick="days(-1)" class="btn btn-md btn-default botbd">< 이전</a>
|
||
|
|
<span style="color: #0094ff; font-weight: bold; font-size: 18px; vertical-align: middle;">@string.Format("{0}년 {1}월", Model.RMonth.ToString().Substring(0, 4), Model.RMonth.ToString().Substring(4, 2))</span>
|
||
|
|
<a href="#" onclick="days(1)" class="btn btn-md btn-default botbd">다음 ></a>
|
||
|
|
</div>
|
||
|
|
<br />
|
||
|
|
<div class="buttonbox" style="height: 30px; line-height: 30px;"><strong><i class="fa fa-bars"></i> Month Activities</strong></div>
|
||
|
|
<div class="buttonbox" style="height: 20px; line-height: 20px;"><strong><i class="fa fa-bolt"></i> Last Month Activities (Actual)</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>[Development]Company</th>
|
||
|
|
<th>Position</th>
|
||
|
|
<th>Date</th>
|
||
|
|
<th>Contents</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
@foreach (var item in Model.RptMonthDts.Where(w => w.RMonth < Model.RMonth))
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td class="text-left">@item.Company</td>
|
||
|
|
<td>@item.Position</td>
|
||
|
|
<td>@item.ADate.Value.ToString("yy-MM-dd")</td>
|
||
|
|
<td class="text-left">@item.RContents</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<div class="buttonbox" style="height: 20px; line-height: 20px;"><strong><i class="fa fa-bolt"></i> This Month Activities (Plan)</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>[Development]Company</th>
|
||
|
|
<th>Position</th>
|
||
|
|
<th>Date</th>
|
||
|
|
<th>Contents</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
@foreach (var item in Model.RptMonthDts.Where(w => w.RMonth == Model.RMonth))
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td class="text-left">@item.Company</td>
|
||
|
|
<td>@item.Position</td>
|
||
|
|
<td>@item.TDate1</td>
|
||
|
|
<td class="text-left">@item.RContents</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
@if (Model.RptMonth.RMonth > 1)
|
||
|
|
{
|
||
|
|
<div class="buttonbox" style="height: 20px; line-height: 20px;"><strong><i class="fa fa-bolt"></i> Other Activities</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th style="width: 50%;">Last Month activities</th>
|
||
|
|
<th>This Month activities</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
<tr>
|
||
|
|
<td class="text-left" style="white-space: pre-wrap">@Html.Raw((Model.RptMonth.LastAct ?? "").Replace(System.Environment.NewLine, "<br />").Replace(" ", " "))</td>
|
||
|
|
<td class="text-left" style="white-space: pre-wrap">@Html.Raw((Model.RptMonth.ThisAct ?? "").Replace(System.Environment.NewLine, "<br />").Replace(" ", " "))</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
}
|
||
|
|
<br />
|
||
|
|
<div class="buttonbox" style="height: 30px; line-height: 30px;"><strong><i class="fa fa-bars"></i> Planning & Performance</strong></div>
|
||
|
|
<div class="buttonbox" style="height: 20px; line-height: 20px;"><strong><i class="fa fa-bolt"></i> Incentive Request</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>Company/Position</th>
|
||
|
|
<th>Start</th>
|
||
|
|
<th>End</th>
|
||
|
|
<th>Package</th>
|
||
|
|
<th>Rate</th>
|
||
|
|
<th>Fee</th>
|
||
|
|
<th>consultant</th>
|
||
|
|
<th>Status</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
@foreach (var item in Model.OrderReports)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td class="text-left">@item.ClientOrderName</td>
|
||
|
|
<td>@item.StDate1</td>
|
||
|
|
<td>@item.EndDate1</td>
|
||
|
|
<td class="text-right">\ @item.ReqMoney.ToString("#,0")</td>
|
||
|
|
<td>@item.ReqRate %</td>
|
||
|
|
<td class="text-right">\ @item.ConsultantSales.ToString("#,0")</td>
|
||
|
|
<td class="text-right">@item.ConsultantPremium %</td>
|
||
|
|
<td class="text-right">@item.SalesKindName</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
@if (Model.OrderReports.Count() > 0)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<th class="text-left" colspan="5">Total</th>
|
||
|
|
<th class="text-right">\ @Model.OrderReports.Sum(s => s.ConsultantSales).ToString("#,0")</th>
|
||
|
|
<th class="text-right"></th>
|
||
|
|
<th class="text-right"></th>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<div class="buttonbox" style="height: 20px; line-height: 20px;"><strong><i class="fa fa-bolt"></i> Project</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>Company/Position</th>
|
||
|
|
<th>Start</th>
|
||
|
|
<th>End</th>
|
||
|
|
<th>추천/지원</th>
|
||
|
|
<th>Consultant</th>
|
||
|
|
<th>Co-worker</th>
|
||
|
|
<th>Status</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
@foreach (var item in Model.Orders)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td class="text-left">@item.ClientOrderName</td>
|
||
|
|
<td>@item.StDate1</td>
|
||
|
|
<td>@item.EndDate1</td>
|
||
|
|
<td>@item.RecommanCount / @item.ResumeCount</td>
|
||
|
|
<td>@item.PMName</td>
|
||
|
|
<td>@item.CoworkerName</td>
|
||
|
|
<td>@item.ProgressName</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<br />
|
||
|
|
<div class="buttonbox" style="height: 30px; line-height: 30px;"><strong><i class="fa fa-bars"></i> Annul Planning / Performance (Unit : K WON)</strong></div>
|
||
|
|
<section class="panel panel-default">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped b-t b-light">
|
||
|
|
<thead>
|
||
|
|
<tr><th colspan="2">Last Month</th><th colspan="2">Total</th><th>This Month</th></tr>
|
||
|
|
<tr><th>Planning</th><th>Performance</th><th>Planning</th><th>Performance</th><th>Planning</th></tr>
|
||
|
|
</thead>
|
||
|
|
<tbody class="data">
|
||
|
|
<tr>
|
||
|
|
<td class="text-right">\ @Model.RptYear.LastPlan.ToString("#,0")</td>
|
||
|
|
<td class="text-right">\ @Model.RptYear.LastPerform.ToString("#,0")</td>
|
||
|
|
<td class="text-right">\ @Model.RptYear.TotalPlan.ToString("#,0")</td>
|
||
|
|
<td class="text-right">\ @Model.RptYear.TotalPerform.ToString("#,0")</td>
|
||
|
|
<td class="text-right">\ @Model.RptYear.ThisPlan.ToString("#,0")</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
@Html.HiddenFor(m => m.RMonth)
|
||
|
|
@Html.HiddenFor(m => m.TabIdx)
|
||
|
|
</form>
|
||
|
|
|
||
|
|
<style type="text/css">
|
||
|
|
</style>
|
||
|
|
<script>
|
||
|
|
$(document).ready(function () {
|
||
|
|
|
||
|
|
});
|
||
|
|
function admingo(idx) {
|
||
|
|
if (idx < 0 && $('#AdminNo').prop("selectedIndex") != '') {
|
||
|
|
$('#AdminNo').val($('#AdminNo option').eq($('#AdminNo').prop("selectedIndex") - 1).val());
|
||
|
|
submitnew(null, 1, true);
|
||
|
|
}
|
||
|
|
else if (idx > 0 && ($('#AdminNo').prop("selectedIndex") + 1) < $('#AdminNo option').length) {
|
||
|
|
$('#AdminNo').val($('#AdminNo option').eq($('#AdminNo').prop("selectedIndex") + 1).val());
|
||
|
|
submitnew(null, 1, true);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function days(idx) {
|
||
|
|
if (idx < 0) {
|
||
|
|
$("#RMonth").val('@(Model.RMonth.ToString().Substring(4,2) == "01" ? string.Format("{0}12", Convert.ToInt32(Model.RMonth.ToString().Substring(0, 4)) - 1) : string.Format(Model.RMonth.ToString().Substring(0, 4) + "{0}", (Convert.ToInt32(Model.RMonth.ToString().Substring(4,2)) - 1).ToString("00")))');
|
||
|
|
submitnew(null, 1, true);
|
||
|
|
}
|
||
|
|
else if (idx > 0) {
|
||
|
|
$("#RMonth").val('@(Model.RMonth.ToString().Substring(4,2) == "12" ? string.Format("{0}01", Convert.ToInt32(Model.RMonth.ToString().Substring(0, 4)) + 1) : string.Format(Model.RMonth.ToString().Substring(0, 4) + "{0}", (Convert.ToInt32(Model.RMonth.ToString().Substring(4,2)) + 1).ToString("00")))');
|
||
|
|
submitnew(null, 1, true);
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
$("#RMonth").val('@(DateTime.Now.ToString("yyyyMM"))');
|
||
|
|
submitnew(null, 1, true);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|