Commit cbfa01b8 by guanzhenshan

资产负债表按月、按周的类型时不显示文本框,按月时的背景色调整为浅蓝色

parent 00e1d47d
......@@ -36,7 +36,9 @@ namespace Bailun.DC.Services
}
else if (type == 3)
{
d = currentDay.AddMonths(-i);
d = DateTime.Parse(currentDay.AddMonths((1-i)).ToString("yyyy-MM") + "-01").AddDays(-1);
//currentDay.AddMonths(-i);
}
else if (type == 4)
{
......
......@@ -1412,11 +1412,20 @@
var obj = list[list.length - 1];
var day = obj.statistical_time.replace('T', ' ').replace('00:00:00', '');
$('#c6').html(day);
//设置文本框的值
for (var key in obj) {
//如果是月或者周,不显示文本框
if (type == 2 || type == 3) {
$('#' + key).parent().html(obj[key]).addClass(key);
}
else {
$('#' + key).val(obj[key]);
}
for (var i = 0; i < list.length - 1; i++) {
}
for (var i = 0; i < list.length; i++) {
var obj = list[i];
var day = obj.statistical_time.replace('T', ' ').replace('00:00:00', '');
$('#c' + (i)).html(day);
......@@ -1431,7 +1440,7 @@
$(this).css('color', '#fff');
}
else if (obj["ismark"] == 2) {
$(this).css('background', '#F8C25C');
$(this).css('background', '#87CEFA');
$(this).css('color', '#fff');
}
else {
......
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