155 lines
6.8 KiB
C#
155 lines
6.8 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
using GThinking.N_MODEL.Page;
|
|
|
|
namespace GThinking.N_XLXSBJ
|
|
{
|
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDYZZK", Umid = 100860152, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
|
|
|
QuerySelSql = "select XLXSBJDYZZK_JGBID, XLXSBJDYZZK_DTLX,XLXSBJDYZZK_DYDJID, " + "\r\n"
|
|
+ " XLXSBJDYZZK_YZID, XLXSBJDYZZK_YZZ, XLXSBJDYZZK_WHR, XLXSBJDYZZK_WHRID, XLXSBJDYZZK_WHSJ " + "\r\n"
|
|
+ " from XLXSBJDYZZK " + "\r\n"
|
|
+ " where 1=1 ",
|
|
|
|
EntitySelSql = " select XLXSBJDYZZK_JGBID, XLXSBJDYZZK_YZID, XLXSTZYZ_JJFS, "
|
|
+ " XLXSBJDYZZK_DTLX,XLXSBJDYZZK_DYDJID, "
|
|
+ " XLXSBJDYZZK_YZZ, XLXSBJDYZZK_WHR, XLXSBJDYZZK_WHRID, XLXSBJDYZZK_WHSJ "
|
|
+ " from XLXSBJDYZZK left join XLXSTZYZ on XLXSTZYZ_YZID=XLXSBJDYZZK_YZID and XLXSTZYZ_MXBH='BJD' "
|
|
+ " where XLXSBJDYZZK_JGBID =:XLXSBJDYZZK_JGBID and XLXSBJDYZZK_YZID =:XLXSBJDYZZK_YZID "
|
|
+ " and XLXSBJDYZZK_DTLX=:XLXSBJDYZZK_DTLX and XLXSBJDYZZK_DYDJID=:XLXSBJDYZZK_DYDJID ",
|
|
|
|
UpdateSql = " update XLXSBJDYZZK "
|
|
+ " set XLXSBJDYZZK_JGBID = :XLXSBJDYZZK_JGBID, "
|
|
+ " XLXSBJDYZZK_DTLX=:XLXSBJDYZZK_DTLX , XLXSBJDYZZK_DYDJID=:XLXSBJDYZZK_DYDJID,"
|
|
+ " XLXSBJDYZZK_YZZ=isnull(:XLXSBJDYZZK_YZZ,0), "
|
|
+ " XLXSBJDYZZK_WHR=:XLXSBJDYZZK_WHR, XLXSBJDYZZK_WHRID=:XLXSBJDYZZK_WHRID, XLXSBJDYZZK_WHSJ=:XLXSBJDYZZK_WHSJ "
|
|
+ " where XLXSBJDYZZK_JGBID =:XLXSBJDYZZK_JGBID "
|
|
+ " and XLXSBJDYZZK_DTLX=:OLD_XLXSBJDYZZK_DTLX and XLXSBJDYZZK_DYDJID=:OLD_XLXSBJDYZZK_DYDJID ",
|
|
|
|
|
|
InsertSql = " select XLXSBJDYZZK_JGBID from XLXSBJDYZZK where 1 <> 1 ",
|
|
DeleteSql = " delete from XLXSBJDYZZK where XLXSBJDYZZK_JGBID =:XLXSBJDYZZK_JGBID "
|
|
+ " and XLXSBJDYZZK_DTLX=:XLXSBJDYZZK_DTLX and XLXSBJDYZZK_DYDJID=:XLXSBJDYZZK_DYDJID ")]
|
|
public class TZYZBJK : EntityManager
|
|
{
|
|
private string _XLXSBJDYZZK_JGBID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_JGBID", CtrlName = "txtJGBID", DbTitle = "调价表编号", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = false, IsKey = true, Length = 8)]
|
|
public string XLXSBJDYZZK_JGBID
|
|
{
|
|
get { return _XLXSBJDYZZK_JGBID; }
|
|
set { _XLXSBJDYZZK_JGBID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_DTLX;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_DTLX", CtrlName = "cbxDTLX", DbTitle = "导体类型", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = true, Length = 10)]
|
|
public string XLXSBJDYZZK_DTLX
|
|
{
|
|
get { return _XLXSBJDYZZK_DTLX; }
|
|
set { _XLXSBJDYZZK_DTLX = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZK_DTLX;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZK_DTLX", CtrlName = "txtOLD_DTLX", DbTitle = "原导体类型", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10, PrintVisible = false)]
|
|
public string OLD_XLXSBJDYZZK_DTLX
|
|
{
|
|
get { return _OLD_XLXSBJDYZZK_DTLX; }
|
|
set { _OLD_XLXSBJDYZZK_DTLX = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_DYDJID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_DYDJID", CtrlName = "cbxDYDJID", DbTitle = "电压等级", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = true, Length = 20)]
|
|
public string XLXSBJDYZZK_DYDJID
|
|
{
|
|
get { return _XLXSBJDYZZK_DYDJID; }
|
|
set { _XLXSBJDYZZK_DYDJID = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZK_DYDJID;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZK_DYDJID", CtrlName = "txtOLD_DYDJID", DbTitle = "原电压等级", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 20, PrintVisible = false)]
|
|
public string OLD_XLXSBJDYZZK_DYDJID
|
|
{
|
|
get { return _OLD_XLXSBJDYZZK_DYDJID; }
|
|
set { _OLD_XLXSBJDYZZK_DYDJID = value; }
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string _XLXSBJDYZZK_YZID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_YZID", CtrlName = "cbxYZID", DbTitle = "调价因子编码", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string XLXSBJDYZZK_YZID
|
|
{
|
|
get { return _XLXSBJDYZZK_YZID; }
|
|
set { _XLXSBJDYZZK_YZID = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZK_YZID;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZK_YZID", CtrlName = "txtOLD_YZID", DbTitle = "原调价因子编码", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string OLD_XLXSBJDYZZK_YZID
|
|
{
|
|
get { return _OLD_XLXSBJDYZZK_YZID; }
|
|
set { _OLD_XLXSBJDYZZK_YZID = value; }
|
|
}
|
|
|
|
private string _XLXSTZYZ_JJFS;
|
|
[ColumnMap(DbField = "XLXSTZYZ_JJFS", CtrlName = "cbxJJFS", DbTitle = "调价方式", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 2)]
|
|
public string XLXSTZYZ_JJFS
|
|
{
|
|
get { return _XLXSTZYZ_JJFS; }
|
|
set { _XLXSTZYZ_JJFS = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_YZZ;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_YZZ", CtrlName = "txtYZZ", Type = FieldType.F, DbTitle = "因子值", DefaultValue = "0",
|
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
|
public string XLXSBJDYZZK_YZZ
|
|
{
|
|
get { return _XLXSBJDYZZK_YZZ; }
|
|
set { _XLXSBJDYZZK_YZZ = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_WHR;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_WHR", CtrlName = "txtWHR", DbTitle = "维护人", Type = FieldType.C, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
|
public string XLXSBJDYZZK_WHR
|
|
{
|
|
get { return _XLXSBJDYZZK_WHR; }
|
|
set { _XLXSBJDYZZK_WHR = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_WHRID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_WHRID", CtrlName = "txtWHRID", DbTitle = "维护人工号", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string XLXSBJDYZZK_WHRID
|
|
{
|
|
get { return _XLXSBJDYZZK_WHRID; }
|
|
set { _XLXSBJDYZZK_WHRID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZK_WHSJ;
|
|
[ColumnMap(DbField = "XLXSBJDYZZK_WHSJ", CtrlName = "datWHSJ", DbTitle = "维护时间", Type = FieldType.DT, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string XLXSBJDYZZK_WHSJ
|
|
{
|
|
get { return _XLXSBJDYZZK_WHSJ; }
|
|
set { _XLXSBJDYZZK_WHSJ = value; }
|
|
}
|
|
}
|
|
}
|