Пример #1
0
 protected override void Write(int rowIndex)
 {
     try
     {
         DataProvider.OracleInstance.Insert <FeArticle>("FeArticle", list[rowIndex]).AutoMap().Execute();
     }
     catch
     {
         log.CheckLog("导入表【CrReceiveAddress】失败," + "系统号:" + list[rowIndex].SysNo.ToString());
     }
 }
Пример #2
0
 protected override void Write(int rowIndex)
 {
     try
     {   //p => p.ParentCategory
         DataProvider.OracleInstance.Insert <SoOrder>("SoOrder", list[rowIndex]).AutoMap(p => p.OrderItemList, p => p.OrderInvoice, p => p.Customer, p => p.ReceiveAddress).Execute();
     }
     catch (Exception ex)
     {
         log.CheckLog("导入表【SoOrder】失败," + "系统号:" + list[rowIndex].SysNo.ToString() + "." + ex.Message);
     }
 }
Пример #3
0
 protected override void Write(int rowIndex)
 {
     try
     {
         DataProvider.OracleInstance.Insert <LgDelivery>("LgDelivery", list[rowIndex]).AutoMap(x => x.LgDeliveryItemList).Execute();
     }
     catch
     {
         log.CheckLog("导入表【LgDelivery】失败," + "系统号:" + list[rowIndex].SysNo.ToString());
     }
 }
Пример #4
0
 protected override void Write(int rowIndex)
 {
     try
     {
         DataProvider.OracleInstance.Insert <PdCategory>("PdCategory", list[rowIndex]).AutoMap(p => p.ParentCategory).Execute();
     }
     catch (Exception ex)
     {
         log.CheckLog("导入表【PdCategory】失败," + "系统号:" + list[rowIndex].SysNo.ToString());
     }
 }
 protected override void Write(int rowIndex)
 {
     try
     {
         DataProvider.OracleInstance.Insert <CrReceiveAddress>("CrReceiveAddress", list[rowIndex]).AutoMap().Execute();
     }
     catch
     {
         log.CheckLog("导入表【CrReceiveAddress】失败," + "系统号:" + list[rowIndex].SysNo + "; zipcode:" + list[rowIndex].ZipCode);
     }
 }