Ejemplo n.º 1
0
        protected void BtnAdd_Click(object sender, EventArgs e)
        {
            MislaDom obdom = new MislaDom();

            obdom.Description     = txtDescription.Text;
            obdom.Amount          = float.Parse(txtAmount.Text, CultureInfo.InvariantCulture.NumberFormat);
            obdom.Per_consignment = (drpvisa.SelectedValue).ToString();
            obdom.ServiceTax      = CheckService.Checked.ToString();
            obdom.Mandatory       = CheckMandatory.Checked.ToString();
            obbal.insert(obdom);
            Bindggrd();
            empty();
        }
Ejemplo n.º 2
0
        protected void btnupdate_Click(object sender, EventArgs e)
        {
            int      Id          = Convert.ToInt32(ViewState["Id"]);
            MislaDom obdomupdate = new MislaDom();

            //obdomupdate.Id = Id;
            obdomupdate.Description     = txtDescription.Text;
            obdomupdate.Amount          = float.Parse(txtAmount.Text, CultureInfo.InvariantCulture.NumberFormat);
            obdomupdate.Per_consignment = drpvisa.SelectedValue.ToString();
            obdomupdate.ServiceTax      = CheckService.Checked.ToString();
            obdomupdate.Mandatory       = CheckMandatory.Checked.ToString();
            obbal.update1(Id, obdomupdate);
            Bindggrd();
            empty();
            BtnAdd.Visible    = true;
            btnupdate.Visible = false;
        }