using BLL; using System; namespace FineUIPro.Web.CQMS.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"]; SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(drpCompileMan, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1, true); 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.drpCompileMan.SelectedValue = TechnicalProposalReview.CompileMan; } if (TechnicalProposalReview.CompileDate != null) { txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", TechnicalProposalReview.CompileDate); } } else { this.drpCompileMan.SelectedValue = this.CurrUser.PersonId; 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))); } } }