private void DeleteSequencingEvent(int specimenId)
        {
            SpecimenEvents sequenceEvent = GetSequencingEvent(specimenId);

            if (sequenceEvent != null)
            {
                sequenceEvent.Delete((int)sequenceEvent[sequenceEvent.PrimaryKeyName]);
            }
        }
Exemplo n.º 2
0
        protected void HandleRowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            object key = (sender as GridView).DataKeys[e.RowIndex][SpecimenEvents.SpecimenEventId];

            if (key != null && key.ToString() != "")
            {
                int            priKey = int.Parse(key.ToString());
                SpecimenEvents biz    = new SpecimenEvents();
                biz.Delete(priKey);
                BindSpecimenEventsGrid();
                Page.Response.Redirect(Page.Request.Url.ToString(), true);
            }
        }