//internal Image imgHead; //internal TextBlock tbkName; //internal TextBlock tbkID; //internal TextBlock tbkDate; ////private bool _contentLoaded; public MarkedRecordItem(GetIsMark mark, bool IsStaff) { this.InitializeComponent(); this.InitData(); this.InitServic(); if (IsStaff) { if (this.StaffInfo(mark)) { this.IsValue = true; } else { this.IsValue = false; } } else { if (this.GroupInfo(mark)) { this.IsValue = true; } else { this.IsValue = false; } } }
private bool StaffInfo(GetIsMark mark) { IDKin.IM.Core.Staff staff = this.dataService.GetStaff(mark.id); bool result; if (staff != null && mark.id != this.sessionService.Uid) { this.imgHead.Source = staff.HeaderImageOnline; this.tbkName.Text = staff.Name; this.tbkDate.Text = mark.updateTime; this.tbkID.Text = staff.Uid.ToString(); this.st = staff; result = true; } else { result = false; } return(result); }
private bool GroupInfo(GetIsMark mark) { EntGroup group = this.dataService.GetEntGroup(mark.id); bool result; if (group != null) { this.imgHead.Source = group.AdminIcon; this.tbkName.Text = group.Name; this.tbkDate.Text = mark.updateTime; this.tbkID.Text = group.Gid.ToString(); this.entgroup = group; result = true; } else { result = false; } return(result); }
private bool GroupInfo(GetIsMark mark) { EntGroup group = this.dataService.GetEntGroup(mark.id); bool result; if (group != null) { this.imgHead.Source = group.AdminIcon; this.tbkName.Text = group.Name; this.tbkDate.Text = mark.updateTime; this.tbkID.Text = group.Gid.ToString(); this.entgroup = group; result = true; } else { result = false; } return result; }
private bool StaffInfo(GetIsMark mark) { IDKin.IM.Core.Staff staff = this.dataService.GetStaff(mark.id); bool result; if (staff != null && mark.id != this.sessionService.Uid) { this.imgHead.Source = staff.HeaderImageOnline; this.tbkName.Text = staff.Name; this.tbkDate.Text = mark.updateTime; this.tbkID.Text = staff.Uid.ToString(); this.st = staff; result = true; } else { result = false; } return result; }