/// <summary> /// 根据学生身份证号码从监护人列表中删除学生的监护人 /// </summary> /// <param name="CardId"></param> /// <returns></returns> public int Delete(string CardId) { Guid id = new StudentInfoDAL().GetByCrdId(CardId).id; return(SqlHelper.ExecuteNonQuery("delete from T_StuRelationship where StuId=@id", new MySqlParameter("id", id))); }
public string GetIdByStuId(string id) { StudentInfoModel m = new StudentInfoDAL().GetByCrdId(id); if (m == null) { return null; } else { return m.id.ToString(); } }
public string GetNameByStuId(string id) { StudentInfoModel m = new StudentInfoDAL().GetByCrdId(id); if (m == null) { return null; } else { return m.Name; } }