public RefTableManager(MD_RefTable _rtable) { InitializeComponent(); _refTable = _rtable; RefreshData(); _initFinished = true; }
private void WriteRefCodeDefine(string _oldNameSpace, MD_Namespace _ns, DataSet _ds) { using (MetaDataServiceClient _mdc = new MetaDataServiceClient()) { DataRow[] _refRows = _ds.Tables["MD_REFTABLELIST"].Select(string.Format("NAMESPACE='{0}'", _oldNameSpace)); foreach (DataRow _dr in _refRows) { string _oldid = _dr["RTID"].ToString(); string _newid = GetNewID(_oldid, "MD_REFTABLELIST", "RTID", _mdc); this.IDTable.Add(_oldid, _newid); MD_RefTable _rt = new MD_RefTable( _newid, _ns.NameSpace, _dr.IsNull("REFTABLENAME") ? "" : _dr["REFTABLENAME"].ToString(), _dr.IsNull("REFTABLELEVELFORMAT") ? "" : _dr["REFTABLELEVELFORMAT"].ToString(), _dr.IsNull("DESCRIPTION") ? "" : _dr["DESCRIPTION"].ToString(), _ns.DWDM, _dr.IsNull("DOWNLOADMODE") ? 1 : Convert.ToInt32(_dr["DOWNLOADMODE"]), _dr.IsNull("REFTABLEMODE") ? 1 : Convert.ToInt32(_dr["REFTABLEMODE"]), false ); _mdc.ImportRefTableDefine(_rt); } } }
public bool SaveRefTable(MD_RefTable RefTable, System.Data.DataTable RefData) { try { OraMetaDataFactroy _of = new OraMetaDataFactroy(); return(_of.SaveRefTable(RefTable, RefData)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public bool ImportRefTableDefine(MD_RefTable RefTable) { try { OraMetaDataFactroy _of = new OraMetaDataFactroy(); return(_of.ImportRefTableDefine(RefTable)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public async Task <bool> ImportRefTableDefine(MD_RefTable refTable) { var ret = await this.mdService.ImportRefTableDefine(refTable); return(ret); }
public bool ImportRefTableDefine(MD_RefTable _rt) { return(MetaDataFactroy.ImportRefTableDefine(_rt)); }
public bool SaveRefTable(MD_RefTable _refTable, System.Data.DataTable _refData) { return(MetaDataFactroy.SaveRefTable(_refTable, _refData)); }
public System.Data.DataTable Get_RefTableColumn(MD_RefTable _refTable) { return(MetaDataFactroy.Get_RefTableColumn(_refTable)); }