Exemplo n.º 1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                GridViewRow row           = grvlist.SelectedRow;
                int         paymentode_id = Convert.ToInt32(grvlist.DataKeys[row.RowIndex].Value);

                //decimal TaxPercent = decimal.Parse(txtTaxPercent.Text);
                context.sp_UpdatePMode(companyId, branchId, paymentode_id, txtName.Text, User_id, DateTime.Today);
                btnUpdate.Visible = false;
                btnSave.Visible   = true;

                loadDataTable();
            }
            catch (Exception ex)
            {
                ErrorLog.saveerror(ex);
                //Do Logging
            }
        }