diff --git a/GZ_LTHReportForms.csproj b/GZ_LTHReportForms.csproj new file mode 100644 index 0000000..7063e53 --- /dev/null +++ b/GZ_LTHReportForms.csproj @@ -0,0 +1,70 @@ + + + + + Debug + AnyCPU + {D635EAA4-25EF-45D7-8AE4-A4A4EA71FE54} + Library + Properties + GZ_LTHReportForms + GZ_LTHReportForms + v4.8 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\GZ_LTHUPDATEVIEW\bin\Debug\Kingdee.BOS.dll + + + ..\..\GZ_LTHUPDATEVIEW\bin\Debug\Kingdee.BOS.App.dll + + + ..\..\GZ_LTHUPDATEVIEW\bin\Debug\Kingdee.BOS.Contracts.dll + + + ..\..\GZ_LTHUPDATEVIEW\bin\Debug\Kingdee.BOS.Core.dll + + + ..\..\GZ_LTHYJZZHTH\bin\Debug\Kingdee.BOS.DataEntity.dll + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ReportGSH/FormServicePlugIn.cs b/ReportGSH/FormServicePlugIn.cs new file mode 100644 index 0000000..19cfa9a --- /dev/null +++ b/ReportGSH/FormServicePlugIn.cs @@ -0,0 +1,28 @@ +using Kingdee.BOS.Core.Report.PlugIn; +using Kingdee.BOS.Core.Report.PlugIn.Args; +using Kingdee.BOS.Util; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace GZ_LTHReportForms.ReportGSH +{ + [Description("【报表表单插件】优化日期格式"), HotUpdate] + public class FormServicePlugIn : AbstractSysReportPlugIn + { + public override void FormatCellValue(FormatCellValueArgs args) + { + // 格式化日期 + base.FormatCellValue(args); + if (args.Header.ColType == Kingdee.BOS.SqlStorageType.SqlDatetime) + { + DateTime value = Convert.ToDateTime(args.FormateValue); + string afterValue = value.ToString("yyyy-MM-dd"); + args.FormateValue = afterValue; + } + } + } +} diff --git a/YeJiPaiHangBang/PHBSaleOrderReport.cs b/YeJiPaiHangBang/PHBSaleOrderReport.cs index 1b501ad..6c72782 100644 --- a/YeJiPaiHangBang/PHBSaleOrderReport.cs +++ b/YeJiPaiHangBang/PHBSaleOrderReport.cs @@ -11,6 +11,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Kingdee.BOS.Core.Enums; +using Kingdee.BOS.Core.Metadata.Util; namespace GZ_LTHReportForms.YeJiPaiHangBang { diff --git a/bin/Debug/GZ_LTHReportForms.dll b/bin/Debug/GZ_LTHReportForms.dll index bf73d63..9c67cb9 100644 Binary files a/bin/Debug/GZ_LTHReportForms.dll and b/bin/Debug/GZ_LTHReportForms.dll differ diff --git a/bin/Debug/GZ_LTHReportForms.pdb b/bin/Debug/GZ_LTHReportForms.pdb index b29c46b..df3dbfd 100644 Binary files a/bin/Debug/GZ_LTHReportForms.pdb and b/bin/Debug/GZ_LTHReportForms.pdb differ