示例:
//创建一个Acumatica对象并进行数据插入操作
using PX.Data;
using PX.Objects.CR;
using PX.Objects.CS;
using PX.Objects.GL;
using PX.Objects.IN;
using PX.Objects.SO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AcumaticaProject
{
public class AcumaticaExample : PXGraph
{
public PXSelect MyView;
public void InsertData(string data)
{
var myDAC = new MyDAC();
myDAC.Data = data;
MyView.Insert(myDAC);
Actions.PressSave();
}
}
[Serializable]
public class MyDAC : IBqlTable
{
[PXDBString(255, IsKey = true)]
[PXUIField(DisplayName = "Data")]
public virtual string Data { get; set; }
}
}