/// <summary> /// 显示日程信息 /// </summary> /// <param name="schedule"></param> private void ShowSchedule(Schedule schedule) { this.txtTitle.Text = schedule.Title; this.txtAddress.Text = schedule.SchContent; this.txtBeginTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", schedule.BeginTime); this.txtEndTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", schedule.EndTime); this.txtContent.Text = schedule.SchContent; this.lblUserName.Text = schedule.CreateUser.UserName; IList <PreContract> preContracts = PreContractManager.GetPreContractByScheduleId(schedule.ScheduleId); if (preContracts.Count != 0) { foreach (PreContract pre in preContracts) { User us = UserManager.GetUserById(pre.UserId); Depart depart = DepartInfoManager.GetDepartGetById(us.DepartId); ListItem item = new ListItem(depart.DepartName + "-" + us.UserName, us.UserId); this.lbUserName.Items.Add(item); } } if (schedule.IfPrivate == 1) { this.cboPrivate.Checked = true; } else { this.cboPrivate.Checked = false; } this.ddlType.SelectedValue = schedule.Meeting.MeetingId.ToString(); }
private void FillManual(int f*g, ManualSign ms) { //初始化签到签退信息 string line = "----"; sign.Text = (f*g == 0) ? "签到" : "签退"; txtUserId.Text = line + ms.User.UserId; txtUserName.Text = line + ms.User.UserName; Depart depart = DepartInfoManager.GetDepartGetById(ms.User.DepartId); txtDepart.Text = line + depart.DepartName.Trim(); txtBranch.Text = line + depart.Branch.BranchName; txtSignInDesc.Text = line + ms.SignDesc; txtSignTimeInfo.Text = line + ms.SignTime.ToString(); }