DeletePublications() public method

public DeletePublications ( int personid, long subjectid, bool deletePMID, bool deleteMPID ) : void
personid int
subjectid long
deletePMID bool
deleteMPID bool
return void
Esempio n. 1
0
        protected void btnDeleteAll_OnClick(object sender, EventArgs e)
        {
            // PRG: Double-check we're using the correct username variable here
            //myParameters.Add("@username", (string)Session["ProfileUsername"]));
            Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();
            data.DeletePublications(_personId, true, true);
            this.Counter               = 0;
            phAddPub.Visible           = true;
            phAddPubMed.Visible        = true;
            phAddCustom.Visible        = true;
            phSecuritySettings.Visible = true;
            pnlDeletePubMed.Visible    = false;
            btnImgDeletePub.ImageUrl   = Root.Domain + "/Framework/images/icon_squareArrow.gif";

            grdEditPublications.DataBind();
            upnlEditSection.Update();
        }
        protected void btnDeletePubMedOnly_OnClick(object sender, EventArgs e)
        {
            // PRG: Double-check we're using the correct username variable here
            //myParameters.Add("@username", (string)Session["ProfileUsername"]));
            Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();
            data.DeletePublications(_personId, _subject, true, false);
            this.Counter = 0;
            phAddPub.Visible = true;
            phAddPubMed.Visible = true;
            phAddCustom.Visible = true;
            pnlDeletePubMed.Visible = false;
            phSecuritySettings.Visible = true;
            btnImgDeletePub.ImageUrl = Root.Domain + "/Framework/images/icon_squareArrow.gif";

            grdEditPublications.DataBind();
            upnlEditSection.Update();
        }