Exemple #1
0
 public RefTableManager(MD_RefTable _rtable)
 {
     InitializeComponent();
     _refTable = _rtable;
     RefreshData();
     _initFinished = true;
 }
Exemple #2
0
 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);
         }
     }
 }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 public bool ImportRefTableDefine(MD_RefTable RefTable)
 {
     try
     {
         OraMetaDataFactroy _of = new OraMetaDataFactroy();
         return(_of.ImportRefTableDefine(RefTable));
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message);
     }
 }
Exemple #5
0
        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));
 }