2025-04-24 18:31:27 +08:00

126 lines
2.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using MyCode.Project.Infrastructure.WebPost;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.Domain.Message.Request.KingDee
{
public class BillQuery
{
/// <summary>
/// 业务对象表单Id必录
/// </summary>
public string FormId { get; set; }
/// <summary>
/// 需查询的字段key集合
/// </summary>
public string FieldKeys { get; set; }
/// <summary>
/// 过滤条件
/// </summary>
public List<FilterItem> FilterString { get; set; }
/// <summary>
/// 排序字段
/// </summary>
public string OrderString { get; set; }
/// <summary>
/// 返回总行数
/// </summary>
public int? TopRowCount { get; set; }
/// <summary>
/// 开始行索引
/// </summary>
public int? StartRow { get; set; }
/// <summary>
/// 最大行数
/// </summary>
public int? Limit { get; set; }
/// <summary>
/// 表单所在的子系统内码
/// </summary>
public string SubSystemId { get; set; }
public override string ToString()
{
var jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
var json = JsonConvert.SerializeObject(this, Formatting.Indented, jsonSetting);
return json;
}
public string GetInfo()
{
var info = string.Format(@"
业务对象表单Id必录:{0}
需查询的字段key集合:{1}
过滤条件:{2}
排序字段:{3}
返回总行数:{4}
开始行索引:{5}
最大行数:{6}
表单所在的子系统内码:{7}
",
FormId,
FieldKeys,
FilterString,
OrderString,
TopRowCount,
StartRow,
Limit,
SubSystemId
);
return info;
}
}
public class AddTiaoMaConfig
{
public string Key { get; set; } = "qwe123!@#";
public List<AddTiaoMa> Items { get; set; }
}
public class AddTiaoMa
{
/// <summary>
/// 条码规则内码
/// </summary>
public string FBarCodeRule { get; set; } = "03";
/// <summary>
/// 条形码字符串
/// </summary>
public string FBarCode { get; set; }
/// <summary>
/// 收料通知单号
/// </summary>
public string FBillCode { get; set; }
/// <summary>
/// 供应商批号
/// </summary>
public string FSupplierLot { get; set; }
/// <summary>
/// 美塞斯批号
/// </summary>
public string FLot { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string FMaterialId { get; set; }
/// <summary>
/// 数量
/// </summary>
public string FQty { get; set; }
}
}