后台给前台服务器控件添加样式
if (this.rBtn1.Checked)//組異動
{
strgp = "0";
this.tr1.Style.Add("display", "block");
this.tr2.Style.Add("display", "block");
this.tr3.Style.Add("display", "block");
this.tr4.Style.Add("display","none");
this.new2.Style.Add("display", "none");
}
if (this.rBtn2.Checked)//個人異動
{
strgp = "1";
this.tr1.Style.Add("display", "none");
this.tr2.Style.Add("display", "none");
this.tr3.Style.Add("display", "none");
this.tr4.Style.Add("display", "block");
this.new2.Style.Add("display", "block");
}
{
strgp = "0";
this.tr1.Style.Add("display", "block");
this.tr2.Style.Add("display", "block");
this.tr3.Style.Add("display", "block");
this.tr4.Style.Add("display","none");
this.new2.Style.Add("display", "none");
}
if (this.rBtn2.Checked)//個人異動
{
strgp = "1";
this.tr1.Style.Add("display", "none");
this.tr2.Style.Add("display", "none");
this.tr3.Style.Add("display", "none");
this.tr4.Style.Add("display", "block");
this.new2.Style.Add("display", "block");
}