|
@@ -6,7 +6,7 @@ using System.Text;
|
|
|
using System.Text.RegularExpressions;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
-namespace AnHuiMI.Common
|
|
|
+namespace PTMedicalInsurance.Common
|
|
|
{
|
|
|
public class FastReportFunction
|
|
|
{
|
|
@@ -39,10 +39,14 @@ namespace AnHuiMI.Common
|
|
|
|
|
|
public static void Register()
|
|
|
{
|
|
|
- MethodInfo method = typeof(FastReportFunction).GetMethod("moneyToChinese");
|
|
|
- if(method != null)
|
|
|
+
|
|
|
+ Type funType = typeof(FastReportFunction);
|
|
|
+
|
|
|
+ MethodInfo method = funType.GetMethod("moneyToChinese");
|
|
|
+ if(!FastReport.Utils.RegisteredObjects.IsTypeRegistered(funType) && method != null)
|
|
|
{
|
|
|
- FastReport.Utils.RegisteredObjects.AddFunction(method, "Custom");
|
|
|
+ FastReport.Utils.RegisteredObjects.Add(funType, "Functions,CustomFunctions",0x34);
|
|
|
+ FastReport.Utils.RegisteredObjects.AddFunction(method, "CustomFunctions");
|
|
|
}
|
|
|
|
|
|
}
|