protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Inv_UtilizationDetails inv_UtilizationDetails = new Inv_UtilizationDetails();

        inv_UtilizationDetails = Inv_UtilizationDetailsManager.GetInv_UtilizationDetailsByID(Int32.Parse(Request.QueryString["inv_UtilizationDetailsID"]));
        Inv_UtilizationDetails tempInv_UtilizationDetails = new Inv_UtilizationDetails();

        tempInv_UtilizationDetails.Inv_UtilizationDetailsID = inv_UtilizationDetails.Inv_UtilizationDetailsID;

        tempInv_UtilizationDetails.Pos_SizeID            = Int32.Parse(ddlPos_Size.SelectedValue);
        tempInv_UtilizationDetails.ProductID             = Int32.Parse(ddlProduct.SelectedValue);
        tempInv_UtilizationDetails.Inv_ItemID            = Int32.Parse(ddlInv_Item.SelectedValue);
        tempInv_UtilizationDetails.Inv_UtilizationID     = Int32.Parse(ddlInv_Utilization.SelectedValue);
        tempInv_UtilizationDetails.Inv_ItemTransactionID = Int32.Parse(ddlInv_ItemTransaction.SelectedValue);
        tempInv_UtilizationDetails.FabricsCost           = Decimal.Parse(txtFabricsCost.Text);
        tempInv_UtilizationDetails.AccesoriesCost        = Decimal.Parse(txtAccesoriesCost.Text);
        tempInv_UtilizationDetails.Overhead           = Decimal.Parse(txtOverhead.Text);
        tempInv_UtilizationDetails.OthersCost         = Decimal.Parse(txtOthersCost.Text);
        tempInv_UtilizationDetails.ProductionQuantity = Decimal.Parse(txtProductionQuantity.Text);
        tempInv_UtilizationDetails.ProcessedQuantity  = Decimal.Parse(txtProcessedQuantity.Text);
        tempInv_UtilizationDetails.IsReject           = cbIsReject.Checked;
        tempInv_UtilizationDetails.ExtraField1        = txtExtraField1.Text;
        tempInv_UtilizationDetails.ExtraField2        = txtExtraField2.Text;
        tempInv_UtilizationDetails.ExtraField3        = txtExtraField3.Text;
        tempInv_UtilizationDetails.ExtraField4        = txtExtraField4.Text;
        tempInv_UtilizationDetails.ExtraField5        = txtExtraField5.Text;
        tempInv_UtilizationDetails.AddedBy            = Int32.Parse(txtAddedBy.Text);
        tempInv_UtilizationDetails.AddedDate          = DateTime.Now;
        tempInv_UtilizationDetails.UpdatedBy          = Int32.Parse(txtUpdatedBy.Text);
        tempInv_UtilizationDetails.UpdatedDate        = txtUpdatedDate.Text;
        tempInv_UtilizationDetails.RowStatusID        = Int32.Parse(ddlRowStatus.SelectedValue);
        bool result = Inv_UtilizationDetailsManager.UpdateInv_UtilizationDetails(tempInv_UtilizationDetails);

        Response.Redirect("AdminInv_UtilizationDetailsDisplay.aspx");
    }
    private void showInv_UtilizationDetailsData()
    {
        Inv_UtilizationDetails inv_UtilizationDetails = new Inv_UtilizationDetails();

        inv_UtilizationDetails = Inv_UtilizationDetailsManager.GetInv_UtilizationDetailsByID(Int32.Parse(Request.QueryString["inv_UtilizationDetailsID"]));

        ddlPos_Size.SelectedValue            = inv_UtilizationDetails.Pos_SizeID.ToString();
        ddlProduct.SelectedValue             = inv_UtilizationDetails.ProductID.ToString();
        ddlInv_Item.SelectedValue            = inv_UtilizationDetails.Inv_ItemID.ToString();
        ddlInv_Utilization.SelectedValue     = inv_UtilizationDetails.Inv_UtilizationID.ToString();
        ddlInv_ItemTransaction.SelectedValue = inv_UtilizationDetails.Inv_ItemTransactionID.ToString();
        txtFabricsCost.Text        = inv_UtilizationDetails.FabricsCost.ToString();
        txtAccesoriesCost.Text     = inv_UtilizationDetails.AccesoriesCost.ToString();
        txtOverhead.Text           = inv_UtilizationDetails.Overhead.ToString();
        txtOthersCost.Text         = inv_UtilizationDetails.OthersCost.ToString();
        txtProductionQuantity.Text = inv_UtilizationDetails.ProductionQuantity.ToString();
        txtProcessedQuantity.Text  = inv_UtilizationDetails.ProcessedQuantity.ToString();
        cbIsReject.Checked         = inv_UtilizationDetails.IsFeature;
        txtExtraField1.Text        = inv_UtilizationDetails.ExtraField1;
        txtExtraField2.Text        = inv_UtilizationDetails.ExtraField2;
        txtExtraField3.Text        = inv_UtilizationDetails.ExtraField3;
        txtExtraField4.Text        = inv_UtilizationDetails.ExtraField4;
        txtExtraField5.Text        = inv_UtilizationDetails.ExtraField5;
        txtAddedBy.Text            = inv_UtilizationDetails.AddedBy.ToString();
        txtUpdatedBy.Text          = inv_UtilizationDetails.UpdatedBy.ToString();
        txtUpdatedDate.Text        = inv_UtilizationDetails.UpdatedDate;
        ddlRowStatus.SelectedValue = inv_UtilizationDetails.RowStatusID.ToString();
    }