Beispiel #1
0
    protected void btnCopy_Click(object sender, EventArgs e)
    {
        int    copyfromvessel = int.Parse(ddlVessel.SelectedValue);
        string js             = "";
        int    i = BLL_Tec_ErLog.CopyERLogBookThreshold(int.Parse(ViewState["VESSELID"].ToString()), copyfromvessel, int.Parse(Session["USERID"].ToString()));

        if (i <= 0)
        {
            js = "alertmessage(0);";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "Update", js, true);
            return;
        }

        js = "alert('Threshold Values are copied successfully from " + ddlVessel.SelectedItem.Text + " to  " + ddlVesselMain.SelectedItem.Text + "!');";
        ScriptManager.RegisterStartupScript(this, this.GetType(), "Update", js, true);
        lblLogId.Text = null;

        BindViews(null);
    }