Exemplo n.º 1
0
        protected void UpdateButton_Click(object sender, EventArgs e)
        {
            //
            // Save the Response Grid
            //

            LOIResponseGridView.Save(ProjectLetterOfIntentId, true);

            /*BusinessObject.ProjectLOIResponse biz = new BusinessObject.ProjectLOIResponse();
             *
             * if (ProjectLOIResponseId != -1)
             *  biz.Get(ProjectLOIResponseId);
             *
             * if (ProjectLetterOfIntentId != -1)
             *  CICHelper.SetBOValues(EditResponsePanel.Controls, biz, ProjectLetterOfIntentId);
             * else
             *  CICHelper.SetBOValues(EditResponsePanel.Controls, biz, 0);
             *
             * biz.Save();
             *
             * if (biz["ProjectLOIResponseId"].ToString() != "")
             * {
             *  ProjectLOIResponseId = Int32.Parse(biz["ProjectLOIResponseId"].ToString());
             * }*/

            GoToMainList();
        }
Exemplo n.º 2
0
        private void PopulateResponseGrid()
        {
            //BusinessObject.ProjectLOIResponse biz = new BusinessObject.ProjectLOIResponse();

            //biz.GetByParent(ProjectLetterOfIntentId);

            //LOIResponseGridView.DataSource = biz.DataSourceView;

            LOIResponseGridView.DataSource = BusinessObject.GetByParentAsDataView <BOL.ProjectLOIResponse>(ProjectLetterOfIntentId);
            LOIResponseGridView.DataBind();
        }