12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using Cksoft.Unity;
- using System;
- namespace DllEapEntity
- {
- [Table("macprogram")]
- public class MacProgram:BaseEntity
- {
- ////自动产生代码开始&&此行不能删除
- #region 自动产生代码
- public MacProgram()
- {
- base.EntityStatusID = 1;
- }
- [ColDetail(10,"ID",1,1,100,1,"a.ID","",1,1)]
- [Key]
- [Identity]
- public int ID { get; set; }
- [ColDetail(20,"机台ID",1,1,100,1,"a.MacID","",1,1)]
- public int MacID { get; set; }
- [ColDetail(30,"程序名称",1,1,100,1,"a.ProgramName","",1,1)]
- public string ProgramName { get; set; }
- [ColDetail(40,"版次",1,1,100,1,"a.Version","",1,1)]
- public int Version { get; set; }
- [ColDetail(50,"标准程序",1,1,100,1,"a.IsDefault","",1,1)]
- public int IsDefault { get; set; }
- [ColDetail(60,"备注",1,1,100,1,"a.Remark","",1,1)]
- public string Remark { get; set; }
- [ColDetail(70,"录入人代码",1,1,100,1,"a.RecCode","",1,1)]
- public string RecCode { get; set; }
- [ColDetail(80,"录入日期",1,1,100,1,"a.RecTime","",1,1)]
- public DateTime RecTime { get; set; }
- [ColDetail(90,"修改 人代码",1,1,100,1,"a.ModCode","",1,1)]
- public string ModCode { get; set; }
- [ColDetail(100,"修改时间",1,1,100,1,"a.ModTime","",1,1)]
- public DateTime ModTime { get; set; }
- [ColDetail(110,"文件名称",1,1,100,1,"a.FileOrgName","",1,1)]
- public string FileOrgName { get; set; }
- public override string GetSelectSql()
- {
- return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
- }
- public override string GetQueryColSql()
- {
- string sqlstr = "a.ID ID,a.MacID MacID,a.ProgramName ProgramName,a.Version Version,a.IsDefault IsDefault,a.Remark Remark,a.RecCode RecCode,a.RecTime RecTime";
- sqlstr += ",a.ModCode ModCode,a.ModTime ModTime,a.FileOrgName FileOrgName,0 EntityStatusID";
- return sqlstr;
- }
- public override string GetQueryTabSql()
- {
- string sqlstr=" MacProgram a ";
- return sqlstr;
- }
- public override string GetQuerySortSql()
- {
- return "";
- }
- #endregion
- ////自动产生代码结束&&此行不能删除
-
- [Ignore]
- public string FileInfoRemark { get; set; }
- [Ignore]
- public string UploadMacCode { get; set; }
- }
- }
|