using Kingdee.BOS.JSON;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LQKJ.WebApi.Stub
{
    /// <summary>
    /// 下推/保存参数
    /// </summary>
    /// 
    public enum Ismode { submit, draft, save, auto }//暂存，保存，保存提交，保存提交审核
    public class PushAndSaveArgs
    {

        public PushAndSaveArgs()
        {
            IsAutoSubmitAndAudit = true;
            IsInTransaction = true;
            isAutoSubmit = Ismode.submit;
        }
        /// <summary>
        /// 订单唯一标识
        /// </summary>
        public string FormId { get; set; }
        /// <summary>
        /// 源订单分录标识
        /// </summary>
        public string SrcEntryKey { get; set; }
        /// <summary>
        /// 源订单唯一标识
        /// </summary>
        public string SrcFormId { get; set; }
        /// <summary>
        /// 单据转换唯一标识
        /// </summary>
        public string ConvertRule { get; set; }
        /// <summary>
        /// 源单分录内码
        /// </summary>
        public List<string> SrcIds { get; set; }
        /// <summary>
        /// 是否自动提交审核
        /// </summary>
        public bool IsAutoSubmitAndAudit { get; set; }
        /// <summary>
        /// 是否在事务中
        /// </summary>
        public bool IsInTransaction { get; set; }
        /// <summary>
        /// 修改数据
        /// </summary>
        public JSONArray Model { get; set; }

        public Ismode isAutoSubmit { get; set; }
    }
}
