Commit 1a92329a authored by 黄奎's avatar 黄奎

页面修改

parent b189644f
......@@ -164,70 +164,84 @@ 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=20},
new ExcelColumn("日语基础"){ CellWidth=20},
new ExcelColumn("课程顾问"){ CellWidth=15},
new ExcelColumn("协助老师"){ CellWidth=10},
new ExcelColumn("合同时间"){ CellWidth=15},
new ExcelColumn("所报课程"){ CellWidth=15},
new ExcelColumn("当前级别"){ CellWidth=20},
new ExcelColumn("生日"){ CellWidth=20},
new ExcelColumn("规划课程及报价"){ CellWidth=20},
new ExcelColumn("客户情况分析"){ CellWidth=50},
new ExcelColumn("顾问跟进备注"){ CellWidth=50},
}
};
slist.Add(header);
foreach (var item in list)
var rootObj = JObject.Parse(JsonHelper.Serialize(list));
JArray arrayList = JArray.Parse(rootObj.GetStringValue("RList"));
if (arrayList != null && arrayList.Count > 0)
{
JObject dObj = JObject.Parse(JsonHelper.Serialize(item));
var columns = new List<ExcelColumn>
foreach (var jItem in arrayList)
{
new ExcelColumn(dObj.GetStringValue("StuName"))
};
string EnrollState = dObj.GetInt("EnrollState") == 1 ? "已报名" : "未成交";
columns.Add(new ExcelColumn(EnrollState));
columns.Add(new ExcelColumn(dObj.GetStringValue("AssistName")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StuBirthStr")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StuRealMobile")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StuAddress")));
columns.Add(new ExcelColumn(dObj.GetStringValue("StuChannelName")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JapanBaseInfo")));
columns.Add(new ExcelColumn(dObj.GetStringValue("PlanPrice")));
string baseCondition = dObj.GetStringValue("BaseCondition");
string demandPoint = dObj.GetStringValue("DemandPoint");
string resistPoint = dObj.GetStringValue("ResistPoint");
string consultingResults = dObj.GetStringValue("ConsultingResults");
JObject dObj = JObject.Parse(JsonHelper.Serialize(jItem));
var columns = new List<ExcelColumn>
{
new ExcelColumn(dObj.GetStringValue("StuName")),
new ExcelColumn(dObj.GetStringValue("StuRealMobile")),
};
string courseManager = "";
columns.Add(new ExcelColumn(courseManager));
string teacherNamager = "";
columns.Add(new ExcelColumn(teacherNamager));
columns.Add(new ExcelColumn(dObj.GetStringValue("ContractSTime")));
columns.Add(new ExcelColumn(dObj.GetStringValue("CourseName")));
columns.Add(new ExcelColumn(dObj.GetStringValue("JapanBaseInfo")));
baseCondition = !string.IsNullOrEmpty(baseCondition) ? baseCondition : "暂无";
demandPoint = !string.IsNullOrEmpty(demandPoint) ? demandPoint : "暂无";
resistPoint = !string.IsNullOrEmpty(resistPoint) ? resistPoint : "暂无";
consultingResults = !string.IsNullOrEmpty(consultingResults) ? consultingResults : "暂无";
string baseInfo = "基本情况:" + baseCondition + "\r\n" + "需求点:" + consultingResults + "\r\n" + "抗拒点:" + resistPoint + "\r\n" + "咨询结果:" + consultingResults;
columns.Add(new ExcelColumn(baseInfo));
// columns.Add(new ExcelColumn(dObj.GetStringValue("StuBirthStr")));
// columns.Add(new ExcelColumn(dObj.GetStringValue("StuRealMobile")));
// columns.Add(new ExcelColumn(dObj.GetStringValue("StuAddress")));
// columns.Add(new ExcelColumn(dObj.GetStringValue("StuChannelName")));
// columns.Add(new ExcelColumn(dObj.GetStringValue("JapanBaseInfo")));
// columns.Add(new ExcelColumn(dObj.GetStringValue("PlanPrice")));
// string baseCondition = dObj.GetStringValue("BaseCondition");
// string demandPoint = dObj.GetStringValue("DemandPoint");
// string resistPoint = dObj.GetStringValue("ResistPoint");
// string consultingResults = dObj.GetStringValue("ConsultingResults");
string remark = "";
string FUTime = dObj.GetStringValue("FUTime");
if (!string.IsNullOrEmpty(FUTime))
{
remark += FUTime;
}
string FURemark = dObj.GetStringValue("FURemark");
if (!string.IsNullOrEmpty(FURemark))
{
remark += "\r\n" + StringHelper.FilterHtml(FURemark);
}
columns.Add(new ExcelColumn()
{
Value = remark
});
// baseCondition = !string.IsNullOrEmpty(baseCondition) ? baseCondition : "暂无";
// demandPoint = !string.IsNullOrEmpty(demandPoint) ? demandPoint : "暂无";
// resistPoint = !string.IsNullOrEmpty(resistPoint) ? resistPoint : "暂无";
// consultingResults = !string.IsNullOrEmpty(consultingResults) ? consultingResults : "暂无";
// string baseInfo = "基本情况:" + baseCondition + "\r\n" + "需求点:" + consultingResults + "\r\n" + "抗拒点:" + resistPoint + "\r\n" + "咨询结果:" + consultingResults;
// columns.Add(new ExcelColumn(baseInfo));
var dataRow = new ExcelDataSource()
{
ExcelRows = columns
};
slist.Add(dataRow);
// string remark = "";
// string FUTime = dObj.GetStringValue("FUTime");
// if (!string.IsNullOrEmpty(FUTime))
// {
// remark += FUTime;
// }
// string FURemark = dObj.GetStringValue("FURemark");
// if (!string.IsNullOrEmpty(FURemark))
// {
// remark += "\r\n" + StringHelper.FilterHtml(FURemark);
// }
// columns.Add(new ExcelColumn()
// {
// Value = remark
// });
var dataRow = new ExcelDataSource()
{
ExcelRows = columns
};
slist.Add(dataRow);
}
}
var byteData = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData, "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