Friday, November 7, 2025

Infor SyteLine (CSI) customize Custom Assembly

 

if you are looking for script to test run Infor CSI Custom Assembly you can use below code.


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using Mongoose.IDO;

using Mongoose.IDO.Protocol;

using System.Globalization;


namespace CODE

{

    [IDOExtensionClass("CODE_People")]


    class CODE_People : ExtensionClassBase

    {

       [IDOMethod(MethodFlags.None, "Infobar")]

        public int GetAge(DateTime reference, DateTime birthday, ref int age, ref string Infobar)

        {

             age = reference.Year - birthday.Year;

            if (reference < birthday.AddYears(age))

                age--;


            Infobar = "คำนวณสำเร็จ";

            return 0;

        }

    }

}


No comments:

Post a Comment

Infor SyteLine (CSI) customize Custom Assembly

  if you are looking for script to test run Infor CSI Custom Assembly you can use below code. using System; using System.Collections.Generic...