BusinessMgr
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Sacs.Web.Components
|
|||||||
return homeAction;
|
return homeAction;
|
||||||
case RedirectLocation.WebAppHome_SessionExpired:
|
case RedirectLocation.WebAppHome_SessionExpired:
|
||||||
// Set the session expired parameter so that the page can report it.
|
// Set the session expired parameter so that the page can report it.
|
||||||
// NB Paramater must have a value to be included in the URL query string.
|
// NB Parameter must have a value to be included in the URL query string.
|
||||||
parameters.Add(ParamName_SessionExpired, "1");
|
parameters.Add(ParamName_SessionExpired, "1");
|
||||||
return homeAction;
|
return homeAction;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -329,6 +329,14 @@ namespace Sarand.Net.Standard.Dbas.Base
|
|||||||
file.WriteLine(tab2 + "{");
|
file.WriteLine(tab2 + "{");
|
||||||
file.WriteLine(tab3 + "return tableCount;");
|
file.WriteLine(tab3 + "return tableCount;");
|
||||||
file.WriteLine(tab2 + "}");
|
file.WriteLine(tab2 + "}");
|
||||||
|
file.WriteLine(tab2 + "public static String GetSchemaName (TableIdx table, bool delimitReservedWords = true)");
|
||||||
|
file.WriteLine(tab2 + "{");
|
||||||
|
file.WriteLine(tab3 + "int tableIdx = (int)table - 1;");
|
||||||
|
file.WriteLine(tab3 + "if (tableIdx < 0 || tableIdx >= tableCount) return String.Empty;");
|
||||||
|
file.WriteLine(tab3 + "String schemaName = tables[(int)tableIdx].Schema;");
|
||||||
|
file.WriteLine(tab3 + "if (delimitReservedWords) { schemaName = DelimitReservedWord(schemaName); }");
|
||||||
|
file.WriteLine(tab3 + "return schemaName;");
|
||||||
|
file.WriteLine(tab2 + "}");
|
||||||
file.WriteLine(tab2 + "public static String GetTableName (TableIdx table, bool delimitReservedWords = true)");
|
file.WriteLine(tab2 + "public static String GetTableName (TableIdx table, bool delimitReservedWords = true)");
|
||||||
file.WriteLine(tab2 + "{");
|
file.WriteLine(tab2 + "{");
|
||||||
file.WriteLine(tab3 + "int tableIdx = (int)table - 1;");
|
file.WriteLine(tab3 + "int tableIdx = (int)table - 1;");
|
||||||
|
|||||||
Reference in New Issue
Block a user