示例#1
0
        /// <summary>
        /// Handles back click, save LOI record and go to project creation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void HandleBackClick(object sender, EventArgs e)
        {
            SaveLargeFields();

            LOIForm.Save(int.Parse(LetterOfIntentId));

            // Go To Project Details
            Response.Redirect("AdminCreateProject.aspx?projectId=" + ProjectId + "&loiId=" + LetterOfIntentId);
        }
示例#2
0
        protected void SaveAndPrint(object sender, EventArgs e)
        {
            SaveLargeFields();

            LOIForm.Save(int.Parse(LetterOfIntentId));

            string printScript = "window.open('..//LetterOfIntent.aspx?IsEditable=true&projectId=" + ProjectId + "','PrintView', 'toolbars=no,resize=no,scrollbars=yes,width=800,height=700,left=300,top=200');";

            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Print", printScript, true);
        }
示例#3
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);
            this.EnableViewState = true;
            if (!Page.IsPostBack && !string.IsNullOrEmpty(LetterOfIntentId))
            {
                PopulateLargeFields();

                LOIForm.Populate(int.Parse(LetterOfIntentId));
            }
            else if (Page.IsPostBack)
            {
                RestoreLargeFieldsFromHidden();
            }

            HtmlGenericControl htmlContrl = this.FindControl("BackGroundHTML") as HtmlGenericControl;
        }
示例#4
0
 /// <summary>
 /// Handles next click, takes user to associated institutions
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void HandleNextClick(object sender, EventArgs e)
 {
     SaveLargeFields();
     LOIForm.Save(int.Parse(LetterOfIntentId));
     Response.Redirect("AdminAddEditInstitutionAndContacts.aspx?projectId=" + ProjectId + "&loiId=" + LetterOfIntentId + "&isWizard=true");
 }