This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Constructor | |
*/ | |
public ControllerStudentOCLevel(){ | |
//1. validate input | |
this.CurrentStudentId = ApexPages.currentPage().getParameters().get('studentId'); | |
if( this.CurrentStudentId == null || this.CurrentStudentId.trim() == '') | |
throw new InvalidParameterValueException('studentId','Missing parameter studentId.'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Constructor | |
*/ | |
public ControllerStudentOCLevel(){ | |
//1. validate input | |
this.CurrentStudentId = ApexPages.currentPage().getParameters().get('studentId'); | |
if( this.CurrentStudentId == null || this.CurrentStudentId.trim() == '') | |
throw new InvalidParameterValueException('studentId','Missing parameter studentId.'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aliases for common git commands. E.g., enter "git d" for "git diff" | |
# These settings live in the ~/.gitconfig file. | |
[alias] | |
b = branch | |
ba = branch -a | |
ci = commit | |
co = checkout | |
d = diff | |
dc = diff --cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string ParameterXml | |
{ | |
get | |
{ | |
XNamespace xsd = "http://www.w3.org/2001/XMLSchema"; | |
XNamespace xsi = "http://www.w3.org/2001/XMLSchema-instance"; | |
XNamespace rs = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices"; | |
XElement root = new XElement("ScheduleDefinition", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT usr.UserName, | |
cat.name, | |
sub.* | |
FROM [Subscriptions] sub | |
INNER JOIN [Users] usr ON sub.OwnerID = usr.UserID | |
INNER JOIN [Catalog] cat ON sub.report_oid = cat.itemid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
/// <summary> | |
/// Linq2XMLGroupBy | |
/// </summary> | |
public class Linq2XMLGroupBy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(([3][0-1])|([1-2][0-9])|([1-9]))([\,](([3][0-1])|([1-2][0-9])|([1-9])))? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string GetAnonymousObjectValue( object data, string propName ) | |
{ | |
Type t = data.GetType(); | |
// Get a list of the properties | |
PropertyInfo[] piList = t.GetProperties(); | |
// Loop through the properties in the list | |
foreach(PropertyInfo pi in piList) | |
{ | |
// Get the value of the property | |
object o = pi.GetValue(data, null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ============================================= | |
-- Author: Weijie JIN | |
-- Create date: 20120719 | |
-- Description: Get list by Ids string | |
-- ============================================= | |
ALTER PROCEDURE [dbo].[ConvertIds2Table] | |
@Ids NVARCHAR(2000) | |
AS | |
BEGIN | |
SET ARITHIGNORE ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
/// <summary> | |
/// GetDomainUserName | |
/// </summary> | |
public class GetDomainUserName | |
{ | |
/// <summary> | |
/// The main entry point for the application |
OlderNewer