Models/PU_AppVouchs.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication1.Models
{
    public class PU_AppVouchs
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public  int ID { get; set; } [DisplayFormat(ConvertEmptyStringToNull = false)]

        [Display(Name = "行号")]
        [Column(TypeName = "int")]
        [Required(ErrorMessage = "{0}是必填项")]
        [RegularExpression("^[0-9]{3,3}$", ErrorMessage = "{0}必须是3位数字")]
        public int? ivouchrowno { get; set; }

        [Display(Name = "存货编码")]
        [Column(TypeName = "nvarchar(20)")]
        [StringLength(50, ErrorMessage = "{0}最多输入{1}个字符")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string cinvcode { get; set; }
        
        [Column("Pu_appvouchID", TypeName = "int")]
        public int Pu_appvouchID { get; set; }

        [Display(Name = "请购单号")]
        [Required(ErrorMessage = "{0}是必填项")]
        //[RegularExpression("^[0-9]{3,3}$", ErrorMessage = "{0}必须是3位数字")]
        //[StringLength(3)]

        ////[RegularExpression("^[0-9]{3,3}$", ErrorMessage = "{0}必须是3位数字")]
        //
        
        public string ccode { get; set; }

        [Display(Name = "存货名称")]
        [Column(TypeName = "nvarchar(50)")]
        [StringLength(50, ErrorMessage = "{0}最多输入{1}个字符")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string cinvname { get; set; }
        [Display(Name = "存货规格")]
        [Column(TypeName = "nvarchar(50)")]
        [StringLength(50, ErrorMessage = "{0}最多输入{1}个字符")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string cinvstd { get; set; }

        [Display(Name = "存货单位")]
        [Column(TypeName = "nvarchar(10)")]
        [StringLength(50, ErrorMessage = "{0}最多输入{1}个字符")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string cinvm_unit { get; set; }


        [Display(Name = "数量")]
后面还有 60 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。