using System; using BLL; namespace FineUIPro.Web.HJGL.FileControl { public partial class DomesticStandardsViewEdit : PageBase { /// /// 主键 /// public string DomesticStandardsId { get { return (string)ViewState["DomesticStandardsId"]; } set { ViewState["DomesticStandardsId"] = value; } } /// /// 加载页面 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.DomesticStandardsId = Request.Params["DomesticStandardsId"]; var DomesticStandards = BLL.HJGL_FileControl_DomesticStandardsService.GetDomesticStandardsById(this.DomesticStandardsId); if (DomesticStandards != null) { this.txtDomesticStandardsCode.Text = DomesticStandards.DomesticStandardsCode; this.txtDomesticStandardsName.Text = DomesticStandards.DomesticStandardsName; this.txtAbstract.Text = DomesticStandards.Summary; this.txtCompileMan.Text = DomesticStandards.CompileMan; this.txtRemarks.Text = DomesticStandards.Remarks; if (DomesticStandards.CompileDate != null) { this.dpkCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DomesticStandards.CompileDate); } } else { this.txtCompileMan.Text = this.CurrUser.UserName; this.dpkCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); } } } /// /// 上传附件资源 /// /// /// protected void btnAttachUrl_Click(object sender, EventArgs e) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/FileControl/DomesticStandards&menuId={1}&edit=0", this.DomesticStandardsId, BLL.Const.HJGLServer_DomesticStandardsMenuId))); } } }