Esempio n. 1
0
    protected void btnSaveDetails_Click(object s, EventArgs e)
    {
        try
        {
            int Vsl_ID = 0;
            if (UDFLib.ConvertToInteger(hdfWelfare_ID.Value) == 0)
            {
                Vsl_ID = Convert.ToInt32(ddlVesselUpd.SelectedValue);
            }

            BLL_PB_PortageBill.UPD_Lib_Crew_Welfare(UDFLib.ConvertToInteger(hdfWelfare_ID.Value), UDFLib.ConvertToDecimal(txtWelfareAmount.Text), Vsl_ID, UDFLib.ConvertToDate(txtEffectiveDate.Text, UDFLib.GetDateFormat()), Convert.ToInt32(Session["userid"]));
            BindItems();

            ScriptManager.RegisterStartupScript(this, this.GetType(), "close", "hideModal('dvWelfare')", true);
        }
        catch (Exception ex)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "MMCD", "showModal('dvWelfare')", true);
            UDFLib.WriteExceptionLog(ex);
        }
    }