public static int Delete(SysTableconfig model,object trans) { if(model != null && trans !=null ) return baseOperate.Delete(model,trans); else throw new ApplicationException("在dbo.sys_TableConfig中删除一条记录时,传递的参数model,trans有错误!"); }
public static int Delete(SysTableconfig model) { if(model != null) return baseOperate.Delete(model); else throw new ApplicationException("在dbo.sys_TableConfig中删除一条记录时,传递的参数model为Null!");; }
public static int Insert(SysTableconfig model) { if(model != null) return baseOperate.Insert(model); else throw new ApplicationException("在dbo.sys_TableConfig中增加一条记录时,传递的参数model为Null!"); }
/// <summary> /// 发送一个表ID的sys_tableConfig配置信息到前台 /// </summary> /// <param name="context"></param> private void Send_sysTableConfig(HttpContext context) { string tableID = context.Request.Form["tableID"].ToString(); SysTableconfig stc = new SysTableconfig(); stc.Tableid = tableID; stc = BizSysTableconfig.GetModel(stc); string resStr = JsonHelper.GetJson<SysTableconfig>(stc); context.Response.Write(resStr); }
protected void btnSys_tableConfig_Click(object sender, EventArgs e) { //插入sys_TableConfig信息 SysTableconfig stc = new SysTableconfig(); stc.Customcolumnname = "详细"; stc.Isallselect = "1"; stc.Iscustomcolumn = "1"; stc.Isdel = "1"; stc.Isedit = "1"; stc.Ispage = "1"; stc.Issort = "1"; stc.Tableid = Guid.NewGuid().ToString(); stc.Tablename = "UserInfo"; stc.Tablenamech = "学生信息表"; stc.Showstyle = "style1.css"; stc.Editstyle = "EditStyle1.css"; BizSysTableconfig.Insert(stc); Response.Redirect("sys_FieldConfig.aspx?tableID=" + stc.Tableid); }
public static bool Exists(SysTableconfig model) { if(model != null ) return baseOperate.Exists(model); else throw new ApplicationException("在dbo.sys_TableConfig中查询某条记录是否存在时,传递的参数model为Null!"); }
public static SysTableconfig GetModel(SysTableconfig model) { if(model != null ) return baseOperate.GetModel(model); else throw new ApplicationException("根据主键获取dbo.sys_TableConfig中的一条记录时,传递的参数model为Null!"); }