protected void gradesGrid_DeleteCommand(Object s, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            int           nExamResultId = (int)e.Item["ExamResultId"];
            ExamResultBLL bllExamResult = new ExamResultBLL();

            bllExamResult.DeleteExamResult(nExamResultId);

            gradesGrid.DataSource = GetDataSet();
            gradesGrid.DataBind();
        }
        void dgInvoiceBatch_DeleteCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            RemoveBatch(Convert.ToInt32(e.Item[0].ToString()));

            if (dlJob.Visible == true)
            {
                LoadGrid();
            }

            LoadBatchInvoices();
        }
Example #3
0
        void dgCreditNotes_SelectCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            if (e.Item[0].ToString() != "")
            {
                reportViewer.Visible = false;

                // Display the selected Credit Note in the report.
                int creditNoteId = Convert.ToInt32(e.Item[0]);
                DisplayCreditNoteAuditReport(creditNoteId);
            }
        }
Example #4
0
        // This is still in use, even with the new GUI, as of Oct2009
        private void Grid1_UpdateCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            int    idSubpr     = int.Parse(e.Item["c_id"] as string);
            int    idProcess   = int.Parse(e.Item["IdOfProcess"] as string);
            string nameSubpr   = e.Item["NameOfSubprocess"] as string;
            string namePr      = e.Item["NameOfProcess"] as string;
            string statusSubpr = e.Item["StatusOfSubprocess"] as string;
            string descrPr     = e.Item["DescrOfProcess"] as string;

            IProcess    engineProcess    = new IProcess(HELPERS.NewOdbcConn());
            ISubProcess engineSubProcess = new ISubProcess(HELPERS.NewOdbcConn());

            engineProcess.SetProcess(idProcess, namePr, descrPr);
            engineSubProcess.SetSubProcess(idSubpr, nameSubpr, idProcess, statusSubpr);
        }
        void dgInvoices_SelectCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            if (e.Item[0].ToString() != "")
            {
                eInvoiceType invoiceType = (eInvoiceType)Enum.Parse(typeof(eInvoiceType), e.Item[3].ToString().Replace(" ", ""));

                reportViewer.Visible = false;

                if (invoiceType == eInvoiceType.Normal || invoiceType == eInvoiceType.SelfBill)
                {
                    // Display the selected invoice id in the report.
                    int invoiceId = Convert.ToInt32(e.Item[0]);
                    DisplayInvoiceAuditReport(invoiceId);
                }
            }
        }
        protected void gradesGrid_UpdateCommand(Object s, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            RailExam.Model.ExamResult examResult = new RailExam.Model.ExamResult();

            examResult.ExamResultId  = (int)e.Item["ExamResultId"];
            examResult.BeginDateTime = (DateTime)e.Item["BeginDateTime"];
            examResult.EndDateTime   = (DateTime)e.Item["EndDateTime"];
            examResult.Score         = (decimal)e.Item["Score"];
            examResult.StatusId      = int.Parse((string)e.Item["StatusName"]);

            ExamResultBLL bllExamResult = new ExamResultBLL();

            bllExamResult.UpdateExamResult(examResult);

            gradesGrid.DataSource = GetDataSet();
            gradesGrid.DataBind();
        }
        /// <summary>
        /// Handles the DeleteCommand event of the gdRoles control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="ComponentArt.Web.UI.GridItemEventArgs"/> instance containing the event data.</param>
        protected void gdRoles_DeleteCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
        {
            // Delete the gallery server role. This includes the Gallery Server role and the corresponding ASP.NET role.
            // If an exception is thrown, such as during ValidateDeleteUser(), the client side function
            // gdRoles_CallbackError will catch it and display the message to the user.
            try
            {
                string roleName = Utils.HtmlDecode(e.Item["RoleName"].ToString());

                RoleController.DeleteGalleryServerProRole(roleName);

                BindRolesGrid();
            }
            catch (Exception ex)
            {
                LogError(ex);
                throw;
            }
        }
 void dgInvoiceBatch_UpdateCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
 {
     ViewBatch(Convert.ToInt32(e.Item[0].ToString()), 0, string.Empty);
 }
Example #9
0
 void dgUserGroups_UpdateCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
 {
     UpdateUser(e.Item, "UPDATE");
 }
Example #10
0
 private void Grid1_DeleteCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
 {
     UpdateDb(e.Item, "DELETE");
 }
Example #11
0
 private void Grid1_InsertCommand(object sender, ComponentArt.Web.UI.GridItemEventArgs e)
 {
     UpdateDb(e.Item, "INSERT");
 }