Exemple #1
0
        public string TwoStats(decimal sacksIn, int intsIn, int td)
        {
            string s = String.Empty;

            if ((sacksIn + intsIn + td > 0))
            {
                s = HtmlLib.HTMLPadL(String.Format("{0:0.#}", sacksIn), 4) + "-" +
                    HtmlLib.HTMLPadL(String.Format("{0}", intsIn), 2) + " " + TdsOut(td);
            }
            return(s);
        }
Exemple #2
0
        public string FourStats(int com, int att, int ydp, int pInt, int tdpIn)
        {
            string s = String.Empty;

            if ((com + att + ydp + pInt) > 0)
            {
                s = HtmlLib.HTMLPadL(String.Format("{0}", com), 2) + "-" +
                    HtmlLib.HTMLPadL(String.Format("{0}", att), 2) + "-" +
                    HtmlLib.HTMLPadL(String.Format("{0}", ydp), 3) + "-" +
                    HtmlLib.HTMLPadL(String.Format("{0}", pInt), 1) +
                    TdsOut(tdpIn);
            }
            return(s);
        }
Exemple #3
0
        public string TwoStats(int rushesIn, int ydrIn, int tdrIn, bool addAvg)
        {
            string s = String.Empty;

            if ((rushesIn + ydrIn + tdrIn > 0))
            {
                s = HtmlLib.HTMLPadL(String.Format("{0}", rushesIn), 4) + "-" +
                    HtmlLib.HTMLPadL(String.Format("{0}", ydrIn), 2) + " " + TdsOut(tdrIn);
                if (addAvg)
                {
                    s += String.Format(" {0:0.0}", Average(ydrIn, rushesIn));
                }
            }
            return(s);
        }
        private void LoadMultiplier(string name, decimal[,] exp)
        {
            DataRow dr = _dt.NewRow();

            dr["UnitName"] = HtmlLib.HTMLPadL(name, 3);
            int gotoWeek = Utility.CurrentWeek() == "00" ? KRowTotal : Int32.Parse(Utility.CurrentWeek());

            for (int i = 0; i < gotoWeek; i++)
            {
                string fieldName = string.Format("WEEK{0:0#}", i + 1);
                dr[fieldName] = exp[i, KCol2Multiplier];
            }
            dr["TOTAL"] = exp[KRowTotal, KCol2Multiplier];
            _dt.Rows.Add(dr);
        }
        private void LoadMetric(string unitName, decimal[,] exp)
        {
            var dr = _dt.NewRow();

            dr["UnitName"] = HtmlLib.HTMLPadL(unitName, 3);
            var gotoWeek = Utility.CurrentWeek() == "00" ? KRowTotal : Int32.Parse(Utility.CurrentWeek());

            for (var i = 0; i < gotoWeek; i++)
            {
                string fieldName = string.Format("WEEK{0:0#}", i + 1);
                dr[fieldName] = exp[i, KCol1Metric];
            }
            dr["TOTAL"] = exp[KRowTotal, KCol1Metric];
            _dt.Rows.Add(dr);
        }
 public string PerfHeaders()
 {
     return(HtmlLib.TableRowOpen() + "\n" + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL("Week", 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL("Game", 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL("Date", 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL("Result", 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL(Col1Header(), 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.HTMLPadL(Col2Header(), 2) + HtmlLib.TableRowHeaderClose() + "\n"
            + HtmlLib.TableRowHeaderOpen("scope='col'") + "\n"
            + HtmlLib.TableRowClose() + "\n");
 }
Exemple #7
0
        public string FourStats(
            int com,
            int att,
            int ydp,
            int pInt,
            int tdpIn)
        {
            var s = String.Empty;

            if ((com + att + ydp + pInt) > 0)
            {
                s = HtmlLib.HTMLPadL($"{com}", 2) + "-" +
                    HtmlLib.HTMLPadL($"{att}", 2) + "-" +
                    HtmlLib.HTMLPadL($"{ydp}", 3) + "-" +
                    HtmlLib.HTMLPadL($"{pInt}", 1) +
                    TdsOut(tdpIn);
            }
            return(s);
        }