Commit 16429c17 by allan0815

资产负债表 按日的方式增加可选日期

parent 29fc8277
...@@ -69,6 +69,10 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -69,6 +69,10 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
date = DateTime.Parse(date.ToString("yyyy-MM") + "-01").AddDays(-1); date = DateTime.Parse(date.ToString("yyyy-MM") + "-01").AddDays(-1);
} }
} }
else if (type == 1)
{
date = day.Value;
}
var list = new Services.FinanceReportServices().GetBalanceSheet(type, date, paycompanyvalue); var list = new Services.FinanceReportServices().GetBalanceSheet(type, date, paycompanyvalue);
......
...@@ -16,19 +16,19 @@ ...@@ -16,19 +16,19 @@
<div class="form-group"> <div class="form-group">
<input id="chk_showdetail" type="checkbox" checked="checked" /><label for="chk_showdetail">是否可看明细</label> <input id="chk_showdetail" type="checkbox" checked="checked" /><label for="chk_showdetail">是否可看明细</label>
<select id="timetype" class="form-control" style="width:120px;"> <select id="timetype" class="form-control" style="width:120px;">
<option value="2">按周的方式</option> <option value="2">按周的方式</option>
<option value="3">按月的方式</option> <option value="3">按月的方式</option>
@*<option value="4">按年的方式</option>*@ @*<option value="4">按年的方式</option>*@
<option value="1">按日的方式</option> <option value="1">按日的方式</option>
</select> </select>
@*<label>日期</label> @*<label>日期</label>*@
<input id="day" type="text" style="width:120px" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")" class="form-control">*@ <input id="day" type="text" style="width:120px;display:none;" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")" class="form-control" />
<label>付款主体</label> <label>付款主体</label>
<select id="sel_paycompany" class="form-control" style="width:200px;"> <select id="sel_paycompany" class="form-control" style="width:200px;">
<option value="0">百伦供应链</option> <option value="0">百伦供应链</option>
@*<option value="1">广州百伦科技有限公司</option> @*<option value="1">广州百伦科技有限公司</option>
<option value="2" selected>香港百伦科技有限公司</option>*@ <option value="2" selected>香港百伦科技有限公司</option>*@
</select> </select>
<button type="button" class="btn btn-sm btn-primary" onclick="GetData();"><i class="fa fa-search"></i>&nbsp;查询</button> <button type="button" class="btn btn-sm btn-primary" onclick="GetData();"><i class="fa fa-search"></i>&nbsp;查询</button>
<button id="btnexport" style="display:none;" type="button" class="btn btn-sm btn-success" onclick="ExportXsl();">导出</button> <button id="btnexport" style="display:none;" type="button" class="btn btn-sm btn-success" onclick="ExportXsl();">导出</button>
...@@ -1334,6 +1334,15 @@ ...@@ -1334,6 +1334,15 @@
init(); init();
//list(); //list();
$('#timetype').change(function () {
if ($('#timetype').val() == 1) {
$('#day').show();
}
else {
$('#day').hide();
}
})
}) })
function init() { function init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment