Esempio n. 1
0
    protected void btnsave_Click(object s, EventArgs e)
    {
        BLL_Infra_Supplier objSupp = new BLL_Infra_Supplier();

        if (HiddenFlag.Value == "Add")
        {
            objSupp.Ins_Supplier_Details(Session["USERID"].ToString(), txtMakerName_AV.Text, txtAddress_AV.Text, ddlCountry_AV.SelectedValue, txtEmail_AV.Text, txtPhone_AV.Text, txtFax_AV.Text, "", txtMakerCode_AV.Text);
        }
        else
        {
            objSupp.Upd_Suppliers_Details(Convert.ToInt32(ViewState["SUPPLIER_ID"].ToString()), Session["USERFULLNAME"].ToString(), txtMakerName_AV.Text, txtAddress_AV.Text, ddlCountry_AV.SelectedValue, txtEmail_AV.Text, txtPhone_AV.Text, txtFax_AV.Text, "");
        }

        String script = String.Format("parent.RefreshMakerFromChild();parent.hideModal('dvIframe');");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msg", script, true);
    }
Esempio n. 2
0
    protected void btnsave_Click(object s, EventArgs e)
    {
        BLL_Infra_Supplier objSupp = new BLL_Infra_Supplier();

        if (HiddenFlag.Value == "Add")
        {
            objSupp.Ins_Supplier_Details(Session["USERID"].ToString(), txtMakerName_AV.Text, txtAddress_AV.Text, ddlCountry_AV.SelectedValue, txtEmail_AV.Text, txtPhone_AV.Text, txtFax_AV.Text, "", txtMakerCode_AV.Text);
        }
        else
        {
            objSupp.Upd_Suppliers_Details(Convert.ToInt32(ViewState["SUPPLIER_ID"].ToString()), Session["USERID"].ToString(), txtMakerName_AV.Text, txtAddress_AV.Text, ddlCountry_AV.SelectedValue, txtEmail_AV.Text, txtPhone_AV.Text, txtFax_AV.Text, "");
        }


        string hideMaker = String.Format("hideModal('divadd')");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hideMaker", hideMaker, true);

        BindMakerGrid();
    }