function Print_RefCodeByAgencyID (agencyid, org_agency_id, branchid, PrintTypeID)
ciemnawy TableField
jeżeli agencyid = "2651" wtedy
print_ex_url= " https:// " & domainname & "/eServices/Secure/eBond/Print_RefCodes.asp? PrintTypeID=2"
ustawiać Cmd_PrintBondMarket_RefNo=Server.CreateObject ("ADODB.Command")
z Cmd_PrintBondMarket_RefNo
.ActiveConnection = dbsecurecon
.CommandText = "up_GetWebCustomziedRpt_agent"
.CommandType = adCmdStoredProc
. Parameters.Append .CreateParameter ("@agencyID", adVarChar, adParamInput, 10, agencyid)
. Parameters.Append .CreateParameter ("@ReportTypeID", adinteger, adParamInput, 1)
. Parameters.Append .CreateParameter ("@ReportBegDate", adDate, adParamInput, "01/01/2010")
. Parameters.Append .CreateParameter ("@ReportToDate", adDate, adParamInput, "01/30/2010")
. Wykonywać ()
kończyć z
ipagesize=10
jeżeli request.form ("cmdbondnavbutton") = "" wtedy
ipagecurrent=1
inny
ipagecurrent=cint (request.form ("cmdbondnavbutton"))
kończyć jeżeli
ustawiać Rs_PrintBondMarket_RefNo=Server.CreateObject ("Adodb.RecordSet")
Rs_PrintBondMarket_RefNo.PageSize=ipagesize
Rs_PrintBondMarket_RefNo.CursorLocation=aduseClient
Rs_PrintBondMarket_RefNo.CacheSize=ipagesize
Rs_PrintBondMarket_RefNo.Open Cmd_PrintBondMarket_RefNo
ipagecount = Rs_PrintBondMarket_RefNo.pagecount
jeżeli ipagecurrent > ipagecount wtedy
ipagecurrent = ipagecount
kończyć jeżeli
jeżeli ipagecurrent < (1) wtedy
ipagecurrent = (1)
kończyć jeżeli
jeżeli ipagecount = (0) wtedy
p= " "
p=p & ""
p=p & " "
p=p & ""
p=p & ""
inny
Rs_PrintBondMarket_RefNo.AbsolutePage=ipagecurrent
'/
p = ""
'p = p & ""
p = p & ""
p = p & "Marketing Odniesienie Report Submitted Data: " & data () & "(CST) "
jeżeli PrintTypeID = "(1)" wtedy
p = p & "Print w html"
p = p & " | "
p = p & "Print w Excel"
p = p & " | "
p = p & "Close ten page"
kończyć jeżeli
p = p & " | "
p = p & " "
p = p & ""
p = p & "Bond No. | "
p = p & "Marketing Ref. Code | "
p = p & "Bond Type | "
p = p & "Principal Name | "
p = p & "Bond Term | "
p = p & "Bond Amt. | "
p = p & "GWP | "
p = p & "Other Amount | "
p = p & "Agency Code | "
p = p & "CSI Zapłata Type | "
p = p & "Payment Number | "
p = p & " "
p = p & "
| "
iRecordShown=0
Dla Rs_PrintBondMarket_RefNo.Fields TableField w Rs_PrintBondMarket_RefNo.Fields
p=p & ""
p=p & "" & Rs_PrintBondMarket_RefNo.GetString (2, iPageSize) & " | "
p=p & " "
Następnie
'jeżeli agentnote <> "" wtedy
'p=p & "Note: " & agentnote & " | "
'kończyć jeżeli
kończyć jeżeli
'/
p=p & ""
p=p & " "
navurl= " print_refcodes.asp "
p=p & " | "
p=p & " "
Rs_PrintBondMarket_RefNo.close
ustawiać Rs_PrintBondMarket_RefNo = Nic
ustawiać Cmd_PrintBondMarket_RefNo = Nic
inny
p= " You upoważniać ten strona. Zadawalać kontakt jeżeli ty mieć jakaś question. | "
p=p & "Close | "
kończyć jeżeli
Print_RefCodeByAgencyID=p
końcówka funkcja
|