private void BindBudgetEntryJqgrid(HotelDataEntryLib.HotelBudget hotelEntry) { var userPermission = Session["permission"].ToString(); var dataEntryList = BudgetHelper.ListBudgetEntryByYear(hotelEntry); JqGridBudgetEntry.DataSource = dataEntryList; AppendTotal(dataEntryList); JqGridBudgetEntry.DataBind(); if (!string.IsNullOrEmpty(userPermission)) { if (Convert.ToInt32(userPermission) < 2) { JqGridBudgetEntry.ToolBarSettings.ShowEditButton = false; } } }
private void BindDataEntryJqgrid(HotelDataEntryLib.HotelRevenue hotelEntry) { var userPermission = Session["permission"].ToString(); var dataEntryList = RevenueHelper.ListRevenueEntryByMonthYear(hotelEntry); JqGridRevenueEntry.DataSource = dataEntryList; AppendTotal(dataEntryList); JqGridRevenueEntry.DataBind(); if (!string.IsNullOrEmpty(userPermission)) { if(Convert.ToInt32(userPermission)>=2) { JqGridRevenueEntry.ToolBarSettings.ShowEditButton = true; } } }