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 MyvisitDetail : BasePage { OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; OA_StaffBLL staffBLL = null; public MyvisitDetail() { bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); staffBLL = new OA_StaffBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } //数据加载 public void InitData() { var keyid = Request["keyid"].ToGuid2() ; var oA_CorporateClientsVisit = bll_OA_CorporateClientsBLL.SelectVisitByKeyid(keyid); if (oA_CorporateClientsVisit != null) { var oA_Staff = staffBLL.GetModelByMemberId(oA_CorporateClientsVisit.Creater.Value); if (oA_Staff != null) { spanPlanPeople.InnerText = oA_Staff.Name; } spanPlanContent.InnerHtml = oA_CorporateClientsVisit.Remark; spanDepart.InnerText = oA_CorporateClientsVisit.VisitTime.Value.ToString("yyyy-MM-dd"); this.Repeater1.DataSource = bll_OA_CorporateClientsBLL.GetattachmentlList(Request["keyid"]); this.Repeater1.DataBind(); } } } }