Ejemplo n.º 1
0
        public static Boolean HasDifference(this Agreement agreement)
        {
            var difference = agreement.FundingSummary()["difference"];
            var check      = difference.Where(p => p.Value.USGS != 0 || p.Value.Customer != 0 || p.Value.Other != 0).ToList();

            if (check.Count == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var AgreementID = Convert.ToInt32(Request.QueryString["AgreementID"]);

            agreement = siftaDB.Agreements.FirstOrDefault(p => p.AgreementID == AgreementID);
            if (agreement == null)
            {
                Response.Redirect("../../closePage.html");
            }
            var summary = agreement.FundingSummary();

            if (!IsPostBack)
            {
                AddTabs(summary["recorded"]);
                rtsMod.SelectedIndex = 0;
                rmpMod.SelectedIndex = 0;
            }
            rmpMod.PageViews.Clear();
            AddPages(summary);
        }