1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using Cksoft.Unity;
- using System;
- namespace DllEapEntity
- {
- [Table("projectandprogram")]
- public class Projectandprogram : BaseEntity
- {
- ////自动产生代码开始&&此行不能删除
- #region 自动产生代码
- public Projectandprogram()
- {
- base.EntityStatusID = 1;
- }
- [ColDetail(10, "Id", 1, 1, 100, 1, "a.Id", "", 1, 1)]
- [Key]
- public int Id { get; set; }
- [ColDetail(20, "Recipe", 1, 1, 100, 1, "a.Recipe", "", 1, 1)]
- public string Recipe { get; set; }
- [ColDetail(30, "Project", 1, 1, 100, 1, "a.Project", "", 1, 1)]
- public string Project { get; set; }
- [ColDetail(40, "录入人代码", 1, 1, 100, 1, "a.RecCode", "", 1, 1)]
- public string RecCode { get; set; }
- [ColDetail(50, "录入日期", 1, 1, 100, 1, "a.RecTime", "", 1, 1)]
- public DateTime RecTime { get; set; }
- [ColDetail(60, "修改 人代码", 1, 1, 100, 1, "a.ModCode", "", 1, 1)]
- public string ModCode { get; set; }
- [ColDetail(70, "修改时间", 1, 1, 100, 1, "a.ModTime", "", 1, 1)]
- public DateTime ModTime { get; set; }
- [ColDetail(80, "FName", 1, 1, 100, 1, "b.FName", "", 1, 1)]
- public string RecName { get; set; }
- [ColDetail(90, "FName", 1, 1, 100, 1, "c.FName", "", 1, 1)]
- public string ModName { get; set; }
- public override string GetSelectSql()
- {
- return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
- }
- public override string GetQueryColSql()
- {
- string sqlstr = "a.Id Id,a.Recipe Recipe,a.Project Project,a.RecCode RecCode,a.RecTime RecTime,a.ModCode ModCode,a.ModTime ModTime,b.FName RecName";
- sqlstr += ",c.FName ModName,0 EntityStatusID";
- return sqlstr;
- }
- public override string GetQueryTabSql()
- {
- string sqlstr = " projectandprogram a ";
- sqlstr += " left outer join staff b on a.reccode =b.fcode";
- sqlstr += " left outer join staff c on a.modcode =c.fcode";
- return sqlstr;
- }
- public override string GetQuerySortSql()
- {
- return "";
- }
- #endregion
- ////自动产生代码结束&&此行不能删除
- }
- }
|