Esempio n. 1
0
        protected void clearIndicatedPageButton_Click(object sender, EventArgs e)
        {
            SecUser    secUser = getSecUser();
            List <int> pages   = getSelectedPageIds();

            if (pages.Count > 0)
            {
                int[] arrPages = new int[pages.Count];
                pages.CopyTo(arrPages);
                bp.IndicatedPageDeleteAllForPage(arrPages, secUser.UserID);
                int itemId = int.Parse(itemDropDownList.SelectedValue);
                //fillPageList( itemId );

                // By manually filling the cells in the datagrid (instead of just
                // refreshing/refilling the dataset, we are able to preserve the
                // checked fields and the scroll position of the grid.
                foreach (GridViewRow gvr in detailGridView.Rows)
                {
                    CheckBox cb = (CheckBox)gvr.FindControl("pageCheckBox");
                    if (cb.Checked)
                    {
                        gvr.Cells[6].Text = "";
                    }
                }

                clearInputs();
            }
        }
Esempio n. 2
0
        public void IndicatedPageDeleteAllForPage(int[] pageIDs, int userID)
        {
            BHLProvider bhlServer = new BHLProvider();

            bhlServer.IndicatedPageDeleteAllForPage(pageIDs, userID);
        }