Master.CanYinWu.Web/Views/Admin/Main.cshtml
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@using Master.CanYinWu.Entity
@using Master.CanYinWu.Utility
@using Newtonsoft.Json
@{
Layout = null;
MainInfoViewModel MainInfoViewModel = ViewBag.MainInfoViewModel;
List<MonthInfoViewModel> MonthInfoViewModelList = ViewBag.MonthInfoViewModelList;
List<int> MonthArr = MonthInfoViewModelList.Select(o => o.SalesMonth).ToList();
List<string> chineseMonthNames = MonthInfoViewModelList
.Select(o => o.SalesMonth)
.Select(month => ComHelper.MonthToChinese(month)) // 使用字典映射为中文月份名称
.ToList();
//月名称列表
string chineseMonthsAsString = JsonConvert.SerializeObject(chineseMonthNames);
//销售额,成本,毛利
List<decimal> TotalSalesArr = MonthInfoViewModelList.Select(o => o.TotalSales).ToList();
List<decimal> TotalCostArr = MonthInfoViewModelList.Select(o => o.TotalCost).ToList();
List<decimal> GrossProfitArr = MonthInfoViewModelList.Select(o => o.GrossProfit).ToList();
string TotalSalesStr = JsonConvert.SerializeObject(TotalSalesArr);
string TotalCostStr = JsonConvert.SerializeObject(TotalCostArr);
string GrossProfitStr = JsonConvert.SerializeObject(GrossProfitArr);
//卖得最好的前五商品
List<SalesGoodProduct> SalesGoodProductList = ViewBag.SalesGoodProduct;
string ProductNameStr = JsonConvert.SerializeObject(SalesGoodProductList.Select(o => o.name).ToList());
string SalesGoodProductStr= JsonConvert.SerializeObject(SalesGoodProductList);
//是否配置基本配置
IsWebConfig IsWebConfig = ViewBag.IsWebConfig;
}
@model Master.CanYinWu.Utility.Infrastructure.OperatorModel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>店客通</title>
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<link href="~/Content/css/main/x-admin.css" rel="stylesheet" />
<link href="~/Content/css/main/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/layui/css/layui.css" rel="stylesheet" />
<style type="text/css">
legend {
display: block;
width: 100px;
border-bottom: 0px;
font-family: "Microsoft YaHei","Helvetica Neue";
}
legend a {
color: #666;
}
后面还有 409 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
