protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Pos_Transaction pos_Transaction = new Pos_Transaction();

        pos_Transaction = Pos_TransactionManager.GetPos_TransactionByID(Int32.Parse(Request.QueryString["pos_TransactionID"]));
        Pos_Transaction tempPos_Transaction = new Pos_Transaction();

        tempPos_Transaction.Pos_TransactionID = pos_Transaction.Pos_TransactionID;

        tempPos_Transaction.Pos_ProductID = Int32.Parse(ddlPos_Product.SelectedValue);
        tempPos_Transaction.Quantity      = Decimal.Parse(txtQuantity.Text);
        tempPos_Transaction.Pos_ProductTrasactionTypeID    = Int32.Parse(ddlPos_ProductTrasactionType.SelectedValue);
        tempPos_Transaction.Pos_ProductTransactionMasterID = Int32.Parse(ddlPos_ProductTransactionMaster.SelectedValue);
        tempPos_Transaction.WorkStationID = Int32.Parse(ddlWorkStation.SelectedValue);
        tempPos_Transaction.ExtraField1   = txtExtraField1.Text;
        tempPos_Transaction.ExtraField2   = txtExtraField2.Text;
        tempPos_Transaction.ExtraField3   = txtExtraField3.Text;
        tempPos_Transaction.ExtraField4   = txtExtraField4.Text;
        tempPos_Transaction.ExtraField5   = txtExtraField5.Text;
        tempPos_Transaction.AddedBy       = Int32.Parse(txtAddedBy.Text);
        tempPos_Transaction.AddedDate     = DateTime.Now;
        tempPos_Transaction.UpdatedBy     = Int32.Parse(txtUpdatedBy.Text);
        tempPos_Transaction.UpdatedDate   = txtUpdatedDate.Text;
        tempPos_Transaction.RowStatusID   = Int32.Parse(ddlRowStatus.SelectedValue);
        bool result = Pos_TransactionManager.UpdatePos_Transaction(tempPos_Transaction);

        Response.Redirect("AdminPos_TransactionDisplay.aspx");
    }
    private void showPos_TransactionData()
    {
        Pos_Transaction pos_Transaction = new Pos_Transaction();

        pos_Transaction = Pos_TransactionManager.GetPos_TransactionByID(Int32.Parse(Request.QueryString["pos_TransactionID"]));

        ddlPos_Product.SelectedValue = pos_Transaction.Pos_ProductID.ToString();
        txtQuantity.Text             = pos_Transaction.Quantity.ToString();
        ddlPos_ProductTrasactionType.SelectedValue    = pos_Transaction.Pos_ProductTrasactionTypeID.ToString();
        ddlPos_ProductTransactionMaster.SelectedValue = pos_Transaction.Pos_ProductTransactionMasterID.ToString();
        ddlWorkStation.SelectedValue = pos_Transaction.WorkStationID.ToString();
        txtExtraField1.Text          = pos_Transaction.ExtraField1;
        txtExtraField2.Text          = pos_Transaction.ExtraField2;
        txtExtraField3.Text          = pos_Transaction.ExtraField3;
        txtExtraField4.Text          = pos_Transaction.ExtraField4;
        txtExtraField5.Text          = pos_Transaction.ExtraField5;
        txtAddedBy.Text            = pos_Transaction.AddedBy.ToString();
        txtUpdatedBy.Text          = pos_Transaction.UpdatedBy.ToString();
        txtUpdatedDate.Text        = pos_Transaction.UpdatedDate;
        ddlRowStatus.SelectedValue = pos_Transaction.RowStatusID.ToString();
    }