C# 클래스 CmsData.PythonModel

파일 보기 프로젝트 열기: bvcms/bvcms 1 사용 예제들

공개 메소드들

메소드 설명
CallScript ( string scriptname ) : string
Content ( string name ) : string
ContentForDate ( string contentName, object date ) : string
DataHas ( string key ) : bool
Dictionary ( string s ) : string
DictionaryAdd ( string key, string value ) : void
Email ( object savedQuery, int queuedBy, string fromAddr, string fromName, string subject, string body, string cclist = null, System.DateTime dateWanted = null ) : void
EmailContent ( object savedQuery, int queuedBy, string fromAddr, string fromName, string contentName ) : void
EmailContentWithSubject ( object savedQuery, int queuedBy, string fromAddr, string fromName, string subject, string contentName, string cclist = null, System.DateTime dateWanted = null ) : void
EmailReminders ( object orgId ) : void
EmailReport ( object savedquery, int queuedBy, string fromaddr, string fromname, string subject, string report ) : void
EmailReport ( string savedquery, int queuedBy, string fromaddr, string fromname, string subject, string report, string queryname, string querydescription ) : void

Overloaded version of EmailReport adds variables in the function call for QueryName and QueryDescription. The original version of EmailReport required you to embed the query name in the Python Script. This version of the function permits you to have a generic Python script and then call it multiple times with a different query and description each time.

EmailStr ( string body ) : string
FmtPhone ( string s, string prefix = null ) : string
FmtZip ( string s ) : string
HtmlContent ( string name ) : string
Markdown ( string text ) : string
RegisterHelpers ( CmsData.CMSDataContext db ) : void
RenderTemplate ( string source ) : string
RenderTemplate ( string source, object data ) : string
Replace ( string text, string pattern, string replacement ) : string
SendSms ( object query, int iSendGroup, string sTitle, string sMessage ) : void

Queue an SMS text message to be sent

TitleContent ( string name ) : string

비공개 메소드들

메소드 설명
Email2 ( CmsData.CMSDataContext db2, IQueryable q, int queuedBy, string fromAddr, string fromName, string subject, string body, string cclist = null, System.DateTime dateWanted = null ) : void
EmailContent2 ( object savedQuery, int queuedBy, string fromAddr, string fromName, string subject, string contentName, string cclist = null, System.DateTime dateWanted = null ) : void
IsEqual ( object args ) : bool

메소드 상세

CallScript() 공개 메소드

public CallScript ( string scriptname ) : string
scriptname string
리턴 string

Content() 공개 메소드

public Content ( string name ) : string
name string
리턴 string

ContentForDate() 공개 메소드

public ContentForDate ( string contentName, object date ) : string
contentName string
date object
리턴 string

DataHas() 공개 메소드

public DataHas ( string key ) : bool
key string
리턴 bool

Dictionary() 공개 메소드

public Dictionary ( string s ) : string
s string
리턴 string

DictionaryAdd() 공개 메소드

public DictionaryAdd ( string key, string value ) : void
key string
value string
리턴 void

Email() 공개 메소드

public Email ( object savedQuery, int queuedBy, string fromAddr, string fromName, string subject, string body, string cclist = null, System.DateTime dateWanted = null ) : void
savedQuery object
queuedBy int
fromAddr string
fromName string
subject string
body string
cclist string
dateWanted System.DateTime
리턴 void

EmailContent() 공개 메소드

public EmailContent ( object savedQuery, int queuedBy, string fromAddr, string fromName, string contentName ) : void
savedQuery object
queuedBy int
fromAddr string
fromName string
contentName string
리턴 void

EmailContentWithSubject() 공개 메소드

public EmailContentWithSubject ( object savedQuery, int queuedBy, string fromAddr, string fromName, string subject, string contentName, string cclist = null, System.DateTime dateWanted = null ) : void
savedQuery object
queuedBy int
fromAddr string
fromName string
subject string
contentName string
cclist string
dateWanted System.DateTime
리턴 void

EmailReminders() 공개 메소드

public EmailReminders ( object orgId ) : void
orgId object
리턴 void

EmailReport() 공개 메소드

public EmailReport ( object savedquery, int queuedBy, string fromaddr, string fromname, string subject, string report ) : void
savedquery object
queuedBy int
fromaddr string
fromname string
subject string
report string
리턴 void

EmailReport() 공개 메소드

Overloaded version of EmailReport adds variables in the function call for QueryName and QueryDescription. The original version of EmailReport required you to embed the query name in the Python Script. This version of the function permits you to have a generic Python script and then call it multiple times with a different query and description each time.
public EmailReport ( string savedquery, int queuedBy, string fromaddr, string fromname, string subject, string report, string queryname, string querydescription ) : void
savedquery string
queuedBy int
fromaddr string
fromname string
subject string
report string
queryname string
querydescription string
리턴 void

EmailStr() 공개 메소드

public EmailStr ( string body ) : string
body string
리턴 string

FmtPhone() 공개 메소드

public FmtPhone ( string s, string prefix = null ) : string
s string
prefix string
리턴 string

FmtZip() 공개 메소드

public FmtZip ( string s ) : string
s string
리턴 string

HtmlContent() 공개 메소드

public HtmlContent ( string name ) : string
name string
리턴 string

Markdown() 공개 정적인 메소드

public static Markdown ( string text ) : string
text string
리턴 string

RegisterHelpers() 공개 정적인 메소드

public static RegisterHelpers ( CmsData.CMSDataContext db ) : void
db CmsData.CMSDataContext
리턴 void

RenderTemplate() 공개 메소드

public RenderTemplate ( string source ) : string
source string
리턴 string

RenderTemplate() 공개 메소드

public RenderTemplate ( string source, object data ) : string
source string
data object
리턴 string

Replace() 공개 메소드

public Replace ( string text, string pattern, string replacement ) : string
text string
pattern string
replacement string
리턴 string

SendSms() 공개 메소드

Queue an SMS text message to be sent
public SendSms ( object query, int iSendGroup, string sTitle, string sMessage ) : void
query object The people ID to send to, or the query that returns the people IDs to send to
iSendGroup int The ID of the SMS sending group, from SMSGroups table
sTitle string Kind of a subject. Stored in the database, but not part of the actual text message. Must not be over 150 characters.
sMessage string The text message content. Must not be over 160 characters.
리턴 void

TitleContent() 공개 메소드

public TitleContent ( string name ) : string
name string
리턴 string