public List <CListItem> GetColumnItems(string TableName) { List <CListItem> result = new List <CListItem>(); ICodeSetService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetColumnItems(TableName); }); return(result); }
public string GenerateTreeCode(string strParentCode, string strTableName, string strFieldName, int Layer, string ParentColumn) { string result = ""; ICodeSetService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GenerateTreeCode(strParentCode, strTableName, strFieldName, Layer, ParentColumn); }); return(result); }
public string GenerateCodeEx(string strTableName, string strBusType, string strFieldName, string strType) { string result = ""; ICodeSetService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GenerateCodeEx(strTableName, strBusType, strFieldName, strType); }); return(result); }