예제 #1
0
 public static Dictionary<string, string> GetImportAdapters(Target importTo, string sourceName)
 {
     Dictionary<string, string> dictionary = new Dictionary<string, string>();
     DataRow[] importerList = TransferContainer.Instance().GetImporterList(sourceName, importTo.Name);
     if ((importerList != null) && (importerList.Length != 0))
     {
         string str = null;
         int index = 0;
         do
         {
             Version version = new Version(importerList[index]["importToVersion"].ToString());
             if (version <= importTo.Version)
             {
                 str = importerList[index]["importToVersion"].ToString();
             }
             index++;
         }
         while (string.IsNullOrEmpty(str) && (index < importerList.Length));
         if (string.IsNullOrEmpty(str))
         {
             return dictionary;
         }
         foreach (DataRow row in importerList)
         {
             if (row["importToVersion"].ToString().Equals(str))
             {
                 dictionary.Add(row["fullName"].ToString(), row["sourceName"].ToString() + row["sourceVersion"].ToString());
             }
         }
     }
     return dictionary;
 }
예제 #2
0
 public Yfx1_2_to_Taobao4_7()
 {
     this._encoding = Encoding.UTF8;
     this._exportTo = new TbTarget("4.7");
     this._source = new YfxTarget("1.2");
 }
예제 #3
0
 public Hishop5_4_2_to_Hishop5_4_2()
 {
     this._encoding = Encoding.UTF8;
     this._exportTo = new HishopTarget("5.4.2");
     this._source = new HishopTarget("5.4.2");
 }
예제 #4
0
 public Yfx1_2_to_Paipai4_0()
 {
     this._encoding = Encoding.Unicode;
     this._exportTo = new PPTarget("4.0");
     this._source = new YfxTarget("1.2");
 }
예제 #5
0
 public Hishop5_4_2_to_paipai4_0()
 {
     this._encoding = Encoding.Unicode;
     this._exportTo = new PPTarget("4.0");
     this._source = new HishopTarget("5.4.2");
 }
예제 #6
0
 public Hishop5_4_2_to_taobao4_7()
 {
     this._encoding = Encoding.UTF8;
     this._exportTo = new TbTarget("4.7");
     this._source = new HishopTarget("5.4.2");
 }
예제 #7
0
 public Yfx1_2_to_Yfx1_2()
 {
     this._encoding = Encoding.UTF8;
     this._exportTo = new YfxTarget("1.2");
     this._source = new YfxTarget("1.2");
 }