Esempio n. 1
0
    protected void btnSaveSaveRework_Click(object sender, EventArgs e)
    {
        if (txtDesc.Text.Trim().Length == 0)
        {
            txtDesc.Text = "";
            String msgretv = String.Format("showModal('dvRework');");
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgret6v", msgretv, true);
            return;
        }
        string js = "closeReworkPopup();";

        ScriptManager.RegisterStartupScript(this, this.GetType(), "hideModalJS", js, true);
        int Result = BLL_Tec_ErLog.ErLog_Update_Status(int.Parse(lblLogId.Text), int.Parse(lblVesselId.Text), Convert.ToInt32(Session["USERID"]), txtDesc.Text);

        if (Result == 1)
        {
            btnRework.Enabled = false;
        }
        else
        {
            btnRework.Enabled = true;
        }
    }