You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

292 lines
5.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DSWeb.Common.DbContexts.Model;
using HcUtility.Comm;
namespace DSWeb.Common.DB
{
public class DjyActionDataContext : DbContext
{
public DjyActionDataContext(string dbconn) : base(dbconn)
{
}
public DjyActionDataContext() : base("DjyActionDB")
{
}
public DbSet<DjyActionLog> DjyActionLog { get; set; }
}
/// <summary>
/// 大简云动作日志
/// </summary>
[Table("DjyActionLog")]
public class DjyActionLog
{
[Key]
public string GID { get; set; }
public string ModuleName { get; set; }
public string ActionType { get; set; }
public string ActionCate { get; set; }
public string SourceOp { get; set; }
public DateTime ActionTime { get; set; }
public string Carrier { get; set; }
public bool IsAuto { get; set; }
public string UserId { get; set; }
public string UserName { get; set; }
public string CompId { get; set; }
public string CompName { get; set; }
public string MBLNO { get; set; }
public string RelativeId { get; set; }
public string CtrnNO { get; set; }
public string Remark { get; set; }
public string ExtData { get; set; }
}
public enum EActionModule
{
/// <summary>
/// 订舱
/// </summary>
Booking,
/// <summary>
/// 运踪
/// </summary>
BillTrace,
/// <summary>
/// 任务
/// </summary>
Task,
/// <summary>
/// 邮件
/// </summary>
Mail,
/// <summary>
/// 公司
/// </summary>
Company,
}
public enum EActionType
{
/// <summary>
/// 发送SO
/// </summary>
SoSend,
/// <summary>
/// 发送SI
/// </summary>
SiSend,
/// <summary>
/// 放舱发送
/// </summary>
FangCangSend,
/// <summary>
/// 发送vgm
/// </summary>
VgmSend,
/// <summary>
/// 发送下货纸
/// </summary>
XiaHuoZhiSend,
/// <summary>
/// 生成提箱小票
/// </summary>
GenTxxpLink,
/// <summary>
/// 退仓
/// </summary>
TuiCang,
/// <summary>
/// 更改sq
/// </summary>
ChangeSQ,
/// <summary>
/// 换船
/// </summary>
ChangeShip,
/// <summary>
/// 修改箱型箱量
/// </summary>
ChangeCtnTypeNum,
/// <summary>
/// 修改温度
/// </summary>
ChangeTemprature,
/// <summary>
/// 自助vgm
/// </summary>
VgmSendCustomer,
/// <summary>
/// SI反馈
/// </summary>
SiFeedback,
/// <summary>
/// 提箱
/// </summary>
TiXiang,
/// <summary>
/// 返场
/// </summary>
FanChang,
/// <summary>
/// 集港
/// </summary>
JiGang,
/// <summary>
/// 舱单
/// </summary>
CangDan,
/// <summary>
/// 海放
/// </summary>
HaiFang,
/// <summary>
/// 装载
/// </summary>
ZhuangZai,
/// <summary>
/// 码放
/// </summary>
MaFang,
/// <summary>
/// 装船
/// </summary>
ZhuangChuan,
/// <summary>
/// 离港
/// </summary>
LiGang,
/// <summary>
/// 运抵
/// </summary>
YunDi,
/// <summary>
/// 下载draft的pdf文件到本地
/// </summary>
DraftFileDown,
/// <summary>
/// draft转发
/// </summary>
DraftTransmit,
/// <summary>
/// swb转发
/// </summary>
SeawayBillTransmit,
/// <summary>
/// 电放转发
/// </summary>
TelexTransmit,
/// <summary>
/// 正本提交到爬虫
/// </summary>
OriginalSpider,
/// <summary>
/// copy件文件下载到本地
/// </summary>
CopyFileDown,
/// <summary>
/// copy件文件批量打印
/// </summary>
CopyFilePrint,
/// <summary>
/// 提交lara登记
/// </summary>
LaraPost,
/// <summary>
/// 收到接收换船
/// </summary>
AcceptChangeShip,
/// <summary>
/// 发送换船通知
/// </summary>
ChangeShipNotify,
/// <summary>
/// 成功下载draft
/// </summary>
DraftDownloadOk,
/// <summary>
/// 外理
/// </summary>
WaiLi,
/// <summary>
/// 运港通查询ATD
/// </summary>
YgtAtd,
/// <summary>
/// ETD查询
/// </summary>
EtdQuery,
/// <summary>
/// 审核
/// </summary>
Audit,
}
}