📄 adduser.aspx.cs
字号:
}
if (authorize[21] == '1')
{
CheckBox32.Checked = true;
}
else
{
CheckBox32.Checked = false;
}
if (authorize[22] == '1')
{
CheckBox33.Checked = true;
}
else
{
CheckBox33.Checked = false;
}
if (authorize[23] == '1')
{
CheckBox34.Checked = true;
}
else
{
CheckBox34.Checked = false;
}
if (authorize[24] == '1')
{
CheckBox35.Checked = true;
}
else
{
CheckBox35.Checked = false;
}
if (authorize[25] == '1')
{
CheckBox41.Checked = true;
}
else
{
CheckBox41.Checked = false;
}
if (authorize[26] == '1')
{
CheckBox42.Checked = true;
}
else
{
CheckBox42.Checked = false;
}
if (authorize[27] == '1')
{
CheckBox43.Checked = true;
}
else
{
CheckBox43.Checked = false;
}
if (authorize[28] == '1')
{
CheckBox51.Checked = true;
}
else
{
CheckBox51.Checked = false;
}
#endregion
}
protected string Cb_Save()
{
string strauthorize="";
#region checkbox control //存储授权选项
if (CheckBox1.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox2.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox3.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox4.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox5.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox6.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox7.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox8.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox9.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox10.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox11.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox12.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox13.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox14.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox15.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox16.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox17.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox18.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox19.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox20.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox31.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox32.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox33.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox34.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox35.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox41.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox42.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox43.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
if (CheckBox51.Checked == true)
{
strauthorize += "1";
}
else
{
strauthorize += "0";
}
#endregion
return strauthorize;
}
protected void Drop_Role_SelectedIndexChanged(object sender, EventArgs e)
{
string roleid = Drop_Role.SelectedValue;
dbtable2.Clear();
Role_Control.SelectbyRoleid(dbtable2, roleid);
string authorize = dbtable2.Rows[0].ItemArray[4].ToString();
Cb_Control(authorize);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -