ASP.NET里的底层类要怎么编写啊?JY进哦~!求教~!
1个回答
展开全部
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 jgsbTableAdapters;
/// <summary>
/// jgsb 的摘要说明
/// </summary>
[System.ComponentModel.DataObject]
public class Jg_yjmb
{
public Jg_yjmb()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
private jg_yjmbTableAdapter _jgyjmbAdp = null;
protected jg_yjmbTableAdapter JgyjmbAdp
{
get
{
if (_jgyjmbAdp == null)
{
_jgyjmbAdp = new jg_yjmbTableAdapter();
}
return _jgyjmbAdp;
}
}
public jgsb.jg_yjmbDataTable GetAllData()
{
return JgyjmbAdp.GetAllData();
}
public jgsb.jg_yjmbDataTable GetAllData1()
{
return JgyjmbAdp.GetAllData1();
}
public jgsb.jg_yjmbDataTable GetDataByid(string id)
{
return JgyjmbAdp.GetDataByid(System.Convert.ToInt32(id));
}
public jgsb.jg_yjmbDataTable GetDataBysblb(string sblb)
{
return JgyjmbAdp.GetDataBysblb(sblb);
}
public int DeleteByid(string original_id)
{
return JgyjmbAdp.DeleteByid(System.Convert.ToInt32(original_id));
}
public int Update(string sjyj_ty, string sjyj_bty, string zgyj_ty, string zgyj_bty,string xzfx, string byx, string ssfa, string id)
{
return JgyjmbAdp.Update(sjyj_ty, sjyj_bty, zgyj_ty, zgyj_bty, xzfx, byx, ssfa, System.Convert.ToInt32(id));
}
public jgsb.jg_yjmbDataTable GetDataByCon(
string xmlb,
string zjly,
string sblb,
string dklx)
{
return JgyjmbAdp.GetDataByCon(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx)
);
}
public int DeleteByCon(
string xmlb,
string zjly,
string sblb,
string dklx)
{
return JgyjmbAdp.DeleteByCon(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx)
);
}
public int Add(
string xmlb,
string zjly,
string sblb,
string dklx,
string sjyj_ty,
string sjyj_bty,
string zgyj_ty,
string zgyj_bty,
string xzfx,
string byx,
string ssfa)
{
return JgyjmbAdp.Insert(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx),
sjyj_ty,
sjyj_bty,
zgyj_ty,
zgyj_bty,
xzfx,
byx,
ssfa
);
}
}
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 jgsbTableAdapters;
/// <summary>
/// jgsb 的摘要说明
/// </summary>
[System.ComponentModel.DataObject]
public class Jg_yjmb
{
public Jg_yjmb()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
private jg_yjmbTableAdapter _jgyjmbAdp = null;
protected jg_yjmbTableAdapter JgyjmbAdp
{
get
{
if (_jgyjmbAdp == null)
{
_jgyjmbAdp = new jg_yjmbTableAdapter();
}
return _jgyjmbAdp;
}
}
public jgsb.jg_yjmbDataTable GetAllData()
{
return JgyjmbAdp.GetAllData();
}
public jgsb.jg_yjmbDataTable GetAllData1()
{
return JgyjmbAdp.GetAllData1();
}
public jgsb.jg_yjmbDataTable GetDataByid(string id)
{
return JgyjmbAdp.GetDataByid(System.Convert.ToInt32(id));
}
public jgsb.jg_yjmbDataTable GetDataBysblb(string sblb)
{
return JgyjmbAdp.GetDataBysblb(sblb);
}
public int DeleteByid(string original_id)
{
return JgyjmbAdp.DeleteByid(System.Convert.ToInt32(original_id));
}
public int Update(string sjyj_ty, string sjyj_bty, string zgyj_ty, string zgyj_bty,string xzfx, string byx, string ssfa, string id)
{
return JgyjmbAdp.Update(sjyj_ty, sjyj_bty, zgyj_ty, zgyj_bty, xzfx, byx, ssfa, System.Convert.ToInt32(id));
}
public jgsb.jg_yjmbDataTable GetDataByCon(
string xmlb,
string zjly,
string sblb,
string dklx)
{
return JgyjmbAdp.GetDataByCon(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx)
);
}
public int DeleteByCon(
string xmlb,
string zjly,
string sblb,
string dklx)
{
return JgyjmbAdp.DeleteByCon(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx)
);
}
public int Add(
string xmlb,
string zjly,
string sblb,
string dklx,
string sjyj_ty,
string sjyj_bty,
string zgyj_ty,
string zgyj_bty,
string xzfx,
string byx,
string ssfa)
{
return JgyjmbAdp.Insert(
xmlb,
zjly,
sblb,
System.Convert.ToInt32(dklx),
sjyj_ty,
sjyj_bty,
zgyj_ty,
zgyj_bty,
xzfx,
byx,
ssfa
);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |