Files
RBMESAPICore/Models/Cloud/interface/BillQuery.cs
yuyubohh e8494ba988 qqq
2025-09-09 22:41:29 +08:00

30 lines
1.6 KiB
C#
Raw 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 System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace RB_MES_API.Models.Cloud
{
/// <summary>
/// Cloud表单查询接口使用的Json不需要数据保存
/// </summary>
public class BillQuery
{
[Required]
public string FormId { get; set; } = string.Empty;
[Required]
public string? FieldKeys { get; set; } //需查询的字段key集合字符串类型格式"key1,key2,..."(必录)
//ClumnConvert的字段包含在此...
//注(查询单据体内码,需加单据体Key和下划线,如FEntryKey_FEntryId
public string? FilterString { get; set; } //查询Cloud的过滤条件详见API说明支持直接SQL语句
public string OrderString { get; set; } = string.Empty; //查询Cloud的排序字段清单每个字段之间用小逗号隔开详见API说明
[DefaultValue(0)]
public int TopRowCount { get; set; } = 0; //返回总行数整型。0代表全部
[DefaultValue(0)]
public int StartRow { get; set; } = 0; //开始行索引,分布使用
[DefaultValue(0)]
[RegularExpression(@"^[0-9]{0,3}")]
public int Limit { get; set; } = 0; //最大行数分布使用不能超过2000
[StringLength(80)]
public string SubSystemId { get; set; } = string.Empty; //表单所在的子系统内码,字符串类型(非必录)
}
}