protected void btnAddSkuQuantity_Click(object sender, EventArgs e)
        {
            try
            {
                using (FormContext ctx = new FormContext())
                {
                    SkuQuantity newSQ = new SkuQuantity
                    {
                        MaterialSku = txtMaterialSku.Text,
                        Quantity = txtQuantityOrdered.Text,
                        TempId = lblRandomIdentifier.Text,
                        Completed = false
                    };

                    ctx.SkuQuantityItems.Add(newSQ);
                    ctx.SaveChanges();
                    txtMaterialSku.Text = "";
                    txtQuantityOrdered.Text = "";
                }

                gvSkus.DataBind();
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        protected void btnAddSkuQuantity_Click(object sender, EventArgs e)
        {
            try
            {
                Label lblRecordId = (Label)fvReport.FindControl("lblRecordId");
                RadTextBox txtMaterialSkuInsert = (RadTextBox)fvReport.FindControl("txtMaterialSkuInsert");
                RadTextBox txtQuantityOrderedInsert = (RadTextBox)fvReport.FindControl("txtQuantityOrderedInsert");

                GridView gvSkus = (GridView)fvReport.FindControl("gvSkus");
                int recordId;
                Int32.TryParse(lblRecordId.Text, out recordId);

                using (FormContext ctx = new FormContext())
                {
                    var thisForm = ctx.DirectOrderForms.FirstOrDefault(eof => eof.RecordId == recordId);

                    SkuQuantity newSQ = new SkuQuantity
                    {
                        MaterialSku = txtMaterialSkuInsert.Text,
                        Quantity = txtQuantityOrderedInsert.Text,
                        DirectOrderForm = thisForm,
                        Completed = false
                    };

                    ctx.SkuQuantityItems.Add(newSQ);
                    ctx.SaveChanges();
                    txtMaterialSkuInsert.Text = "";
                    txtQuantityOrderedInsert.Text = "";
                }

                gvSkus.DataBind();
            }
            catch (Exception ex)
            {
                throw;
            }
        }