报表增加千分位显示
挂载报表表单插件即可
using Kingdee.BOS.Core.Report.PlugIn;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HL.K3Cloud.PUS.ProductionWarehousingReport.Plugin
{
[Description("客户详细分析表单插件-增加千分位")]
public class CustomerAnalysisBill: AbstractSysReportPlugIn
{
public override void FormatCellValue(Kingdee.BOS.Core.Report.PlugIn.Args.FormatCellValueArgs args)
{
base.FormatCellValue(args);
List<String> strList = new List<string>() { "FAMOUNT", "FReturnAMOUNT", "FCostAmount_LC", "Fprofit", "FArrearsMoneny", "FNightStock", "FEightyStock", "FStock", "FSingleAmount","FNightStockCount","FEightyStockCount"
,"FSingleAmountAverage","FSheetAmount","FSheetAmountAverage","FHeterotypicAmount","FHeterotypicAmountAverage","FOtherAmount","FOtherAmountAverage","FStockCount"};
if (strList.Contains(args.Header.Key))
{
decimal value = decimal.Parse(args.FormateValue);
string afterValue = value.ToString("N3").TrimEnd('0').TrimEnd('.');
args.FormateValue = afterValue;
}
//else if (args.Header.Key == "FAMOUNT" || args.Header.Key == "FSALCOSTPRICE" || args.Header.Key == "FPROFIT")
//{
// decimal value = decimal.Parse(args.FormateValue);
// string afterValue = value.ToString("N");
// args.FormateValue = afterValue;
//}
//else if (args.Header.Key == "FPROFITRATE")
//{
// decimal value = decimal.Parse(args.FormateValue);
// string afterValue = value.ToString("N4");
// args.FormateValue = afterValue;
//}
}
}
}
报表增加千分位显示
本文2024-09-16 18:42:40发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-23904.html
- 鼎捷API-T100-5.生产信息API-过帐发料单数据-t100.oapi.issuing.data.post-wssp00249CN02_s.pdf
- 鼎捷API-T100-3.销售信息API-读取销售价格表数据-t100.oapi.sales.price.details.data.read.get-wssp00096CN02_s.pdf
- 鼎捷API-T100-5.生产信息API-删除发料单数据-t100.oapi.issuing.data.delete-wssp00246CN02_s.pdf
- 鼎捷API-T100-5.生产信息API-过帐工单当站入库数据-t100.oapi.wo.report.stockin.data.post-wssp00305CN02_s.pdf
- 鼎捷API-T100-2.采购信息API-创建收货单数据-t100.oapi.purchase.receipt.data.create-wssp00120CN02_s.pdf
- 鼎捷API-T100-3.销售信息API-生效销售价格表数据-t100.oapi.sales.price.data.available-wssp00099CN02_s.pdf
- 鼎捷API-T100-6.帐款信息API-作废应收帐款数据-t100.oapi.accounts.receivable.data.invalid-wssp00297CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-失效员工数据-t100.oapi.employee.data.unavailable-wssp00010CN02_s.pdf
- 鼎捷API-T100-2.采购信息API-创建核价单数据-t100.oapi.pricing.list.data.create-wssp00067CN02_s.pdf
- 鼎捷API-T100-1.企业基础API-删除工作站工作中心数据-t100.oapi.workstation.data.delete-wssp00054CN02_s.pdf