Exemple #1
0
    private void showPos_SizeData()
    {
        Pos_Size pos_Size = new Pos_Size();

        pos_Size = Pos_SizeManager.GetPos_SizeByID(Int32.Parse(Request.QueryString["pos_SizeID"]));

        txtSizeName.Text = pos_Size.SizeName;
        txtCode.Text     = pos_Size.Code;
    }
Exemple #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Pos_Size pos_Size = new Pos_Size();

        pos_Size = Pos_SizeManager.GetPos_SizeByID(Int32.Parse(Request.QueryString["pos_SizeID"]));
        Pos_Size tempPos_Size = new Pos_Size();

        tempPos_Size.Pos_SizeID = pos_Size.Pos_SizeID;

        tempPos_Size.SizeName = txtSizeName.Text;
        tempPos_Size.Code     = txtCode.Text;
        bool result = Pos_SizeManager.UpdatePos_Size(tempPos_Size);

        Response.Redirect("AdminPos_SizeDisplay.aspx");
    }