using BLL; using Newtonsoft.Json.Linq; using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Linq; using System.Web.UI.WebControls; using AspNet = System.Web.UI.WebControls; namespace FineUIPro.Web.ZHGL.Plan { public partial class TechnicalProposalReviewView : PageBase { /// /// 主键 /// public string TechnicalProposalReviewId { get { return (string)ViewState["TechnicalProposalReviewId"]; } set { ViewState["TechnicalProposalReviewId"] = value; } } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TechnicalProposalReviewId = Request.Params["TechnicalProposalReviewId"]; if (!string.IsNullOrEmpty(TechnicalProposalReviewId)) { hdId.Text = this.TechnicalProposalReviewId; Model.Plan_TechnicalProposalReview TechnicalProposalReview = BLL.CQMS_TechnicalProposalReviewService.GetTechnicalProposalReviewByTechnicalProposalReviewId(TechnicalProposalReviewId); this.txtCode.Text = TechnicalProposalReview.Code; this.txtName.Text = TechnicalProposalReview.Name; if (!string.IsNullOrEmpty(TechnicalProposalReview.CompileMan)) { this.txtCompileMan.Text = Person_PersonsService.GetPersonsNameById(TechnicalProposalReview.CompileMan); } if (TechnicalProposalReview.CompileDate != null) { txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", TechnicalProposalReview.CompileDate); } } else { txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); } } } protected void Grid1_Sort(object sender, GridSortEventArgs e) { } protected void WindowAtt_Close(object sender, WindowCloseEventArgs e) { } protected void imgBtnFile_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(hdId.Text)) { hdId.Text = SQLHelper.GetNewID(); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/Plan&menuId={1}", hdId.Text, BLL.Const.TechnicalProposalReviewMenuId))); } } }