Exemple #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();
    }
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        LinkButton linkButton = new LinkButton();

        linkButton = (LinkButton)sender;
        bool result = Inv_QualityUnitNameManager.DeleteInv_QualityUnitName(Convert.ToInt32(linkButton.CommandArgument));

        showInv_QualityUnitNameGrid();
    }
Exemple #3
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        Inv_QualityUnitName inv_QualityUnitName = new Inv_QualityUnitName();

        inv_QualityUnitName.QualityUnitName = txtQualityUnitName.Text;
        inv_QualityUnitName.RowStatusID     = 1;
        int resutl = Inv_QualityUnitNameManager.InsertInv_QualityUnitName(inv_QualityUnitName);

        Response.Redirect("AdminInv_QualityUnitNameDisplay.aspx");
    }
Exemple #4
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");
    }
 private void showInv_QualityUnitNameGrid()
 {
     gvInv_QualityUnitName.DataSource = Inv_QualityUnitNameManager.GetAllInv_QualityUnitNames();
     gvInv_QualityUnitName.DataBind();
 }