protected void uoButtonSearch_Click(object sender, EventArgs e) { if (uoDropDownListRegion.SelectedValue == "0") { BindCountry(); uoDropDownListCountry.SelectedValue = "0"; BindAirport(); //BindCity(); uoDropDownListAirport.SelectedValue = "0"; Session["Region"] = "0"; Session["Country"] = "0"; Session["Airport"] = "0"; } BindBranch(); string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Search button for hotel branch view clicked."; strFunction = "uoButtonSearch_Click"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// <summary> /// Date Created: 26/12/2011 /// Created By: Josephine Gad /// (description) Save stripes and room types /// ------------------------------------------- /// </summary> private void SaveStripeRoom() { DataTable dtStripeRoom = null; if (uoHiddenFieldStripe.Value != "") { dtStripeRoom = MaintenanceViewBLL.SaveStripeRoomType("0", uoHiddenFieldStripe.Value, uoHiddenFieldRoomID.Value, DateTime.Parse(uoHiddenFieldEffectiveDate.Value), uoHiddenFieldContractLength.Value, GlobalCode.Field2String(Session["UserName"])); uoDropDownListStripes.SelectedValue = ""; uoDropDownListRoom.SelectedValue = "0"; if (GlobalCode.Field2Int(dtStripeRoom.Rows[0]["dtReturnType"]) == 0) { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel stripe and room type added."; strFunction = "SaveStripeRoom"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(GlobalCode.Field2Int(dtStripeRoom.Rows[0]["dtStripeRoomID"]), "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); } else { AlertMessage("Hotel stripe and room type with same effective date already exists."); } } }
public bool Save() { AuditTrailBLL objAt = new AuditTrailBLL(); bool auditTrailSucceeded = true; foreach (object[] change in changeObjects) { if ((int)change[2] == ExistingRecord) { auditTrailSucceeded = (-1 != objAt.saveAuditTrail(change[0], change[1], appMode, UserBLL.GetCurrentUser(), businessProcess)); if (!auditTrailSucceeded) { objAt.RoleBack(); break; } } else if ((int)change[2] == NewRecord) { auditTrailSucceeded = (-1 != objAt.saveAuditTrail(change[1], appMode, UserBLL.GetCurrentUser(), businessProcess)); if (!auditTrailSucceeded) { objAt.RoleBack(); break; } } } return(auditTrailSucceeded); }
/// <summary> /// Modified By: Charlene Remotigue /// Date Modified:11/04/2012 /// Description: Move page to a new master page /// ------------------------------------------ /// Modified By: Josephine Gad /// Date Modified: 18/04/2012 /// Description: Move checking of uoHiddenFieldIsRefreshUserList and uoHiddenFieldPopupUser outside !IsPostBack /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { InitializeValues(); if (!IsPostBack) { //Audit Trail string strLogDescription = "User Maintenance Viewed"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); GetRoles(); GetUsers("", uoTextBoxSearchParam.Text); uoHiddenFieldIsRefreshUserList.Value = "0"; uoHiddenFieldPopupUser.Value = "0"; uoHyperLinkUserAdd.HRef = "~/Administration/CreateUserAccount.aspx"; } if (uoHiddenFieldIsRefreshUserList.Value == "1") { RefreshUserList(); } if (uoHiddenFieldPopupUser.Value == "1") { RefreshUserList(); } }
/// Date Modified: 15/03/2012 /// Modified By: Josephine Gad /// (description) Replace Global Variable with Session /// ------------------------------------------- /// Date Modified: 16/04/2012 /// Modified By: Charlene Remotigue /// (description) Move to new master page /// Initialize session values /// MOve initialization to initializevalues function /// ------------------------------------------- protected void Page_Load(object sender, EventArgs e) { InitializeValues(); if (!IsPostBack) { //Audit Trail string strLogDescription = "User Region Maintenance Viewed"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); GetRoles(); GetUsers("0"); //GetRegion(); BindRegionList(true); } if (uoHiddenFieldAdd.Value == "1") { //GetRegion(); } uoHiddenFieldAdd.Value = "0"; }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void PortAgentPortLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; strLogDescription = "Service Provider seaport information viewed."; strFunction = "PortAgentPortLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 10/Nov/2017 /// Created By: JGM /// (description) Audit trail logs protected void HotelVendorBranchLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; strLogDescription = "View Hotel Vendor Maintenance"; strFunction = "HotelVendorBranchLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void UserSubmenuLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; strLogDescription = "View linkbutton for user submenu clicked."; strFunction = "UserSubmenuLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void VehicleContractListViewLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; strLogDescription = "Vehicle contract list viewed."; strFunction = "VehicleContractListViewLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, uoHiddenFieldUser.Value); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void HotelContractListViewLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; strLogDescription = "Hotel contract list viewed."; strFunction = "HotelContractListViewLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void HotelAirportViewLogAuditTrail() { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "View branch button for hotel airport view clicked."; strFunction = "HotelAirportViewLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
protected void uoButtonAdd_Click(object sender, EventArgs e) { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Add button for stripe room type editor clicked."; strFunction = "uoButtonAdd_Click"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void HotelRoomEmergencyLogAuditTrail() { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel room emergency editor. (Edit)"; strFunction = "HotelRoomEmergencyLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void HotelRoomOverrideLogAuditTrail() { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel room override editor. (Edit)"; strFunction = "HotelRoomOverrideLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, uoHiddenFieldUser.Value); }
//private void ClosePage() //{ // string sScript = "<script language='javascript'>"; // sScript += " parent.$.fancybox.close(); "; // sScript += "</script>"; // ScriptManager.RegisterClientScriptBlock(uobtnSave, this.GetType(), "scr", sScript, false); //} //private void AlertMessage(string s) //{ // /// <summary> // /// Date Created: 08/07/2011 // /// Created By: Marco Abejar // /// (description) Show pop up message // /// </summary> // string sScript = "<script language='JavaScript'>"; // sScript += "alert('" + s + "');"; // sScript += "</script>"; // ScriptManager.RegisterClientScriptBlock(uobtnSave, this.GetType(), "scr", sScript, false); //} /// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void HotelContractViewLogAuditTrail() { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel contract viewed."; strFunction = "HotelContractViewLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, GlobalCode.Field2String(Session["HotelPath"]), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void SailMasterViewLogAuditTrail() { string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Ship sail master list viewed."; strFunction = "SailMasterViewLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
protected void Page_Load(object sender, EventArgs e) { InitializeValues(); string userName = GlobalCode.Field2String(Session["UserName"]); HiddenField uoHiddenFieldPopupCalendar = (HiddenField)Master.FindControl("uoHiddenFieldPopupCalendar"); if (!IsPostBack) { //Audit Trail string strLogDescription = "Crew Admin Page Viewed"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); uoHyperLinkItinerary.NavigateUrl = "../ReportViewer.aspx?report=FlightItineraryAll&uID=" + uoHiddenFieldUserId.Value; } if (!IsPostBack || uoHiddenFieldPopupCalendar.Value == "1") { string sStatus = GlobalCode.Field2String(Session["Status"]); if (sStatus != "" && sStatus != "0") { uoRadioButtonListStatus.SelectedValue = sStatus; } DropDownAirSettings(); GetTravelCrewTravelWithCount(); BindVessel(); BindRoute(); //CheckAllOffSettings(); // uoCheckBoxSelectAllOFF.Checked = false; } else { uoHiddenFieldLoadType.Value = "1"; } if (uoHiddenFieldTransportation.Value != "0" || uoHiddenFieldSelectPrintItinerary.Value != "0") { //uoCheckBoxSelectAllOFF.Checked = false; GetTravelCrewTravelWithCount(); } uoHiddenFieldTransportation.Value = "0"; uoHiddenFieldSelectPrintItinerary.Value = "0"; }
/// <summary> /// Date Created: 26/12/2011 /// Created By: Josephine Gad /// (description) Delete stripes and room types /// ------------------------------------------- /// </summary> /// <param name="StripeRoomID"></param> private void DeleteStripeRoom(string StripeRoomID) { MaintenanceViewBLL.DeleteStripeRoomType(StripeRoomID, GlobalCode.Field2String(Session["UserName"])); string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel stripe and room type deleted. (flagged as inactive)"; strFunction = "SaveStripeRoom"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(Convert.ToInt32(StripeRoomID), "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// <summary> /// Date Modified: 02/02/2012 /// Modified By: Josephine Gad /// (description) Do not use GlobalCode.Field2String(Session["DateFrom"]) and use uoHiddenFieldDate from Request.QueryString["dt"] /// to avoid error in date conversion /// --------------------------------------------------------------------------------------------------------------------------- /// Modified by: Charlene Remotigue /// Date MOdified: 15/03/2012 /// Description: Change TravelMartVariable to Session /// ----------------------------------------------------------- /// Date Modified: 16/03/2012 /// Modified By: Charlene Remotigue /// (description) Use Global Code for parsing and casting /// ------------------------------------------- /// Modified by: Josephine Gad /// Date MOdified: 27/03/2012 /// Description: Add uoHiddenFieldPopupCalendar from Calendar popup to refresh Links /// /// Modified by: Jefferson Bermundo /// Date Modified: 05/07/2012 /// Description: Add uoDropDownListPortPerRegion to filter Port per Region /// ------------------------------------------- /// Date Modified: 15/08/2012 /// Modified By: Josephine Gad /// (description) Get uoHiddenFieldDateRange.Value from UserAccountList /// ------------------------------------------- /// Date Modified: 07/05/2013 /// Modified By: Marco Abejar /// (description) Set overflow and exception visibility for crew assist (jquery) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null || GlobalCode.Field2String(Session["UserName"]) == "") { Response.Redirect("Login.aspx"); } if (!IsPostBack) { //Audit Trail string strLogDescription = "Hotel dashboard information viewed."; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); } uoHiddenFieldUser.Value = GlobalCode.Field2String(Session["UserName"]); uoHiddenFieldRole.Value = GlobalCode.Field2String(Session["UserRole"]); Session["strPrevPage"] = Request.RawUrl; string sDateFrom = GlobalCode.Field2String(Session["DateFrom"]); DateTime dt = GlobalCode.Field2DateTime(Request.QueryString["dt"]); DateTime dt2 = GlobalCode.Field2DateTime(sDateFrom); HiddenField uoHiddenFieldPopupCalendar = (HiddenField)Master.FindControl("uoHiddenFieldPopupCalendar"); if (!IsPostBack || uoHiddenFieldPopupCalendar.Value == "1" || uoHiddenFieldPopupHotel.Value == "1") { uoHiddenFieldDate.Value = dt2.ToShortDateString(); //gelo uoHiddenFieldDate.Value = uoHiddenFieldDate.Value.Replace("_", "/"); List <UserAccountList> listUser = GetUserAccountList(GlobalCode.Field2String(Session["UserName"])); uoHiddenFieldDateRange.Value = GlobalCode.Field2String(listUser[0].iDayNo); if (uoHiddenFieldRole.Value == TravelMartVariable.RoleHotelVendor) { TRSearch.Visible = false; } LoadDefaults(0); } //if ( || TravelMartVariable.RoleHotelVendor == uoHiddenFieldRole.Value ) //{ // GetDashboard(); //} uoHiddenFieldPopupHotel.Value = "0"; }
/// <summary> /// Author: Josephine Monteza /// Date Created: 13/Nov/2015 /// Description: Page to reset Immigration Role with alternate email /// </summary> protected void Page_Load(object sender, EventArgs e) { InitializeValues(); if (!IsPostBack) { //Audit Trail string strLogDescription = "Immigration with Alternate Email Maintenance Viewed"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); BindUsers(); } }
protected void uoButtonView_Click(object sender, EventArgs e) { //GetSFPortTravelDetails(); GetSFPortTravelDetailsWithCount(); string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "View button for port view clicked."; strFunction = "uoButtonView_Click"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
protected void uoButtonViewAll_Click(object sender, EventArgs e) { uoButtonViewAll.Enabled = false; uoHiddenFieldViewAll.Value = "true"; string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "View all button for sail master ship view clicked."; strFunction = "uoButtonViewAll_Click"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
protected void Page_Load(object sender, EventArgs e) { string strLogDescription; string strFunction; if (!IsPostBack) { //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Hotel dashboard information viewed. (Date)"; strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); SetDefaults(0); } }
protected void uoButtonView_Click(object sender, EventArgs e) { Session["ItineraryCode"] = uoTextBoxSearch.Text.Trim(); uoSailMasterList.DataSource = null; uoSailMasterList.DataSourceID = "ObjectDataSource1"; string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "View button for sail master view clicked."; strFunction = "uoButtonView_Click"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
protected void Page_Load(object sender, EventArgs e) { InitializeValues(); if (!IsPostBack) { //Audit Trail string strLogDescription = "User List with Token"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); //GetRoles(); //ListView1.DataSource = null; //ListView1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { uoHiddenFieldUser.Value = GlobalCode.Field2String(Request.QueryString["uId"]); uoHiddenFieldUserName.Value = GlobalCode.Field2String(Session["UserName"]); //Audit Trail string strLogDescription = "User Vessel Maintenance Viewed"; string strFunction = "Page_Load"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(GlobalCode.Field2Int(uoHiddenFieldUser.Value), "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); BindListViewVesselNotInUser(true, false); BindListViewVesselInUser(true); } }
protected void uoSailMasterList_ItemCommand(object sender, ListViewCommandEventArgs e) { if (e.CommandName == "Delete") { uoHiddenFieldSailMasterId.Value = e.CommandArgument.ToString(); uoHiddenFieldUser.Value = GlobalCode.Field2String(Session["UserName"]); string strLogDescription; string strFunction; //Insert log audit trail (Gabriel Oquialda - 16/02/2012) strLogDescription = "Sail master information deleted. (flagged as inactive)"; strFunction = "uoSailMasterList_ItemCommand"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(Convert.ToInt32(uoHiddenFieldSailMasterId.Value), "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); } }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void RoleLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; if (Request.QueryString["rId"] != null) { strLogDescription = "Edit linkbutton for role editor clicked."; } else { strLogDescription = "Add button for role editor clicked."; } strFunction = "RoleLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void VehicleVendorLogAuditTrail() { string strLogDescription; string strFunction; if (Request.QueryString["vmId"].ToString() != "0") { strLogDescription = "Edit linkbutton for meet and greet vendor editor clicked."; } else { strLogDescription = "Add button for meet and greet vendor editor clicked."; } strFunction = "VehicleVendorLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); }
/// Date Created: 17/02/2012 /// Created By: Gabriel Oquialda /// (description) Audit trail logs protected void PortVendorLogAuditTrail() { string strLogDescription = ""; string strFunction = ""; if (Request.QueryString["vmId"].ToString() != "0") { strLogDescription = "Edit linkbutton for port editor clicked."; } else { strLogDescription = "Add button for port editor clicked."; } strFunction = "PortVendorLogAuditTrail"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, uoHiddenFieldUser.Value); }