IDataEditPage edit_page = (IDataEditPage)this.Page;
edit_page.AddButtonVisible = false;
edit_page.DelButtonVisible = false;
edit_page.OperateControlVisible = false;
edit_page.SaveAndAddButtonVisible = false;
#region IDataEditPage 成员
public bool SaveAndAddButtonVisible
{
get
{
return this.btnSaveAndAdd.Visible;
}
set
{
this.btnSaveAndAdd.Visible = value;
}
}
public bool AddButtonVisible
{
get
{
return this.btnAdd.Visible;}
set
{
this.btnAdd.Visible = value;}
}
public bool SaveButtonVisible
{
get
{
return this.btnSave.Visible;
}
set
{
this.btnSave.Visible = value;
}
}
public bool OperateControlVisible
{
get
{
return this.tblOperate.Visible;
}
set
{
this.tblOperate.Visible = value;
}
}
public bool DelButtonVisible
{
get
{
return this.btnDelete.Visible;
}
set
{
this.btnDelete.Visible = value;
}
}
#endregion
#region public attribute
///<summary>
///Is show webcontrol button btnAdd
///</summary>
public bool IsShow_btnAdd
{
get {return btnAdd.Visible;}
set {btnAdd.Visible=value;}
}
///<summary>
///Is show webcontrol button btnAdd
///</summary>
public bool IsShow_btnSave
{
get {return btnSave.Visible;}
set {btnSave.Visible=value;}
}
///<summary>
///Is show webcontrol button btnAdd
///</summary>
public bool IsShow_btnSaveAndAdd
{
get {return btnSaveAndAdd.Visible;}
set {btnSaveAndAdd.Visible=value;}
}
///<summary>
///Is show webcontrol button btnAdd
///</summary>
public bool IsShow_btnDelete
{
get {return btnDelete.Visible;}
set {btnDelete.Visible=value;}
}
#endregion



浙公网安备 33010602011771号