/// <summary> /// This method gets the Paid Fee Detail Table Data of Student Required Payment from querying the paidfeeid. /// </summary> /// <param name="paidFeeId">Paid Fee Id provided by Payment Detail Table to query Paid Fee Table.</param> /// <returns>Left Fee Details for a particular month</returns> public LeftFeesCL getLeftFeeById(int paidFeeId) { Left_Fee query = (from x in dbcontext.Left_Fees where x.Id == paidFeeId select x).FirstOrDefault(); LeftFeesCL getLeftFee = new LeftFeesCL() { id = query.Id, adminCharges = query.AdmissionFee, admissionFee = query.AdmissionFee, examinationFee = query.ExaminationFee, annualCharges = query.AnnualCharges, computerFeeMonthly = query.ComputerFeeMonthly, computerFeeYearly = query.ComputerFeeYearly, developmentChargesYearly = query.DevelopmentChargesYearly, labFee = query.LabFee, projectFee = query.ProjectFee, refreshmentAccFee = query.RefreshmentAccFee, smartClassCharges = query.SmartClassCharges, totalFee = query.TotalFee, tutionFee = query.TutionFee, transportFee = query.TransportFee, isDeleted = query.IsDeleted, dateModified = query.DateModified, dateCreated = query.DateCreated, month = query.Month, }; return(getLeftFee); }
protected void grdFeeDetails_RowDataBound(object sender, GridViewRowEventArgs e) { LeftFeesCL item = e.Row.DataItem as LeftFeesCL; if (item != null) { if (item.tutionFee == 0) { grdFeeDetails.Columns[0].Visible = false; } if (item.admissionFee == 0) { grdFeeDetails.Columns[1].Visible = false; } if (item.examinationFee == 0) { grdFeeDetails.Columns[2].Visible = false; } if (item.refreshmentAccFee == 0) { grdFeeDetails.Columns[3].Visible = false; } if (item.labFee == 0) { grdFeeDetails.Columns[4].Visible = false; } if (item.projectFee == 0) { grdFeeDetails.Columns[5].Visible = false; } if (item.annualCharges == 0) { grdFeeDetails.Columns[6].Visible = false; } if (item.adminCharges == 0) { grdFeeDetails.Columns[7].Visible = false; } if (item.smartClassCharges == 0) { grdFeeDetails.Columns[8].Visible = false; } if (item.computerFeeYearly == 0) { grdFeeDetails.Columns[9].Visible = false; } if (item.computerFeeMonthly == 0) { grdFeeDetails.Columns[10].Visible = false; } if (item.developmentChargesYearly == 0) { grdFeeDetails.Columns[11].Visible = false; } if (item.transportFee == 0) { grdFeeDetails.Columns[12].Visible = false; } if (item.lateFee == 0) { grdFeeDetails.Columns[13].Visible = false; } if (item.totalFee == 0) { grdFeeDetails.Columns[14].Visible = false; } } }