private void PopulateManuscriptInfo() { BOL.ProjectManuscript biz = new BOL.ProjectManuscript(); biz.Get(manuscriptId); CICHelper.SetFieldValues(PanelManuscriptInfo.Controls, biz); }
protected void DeleteButton_Click(object sender, EventArgs e) { if (manuscriptId > -1) { BOL.ProjectManuscript biz = new BOL.ProjectManuscript(); biz.Delete(manuscriptId); RefreshAndGoToMainList(); } }
protected void UpdateEventsButton_Click(object sender, EventArgs e) { // // Save the Manuscript Info fields // BOL.ProjectManuscript biz = new BOL.ProjectManuscript(); if (manuscriptId != -1) { biz.Get(manuscriptId); } if (projectId != -1) { CICHelper.SetBOValues(PanelManuscriptInfo.Controls, biz, projectId); } else { CICHelper.SetBOValues(PanelManuscriptInfo.Controls, biz, 0); } if (biz.HasField(BOL.ProjectManuscript.ProjectId)) { biz[BOL.ProjectManuscript.JournalId] = Request.Form["JournalId"]; } biz.Save(); if (biz["ManuscriptId"].ToString() != "") { manuscriptId = Int32.Parse(biz["ManuscriptId"].ToString()); ManuscriptIdField.Value = biz["ManuscriptId"].ToString(); } // // Save Authors Grid // ManuscriptAuthorGridView.Save(manuscriptId); // // Save Events Grid // ProjectManuscriptEventGridView.Save(manuscriptId); // // Save Citations Grid // PublicationCitationGridView.Save(manuscriptId); GoToMainList(); }
protected void BindManuscriptPanel() { BOL.ProjectManuscript biz = new BOL.ProjectManuscript(); biz.Get(manuscriptId); foreach (string colName in biz.FieldNames) { Label field = DisplayManuscriptPanel.FindControl(colName) as Label; if (field != null) { field.Text = biz[colName].ToString(); } } PopulateJournalName(biz["JournalId"].ToString()); }