2024-03-08 23:33:10 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace FineUIPro.Web.TestRun.Meeting
|
|
|
|
|
{
|
|
|
|
|
public partial class SpecialMeetingView : PageBase
|
|
|
|
|
{
|
|
|
|
|
#region 加载
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 页面加载
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
BLL.UserService.InitUserDropDownList(this.drpCompileMan, this.CurrUser.LoginProjectId, true);
|
|
|
|
|
string id = Request.Params["id"];
|
|
|
|
|
if (!string.IsNullOrEmpty(id))
|
|
|
|
|
{
|
|
|
|
|
Model.Driver_Meeting data = BLL.MeetingService.GetMeetingById(id);
|
|
|
|
|
if (data != null)
|
|
|
|
|
{
|
|
|
|
|
this.hdId.Text = id;
|
2024-03-31 01:12:53 +08:00
|
|
|
|
//this.txtMeetingCode.Text = data.MeetingCode;
|
|
|
|
|
//this.txtMeetingDate.Text = data.MeetingDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.MeetingDate) : "";
|
2024-03-08 23:33:10 +08:00
|
|
|
|
this.txtMeetingAddress.Text = data.MeetingAddress;
|
2024-03-31 01:12:53 +08:00
|
|
|
|
//this.txtMeetingUrl.Text = data.AttachUrl;
|
|
|
|
|
//if (!string.IsNullOrEmpty(data.CompileMan))
|
|
|
|
|
//{
|
|
|
|
|
// this.drpCompileMan.SelectedValue = data.CompileMan;
|
|
|
|
|
//}
|
|
|
|
|
//this.txtCompileDate.Text = data.CompileDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.CompileDate) : "";
|
2024-03-08 23:33:10 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
InitMenuTree();
|
|
|
|
|
///初始化审核菜单
|
|
|
|
|
this.ctlAuditFlow.MenuId = BLL.Const.SpecialMeetingMenuId;
|
|
|
|
|
this.ctlAuditFlow.DataId = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 附件上传
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 会议纪要
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void btnAttach_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrEmpty(this.hdId.Text))
|
|
|
|
|
{
|
|
|
|
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/Meeting/SpecialMeeting&menuId={1}&strParam=1", this.hdId.Text, BLL.Const.SpecialMeetingMenuId)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 签到表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void btnSign_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrEmpty(this.hdId.Text))
|
|
|
|
|
{
|
|
|
|
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/Meeting/SpecialMeeting&menuId={1}&strParam=2", this.hdId.Text, BLL.Const.SpecialMeetingMenuId)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 初始化树
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 初始化树
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="menuList">单位集合</param>
|
|
|
|
|
private void InitMenuTree()
|
|
|
|
|
{
|
|
|
|
|
this.tvAttendMeetingsPerson.Nodes.Clear();
|
|
|
|
|
var units = BLL.UnitService.GetUnitByProjectIdList(this.CurrUser.LoginProjectId);
|
|
|
|
|
foreach (var item in units)
|
|
|
|
|
{
|
|
|
|
|
TreeNode rootNode = new TreeNode
|
|
|
|
|
{
|
|
|
|
|
Text = item.UnitName,
|
|
|
|
|
NodeID = item.UnitId,
|
|
|
|
|
EnableCheckBox = true,
|
|
|
|
|
EnableCheckEvent = true,
|
|
|
|
|
Expanded = true
|
|
|
|
|
};
|
|
|
|
|
this.tvAttendMeetingsPerson.Nodes.Add(rootNode);
|
|
|
|
|
this.BoundTree(rootNode.Nodes, rootNode.NodeID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 遍历增加子节点
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="nodes"></param>
|
|
|
|
|
/// <param name="menuId"></param>
|
|
|
|
|
private void BoundTree(TreeNodeCollection nodes, string superMenuId)
|
|
|
|
|
{
|
|
|
|
|
var menus = BLL.UserService.GetUserByUnitId(this.CurrUser.LoginProjectId, superMenuId);
|
|
|
|
|
foreach (var item in menus)
|
|
|
|
|
{
|
|
|
|
|
TreeNode chidNode = new TreeNode
|
|
|
|
|
{
|
|
|
|
|
Text = item.Text,
|
|
|
|
|
NodeID = item.Value,
|
|
|
|
|
EnableCheckBox = true,
|
|
|
|
|
EnableCheckEvent = true
|
|
|
|
|
};
|
|
|
|
|
var items = BLL.MeetingItemService.GetMeetingItemByMeetingId(this.hdId.Text.Trim());
|
|
|
|
|
if (items.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (var i in items)
|
|
|
|
|
{
|
|
|
|
|
if (i.UserId == item.Value)
|
|
|
|
|
{
|
|
|
|
|
chidNode.Checked = true;
|
|
|
|
|
chidNode.Expanded = true;
|
|
|
|
|
chidNode.Selectable = true;
|
2024-03-31 01:12:53 +08:00
|
|
|
|
//var meeting = BLL.MeetingService.GetMeetingById(this.hdId.Text.Trim());
|
|
|
|
|
//if (meeting != null)
|
|
|
|
|
//{
|
|
|
|
|
// if (meeting.States == "2")
|
|
|
|
|
// {
|
|
|
|
|
// if (i.IsMeeting == true)
|
|
|
|
|
// {
|
|
|
|
|
// chidNode.Text = item.Text + "(可按时参加)";
|
|
|
|
|
// }
|
|
|
|
|
// else if (i.IsMeeting == false)
|
|
|
|
|
// {
|
|
|
|
|
// chidNode.Text = item.Text + "(因故不参加:" + i.Feedback + ")";
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// chidNode.Text = item.Text + "(暂未反馈)";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2024-03-08 23:33:10 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
nodes.Add(chidNode);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|