VS2015按钮方法

protected void btnRoleMemberAdd_Click(object sender ,EventArgs e)

{

  txtEmpID.Text=Coeno.utility.string.CleanUpInput(textEmpID.Text.Trim());     --命名空间,类、方法名

  if(string.IsNullorEmpty(DropRoles.SelectedValue.Trim()))

  {

    LabMsg.Text= “无法新增至数据库:请选择一个角色进行新增" 

    LabMsg.ForeColor=System.Drawing.Color.Red;

    return;

  }

  //检查是否有输入员工工号

  if(txtEmpID.Text==" ")

  {

    LabMsg.Text= "请确认是否有输入员工工号!!!" ;

    LabMsg.ForeColor=System.Drawing.Color.Red;

  }

  //检查员工工号是否存在

  if(Coeno.Account.Users.IsEmpIDExist(txtEmpID.Text)==0)

  {

    LabMsg.Text= "员工工号不存在!!!" ;

    LabMsg.ForeColor=System.Drawing.Color.Red;

    return;

  }

  if(Coeno.Main.Roles.)

}

猜你喜欢

转载自www.cnblogs.com/ximi07/p/10921962.html