示例#1
0
    private void showInv_QualityUnitNameData()
    {
        Inv_QualityUnitName inv_QualityUnitName = new Inv_QualityUnitName();

        inv_QualityUnitName = Inv_QualityUnitNameManager.GetInv_QualityUnitNameByID(Int32.Parse(Request.QueryString["inv_QualityUnitNameID"]));

        txtQualityUnitName.Text    = inv_QualityUnitName.QualityUnitName;
        ddlRowStatus.SelectedValue = inv_QualityUnitName.RowStatusID.ToString();
    }
示例#2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Inv_QualityUnitName inv_QualityUnitName = new Inv_QualityUnitName();

        inv_QualityUnitName = Inv_QualityUnitNameManager.GetInv_QualityUnitNameByID(Int32.Parse(Request.QueryString["inv_QualityUnitNameID"]));
        Inv_QualityUnitName tempInv_QualityUnitName = new Inv_QualityUnitName();

        tempInv_QualityUnitName.Inv_QualityUnitNameID = inv_QualityUnitName.Inv_QualityUnitNameID;

        tempInv_QualityUnitName.QualityUnitName = txtQualityUnitName.Text;
        tempInv_QualityUnitName.RowStatusID     = 1;
        bool result = Inv_QualityUnitNameManager.UpdateInv_QualityUnitName(tempInv_QualityUnitName);

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