Beispiel #1
0
    protected void btnEditWeeks_Click(object sender, EventArgs e)
    {
        Int64 packageID       = Convert.ToInt64(hidPackageID.Value);
        Int32 productionWeeks = Convert.ToInt32(txtEditWeeks.Text);
        Int32 amount          = Convert.ToInt32(txtEditAmount.Text);
        Waive waive           = new Waive(waiveID);

        waive.SavePackage(packageID, amount, productionWeeks);
        Response.Redirect(Request.RawUrl);
    }
Beispiel #2
0
    protected void btnAddPackage_Click(object sender, EventArgs e)
    {
        Waive waive = new Waive(waiveID);

        Int64 packageID       = Convert.ToInt64(ddlWaivePackage.SelectedValue);
        Int32 amount          = Convert.ToInt32(txtAmount.Text);
        Int32 productionWeeks = Convert.ToInt32(txtProductionsWeeks.Text);

        waive.SavePackage(packageID, amount, productionWeeks);
        Response.Redirect(Request.RawUrl);
    }