This commit is contained in:
parent
6611b4f758
commit
7a7fce0e89
|
|
@ -261,9 +261,10 @@ namespace NP.BO.Controllers
|
||||||
return Redirect("/");
|
return Redirect("/");
|
||||||
}
|
}
|
||||||
vm.CMInnings = Dao.Get<CMInning>("cm.cminnings", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "isonline", 0 } });
|
vm.CMInnings = Dao.Get<CMInning>("cm.cminnings", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "isonline", 0 } });
|
||||||
|
vm.CMInningscds = new List<CMinningscd>() { };
|
||||||
if (vm.CMInnings.Count > 0)
|
if (vm.CMInnings.Count > 0)
|
||||||
{
|
{
|
||||||
vm.CMInningscds = Dao.Get<CMinningscd>("cm.cminningscds", new System.Collections.Hashtable() { { "cmno", vm.CMInnings[0].cmino } });
|
vm.CMInningscds = Dao.Get<CMinningscd>("cm.cminningscds", new System.Collections.Hashtable() { { "cmino", vm.CMInnings[0].cmino } });
|
||||||
}
|
}
|
||||||
vm.ComCodes = GetComCodes("studyplace");
|
vm.ComCodes = GetComCodes("studyplace");
|
||||||
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } });
|
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } });
|
||||||
|
|
|
||||||
|
|
@ -76,15 +76,18 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="data" id="tbody1">
|
<tbody class="data" id="tbody1">
|
||||||
@foreach (var item in Model.CMInningscds)
|
@if(Model.CMInningscds.Count() > 0)
|
||||||
{
|
{
|
||||||
<tr>
|
foreach (var item in Model.CMInningscds)
|
||||||
<td>@item.scdseq</td>
|
{
|
||||||
<td class="link"><a href="#" onclick="regscd(@item.cmino, @item.cmisno)">@item.estart ~ @item.eend</a></td>
|
<tr>
|
||||||
<td>@item.quota</td>
|
<td>@item.scdseq</td>
|
||||||
<td>@item.regmem</td>
|
<td class="link"><a href="#" onclick="regscd(@item.cmino, @item.cmisno)">@item.estart ~ @item.eend</a></td>
|
||||||
<td>@item.udt</td>
|
<td>@item.quota</td>
|
||||||
</tr>
|
<td>@item.regmem</td>
|
||||||
|
<td>@item.udt</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -222,7 +225,7 @@
|
||||||
var eend = (date + " " + fillzero(ieth, true, 2) + ":" + fillzero(ietm, true, 2) + ":00").toString();
|
var eend = (date + " " + fillzero(ieth, true, 2) + ":" + fillzero(ietm, true, 2) + ":00").toString();
|
||||||
capp("/acommon/cminningscdsave", {
|
capp("/acommon/cminningscdsave", {
|
||||||
cmisno: _cmisno,
|
cmisno: _cmisno,
|
||||||
cmino: @Model.CMInnings[0].cmino,
|
cmino: @(Model.CMInnings.Count() > 0 ? Model.CMInnings[0].cmino : 0),
|
||||||
estart2: estart,
|
estart2: estart,
|
||||||
eend2: eend,
|
eend2: eend,
|
||||||
quota: getv("iquota")
|
quota: getv("iquota")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue