using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using System.Data;
|
using System.Data.SqlClient;
|
using CY.Model;
|
using CY.BLL;
|
using CY.Infrastructure.Common;
|
using CY.BLL.Sys;
|
using CY.BLL.EC;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Query;
|
|
namespace CY.WebForm.Pages.work
|
{
|
//吴辉
|
//请示明细
|
public partial class MyBaoxiaoDetail : BasePage
|
{
|
OA_WorkPlanBll oA_WorkReminderBll = null;
|
public string planDataType = "";
|
OA_DepartmentBll oA_DepartmentBll = null;
|
OA_WorkPlan_attachmentBLL oA_WorkPlan_AttachmentBLL = null;
|
OA_WorkPlan_shenpiBLL oA_WorkPlan_ShenpiBLL = null;
|
OA_StaffBLL oA_StaffBLL = null;
|
public MyBaoxiaoDetail()
|
{
|
oA_WorkReminderBll = new OA_WorkPlanBll();
|
oA_DepartmentBll = new OA_DepartmentBll();
|
oA_WorkPlan_AttachmentBLL = new OA_WorkPlan_attachmentBLL();
|
oA_WorkPlan_ShenpiBLL = new OA_WorkPlan_shenpiBLL();
|
oA_StaffBLL = new OA_StaffBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
InitData();
|
}
|
}
|
|
//数据加载
|
public void InitData()
|
{
|
OA_WorkPlan m_OA_WorkPlan = oA_WorkReminderBll.GetModelByKeyid(Request["keyid"].ToInt32());
|
if (m_OA_WorkPlan != null)
|
{
|
planDataType = m_OA_WorkPlan.PlanDataType.Value.ToString();
|
var department = oA_DepartmentBll.GetModelByKeyid(m_OA_WorkPlan.DepartId);
|
if (department != null)
|
{
|
this.spanDepart.InnerText = department.Name;
|
}
|
this.spanPlanPeople.InnerText = m_OA_WorkPlan.PlanPeople.ToString();
|
|
|
this.spanPlanMoney.InnerText = m_OA_WorkPlan.PlanMoney.Value.ToString("0.00");
|
|
this.spanSubject.InnerText = m_OA_WorkPlan.RewardContent.ToString();
|
this.spanPlanContent.InnerText = m_OA_WorkPlan.PlanContent.ToString();
|
this.spanHoubufapiaoStatus.InnerText = m_OA_WorkPlan.HoubufapiaoStatusName ;
|
var sss = oA_WorkPlan_AttachmentBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value);
|
|
this.RepClientList.DataSource = sss.Where(x => x.AttachmentType == 1);
|
this.RepClientList.DataBind();
|
|
this.Repeater1.DataSource = sss.Where(x => x.AttachmentType == 2);
|
this.Repeater1.DataBind();
|
|
|
var oA_WorkPlan_Shenpis = oA_WorkPlan_ShenpiBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value);
|
foreach(var a_WorkPlan_Shenpi in oA_WorkPlan_Shenpis)
|
{
|
var oA_Staff = oA_StaffBLL.GetModelByMemberId(a_WorkPlan_Shenpi.ApprovalStaffId);
|
if (oA_Staff != null)
|
{
|
a_WorkPlan_Shenpi.ApprovalStaffName = oA_Staff.Name;
|
}
|
}
|
|
this.Repeater2.DataSource = oA_WorkPlan_Shenpis.OrderBy(x=>x.Keyid);
|
this.Repeater2.DataBind();
|
|
|
}
|
}
|
}
|
}
|