private ErpCustomer GetCustomersFromFlatFile(JobConnection argJobConnection) { var erpCustomerAddress = new ErpCustomerAddress() { Address1 = "1234 xyz street", Address2 = string.Empty, AddressName = "my address", City = "Dublin", Company = "1", Country = "USA", CountryCode = "US", IsPrimary = true, PhoneNumber = "9999999999", State = "Ohio", StateCode = "OH", ZipPostalCode = "43034", Email = "*****@*****.**" }; var erpCustomerAddressList = new List <ErpCustomerAddress>(); erpCustomerAddressList.Add(erpCustomerAddress); var erpCustomer = new ErpCustomer() { AccountNumber = "0002", AccountStatus = "Active", Email = "*****@*****.**", ErpCustomerAddressList = erpCustomerAddressList, FirstName = "Test", LastName = "Test", }; return(erpCustomer); }
public override void Open() { var jobconn = new JobConnection(File); var job = jobconn.GetJob(); var cmd = job.Root.FindCommand(Command); DataSynForm.Run(jobconn, (DataSynJobCommand)cmd); }
private void LoadFromJob(JobConnection jobconn, DataSynJobCommand cmd) { m_datasyn = cmd.DataSyn; m_source = cmd.Source; m_target = cmd.Target; m_jobconn = jobconn; m_cmd = cmd; m_srcModel = null; m_dstModel = null; DownloadWhenNeededAndRefresh(); }
private void btnEditCommand_Click(object sender, EventArgs e) { if (lsvCommands.FocusedItem == null) { return; } var cmd = (JobCommand)lsvCommands.FocusedItem.Tag; var rec = (JobWithFile)lsvJobs.FocusedItem.Tag; Job job = Job.LoadFromFile(rec.FullFile); JobConnection jobconn = new JobConnection(rec.FullFile); JobCommand cmd2 = job.Root.FindCommand(cmd.GroupId); cmd2.Edit(jobconn); }
public override void Edit(JobConnection jobconn) { DataSynForm.Run(jobconn, this); }
public static void Run(JobConnection jobconn, DataSynJobCommand cmd) { var win = new DataSynForm(jobconn, cmd); win.Show(); }
public DataSynForm(JobConnection jobconn, DataSynJobCommand cmd) { Initialize(); Disposed += new EventHandler(DataSynForm_Disposed); LoadFromJob(jobconn, cmd); }