Exemple #1
0
        protected void gvExceptionReport_ItemCommand(object source, GridCommandEventArgs e)
        {
            string   strFolioNumber = string.Empty;
            string   strProfileData = string.Empty;
            string   ProData        = string.Empty;
            string   strFolioData   = string.Empty;
            String   Exptype        = string.Empty;
            DateTime createdDate    = new DateTime();
            DateTime editedDate     = new DateTime();
            DateTime deletedDate    = new DateTime();

            if (e.CommandName == RadGrid.UpdateCommandName)
            {
                //strExternalCodeToBeEdited = Session["extCodeTobeEdited"].ToString();
                CustomerBo       customerBo       = new CustomerBo();
                bool             isUpdated        = false;
                GridEditableItem gridEditableItem = (GridEditableItem)e.Item;
                TextBox          txtProfileData   = (TextBox)e.Item.FindControl("txtProfileDataForEditForm");
                TextBox          txtFolioData     = (TextBox)e.Item.FindControl("txtFolioDataForEditForm");
                TextBox          txtFolioNumber   = (TextBox)e.Item.FindControl("txtFolioNumberForEditForm");
                TextBox          txtCustomerId    = (TextBox)e.Item.FindControl("txtCustomerIdForEditForm");
                //DropDownList txtExtType = (DropDownList)e.Item.FindControl("ddlExternalType");
                //TextBox txtSchemePlancode = (TextBox)e.Item.FindControl("txtSchemePlanCodeForEditForm");
                //strProfileData = txtProfileData.Text;
                strFolioData   = txtFolioData.Text;
                strFolioNumber = txtFolioNumber.Text;
                ProData        = txtProfileData.Text;
                customerId     = int.Parse(txtCustomerId.Text);

                isUpdated = customerBo.EditData(ProData, strFolioData, strFolioNumber, customerId, hdnExplist.Value);
            }

            CallAllGridBindingFunctions();
        }