예제 #1
0
        private static string Format_FooterTR(SPListItem item, string footerTR, int operatorId)
        {
            if (operatorId > 0)
            {
                //użyj stopki konkretnego operatora
                BLL.Models.Operator op = new Models.Operator(item.Web, operatorId);

                footerTR = footerTR.Replace("___NAME___", op.Name);
                footerTR = footerTR.Replace("___CONTACT___", string.Format(@"email: {0}<br>tel.: {1}", op.Email, op.Telefon));
            }
            else
            {
                footerTR = string.Empty;
            }

            return footerTR;
        }
예제 #2
0
        private static string Format_FooterTR(SPWeb web, string footerTR, int operatorId)
        {
            if (operatorId > 0)
            {
                //użyj stopki konkretnego operatora
                BLL.Models.Operator op = new Models.Operator(web, operatorId);

                footerTR = footerTR.Replace("___NAME___", op.Name);
                footerTR = footerTR.Replace("___CONTACT___", string.Format(@"email: {0}<br>tel.: {1}", op.Email, op.Telefon));
            }
            else
            {
                footerTR = string.Empty;
            }

            return(footerTR);
        }
예제 #3
0
        private static string Format_FooterTR(SPListItem item, string footerTR, int operatorId)
        {
            if (operatorId > 0)
            {
                //użyj stopki konkretnego operatora
                BLL.Models.Operator op = new Models.Operator(item.Web, operatorId);

                footerTR = footerTR.Replace("___NAME___", op.Name);
                footerTR = footerTR.Replace("___CONTACT___", string.Format(@"{0}<br>{1}", op.Email, op.Telefon));

                // lub dla innego wariantu kodowania
                footerTR = footerTR.Replace("[[ImieNazwisko]]", op.Name);
                footerTR = footerTR.Replace("[[AdresEmail]]", op.Email);
                footerTR = footerTR.Replace("[[Telefon]]", op.Telefon);
                footerTR = footerTR.Replace("[[Stanowisko]]", op.Stanowisko);
            }
            else
            {
                footerTR = string.Empty;
            }

            return(footerTR);
        }