设为首页 加入收藏

TOP

abp(net core)+easyui+efcore实现仓储管理系统——EasyUI之货物管理一 (十九)(一)
2019-09-23 18:10:58 】 浏览:103
Tags:abp net core easyui efcore 实现 仓储 管理系统 EasyUI 货物 管理 十九

abp(net core)+easyui+efcore实现仓储管理系统目录

abp(net core)+easyui+efcore实现仓储管理系统——ABP总体介绍(一)

abp(net core)+easyui+efcore实现仓储管理系统——解决方案介绍(二)

abp(net core)+easyui+efcore实现仓储管理系统——领域层创建实体(三)

 abp(net core)+easyui+efcore实现仓储管理系统——定义仓储并实现 (四)

abp(net core)+easyui+efcore实现仓储管理系统——创建应用服务(五)

abp(net core)+easyui+efcore实现仓储管理系统——展现层实现增删改查之控制器(六)

abp(net core)+easyui+efcore实现仓储管理系统——展现层实现增删改查之列表视图(七)

abp(net core)+easyui+efcore实现仓储管理系统——展现层实现增删改查之增删改视图(八)

abp(net core)+easyui+efcore实现仓储管理系统——展现层实现增删改查之菜单与测试(九)

abp(net core)+easyui+efcore实现仓储管理系统——多语言(十)

abp(net core)+easyui+efcore实现仓储管理系统——使用 WEBAPI实现CURD (十一)

 abp(net core)+easyui+efcore实现仓储管理系统——使用 WEBAPI实现CURD (十二)

 abp(net core)+easyui+efcore实现仓储管理系统——使用 WEBAPI实现CURD (十三)

abp(net core)+easyui+efcore实现仓储管理系统——使用 WEBAPI实现CURD (十四)

 abp(net core)+easyui+efcore实现仓储管理系统——使用 WEBAPI实现CURD (十五)

abp(net core)+easyui+efcore实现仓储管理系统——菜单-上 (十六)

 abp(net core)+easyui+efcore实现仓储管理系统——菜单-下(十七) 

abp(net core)+easyui+efcore实现仓储管理系统——EasyUI前端页面框架 (十八)

 

 

      通过上一篇(abp(net core)+easyui+efcore实现仓储管理系统——EasyUI前端页面框架 (十八) )文章,我们已经将EasyUI添加到我们的项目中了。下面我们通过EasyUI做为前端页面的UI控件来展现一个货物信息管理的前端功能,并使用创建相应的实体类,服务类等来实现后台功能。

四、创建Cargo实体

    1. 在Visual Studio 2017的“解决方案资源管理器”中,右键单击“ABP.TPLMS.Core”项目的“Entitys”文件夹,在弹出菜单中选择“添加” >

 > “类”。 将类命名为 Cargo,然后选择“添加”。

    2.创建Cargo类继承自Entity<int>,通过实现审计模块中的IHasCreationTime来实现保存创建时间。代码如下:

using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text; 

namespace ABP.TPLMS.Entitys
{

    public class Cargo : Entity<int>, IHasCreationTime
    {

        public Cargo()
        {

            this.Id = 0;
            this.SupplierId = 0;
            this.CargoCode = string.Empty;
            this.CargoName = string.Empty;
            this.Brand = string.Empty;
            this.Country = string.Empty;
            this.CreationTime = DateTime.Now;
            this.Curr = string.Empty;

            this.GrossWt = 0;
            this.Height = 0;
            this.HSCode = string.Empty;
            this.Length = 0;

            this.MaxNum = 100;
            this.MinNum = 0;
            this.NetWt = 0;

            this.Package = string.Empty;
            this.Price = 0;
            this.Remark = string.Empty;

            this.Spcf = string.Empty;
            this.Unit = string.Empty;
            this.UpdateTime = DateTime.Now;

            this.UpdOper = string.Empty;
            this.Vol = 0;
            this.Width = 0;

        }

 

        public int SupplierId { get; set; }
        [StringLength(50)]
        public string CargoCode { get; set; }
        [StringLength(10)]
        public string HSCode { get; set; }

        [StringLength(250)]
        public string CargoName { get; set; }

        [StringLength(512)]
        public string Spcf { get; set; }
        public string Unit { get; set; }

        public string Country { get; set; }
        public string Brand { get; set; }

        public string Curr { get; set; }
        public string Package { get; set; }
        public decimal Length { get; set; }

        public decimal Width { get; set; }
        public decimal Height { get; set; }
        public decimal Vol { get; set; }
 

        public decimal MinNum { get; set; }
        public decimal MaxNum { get; set; }

        public decimal Price { get; set; }
        public decimal GrossWt { get; set; }

         public decimal NetWt { get; set; }
        public
首页 上一页 1 2 3 下一页 尾页 1/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇C#之Form表单认证 下一篇RSA非对称 私钥加密

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目