private void EditInitial(Guid UserId) { AddInitial(); model = userMg.GetOneById(UserId); sbtnAdd.Visible = false; if (model != null) { txtLoginName.Text = model.LoginName; txtFullName.Text = model.FullName; tlDepartment.EditValue = model.DepartmentId; txtHandNo.Text = model.SimpleCode; } }
private void AddInitial() { model = new RightingSys.Models.ACL_User(); tlDepartment.Properties.DataSource = deptMg.GetAllList(); }