- installation_-_sqlexpr.zip
- Makanan2
- John Kenedy DAL.pdf
- JohnKenedy.DataAccess
- JohnKenedy.DataAccessModule
- MenuMakanan
- ProgramTools.sln
- ProgramTools.suo
- SetupMakanan
- Debug
- Release
- SetupMakanan.vdproj
- SetupMakananSqlExpr
- Debug
- Release
- SetupMakananSqlExpr.vdproj
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JohnKenedy.DataAccessModule.Modules
{
[Serializable]
public class SortAbleModuleExtend : ModuleExtendDefinition
{
public SortAbleModuleExtend()
{
_ModuleName = "SortAbleModuleExtend";
_RolenameAndTable.Add(new KeyValuePair<string, string>("TableToSort", ""));
_Notes = "This module enable table sorting, enable rows ordering, to move up or move down a row by calling method generated by this code.";
_Tags = "Functionality";
_ParameterNameAndValue.Add(new KeyValuePair<string, string>("TablePrimaryKey", ""));
_ParameterNameAndValue.Add(new KeyValuePair<string, string>("TableGroupKey", ""));
_ParameterNameAndValue.Add(new KeyValuePair<string, string>("ColumnToSort", ""));
}
#region Module Codes (eg. MFood.cs module extra codes for SortAble)
public override string GetModuleExtension(string _tableName)
{
string _result = "";
string _role = GetTableRole(_tableName);
switch (_role)
{
case "TableToSort":
_result = LoadTextFromFile("SortAbleModuleExtend1.txt");
_result = _result.Replace("{Table}", _RolenameAndTable["TableToSort"]);
_result = _result.Replace("{TablePrimaryKey}", GetParamStringListCode("TablePrimaryKey"));
_result = _result.Replace("{TableGroupKey}", GetParamStringListCode("TableGroupKey"));
_result = _result.Replace("{ColumnToSort}", GetParamStringCode("ColumnToSort"));
break;
}
return _result;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.