Ejemplo n.º 1
0
 protected void btnFinalizePortageBill_Click(object sender, EventArgs e)
 {
     if ((BLL_PB_PortageBill.Upd_Finalize_PortageBill(UDFLib.ConvertToInteger(ViewState["Open_PB_Month"]), UDFLib.ConvertToInteger(ViewState["Open_PB_Year"]), Convert.ToInt32(ViewState["Vessel_ID"]), Convert.ToInt32(Session["UserID"]))) == -2)
     {
         String msg1 = String.Format("alert('Future month portage bill can not be finalized.');");
         ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgshowverifyrefresgclosehf", msg1, true);
     }
     else
     {
         btnFinalizePortageBill.Enabled = false;
         btnGeneratePortageBill.Enabled = false;
     }
 }