protected void btnReOpenFlag_Click(object s, EventArgs e) { try { BLL_PB_PortageBill.ACC_INS_Allotment_Flag(Convert.ToInt32(hdfFlagReOpenAllotmentID.Value), Convert.ToInt32(hdfFlagReOpenVesselID.Value), Convert.ToDateTime(hdfFlagReOpenPBillDate.Value), "Re-Open :" + Environment.NewLine + txtReasonForReopenFlag.Text, Convert.ToInt32(Session["userid"]), (DataTable)Session["dtFlagFiles"], "OPEN"); Load_Allotments(); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgshowReopen", " hideModal('dvReOpenFlag');", true); } catch (System.Exception ex) { } finally { Session["dtFlagFiles"] = createDtFlagAttach(); } }
protected void tbnMarkCompleted_Click(object s, EventArgs e) { try { BLL_PB_PortageBill.ACC_INS_Allotment_Flag(Convert.ToInt32(hdfAllotmentIDFlag.Value), Convert.ToInt32(hdfVesselIDFlag.Value), Convert.ToDateTime(hdfPBillDateFlag.Value), txtFlagRemark.Text, Convert.ToInt32(Session["userid"]), (DataTable)Session["dtFlagFiles"], "CLOSE"); SendMailOnFlagSave(Convert.ToInt32(hdfAllotmentIDFlag.Value), Convert.ToInt32(hdfVesselIDFlag.Value), Convert.ToDateTime(hdfPBillDateFlag.Value).ToString(), Convert.ToInt32(hdfCrewIDFlag.Value)); Load_Allotments(); String msg1 = String.Format("hideModal('dvFlagRemark');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgshowverifyrefresg", msg1, true); } catch (Exception ex) { Session["dtFlagFiles"] = createDtFlagAttach(); } finally { } }