📄 imetadataprovider.cs
字号:
using System;
using System.Data;
using System.Drawing;
using System.Collections.Generic;
namespace Epi.Data.Services
{
public interface IMetadataProvider
{
#region Events
event ProgressReportBeginEventHandler ProgressReportBeginEvent;
event ProgressReportUpdateEventHandler ProgressReportUpdateEvent;
event SimpleEventHandler ProgressReportEndEvent;
#endregion Events
void AddLayerToMap(int mapId, int layerId);
void CreateCheckCodeVariableDefinition(int viewId, string checkCode);
void CreateCodeTable(string tableName, string columnName);
bool CreateCodeTable(string tableName, string[] columnNames);
void CreateCodeTableRecord(string tableName, string[] columnNames, string[] columnData);
int CreateControl(int fieldId, double topPosition, double leftPosition, double height, double width, bool isRepeatLast, bool isRequired, bool isReadOnly, bool isRetainImgSize, int tabOrder);
void CreateControlAfterCheckCode(int fieldId, string checkCode);
void CreateControlBeforeCheckCode(int fieldId, string checkCode);
int CreateField(Epi.Fields.MultilineTextField field);
int CreateField(Epi.Fields.NumberField field);
int CreateField(Epi.Fields.TimeField field);
int CreateField(Epi.Fields.UpperCaseTextField field);
int CreateField(Epi.Fields.YesNoField field);
int CreateField(Epi.Fields.SingleLineTextField field);
int CreateField(Epi.Fields.OptionField field);
int CreateField(Epi.Fields.PhoneNumberField field);
int CreateField(Epi.Fields.RelatedViewField field);
int CreateField(Epi.Fields.MirrorField field);
int CreateField(Epi.Fields.CommandButtonField field);
int CreateField(Epi.Fields.DateField field);
int CreateField(Epi.Fields.DateTimeField field);
int CreateField(Epi.Fields.UniqueKeyField field);
int CreateField(Epi.Fields.RecStatusField field);
int CreateField(Epi.Fields.CheckBoxField field);
int CreateField(Epi.Fields.GridField field);
int CreateField(Epi.Fields.ImageField field);
int CreateField(Epi.Fields.LabelField field);
int CreateField(Epi.Fields.DDLFieldOfCodes field);
int CreateField(Epi.Fields.DDLFieldOfCommentLegal field);
int CreateField(Epi.Fields.DDLFieldOfLegalValues field);
int CreateGridColumn(Epi.Fields.UniqueKeyColumn column);
int CreateGridColumn(Epi.Fields.RecStatusColumn column);
int CreateGridColumn(Epi.Fields.NumberColumn column);
int CreateGridColumn(Epi.Fields.TextColumn column);
int CreateGridColumn(Epi.Fields.PhoneNumberColumn column);
int CreateGridColumn(Epi.Fields.DateColumn column);
int CreateGroup(Epi.Fields.FieldGroup fieldGroup);
int CreateGroup(Page page, string name, string text, double topPosition, double leftPosition, double height, double width, int color);
void CreateLabel(int fieldId, string labelText, double topPosition, double leftPosition, string font, decimal fontSize);
int CreateLayer(string gml, string gmlSchema, string layerName);
int CreateLayer(string fileName);
int CreateMap(string name, string description);
void CreatePageAfterCheckCode(int pageId, string checkCode);
void CreatePageBeforeCheckCode(int pageId, string checkCode);
void CreateRecordAfterCheckCode(int viewId, string checkCode);
void CreateRecordBeforeCheckCode(int viewId, string checkCode);
void CreateViewAfterCheckCode(int viewId, string checkCode);
void CreateViewBeforeCheckCode(int viewId, string checkCode);
IDbDriverFactory DBFactory { get; }
void DeleteField(Epi.Fields.Field field);
void DeleteGridColumn(Epi.Fields.GridColumn column);
void DeleteFieldGroup(Epi.Fields.FieldGroup fieldGroup);
void DeleteFields(Page page);
void DeleteOptionItems(Epi.Fields.OptionField field);
void DeletePage(Page page);
void DeletePgm(int pgmId);
void DeletePgm(string pgmName);
void DeleteView(string viewName);
System.Data.DataTable GetCheckCodeVariableDefinition(int viewID);
System.Data.DataTable GetCheckCodeVariableDefinitions(string viewName);
View GetChildView(Epi.Fields.RelatedViewField field);
System.Data.DataTable GetCodeTable(string tableName);
//System.Data.DataTable GetCodeTableColumnSchema(string tableName);
System.Data.DataTable GetCodeTableData(string tableName);
System.Data.DataTable GetCodeTableData(string tableName, string columnNames, string sortCriteria);
System.Data.DataTable GetCodeTableData(string tableName, string columnNames);
DataSets.TableSchema.TablesDataTable GetCodeTableList();
System.Data.DataTable GetCodeTableName(string viewTableName, string tableVariableName);
System.Data.DataTable GetControlsForPage(int pageId);
List<string> GetDataTableList();
string GetDataTableName(int viewId);
System.Data.DataRow GetFieldByNameAsDataRow(string viewName, string fieldName);
System.Data.DataTable GetFieldCheckCode_After(int fieldID);
System.Data.DataTable GetFieldCheckCode_Before(int fieldID);
Epi.Collections.NamedObjectCollection<Epi.Fields.FieldGroup> GetFieldGroups(Page page);
Epi.Collections.FieldCollectionMaster GetFields(View view);
System.Data.DataTable GetFieldsAsDataTable(View view);
System.Data.DataTable GetFieldsOnPageAsDataTable(string viewName, int pageNumber);
System.Data.DataTable GetFieldsOnPageAsDataTable(int pageId);
System.Data.DataTable GetFieldTypes();
System.Collections.Generic.List<Epi.Fields.GridColumn> GetGridColumnCollection(Epi.Fields.GridField field);
System.Data.DataTable GetGridColumns(int fieldId);
System.Data.DataTable GetGridColumns(string gridTableName);
System.Data.DataTable GetGridFieldTypes();
System.Data.DataTable GetGroupsForPage(int pageId);
View GetLatestViewInserted();
Epi.DataSets.MapMetadata.metaLayersRow GetLayer(int layerId);
Epi.DataSets.MapMetadata.metaLayersDataTable GetLayers();
Epi.DataSets.MapMetadata.metaMapsDataTable GetMap(int mapId);
Epi.DataSets.MapMetadata.metaMapLayersRow GetMapLayer(int mapLayerId);
Epi.DataSets.MapMetadata.metaMapLayersDataTable GetMapLayers(int mapId);
Epi.DataSets.MapMetadata.metaMapPointsDataTable GetMapPoints(int mapId);
Epi.DataSets.MapMetadata.metaMapsDataTable GetMaps();
int GetMaxFieldId(int viewId);
int GetMaxGridColumnId(int gridFieldId);
int GetMaxPageId(int viewId);
int GetMaxTabIndex(int pageId, int viewId);
int GetMaxViewId();
int GetMaxViewPagesPosition(int viewId);
int GetMinTabIndex(int pageId, int viewId);
int GetNextTabIndex(int pageId, int viewId, int currentTabIndex);
System.Data.DataTable GetNonViewTablesAsDataTable();
List<string> GetOptionFieldItems(Epi.Fields.OptionField field);
System.Data.DataTable GetPageCheckCode_After(int pageID);
System.Data.DataTable GetPageCheckCode_Before(int pageID);
System.Data.DataTable GetPagesForView(int viewId);
System.Data.DataTable GetPatterns();
System.Data.DataTable GetPgms();
System.Data.DataTable GetRecordCheckCode_After(int viewID);
System.Data.DataTable GetRecordCheckCode_Before(int viewID);
string GetSourceFieldName(string fieldName, string viewName);
System.Data.DataTable GetSystemFields(int viewId);
string GetTableColumnNames(int viewId);
DataSets.TabOrders.TabOrderDataTable GetTabOrderForFields(int pageId);
System.Data.DataTable GetTextFieldsForPage(int viewId, int pageId);
View GetViewByFullName(string viewFullName);
View GetViewById(int viewId);
System.Data.DataTable GetViewCheckCode(string viewName);
System.Data.DataTable GetViewCheckCode_After(int viewID);
System.Data.DataTable GetViewCheckCode_Before(int viewID);
System.Collections.Generic.List<Page> GetViewPages(View view);
System.Data.DataTable GetViewRecordVarCheckCodes(int viewID);
System.Data.DataTable GetViewRelations(string viewTableName);
Epi.Collections.ViewCollection GetViews();
System.Data.DataTable GetViewsAsDataTable();
System.Collections.Generic.List<string> GetViewsOfDataTable(string dataTableName);
bool GroupExistsForView(string groupName, View view);
void InsertCodeTableData(System.Data.DataTable dataTable, string tableName, string[] columnNames);
void InsertPage(Page page);
void InsertPgm(string name, string content, string comment, string author);
void InsertView(View view);
Project Project { get; }
void RelateFieldToView(int fieldId, int relatedViewId, string relateCondition, bool shouldReturnToParent);
void RenamePage(int pageId, string newPageName);
void ResetTabIndexes(Page page);
void SaveCodeTableData(System.Data.DataTable dataTable, string tableName, string columnName);
void SaveCodeTableData(System.Data.DataTable dataTable, string tableName, string[] columnNames);
void SaveOptionItems(List<string> options, Epi.Fields.OptionField field);
void SynchronizePageNumbersOnDelete(View view, int position);
void SynchronizePageNumbersOnInsert(View view, Page page);
void UpdateCodesFieldSources(int fieldId, int sourceFieldId, string codeColumnName, string sourceTableName);
void UpdateControlPosition(Epi.Fields.RenderableField field);
void UpdateControlSize(Epi.Fields.RenderableField field);
void UpdateDataTableName(int viewId, string tableName);
void UpdateField(Epi.Fields.GridField field);
void UpdateField(Epi.Fields.DDLFieldOfLegalValues field);
void UpdateField(Epi.Fields.ImageField field);
void UpdateField(Epi.Fields.DateField field);
void UpdateField(Epi.Fields.LabelField field);
void UpdateField(Epi.Fields.DDLFieldOfCodes field);
void UpdateField(Epi.Fields.DateTimeField field);
void UpdateField(Epi.Fields.DDLFieldOfCommentLegal field);
void UpdateField(Epi.Fields.CommandButtonField field);
void UpdateField(Epi.Fields.CheckBoxField field);
void UpdateField(Epi.Fields.RelatedViewField field);
void UpdateField(Epi.Fields.PhoneNumberField field);
void UpdateField(Epi.Fields.TimeField field);
void UpdateField(Epi.Fields.SingleLineTextField field);
void UpdateField(Epi.Fields.MultilineTextField field);
void UpdateField(Epi.Fields.MirrorField field);
void UpdateField(Epi.Fields.OptionField field);
void UpdateField(Epi.Fields.NumberField field);
void UpdateField(Epi.Fields.YesNoField field);
void UpdateField(Epi.Fields.UpperCaseTextField field);
void UpdateFieldGroupPosition(Epi.Fields.FieldGroup fieldGroup);
void UpdateFieldGroupSize(Epi.Fields.FieldGroup fieldGroup);
void UpdateGridColumn(Epi.Fields.DateColumn column);
void UpdateGridColumn(Epi.Fields.TextColumn column);
void UpdateGridColumn(Epi.Fields.NumberColumn column);
void UpdateGridColumn(Epi.Fields.PhoneNumberColumn column);
void UpdateGroup(Epi.Fields.FieldGroup fieldGroup);
void UpdateGroupSize(int groupId, double height, double width);
void UpdatePage(Page page);
void UpdatePgm(string name, string content, string comment, string author);
void UpdatePgm(int programId, string name, string content, string comment, string author);
void UpdatePromptPosition(Epi.Fields.FieldWithSeparatePrompt field);
void UpdateTabOrderIndex(System.Data.DataTable tabOrder, View view, Page currentPage);
void UpdateView(View view);
Font ExtractPromptFont(DataRow fieldRow);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -