using Castle.ActiveRecord; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BizCom { [ActiveRecord("CE_ErpSukuraData")] public class CeErpSukuraData : ComBase { [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _tid = ""; /// ///订单编号 /// [Property] public string tid { get { return _tid; } set { _tid = value; } } private string _json = ""; /// /// 内容 /// [Property] public string json { get { return _json; } set { _json = value; } } private int _type = 0; /// /// 类型0主订单信息1拆单信息2更新设计信息3下单更新4发货更新5打回6查货7加急8售后9返现10推购 /// [Property] public int type { get { return _type; } set { _type = value; } } public static void createInfo(string tid, int type) { CeErpSukuraData ceErpSukuraData = new CeErpSukuraData(); ceErpSukuraData.tid = tid; ceErpSukuraData.type = type; //ceErpSukuraData.Create(); } public static void Del(string id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpSukuraData where id=" + id); ExecuteNonQuery(sql.ToString()); } } }