62,052
社区成员
发帖
与我相关
我的任务
分享
/// <summary>
/// 生成事件时激发
/// </summary>
/// <param name="source"></param>
/// <param name="e"></param>
protected void grdbank_ItemCommand(object source, DataGridCommandEventArgs e)
{
int strPropertyId = Convert.ToInt32(e.Item.Cells[0].Text);
if (e.CommandName == "lb1")
{
ProjectRedact.Visible = true;
this.Label1.Text = e.Item.Cells[1].Text.ToString().Trim();
this.Label2.Text = e.Item.Cells[2].Text.ToString().Trim();
this.TextBox6.Text = e.Item.Cells[3].Text.ToString().Trim();
this.TextBox7.Text = e.Item.Cells[4].Text.ToString().Trim();
this.TextBox8.Text = e.Item.Cells[5].Text.ToString().Trim();
this.TextBox9.Text = e.Item.Cells[6].Text.ToString().Trim();
}
else if (e.CommandName == "lb2")
{
bool temp = EM_Project.ClassLibrary.CUser.UpPropertyF(strPropertyId);
if (temp)
{
Bind();
}
}
else if (e.CommandName == "lb3")
{
bool temp = EM_Project.ClassLibrary.CUser.UpPropertyR(strPropertyId);
if (temp)
{
Bind();
}
}
}
/// <summary>
/// 生成事件时激发
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void DVClientInfo_RowCommand(object sender, GridViewCommandEventArgs e)
{
int strProjectId =
if (e.CommandName == "redact")//编辑
{
}
else if (e.CommandName == "forbid")//禁用
{
bool temp = centaline.Pro.ClassLibrary.Property.CProject.UpStatusF(strProjectId);
if (temp)
{
Bind();
}
}
else if (e.CommandName == "comeback")//恢复
{
bool temp = centaline.Pro.ClassLibrary.Property.CProject.UpStatusR(strProjectId);
if (temp)
{
Bind();
}
}
}