Commit 7bcf67ce authored by 黄奎's avatar 黄奎

页面修改

parent 7d354d87
......@@ -50,7 +50,8 @@ namespace Edu.Model.Entity.Grade
/// <summary>
/// 学校编号
/// </summary>
public int School_Id {
public int School_Id
{
get { return defaultSId; }
set { defaultSId = value; }
}
......@@ -233,6 +234,5 @@ namespace Edu.Model.Entity.Grade
/// 滚动开班月份
/// </summary>
public string ScrollMonth { get; set; }
}
}
......@@ -4,13 +4,10 @@ using Edu.Model.ViewModel.User;
using Edu.Module.User;
using Edu.WebApi.Filter;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Edu.WebApi.Controllers.User
{
......@@ -71,39 +68,27 @@ namespace Edu.WebApi.Controllers.User
ExcelRows = new List<ExcelColumn>()
{
new ExcelColumn("日期"){ CellWidth=15},
new ExcelColumn("推送人数"){ CellWidth=15},
new ExcelColumn("新客户"){ CellWidth=15},
new ExcelColumn("初步沟通(二次沟通)"){ CellWidth=10},
new ExcelColumn("预约试听(已到店,已试听)"){ CellWidth=15},
new ExcelColumn("待联系"){ CellWidth=15},
new ExcelColumn("日语语培"){ CellWidth=15},
new ExcelColumn("韩国语培"){ CellWidth=15},
new ExcelColumn("法语语培"){ CellWidth=15},
new ExcelColumn("日本留学"){ CellWidth=15},
new ExcelColumn("韩国留学"){ CellWidth=15},
new ExcelColumn("英港澳留学"){ CellWidth=15},
new ExcelColumn("美国留学"){ CellWidth=15},
new ExcelColumn("新加坡留学"){ CellWidth=15},
new ExcelColumn("澳新留学"){ CellWidth=15},
new ExcelColumn("其他"){ CellWidth=15},
new ExcelColumn("A类客户"){ CellWidth=15},
new ExcelColumn("B类客户"){ CellWidth=15},
new ExcelColumn("C类客户"){ CellWidth=15},
new ExcelColumn("D类客户"){ CellWidth=15},
new ExcelColumn("同行介绍"){ CellWidth=15},
new ExcelColumn("直客"){ CellWidth=15},
new ExcelColumn("学员转介绍"){ CellWidth=15},
new ExcelColumn("内部介绍"){ CellWidth=15},
new ExcelColumn("无效"){ CellWidth=15},
new ExcelColumn("疑似"){ CellWidth=15},
new ExcelColumn("意向"){ CellWidth=15},
new ExcelColumn("近期可邀约"){ CellWidth=15},
new ExcelColumn("谈判"){ CellWidth=15},
new ExcelColumn("签约.成交.续费"){ CellWidth=15},
new ExcelColumn("语培签约金额"){ CellWidth=15},
new ExcelColumn("语培签约待收金额"){ CellWidth=15},
new ExcelColumn("留学签约金额"){ CellWidth=15},
new ExcelColumn("留学签约待收金额"){ CellWidth=15},
new ExcelColumn("学生人数"){ CellWidth=15},
new ExcelColumn("上课时数"){ CellWidth=15},
new ExcelColumn("线上与学生互动数"){ CellWidth=10},
new ExcelColumn("续约(含留学)"){ CellWidth=15},
new ExcelColumn("学生升级"){ CellWidth=15},
new ExcelColumn("转介绍"){ CellWidth=15},
new ExcelColumn("试讲(次)"){ CellWidth=15},
new ExcelColumn("学生旷课(次)"){ CellWidth=15},
new ExcelColumn("学生退课(次)"){ CellWidth=15},
new ExcelColumn("学生投诉(次)"){ CellWidth=15},
new ExcelColumn("老师迟到早退(次)"){ CellWidth=15},
new ExcelColumn("N5课程时数"){ CellWidth=15},
new ExcelColumn("N4课程时数"){ CellWidth=15},
new ExcelColumn("N3课程时数"){ CellWidth=15},
new ExcelColumn("N2课程时数"){ CellWidth=15},
new ExcelColumn("N1课程时数"){ CellWidth=15},
new ExcelColumn("学生小程序刷题次数"){ CellWidth=15},
new ExcelColumn("学生小程序刷题时间"){ CellWidth=15},
new ExcelColumn("总分数"){ CellWidth=15},
new ExcelColumn("所有老师平均分数"){ CellWidth=15},
new ExcelColumn("分数差距"){ CellWidth=15},
}
};
slist.Add(header);
......@@ -114,39 +99,27 @@ namespace Edu.WebApi.Controllers.User
{
new ExcelColumn(dObj.GetStringValue("DateStr"))
};
columns.Add(new ExcelColumn(dObj.GetStringValue("PushCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NewCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("CommunicationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TrialLessonCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NotContacted")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JPCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("KRCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("FRCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JPStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("KRStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("YGAStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("USStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("SGStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AXStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OtherCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassACount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassBCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassCCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassDCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("CustomerCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("B2CCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TransCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InnerCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InvalidCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("SuspectedCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("IntentionCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InvitationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NegotiationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ContractCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OrderMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OrderNotMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudyOrderMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudyOrderNotMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudentCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AttendClassHourScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OnLineInteractiveScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("RenewScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("UpgradeScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TransScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TrialSpeakScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TruancyScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("WithdrawsScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ComplaintScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TeacherBeLateScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N5ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N4ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N3ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N2ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N1ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("MiniAppPractiseScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("MiniAppTimeScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TotalScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AvgScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ScoreGap")));
var dataRow = new ExcelDataSource()
{
ExcelRows = columns
......@@ -158,7 +131,7 @@ namespace Edu.WebApi.Controllers.User
}
catch (Exception ex)
{
LogHelper.Write(ex, "DownLoadStudentStatic");
LogHelper.Write(ex, "DownLoadTeacherDay");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......@@ -203,39 +176,27 @@ namespace Edu.WebApi.Controllers.User
ExcelRows = new List<ExcelColumn>()
{
new ExcelColumn("日期"){ CellWidth=15},
new ExcelColumn("推送人数"){ CellWidth=15},
new ExcelColumn("新客户"){ CellWidth=15},
new ExcelColumn("初步沟通(二次沟通)"){ CellWidth=10},
new ExcelColumn("预约试听(已到店,已试听)"){ CellWidth=15},
new ExcelColumn("待联系"){ CellWidth=15},
new ExcelColumn("日语语培"){ CellWidth=15},
new ExcelColumn("韩国语培"){ CellWidth=15},
new ExcelColumn("法语语培"){ CellWidth=15},
new ExcelColumn("日本留学"){ CellWidth=15},
new ExcelColumn("韩国留学"){ CellWidth=15},
new ExcelColumn("英港澳留学"){ CellWidth=15},
new ExcelColumn("美国留学"){ CellWidth=15},
new ExcelColumn("新加坡留学"){ CellWidth=15},
new ExcelColumn("澳新留学"){ CellWidth=15},
new ExcelColumn("其他"){ CellWidth=15},
new ExcelColumn("A类客户"){ CellWidth=15},
new ExcelColumn("B类客户"){ CellWidth=15},
new ExcelColumn("C类客户"){ CellWidth=15},
new ExcelColumn("D类客户"){ CellWidth=15},
new ExcelColumn("同行介绍"){ CellWidth=15},
new ExcelColumn("直客"){ CellWidth=15},
new ExcelColumn("学员转介绍"){ CellWidth=15},
new ExcelColumn("内部介绍"){ CellWidth=15},
new ExcelColumn("无效"){ CellWidth=15},
new ExcelColumn("疑似"){ CellWidth=15},
new ExcelColumn("意向"){ CellWidth=15},
new ExcelColumn("近期可邀约"){ CellWidth=15},
new ExcelColumn("谈判"){ CellWidth=15},
new ExcelColumn("签约.成交.续费"){ CellWidth=15},
new ExcelColumn("语培签约金额"){ CellWidth=15},
new ExcelColumn("语培签约待收金额"){ CellWidth=15},
new ExcelColumn("留学签约金额"){ CellWidth=15},
new ExcelColumn("留学签约待收金额"){ CellWidth=15},
new ExcelColumn("学生人数"){ CellWidth=15},
new ExcelColumn("上课时数"){ CellWidth=15},
new ExcelColumn("线上与学生互动数"){ CellWidth=10},
new ExcelColumn("续约(含留学)"){ CellWidth=15},
new ExcelColumn("学生升级"){ CellWidth=15},
new ExcelColumn("转介绍"){ CellWidth=15},
new ExcelColumn("试讲(次)"){ CellWidth=15},
new ExcelColumn("学生旷课(次)"){ CellWidth=15},
new ExcelColumn("学生退课(次)"){ CellWidth=15},
new ExcelColumn("学生投诉(次)"){ CellWidth=15},
new ExcelColumn("老师迟到早退(次)"){ CellWidth=15},
new ExcelColumn("N5课程时数"){ CellWidth=15},
new ExcelColumn("N4课程时数"){ CellWidth=15},
new ExcelColumn("N3课程时数"){ CellWidth=15},
new ExcelColumn("N2课程时数"){ CellWidth=15},
new ExcelColumn("N1课程时数"){ CellWidth=15},
new ExcelColumn("学生小程序刷题次数"){ CellWidth=15},
new ExcelColumn("学生小程序刷题时间"){ CellWidth=15},
new ExcelColumn("总分数"){ CellWidth=15},
new ExcelColumn("所有老师平均分数"){ CellWidth=15},
new ExcelColumn("分数差距"){ CellWidth=15},
}
};
slist.Add(header);
......@@ -246,39 +207,27 @@ namespace Edu.WebApi.Controllers.User
{
new ExcelColumn(dObj.GetStringValue("DateStr"))
};
columns.Add(new ExcelColumn(dObj.GetStringValue("PushCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NewCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("CommunicationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TrialLessonCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NotContacted")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JPCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("KRCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("FRCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JPStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("KRStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("YGAStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("USStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("SGStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AXStudyCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OtherCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassACount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassBCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassCCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ClassDCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("CustomerCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("B2CCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TransCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InnerCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InvalidCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("SuspectedCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("IntentionCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("InvitationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("NegotiationCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ContractCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OrderMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OrderNotMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudyOrderMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudyOrderNotMoney")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StudentCount")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AttendClassHourScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("OnLineInteractiveScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("RenewScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("UpgradeScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TransScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TrialSpeakScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TruancyScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("WithdrawsScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ComplaintScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TeacherBeLateScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N5ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N4ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N3ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N2ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("N1ClassHoursScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("MiniAppPractiseScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("MiniAppTimeScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("TotalScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("AvgScore")));
columns.Add(new ExcelColumn(dObj.GetStringValue("ScoreGap")));
var dataRow = new ExcelDataSource()
{
ExcelRows = columns
......@@ -290,7 +239,7 @@ namespace Edu.WebApi.Controllers.User
}
catch (Exception ex)
{
LogHelper.Write(ex, "DownLoadStudentStaticMonth");
LogHelper.Write(ex, "DownLoadTeacherMonth");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......@@ -381,7 +330,7 @@ namespace Edu.WebApi.Controllers.User
}
catch (Exception ex)
{
LogHelper.Write(ex, "DownLoadStudentStaticMonthRate");
LogHelper.Write(ex, "DownLoadTeacherStaticMonthRate");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......@@ -452,7 +401,7 @@ namespace Edu.WebApi.Controllers.User
}
catch (Exception ex)
{
LogHelper.Write(ex, "DownLoadStudentStaticYear");
LogHelper.Write(ex, "DownLoadTeacherStaticYear");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......@@ -480,7 +429,7 @@ namespace Edu.WebApi.Controllers.User
/// <returns></returns>
[HttpPost]
[Obsolete]
public FileContentResult DownLoadStudentCompanyYearRate()
public FileContentResult DownLoadTeacherStaticYearRate()
{
var query = new RB_Teacher_Static_Extend()
{
......@@ -523,7 +472,7 @@ namespace Edu.WebApi.Controllers.User
}
catch (Exception ex)
{
LogHelper.Write(ex, "DownLoadStudentStaticYearRate");
LogHelper.Write(ex, "DownLoadTeacherStaticYearRate");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......
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