Ejemplo n.º 1
0
 private static DataSet CallEntityBulkCopy(string logPath, string file, string ext, BaseLogic logic)
 {
     string stagingTable = "MonitoringResultTemp";
     DataSet cmdExcel = null;
     cmdExcel = logic.BulkCopyToStagingTable<CIFDataQualityEntity>(file, ext, stagingTable, logPath);
     return cmdExcel;
 }
Ejemplo n.º 2
0
 private void migrateBtn_Click(object sender, RoutedEventArgs e)
 {
     string logPath = Environment.CurrentDirectory + "\\logs\\MirationLog_" + DateTime.Now.ToString("yyyy-MM-dd_HH-mm") + ".txt";
     string file = attachTxtBox.Text;
     string ext = System.IO.Path.GetExtension(file);
     BaseLogic logic = new BaseLogic();
     DataSet cmdExcel = CallEntityBulkCopy(logPath, file, ext, logic);
     MessageBox.Show("Success");
 }
Ejemplo n.º 3
0
 public MapRenderer()
 {
     _logics = new BaseLogic<MapView>[]
     {
         new PolylineLogic(),
         new PolygonLogic(),
         new CircleLogic(),
         new PinLogic(),
         new TileLayerLogic()
     };
 }
Ejemplo n.º 4
0
 public MapRenderer()
 {
     AutoPackage = false;
     _logics = new BaseLogic<GoogleMap>[]
     {
         new PolylineLogic(),
         new PolygonLogic(),
         new CircleLogic(),
         new PinLogic(),
         new TileLayerLogic()
     };
 }
Ejemplo n.º 5
0
        public void Update_Entry(GenericPersonViewModel _generic, int id)
        {

            BaseLogic baselogic = new BaseLogic();
           
           var data = GenUpdate(_generic, id);
            if (_generic.IsModified)
            {
                baselogic.Person.Update(data.Persons);
                baselogic.Ph_Assigments.Update(data.PHAssigments);
                baselogic.ID_Cards.Update(data.Identitycards);
                baselogic.Diploma.Update(data.DiplomData);
                baselogic.Person_Language.Update(data.Languages);
                baselogic.Citizenship.Update(data.Citizenship);
                baselogic.Contacts.Update(data.ContactData);
            }
            try
            {
                baselogic.Save();
            }
            catch
            {

            }
        }