public UserVO(string uname, string fname, string lname, string email, string password, DeptEnum department) { if (uname != null) { m_userName = uname; } if (fname != null) { m_firstName = fname; } if (lname != null) { m_lastName = lname; } if (email != null) { m_email = email; } if (password != null) { m_password = password; } if (department != null) { m_department = department; } }
public UserVO(string uname, string fname, string lname, string email, string password, DeptEnum department) { if (uname != null) m_userName = uname; if (fname != null) m_firstName = fname; if (lname != null) m_lastName = lname; if (email != null) m_email = email; if (password != null) m_password = password; if (department != null) m_department = department; }
public static string MapDept(DeptEnum v) { switch (v) { case DeptEnum.Sales: return "销售部"; case DeptEnum.MediaPlanning: return "策划部"; case DeptEnum.CE: return "客户服务部"; case DeptEnum.BD: return "业务拓展部"; case DeptEnum.Creative: return "创意部"; } return ""; }