160 lines
7.4 KiB
C#
160 lines
7.4 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 = "XLXSBJDYZZL", Umid = 100860169, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
|
QuerySelSql = "select XLXSBJDYZZL_JGBID, XLXSBJDYZZL_YZID, XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, "
|
|
+ " XLXSBJDYZZL_YZZ, XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ "
|
|
+ " from XLXSBJDYZZL where 1=1 ",
|
|
|
|
EntitySelSql = " select XLXSBJDYZZL_JGBID, XLXSBJDYZZL_YZID, XLXSTZYZ_JJFS, XLXSBJDYZZL_XLBZID, "
|
|
+ " XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, XLXSBJDYZZL_YZZ, "
|
|
+ " XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ "
|
|
+ " from XLXSBJDYZZL left join XLXSTZYZ on XLXSTZYZ_YZID=XLXSBJDYZZL_YZID and XLXSTZYZ_MXBH='BJD' "
|
|
+ " where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
|
+ " and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS "
|
|
+ " and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ ",
|
|
|
|
UpdateSql = " update XLXSBJDYZZL "
|
|
+ " set XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS=isnull(:XLXSBJDYZZL_BJSLS,0), "
|
|
+ " XLXSBJDYZZL_BJSLZ=isnull(:XLXSBJDYZZL_BJSLZ,0), XLXSBJDYZZL_YZZ=isnull(:XLXSBJDYZZL_YZZ,0), "
|
|
+ " XLXSBJDYZZL_WHR=:XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID=:XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ=:XLXSBJDYZZL_WHSJ "
|
|
+ " where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
|
+ " and XLXSBJDYZZL_XLBZID=:OLD_XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:OLD_XLXSBJDYZZL_BJSLS "
|
|
+ " and XLXSBJDYZZL_BJSLZ=:OLD_XLXSBJDYZZL_BJSLZ ",
|
|
|
|
InsertSql = " select XLXSBJDYZZL_JGBID from XLXSBJDYZZL where 1<>1 ",
|
|
|
|
DeleteSql = " delete from XLXSBJDYZZL where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
|
+ " and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS "
|
|
+ " and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ ")]
|
|
public class TZYZBJL : EntityManager
|
|
{
|
|
private string _XLXSBJDYZZL_JGBID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_JGBID", CtrlName = "txtJGBID", DbTitle = "JGBID", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = false, IsKey = true, Length = 8)]
|
|
public string XLXSBJDYZZL_JGBID
|
|
{
|
|
get { return _XLXSBJDYZZL_JGBID; }
|
|
set { _XLXSBJDYZZL_JGBID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_YZID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_YZID", CtrlName = "txtYZID", DbTitle = "YZID", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = false, IsKey = true, Length = 10)]
|
|
public string XLXSBJDYZZL_YZID
|
|
{
|
|
get { return _XLXSBJDYZZL_YZID; }
|
|
set { _XLXSBJDYZZL_YZID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_XLBZID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_XLBZID", CtrlName = "cbxXLBZID", DbTitle = "XLBZID", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = false, IsKey = true, Length = 10)]
|
|
public string XLXSBJDYZZL_XLBZID
|
|
{
|
|
get { return _XLXSBJDYZZL_XLBZID; }
|
|
set { _XLXSBJDYZZL_XLBZID = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZL_XLBZID;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_XLBZID", CtrlName = "txtOLD_XLBZID", DbTitle = "OLD_XLBZID", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string OLD_XLXSBJDYZZL_XLBZID
|
|
{
|
|
get { return _OLD_XLXSBJDYZZL_XLBZID; }
|
|
set { _OLD_XLXSBJDYZZL_XLBZID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_BJSLS;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_BJSLS", CtrlName = "txtBJSLS", DbTitle = "BJSLS", Type = FieldType.F, DefaultValue = "0",
|
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
|
public string XLXSBJDYZZL_BJSLS
|
|
{
|
|
get { return _XLXSBJDYZZL_BJSLS; }
|
|
set { _XLXSBJDYZZL_BJSLS = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZL_BJSLS;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_BJSLS", CtrlName = "txtOLD_BJSLS", DbTitle = "OLD_BJSLS", Type = FieldType.HiddenField, DefaultValue = "0",
|
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
|
public string OLD_XLXSBJDYZZL_BJSLS
|
|
{
|
|
get { return _OLD_XLXSBJDYZZL_BJSLS; }
|
|
set { _OLD_XLXSBJDYZZL_BJSLS = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_BJSLZ;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_BJSLZ", CtrlName = "txtBJSLZ", DbTitle = "BJSLZ", Type = FieldType.F, DefaultValue = "0",
|
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
|
public string XLXSBJDYZZL_BJSLZ
|
|
{
|
|
get { return _XLXSBJDYZZL_BJSLZ; }
|
|
set { _XLXSBJDYZZL_BJSLZ = value; }
|
|
}
|
|
|
|
private string _OLD_XLXSBJDYZZL_BJSLZ;
|
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_BJSLZ", CtrlName = "txtOLD_BJSLZ", DbTitle = "OLD_BJSLZ", Type = FieldType.HiddenField, DefaultValue = "0",
|
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
|
public string OLD_XLXSBJDYZZL_BJSLZ
|
|
{
|
|
get { return _OLD_XLXSBJDYZZL_BJSLZ; }
|
|
set { _OLD_XLXSBJDYZZL_BJSLZ = value; }
|
|
}
|
|
|
|
private string _XLXSTZYZ_JJFS;
|
|
[ColumnMap(DbField = "XLXSTZYZ_JJFS", CtrlName = "cbxJJFS", DbTitle = "JJFS", Type = FieldType.CBX, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 2)]
|
|
public string XLXSTZYZ_JJFS
|
|
{
|
|
get { return _XLXSTZYZ_JJFS; }
|
|
set { _XLXSTZYZ_JJFS = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_YZZ;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_YZZ", CtrlName = "txtYZZ", DbTitle = "YZZ", Type = FieldType.F, DefaultValue = "0",
|
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
|
public string XLXSBJDYZZL_YZZ
|
|
{
|
|
get { return _XLXSBJDYZZL_YZZ; }
|
|
set { _XLXSBJDYZZL_YZZ = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_WHR;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHR", CtrlName = "txtWHR", DbTitle = "WHR", Type = FieldType.C, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
|
public string XLXSBJDYZZL_WHR
|
|
{
|
|
get { return _XLXSBJDYZZL_WHR; }
|
|
set { _XLXSBJDYZZL_WHR = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_WHRID;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHRID", CtrlName = "txtWHRID", DbTitle = "WHRID", Type = FieldType.HiddenField, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string XLXSBJDYZZL_WHRID
|
|
{
|
|
get { return _XLXSBJDYZZL_WHRID; }
|
|
set { _XLXSBJDYZZL_WHRID = value; }
|
|
}
|
|
|
|
private string _XLXSBJDYZZL_WHSJ;
|
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHSJ", CtrlName = "datWHSJ", DbTitle = "WHSJ", Type = FieldType.DT, DefaultValue = "",
|
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
|
public string XLXSBJDYZZL_WHSJ
|
|
{
|
|
get { return _XLXSBJDYZZL_WHSJ; }
|
|
set { _XLXSBJDYZZL_WHSJ = value; }
|
|
}
|
|
}
|
|
}
|