Commit 578d072a by guanzhenshan

完善添加描述功能

parent 5f3ec9ca
......@@ -4052,183 +4052,227 @@ group by currency";
obj = new dc_month_sale_profit_description {
month = m.month,
createtime = DateTime.Now,
actual_profit = "",
amount_sale = "",
balance_of_profit = "",
business_profit = "",
business_profit_rate = "",
cost_sale = "",
direct_manager_cost = "",
finance_fee = "",
handlingcharges = "",
ls_count = "",
ls_head_cost = "",
ls_oversea_storage = "",
ls_platform_operation_fee = "",
ls_tail_cost = "",
manager_cost_count = "",
manager_cost_finish_wh = "",
manager_cost_gzbailun = "",
manager_cost_hkbailun = "",
manager_cost_meijiadian = "",
sale_manager_cost = "",
sale_fee_count = "",
sale_profit = "",
sale_profit_rate = "",
participation_in_profit = "",
payfor_platform_related_fee = "",
pt_count = "",
pt_ebay_postingfee = "",
pt_incoming = "",
pt_paypal_fee = "",
pt_platformfee = "",
pt_platform_ad_subscribe_fee = "",
pt_platform_logistics_fee = "",
pt_platform_storage_fee = "",
pt_refund_amount = "",
nonbusiness_pay = "",
nonbusiness_income = "",
other_incoming = "",
};
}
if (obj.actual_profit != m.actual_profit)
if (obj.actual_profit != m.actual_profit && m.actual_profit!=null)
{
obj.actual_profit = m.actual_profit;
}
else if (obj.amount_sale != m.amount_sale) {
else if (obj.amount_sale != m.amount_sale && m.amount_sale != null) {
obj.amount_sale = m.amount_sale;
}
else if(obj.balance_of_profit != m.balance_of_profit)
else if(obj.balance_of_profit != m.balance_of_profit && m.balance_of_profit != null)
{
obj.balance_of_profit = m.balance_of_profit;
}
else if (obj.business_profit != m.business_profit_rate) {
else if (obj.business_profit != m.business_profit_rate && m.business_profit_rate != null) {
obj.business_profit = m.business_profit_rate;
}
else if (obj.cost_sale != m.cost_sale) {
else if (obj.cost_sale != m.cost_sale && m.cost_sale != null) {
obj.cost_sale = m.cost_sale;
}
else if (obj.direct_manager_cost != m.direct_manager_cost) {
else if (obj.direct_manager_cost != m.direct_manager_cost && m.direct_manager_cost != null) {
obj.direct_manager_cost = m.direct_manager_cost;
}
else if (obj.finance_fee != m.finance_fee) {
else if (obj.finance_fee != m.finance_fee && m.finance_fee != null) {
obj.finance_fee = m.finance_fee;
}
else if (obj.handlingcharges != m.handlingcharges) {
else if (obj.handlingcharges != m.handlingcharges && m.handlingcharges != null) {
obj.handlingcharges = m.handlingcharges;
}
else if (obj.ls_count != m.ls_count) {
else if (obj.ls_count != m.ls_count && m.ls_count != null) {
obj.ls_count = m.ls_count;
}
else if (obj.ls_head_cost != m.ls_head_cost) {
else if (obj.ls_head_cost != m.ls_head_cost && m.ls_head_cost != null) {
obj.ls_head_cost = m.ls_head_cost;
}
else if (obj.ls_oversea_storage != m.ls_oversea_storage)
else if (obj.ls_oversea_storage != m.ls_oversea_storage && m.ls_oversea_storage != null)
{
obj.ls_oversea_storage = m.ls_oversea_storage;
}
else if (obj.ls_platform_operation_fee != m.ls_platform_operation_fee)
else if (obj.ls_platform_operation_fee != m.ls_platform_operation_fee && m.ls_platform_operation_fee != null)
{
obj.ls_platform_operation_fee = m.ls_platform_operation_fee;
}
else if (obj.ls_tail_cost != m.ls_tail_cost)
else if (obj.ls_tail_cost != m.ls_tail_cost && m.ls_tail_cost != null)
{
obj.ls_tail_cost = m.ls_tail_cost;
}
else if (obj.manager_cost_count != m.manager_cost_count)
else if (obj.manager_cost_count != m.manager_cost_count && m.manager_cost_count != null)
{
obj.manager_cost_count = m.manager_cost_count;
}
else if (obj.manager_cost_finish_wh != m.manager_cost_finish_wh)
else if (obj.manager_cost_finish_wh != m.manager_cost_finish_wh && m.manager_cost_finish_wh != null)
{
obj.manager_cost_finish_wh = m.manager_cost_finish_wh;
}
else if (obj.manager_cost_gzbailun != m.manager_cost_gzbailun)
else if (obj.manager_cost_gzbailun != m.manager_cost_gzbailun && m.manager_cost_gzbailun != null)
{
obj.manager_cost_gzbailun = m.manager_cost_gzbailun;
}
else if (obj.manager_cost_hkbailun != m.manager_cost_hkbailun)
else if (obj.manager_cost_hkbailun != m.manager_cost_hkbailun && m.manager_cost_hkbailun != null)
{
obj.manager_cost_hkbailun = m.manager_cost_hkbailun;
}
else if (obj.manager_cost_meijiadian != m.manager_cost_meijiadian)
else if (obj.manager_cost_meijiadian != m.manager_cost_meijiadian && m.manager_cost_meijiadian != null)
{
obj.manager_cost_meijiadian = m.manager_cost_meijiadian;
}
else if (obj.nonbusiness_income != m.nonbusiness_income)
else if (obj.nonbusiness_income != m.nonbusiness_income && m.nonbusiness_income != null)
{
obj.nonbusiness_income = m.nonbusiness_income;
}
else if (obj.nonbusiness_pay != m.nonbusiness_pay)
else if (obj.nonbusiness_pay != m.nonbusiness_pay && m.nonbusiness_pay != null)
{
obj.nonbusiness_pay = m.nonbusiness_pay;
}
else if (obj.other_incoming != m.other_incoming)
else if (obj.other_incoming != m.other_incoming && m.other_incoming != null)
{
obj.other_incoming = m.other_incoming;
}
else if (obj.participation_in_profit != m.participation_in_profit)
else if (obj.participation_in_profit != m.participation_in_profit && m.participation_in_profit != null)
{
obj.participation_in_profit = m.participation_in_profit;
}
else if (obj.payfor_platform_related_fee != m.payfor_platform_related_fee)
else if (obj.payfor_platform_related_fee != m.payfor_platform_related_fee && m.payfor_platform_related_fee != null)
{
obj.payfor_platform_related_fee = m.payfor_platform_related_fee;
}
else if (obj.pt_count != m.pt_count)
else if (obj.pt_count != m.pt_count && m.pt_count != null)
{
obj.pt_count = m.pt_count;
}
else if (obj.pt_ebay_postingfee != m.pt_ebay_postingfee)
else if (obj.pt_ebay_postingfee != m.pt_ebay_postingfee && m.pt_ebay_postingfee != null)
{
obj.pt_ebay_postingfee = m.pt_ebay_postingfee;
}
else if (obj.pt_incoming != m.pt_incoming)
else if (obj.pt_incoming != m.pt_incoming && m.pt_incoming != null)
{
obj.pt_incoming = m.pt_incoming;
}
else if (obj.pt_paypal_fee != m.pt_paypal_fee)
else if (obj.pt_paypal_fee != m.pt_paypal_fee && m.pt_paypal_fee != null)
{
obj.pt_paypal_fee = m.pt_paypal_fee;
}
else if (obj.pt_platformfee != m.pt_platformfee)
else if (obj.pt_platformfee != m.pt_platformfee && m.pt_platformfee != null)
{
obj.pt_platformfee = m.pt_platformfee;
}
else if (obj.pt_platform_ad_subscribe_fee != m.pt_platform_ad_subscribe_fee)
else if (obj.pt_platform_ad_subscribe_fee != m.pt_platform_ad_subscribe_fee && m.pt_platform_ad_subscribe_fee != null)
{
obj.pt_platform_ad_subscribe_fee = m.pt_platform_ad_subscribe_fee;
}
else if (obj.pt_platform_logistics_fee != m.pt_platform_logistics_fee)
else if (obj.pt_platform_logistics_fee != m.pt_platform_logistics_fee && m.pt_platform_logistics_fee != null)
{
obj.pt_platform_logistics_fee = m.pt_platform_logistics_fee;
}
else if (obj.pt_platform_storage_fee != m.pt_platform_storage_fee)
else if (obj.pt_platform_storage_fee != m.pt_platform_storage_fee && m.pt_platform_storage_fee != null)
{
obj.pt_platform_storage_fee = m.pt_platform_storage_fee;
}
else if (obj.pt_refund_amount != m.pt_refund_amount)
else if (obj.pt_refund_amount != m.pt_refund_amount && m.pt_refund_amount != null)
{
obj.pt_refund_amount = m.pt_refund_amount;
}
else if (obj.sale_fee_count != m.sale_fee_count)
else if (obj.sale_fee_count != m.sale_fee_count && m.sale_fee_count != null)
{
obj.sale_fee_count = m.sale_fee_count;
}
else if (obj.sale_manager_cost != m.sale_profit)
else if (obj.sale_manager_cost != m.sale_profit && m.sale_profit != null)
{
obj.sale_manager_cost = m.sale_profit;
}
else if (obj.sale_profit_rate != m.sale_profit_rate)
else if (obj.sale_profit_rate != m.sale_profit_rate && m.sale_profit_rate != null)
{
obj.sale_profit_rate = m.sale_profit_rate;
}
......
......@@ -5713,9 +5713,13 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
[HttpPost]
public JsonResult ListMonthSaleProfit(string month)
{
var _service = new Services.FinanceReportServices();
try
{
var obj = new Services.FinanceReportServices().ListMonthSaleProfit(month, "");
var obj = _service.ListMonthSaleProfit(month, "");
var objDescription = _service.ListMonthSaleProfitDescription(month, "");
var list = obj.Select(a => new
{
......@@ -5772,49 +5776,50 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
});
var head = new List<Tuple<string, string,string,string,string>>(); //字段名,项目名,编辑字段格式,基础数据,调整数据
head.Add(new Tuple<string, string, string, string, string>("amount_sale", "<td style=\"font-weight:bold;text-align:center;\">销售额</td>", "<span class=\"lbl_amount_sale\">{amount_sale+}</span>", "{amount_sale}", "0"));
head.Add(new Tuple<string, string, string, string, string>("cost_sale", "<td style=\"font-weight:bold;text-align:center;\">成本</td>", "<span class=\"lbl_cost_sale\">{cost_sale+}</span><a class=\"cost_sale_\" onclick=\"Edit('cost_sale_','成本','{month}','{cost_sale_}')\">编辑</a>", "{cost_sale-cost_sale_}", "{cost_sale_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_count", "<td style=\"font-weight:bold;text-align:center;\">平台扣费及退款</td>", "<span class=\"lbl_pt_count\">{pt_count+}</span>", "{pt_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_platformfee", "<td>平台费</td>", "<span class=\"lbl_pt_platformfee\">{pt_platformfee+}</span>", "{pt_platformfee}","0"));
head.Add(new Tuple<string, string, string, string, string>("pt_ebay_postingfee", "<td>ebay刊登费</td>", "<span class=\"lbl_pt_ebay_postingfee\">{pt_ebay_postingfee+}</span>", "{pt_ebay_postingfee}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_paypal_fee", "<td>paypal费用</td>", "<span class=\"lbl_pt_paypal_fee\">{pt_paypal_fee+}</span>", "{pt_paypal_fee}","0"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_logistics_fee", "<td>平台的物流费</td>", "<span class=\"lbl_pt_platform_logistics_fee\">{pt_platform_logistics_fee+}</span><a class=\"pt_platform_logistics_fee_\" onclick=\"Edit('pt_platform_logistics_fee_','平台的物流费','{month}','{pt_platform_logistics_fee_}')\" val=\"\">编辑</a>", "{pt_platform_logistics_fee-pt_platform_logistics_fee_}", "{pt_platform_logistics_fee_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_ad_subscribe_fee", "<td>广告及宣传费-订阅费</td>", "<span class=\"lbl_pt_platform_ad_subscribe_fee\">{pt_platform_ad_subscribe_fee+}</span><a class=\"pt_platform_ad_subscribe_fee_\" onclick=\"Edit('pt_platform_ad_subscribe_fee_','广告及宣传费-订阅费','{month}','{pt_platform_ad_subscribe_fee_}')\" val=\"\">编辑</a>", "{pt_platform_ad_subscribe_fee-pt_platform_ad_subscribe_fee_}", "{pt_platform_ad_subscribe_fee_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_storage_fee", "<td>平台的仓储费</td>", "<span class=\"lbl_pt_platform_storage_fee\">{pt_platform_storage_fee+}</span><a class=\"pt_platform_storage_fee\" onclick=\"Edit('pt_platform_storage_fee','平台的仓储费','{month}','{pt_platform_storage_fee}')\" val=\"\">编辑</a>", "0", "{pt_platform_storage_fee}"));
head.Add(new Tuple<string, string, string, string, string>("pt_refund_amount", "<td>退款</td>", "<span class=\"lbl_pt_refund_amount\">{pt_refund_amount+}</span>", "{pt_refund_amount}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_incoming", "<td style=\"font-weight:bold;\">回款</td>", "<span class=\"lbl_pt_incoming\">{pt_incoming+}</span>", "{pt_incoming}", "0"));
head.Add(new Tuple<string, string, string, string, string>("ls_count", "<td style=\"font-weight:bold;text-align:center;\">物流仓储费用</td>", "<span class=\"lbl_ls_count\">{ls_count+}</span>", "{ls_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("ls_head_cost", "<td>头程运输</td>", "<span class=\"lbl_ls_head_cost\">{ls_head_cost+}</span><a class=\"ls_head_cost_\" onclick=\"Edit('ls_head_cost_','头程运输','{month}','{ls_head_cost_}')\" val=\"\">编辑</a>", "{ls_head_cost-ls_head_cost_}", "{ls_head_cost_}"));
head.Add(new Tuple<string, string, string, string, string>("ls_tail_cost", "<td>尾程物流</td>", "<span class=\"lbl_ls_tail_cost\">{ls_tail_cost+}</span><a class=\"ls_tail_cost_\" onclick=\"Edit('ls_tail_cost_','尾程物流','{month}','{ls_tail_cost_}')\" val =\"\">编辑</a>", "{ls_tail_cost-ls_tail_cost_}", "{ls_tail_cost_}"));
head.Add(new Tuple<string, string, string, string, string>("ls_oversea_storage", "<td>海外仓的仓储费</td>", "<span class=\"lbl_ls_oversea_storage\">{ls_oversea_storage+}</span><a class=\"ls_oversea_storage\" onclick=\"Edit('ls_oversea_storage','海外仓的仓储费','{month}','{ls_oversea_storage}')\" val=\"\">编辑</a>","0", "{ls_oversea_storage}"));
head.Add(new Tuple<string, string, string, string, string>("ls_platform_operation_fee", "<td>平台操作费</td>", "<span class=\"lbl_ls_platform_operation_fee\">{ls_platform_operation_fee+}</span>", "{ls_platform_operation_fee}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_fee_count", "<td style=\"font-weight:bold;text-align:center;\">销售费用合计</td>", "<span class=\"lbl_sale_fee_count\">{sale_fee_count+}</span>", "{sale_fee_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_profit", "<td style=\"font-weight:bold;text-align:center;\">销售利润</td>", "<span class=\"lbl_sale_profit\">{sale_profit+}</span>", "{sale_profit}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_profit_rate", "<td style=\"font-weight:bold;text-align:center;\">销售毛利率</td>", "<span class=\"lbl_sale_profit_rate\">{sale_profit_rate+}</span>", "{sale_profit_rate}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_manager_cost", "<td style=\"font-weight:bold;text-align:center;\">销售相关的管理成本</td>", "<span class=\"lbl_sale_manager_cost\">{sale_manager_cost+}</span>", "{sale_manager_cost}", "0"));
head.Add(new Tuple<string, string, string, string, string>("handlingcharges", "<td>处理费</td>", "<span class=\"lbl_handlingcharges\">{handlingcharges+}</span><a class=\"handlingcharges\" onclick=\"Edit('handlingcharges','处理费','{month}','{handlingcharges}')\" val=\"\">编辑</a>","0", "{handlingcharges}"));
head.Add(new Tuple<string, string, string, string, string>("payfor_platform_related_fee", "<td>直接支付的与销售平台相关费用</td>", "<span class=\"lbl_payfor_platform_related_fee\">{payfor_platform_related_fee+}</span><a class=\"payfor_platform_related_fee\" onclick=\"Edit('payfor_platform_related_fee','直接支付的与销售平台相关费用','{month}','{payfor_platform_related_fee}')\" val=\"\">编辑</a>","0", "{payfor_platform_related_fee}"));
head.Add(new Tuple<string, string, string, string, string>("direct_manager_cost", "<td style=\"font-weight:bold;text-align:center;\">直接管理成本</td>", "<span class=\"lbl_direct_manager_cost\">{direct_manager_cost+}</span>", "{direct_manager_cost}", "0"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_hkbailun", "<td>管理成本-香港百伦(不含直接支付的与销售平台相关的费用)</td>", "<span class=\"lbl_manager_cost_hkbailun\">{manager_cost_hkbailun+}</span><a class=\"manager_cost_hkbailun\" onclick=\"Edit('manager_cost_hkbailun','管理成本-香港百伦(不含直接支付的与销售平台相关的费用)','{month}','{manager_cost_hkbailun}')\" val=\"\">编辑</a>","0", "{manager_cost_hkbailun}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_gzbailun", "<td>管理成本-广州百伦</td>", "<span class=\"lbl_manager_cost_gzbailun\">{manager_cost_gzbailun+}</span><a class=\"manager_cost_gzbailun\" onclick=\"Edit('manager_cost_gzbailun','管理成本-广州百伦','{month}','{manager_cost_gzbailun}')\" val=\"\">编辑</a>","0", "{manager_cost_gzbailun}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_meijiadian", "<td>管理成本-美甲店</td>", "<span class=\"lbl_manager_cost_meijiadian\">{manager_cost_meijiadian+}</span><a class=\"manager_cost_meijiadian\" onclick=\"Edit('manager_cost_meijiadian','管理成本-美甲店','{month}','{manager_cost_meijiadian}')\" val=\"\">编辑</a>","0", "{manager_cost_meijiadian}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_finish_wh", "<td>管理成本-成品仓(不含直接支付的与销售平台相关的费用)</td>", "<span class=\"lbl_manager_cost_finish_wh\">{manager_cost_finish_wh+}</span><a class=\"manager_cost_finish_wh\" onclick=\"Edit('manager_cost_finish_wh','管理成本-成品仓(不含直接支付的与销售平台相关的费用)','{month}','{manager_cost_finish_wh}')\" val=\"\">编辑</a>","0", "{manager_cost_finish_wh}"));
head.Add(new Tuple<string, string, string, string, string>("finance_fee", "<td>财务费用</td>", "<span class=\"lbl_finance_fee\">{finance_fee+}</span><a class=\"finance_fee\" onclick=\"Edit('finance_fee','财务费用','{month}','{finance_fee}')\" val=\"\">编辑</a>","0", "{finance_fee}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_count", "<td style=\"font-weight:bold;text-align:center;\">管理成本合计</td>", "<span class=\"lbl_manager_cost_count\">{manager_cost_count+}</span>", "{manager_cost_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("business_profit", "<td style=\"font-weight:bold;text-align:center;\">营业利润</td>", "<span class=\"lbl_business_profit\">{business_profit+}</span>", "{business_profit}", "0"));
head.Add(new Tuple<string, string, string, string, string>("business_profit_rate", "<td style=\"font-weight:bold;text-align:center;\">营业毛利率</td>", "<span class=\"lbl_business_profit_rate\">{business_profit_rate+}</span>", "{business_profit_rate}", "0"));
head.Add(new Tuple<string, string, string, string, string>("other_incoming", "<td>加:其他收入</td>", "<span class=\"lbl_other_incoming\">{other_incoming+}</span><a class=\"other_incoming\" onclick=\"Edit('other_incoming','加:其他收入','{month}','{other_incoming}')\" val=\"\">编辑</a>","0", "{other_incoming}"));
head.Add(new Tuple<string, string, string, string, string>("nonbusiness_income", "<td>加:营业外收入</td>", "<span class=\"lbl_nonbusiness_income\">{nonbusiness_income+}</span><a class=\"nonbusiness_income\" onclick=\"Edit('nonbusiness_income','加:营业外收入','{month}','{nonbusiness_income}')\" val=\"\">编辑</a>","0", "{nonbusiness_income}"));
head.Add(new Tuple<string, string, string, string, string>("nonbusiness_pay", "<td>减:营业外支出</td>", "<span class=\"lbl_nonbusiness_pay\">{nonbusiness_pay+}</span><a class=\"nonbusiness_pay\" onclick=\"Edit('nonbusiness_pay','减:营业外支出','{month}','{nonbusiness_pay}')\" val=\"\">编辑</a>","0", "{nonbusiness_pay}"));
head.Add(new Tuple<string, string, string, string, string>("actual_profit", "<td style=\"font-weight:bold;text-align:center;\">实际利润</td>", "<span class=\"lbl_actual_profit\">{actual_profit+}</span>", "{actual_profit}","0"));
head.Add(new Tuple<string, string, string, string, string>("participation_in_profit", "<td>减:分红</td>", "<span class=\"lbl_participation_in_profit\">{participation_in_profit+}</span><a class=\"participation_in_profit\" onclick=\"Edit('participation_in_profit','减:营业外支出','{month}','{participation_in_profit}')\" val=\"\">编辑</a>","0", "{participation_in_profit}"));
head.Add(new Tuple<string, string, string, string, string>("balance_of_profit", "<td style=\"font-weight:bold;text-align:center;\">利润结余</td>", "<span class=\"lbl_balance_of_profit\">{balance_of_profit+}</span>", "{balance_of_profit}","0"));
head.Add(new Tuple<string, string, string, string, string>("amount_sale", "<td style=\"font-weight:bold;text-align:center;\">销售额</td>", "<span class=\"lbl_amount_sale\">{amount_sale+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{amount_sale_desc}\" />", "{amount_sale}", "0"));
head.Add(new Tuple<string, string, string, string, string>("cost_sale", "<td style=\"font-weight:bold;text-align:center;\">成本</td>", "<span class=\"lbl_cost_sale\">{cost_sale+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{cost_sale_desc}\" /><a class=\"cost_sale_\" onclick=\"Edit('cost_sale_','成本','{month}','{cost_sale_}')\">编辑</a>", "{cost_sale-cost_sale_}", "{cost_sale_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_count", "<td style=\"font-weight:bold;text-align:center;\">平台扣费及退款</td>", "<span class=\"lbl_pt_count\">{pt_count+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_count_desc}\" />", "{pt_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_platformfee", "<td>平台费</td>", "<span class=\"lbl_pt_platformfee\">{pt_platformfee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_platformfee_desc}\" />", "{pt_platformfee}","0"));
head.Add(new Tuple<string, string, string, string, string>("pt_ebay_postingfee", "<td>ebay刊登费</td>", "<span class=\"lbl_pt_ebay_postingfee\">{pt_ebay_postingfee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_ebay_postingfee_desc}\" />", "{pt_ebay_postingfee}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_paypal_fee", "<td>paypal费用</td>", "<span class=\"lbl_pt_paypal_fee\">{pt_paypal_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_paypal_fee_desc}\" />", "{pt_paypal_fee}","0"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_logistics_fee", "<td>平台的物流费</td>", "<span class=\"lbl_pt_platform_logistics_fee\">{pt_platform_logistics_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_platform_logistics_fee_desc}\" /><a class=\"pt_platform_logistics_fee_\" onclick=\"Edit('pt_platform_logistics_fee_','平台的物流费','{month}','{pt_platform_logistics_fee_}')\" val=\"\">编辑</a>", "{pt_platform_logistics_fee-pt_platform_logistics_fee_}", "{pt_platform_logistics_fee_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_ad_subscribe_fee", "<td>广告及宣传费-订阅费</td>", "<span class=\"lbl_pt_platform_ad_subscribe_fee\">{pt_platform_ad_subscribe_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_platform_ad_subscribe_fee_desc}\" /><a class=\"pt_platform_ad_subscribe_fee_\" onclick=\"Edit('pt_platform_ad_subscribe_fee_','广告及宣传费-订阅费','{month}','{pt_platform_ad_subscribe_fee_}')\" val=\"\">编辑</a>", "{pt_platform_ad_subscribe_fee-pt_platform_ad_subscribe_fee_}", "{pt_platform_ad_subscribe_fee_}"));
head.Add(new Tuple<string, string, string, string, string>("pt_platform_storage_fee", "<td>平台的仓储费</td>", "<span class=\"lbl_pt_platform_storage_fee\">{pt_platform_storage_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_platform_storage_fee_desc}\" /><a class=\"pt_platform_storage_fee\" onclick=\"Edit('pt_platform_storage_fee','平台的仓储费','{month}','{pt_platform_storage_fee}')\" val=\"\">编辑</a>", "0", "{pt_platform_storage_fee}"));
head.Add(new Tuple<string, string, string, string, string>("pt_refund_amount", "<td>退款</td>", "<span class=\"lbl_pt_refund_amount\">{pt_refund_amount+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_refund_amount_desc}\" />", "{pt_refund_amount}", "0"));
head.Add(new Tuple<string, string, string, string, string>("pt_incoming", "<td style=\"font-weight:bold;\">回款</td>", "<span class=\"lbl_pt_incoming\">{pt_incoming+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{pt_incoming_desc}\" />", "{pt_incoming}", "0"));
head.Add(new Tuple<string, string, string, string, string>("ls_count", "<td style=\"font-weight:bold;text-align:center;\">物流仓储费用</td>", "<span class=\"lbl_ls_count\">{ls_count+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{ls_count_desc}\" />", "{ls_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("ls_head_cost", "<td>头程运输</td>", "<span class=\"lbl_ls_head_cost\">{ls_head_cost+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{ls_head_cost_desc}\" /><a class=\"ls_head_cost_\" onclick=\"Edit('ls_head_cost_','头程运输','{month}','{ls_head_cost_}')\" val=\"\">编辑</a>", "{ls_head_cost-ls_head_cost_}", "{ls_head_cost_}"));
head.Add(new Tuple<string, string, string, string, string>("ls_tail_cost", "<td>尾程物流</td>", "<span class=\"lbl_ls_tail_cost\">{ls_tail_cost+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{ls_tail_cost_desc}\" /><a class=\"ls_tail_cost_\" onclick=\"Edit('ls_tail_cost_','尾程物流','{month}','{ls_tail_cost_}')\" val =\"\">编辑</a>", "{ls_tail_cost-ls_tail_cost_}", "{ls_tail_cost_}"));
head.Add(new Tuple<string, string, string, string, string>("ls_oversea_storage", "<td>海外仓的仓储费</td>", "<span class=\"lbl_ls_oversea_storage\">{ls_oversea_storage+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{ls_oversea_storage_desc}\" /><a class=\"ls_oversea_storage\" onclick=\"Edit('ls_oversea_storage','海外仓的仓储费','{month}','{ls_oversea_storage}')\" val=\"\">编辑</a>", "0", "{ls_oversea_storage}"));
head.Add(new Tuple<string, string, string, string, string>("ls_platform_operation_fee", "<td>平台操作费</td>", "<span class=\"lbl_ls_platform_operation_fee\">{ls_platform_operation_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{ls_platform_operation_fee_desc}\" />", "{ls_platform_operation_fee}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_fee_count", "<td style=\"font-weight:bold;text-align:center;\">销售费用合计</td>", "<span class=\"lbl_sale_fee_count\">{sale_fee_count+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{sale_fee_count_desc}\" />", "{sale_fee_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_profit", "<td style=\"font-weight:bold;text-align:center;\">销售利润</td>", "<span class=\"lbl_sale_profit\">{sale_profit+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{sale_profit_desc}\" />", "{sale_profit}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_profit_rate", "<td style=\"font-weight:bold;text-align:center;\">销售毛利率</td>", "<span class=\"lbl_sale_profit_rate\">{sale_profit_rate+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{sale_profit_rate_desc}\" />", "{sale_profit_rate}", "0"));
head.Add(new Tuple<string, string, string, string, string>("sale_manager_cost", "<td style=\"font-weight:bold;text-align:center;\">销售相关的管理成本</td>", "<span class=\"lbl_sale_manager_cost\">{sale_manager_cost+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{sale_manager_cost_desc}\" />", "{sale_manager_cost}", "0"));
head.Add(new Tuple<string, string, string, string, string>("handlingcharges", "<td>处理费</td>", "<span class=\"lbl_handlingcharges\">{handlingcharges+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{handlingcharges_desc}\" /><a class=\"handlingcharges\" onclick=\"Edit('handlingcharges','处理费','{month}','{handlingcharges}')\" val=\"\">编辑</a>", "0", "{handlingcharges}"));
head.Add(new Tuple<string, string, string, string, string>("payfor_platform_related_fee", "<td>直接支付的与销售平台相关费用</td>", "<span class=\"lbl_payfor_platform_related_fee\">{payfor_platform_related_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{payfor_platform_related_fee_desc}\" /><a class=\"payfor_platform_related_fee\" onclick=\"Edit('payfor_platform_related_fee','直接支付的与销售平台相关费用','{month}','{payfor_platform_related_fee}')\" val=\"\">编辑</a>", "0", "{payfor_platform_related_fee}"));
head.Add(new Tuple<string, string, string, string, string>("direct_manager_cost", "<td style=\"font-weight:bold;text-align:center;\">直接管理成本</td>", "<span class=\"lbl_direct_manager_cost\">{direct_manager_cost+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{direct_manager_cost_desc}\" />", "{direct_manager_cost}", "0"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_hkbailun", "<td>管理成本-香港百伦(不含直接支付的与销售平台相关的费用)</td>", "<span class=\"lbl_manager_cost_hkbailun\">{manager_cost_hkbailun+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{manager_cost_hkbailun_desc}\" /><a class=\"manager_cost_hkbailun\" onclick=\"Edit('manager_cost_hkbailun','管理成本-香港百伦(不含直接支付的与销售平台相关的费用)','{month}','{manager_cost_hkbailun}')\" val=\"\">编辑</a>", "0", "{manager_cost_hkbailun}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_gzbailun", "<td>管理成本-广州百伦</td>", "<span class=\"lbl_manager_cost_gzbailun\">{manager_cost_gzbailun+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{manager_cost_gzbailun_desc}\" /><a class=\"manager_cost_gzbailun\" onclick=\"Edit('manager_cost_gzbailun','管理成本-广州百伦','{month}','{manager_cost_gzbailun}')\" val=\"\">编辑</a>", "0", "{manager_cost_gzbailun}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_meijiadian", "<td>管理成本-美甲店</td>", "<span class=\"lbl_manager_cost_meijiadian\">{manager_cost_meijiadian+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{manager_cost_meijiadian_desc}\" /><a class=\"manager_cost_meijiadian\" onclick=\"Edit('manager_cost_meijiadian','管理成本-美甲店','{month}','{manager_cost_meijiadian}')\" val=\"\">编辑</a>", "0", "{manager_cost_meijiadian}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_finish_wh", "<td>管理成本-成品仓(不含直接支付的与销售平台相关的费用)</td>", "<span class=\"lbl_manager_cost_finish_wh\">{manager_cost_finish_wh+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{manager_cost_finish_wh_desc}\" /><a class=\"manager_cost_finish_wh\" onclick=\"Edit('manager_cost_finish_wh','管理成本-成品仓(不含直接支付的与销售平台相关的费用)','{month}','{manager_cost_finish_wh}')\" val=\"\">编辑</a>", "0", "{manager_cost_finish_wh}"));
head.Add(new Tuple<string, string, string, string, string>("finance_fee", "<td>财务费用</td>", "<span class=\"lbl_finance_fee\">{finance_fee+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{finance_fee_desc}\" /><a class=\"finance_fee\" onclick=\"Edit('finance_fee','财务费用','{month}','{finance_fee}')\" val=\"\">编辑</a>", "0", "{finance_fee}"));
head.Add(new Tuple<string, string, string, string, string>("manager_cost_count", "<td style=\"font-weight:bold;text-align:center;\">管理成本合计</td>", "<span class=\"lbl_manager_cost_count\">{manager_cost_count+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{manager_cost_count_desc}\" />", "{manager_cost_count}", "0"));
head.Add(new Tuple<string, string, string, string, string>("business_profit", "<td style=\"font-weight:bold;text-align:center;\">营业利润</td>", "<span class=\"lbl_business_profit\">{business_profit+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{business_profit_desc}\" />", "{business_profit}", "0"));
head.Add(new Tuple<string, string, string, string, string>("business_profit_rate", "<td style=\"font-weight:bold;text-align:center;\">营业毛利率</td>", "<span class=\"lbl_business_profit_rate\">{business_profit_rate+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{business_profit_rate_desc}\" />", "{business_profit_rate}", "0"));
head.Add(new Tuple<string, string, string, string, string>("other_incoming", "<td>加:其他收入</td>", "<span class=\"lbl_other_incoming\">{other_incoming+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{other_incoming_desc}\" /><a class=\"other_incoming\" onclick=\"Edit('other_incoming','加:其他收入','{month}','{other_incoming}')\" val=\"\">编辑</a>", "0", "{other_incoming}"));
head.Add(new Tuple<string, string, string, string, string>("nonbusiness_income", "<td>加:营业外收入</td>", "<span class=\"lbl_nonbusiness_income\">{nonbusiness_income+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{nonbusiness_income_desc}\" /><a class=\"nonbusiness_income\" onclick=\"Edit('nonbusiness_income','加:营业外收入','{month}','{nonbusiness_income}')\" val=\"\">编辑</a>", "0", "{nonbusiness_income}"));
head.Add(new Tuple<string, string, string, string, string>("nonbusiness_pay", "<td>减:营业外支出</td>", "<span class=\"lbl_nonbusiness_pay\">{nonbusiness_pay+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{nonbusiness_pay_desc}\" /><a class=\"nonbusiness_pay\" onclick=\"Edit('nonbusiness_pay','减:营业外支出','{month}','{nonbusiness_pay}')\" val=\"\">编辑</a>", "0", "{nonbusiness_pay}"));
head.Add(new Tuple<string, string, string, string, string>("actual_profit", "<td style=\"font-weight:bold;text-align:center;\">实际利润</td>", "<span class=\"lbl_actual_profit\">{actual_profit+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{actual_profit_desc}\" />", "{actual_profit}","0"));
head.Add(new Tuple<string, string, string, string, string>("participation_in_profit", "<td>减:分红</td>", "<span class=\"lbl_participation_in_profit\">{participation_in_profit+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{participation_in_profit_desc}\" /><a class=\"participation_in_profit\" onclick=\"Edit('participation_in_profit','减:营业外支出','{month}','{participation_in_profit}')\" val=\"\">编辑</a>", "0", "{participation_in_profit}"));
head.Add(new Tuple<string, string, string, string, string>("balance_of_profit", "<td style=\"font-weight:bold;text-align:center;\">利润结余</td>", "<span class=\"lbl_balance_of_profit\">{balance_of_profit+}</span><img src=\"/img/icon-quetion.png\" style=\"width:18px;margin-left:3px\" title=\"{balance_of_profit_desc}\" />", "{balance_of_profit}","0"));
return Json(new {
success = true,
msg = "",
data = list,
head = head
head = head,
listdesc = objDescription
});
}
catch (Exception ex)
......
......@@ -94,6 +94,15 @@
for (var i in result.data) {
//描述
var objDesc;
for (var d in result.listdesc) {
if (result.listdesc[d]['month'] == result.data[i]["month"]) {
objDesc = result.listdesc[d];
}
}
//值
for (var c in result.data[i]) {
if (c == result.head[h].item1) {
var str_template = result.head[h].item3;
......@@ -129,11 +138,19 @@
col_2 = col_2.replace('{' + result.head[h].item1 + '}', result.data[i][c]);
col_2 = col_2.replace('{' + result.head[h].item1 + '_}', result.data[i][c + '_']);
var temps = '';
if (objDesc != undefined && objDesc != null) {
str_template = str_template.replace('{' + result.head[h].item1 + '_desc}', "说明:" + objDesc[result.head[h].item1]);
temps = objDesc[result.head[h].item1];
}
else {
str_template = str_template.replace('{'+result.head[h].item1 + '_desc}', "说明:无");
}
s += '<td>' + str_template.replace('{' + result.head[h].item1 + '+}', col_2) + '<a style="color:#bbb;" onclick=\"EditDescription(\'' + result.head[h].item1 + '\',\'' + temps+'\',\'' + result.data[i]['month'] + '\')\">修改说明</a></td>';
s += '<td>' + str_template.replace('{' + result.head[h].item1 + '+}', col_2) + '</td>';
//合计
s += ('<td>' + result.data[i][c] + '<img src="/img/icon-quetion.png" style="width:18px;" /><img src="/img/icon-edit.png" style="width:18px;margin-left:5px;" title="修改取数说明" onclick="EditDescription()" /></td>');
s += ('<td>' + result.data[i][c] + '</td>');
break;
......
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