提交代码
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
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.CQMS.Plan
|
||||
{
|
||||
public partial class TechnicalProposalReviewView : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user