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 MyShejiDetail : BasePage { OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; OA_StaffBLL staffBLL = null; public MyShejiDetail() { 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_CorporateClientsSheji = bll_OA_CorporateClientsBLL.SelectShejiByKeyid(keyid); if (oA_CorporateClientsSheji != null) { var oA_Staff = staffBLL.GetModelByMemberId(oA_CorporateClientsSheji.Creater.Value); if (oA_Staff != null) { spanPlanPeople.InnerText = oA_Staff.Name; } spanYinjianName.InnerHtml = oA_CorporateClientsSheji.YinjianName; spanJiaogaoCount.InnerHtml = oA_CorporateClientsSheji.JiaogaoCount.HasValue? oA_CorporateClientsSheji.JiaogaoCount.Value.ToString():""; spanPlanContent.InnerHtml = oA_CorporateClientsSheji.Remark; spanDepart.InnerText = oA_CorporateClientsSheji.ShejiTime.Value.ToString("yyyy-MM-dd"); } } } }