public void BindItems(List <dynamic> data, int StudentId) { int Org_Id = cls_Common.UserProfile.ORG_ID; SchoolName = _OrganizationDTO.GetORGANIZATION(Org_Id).Name; SchoolAddress = _OrganizationDTO.GetORGANIZATION(Org_Id).Address; SchoolImage = _OrganizationDTO.GetORGANIZATION(Org_Id).ImagePath; var Student = _StudentDTO.GetDataForEdit(StudentId); if (Student != null) { StudentName = Student.StudentName; FathersName = Student.FatherName; FormNumber = Student.FormNumber.ToString(); lsDuplicate = (from t in data group t by new { t.ReceiptNumber, t.SubmitDate } into g select new ReceiptData { ReceiptNumber = g.Key.ReceiptNumber, SubmitDate = g.Key.SubmitDate.ToString("MMM dd, yyy") }).ToList(); lsReceipts = (from t in data select new ReceiptDataSubmitted { FeeName = t.FeeName + FeeTermName(t.FeeTerm, t.FeeDuration), TotalFee = t.TotalFee.ToString(), ReceiptNumber = t.ReceiptNumber }).ToList(); var totalamt = lsReceipts.Sum(s => Convert.ToDecimal(s.TotalFee)); //litTotalFee.Text = totalamt.ToString(); ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowModal", "$('#myModal').modal();", true); } }
private void GetOrganizationInfo() { var organizationInfo = _OrganizationDTO.GetORGANIZATION(cls_Common.UserProfile.ORG_ID); if (organizationInfo != null) { txtName.Text = organizationInfo.Name; txtimgPath.Text = organizationInfo.ImagePath; txtAddress.Text = organizationInfo.Address; txtAffilated.Text = organizationInfo.AffilatedFrom; txtDirectorName.Text = organizationInfo.DirectorName; txtFaxNo.Text = organizationInfo.FaxNumber; txtManagerName.Text = organizationInfo.ManagerName; txtPANNo.Text = organizationInfo.PanNumber; txtPhoneno.Text = organizationInfo.PhoneNumber; txtRegNo.Text = organizationInfo.RegistrationNumber; txtPrincipalName.Text = organizationInfo.PrincipalName; txtAddress.Text = organizationInfo.Address; } }