コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: DataSynForm.cs プロジェクト: janproch/datadmin
        public override void Open()
        {
            var jobconn = new JobConnection(File);
            var job     = jobconn.GetJob();
            var cmd     = job.Root.FindCommand(Command);

            DataSynForm.Run(jobconn, (DataSynJobCommand)cmd);
        }
コード例 #3
0
ファイル: DataSynForm.cs プロジェクト: janproch/datadmin
 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();
 }
コード例 #4
0
ファイル: JobManagerDocker.cs プロジェクト: janproch/datadmin
        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);
        }
コード例 #5
0
ファイル: DataSynJob.cs プロジェクト: janproch/datadmin
 public override void Edit(JobConnection jobconn)
 {
     DataSynForm.Run(jobconn, this);
 }
コード例 #6
0
ファイル: DataSynForm.cs プロジェクト: janproch/datadmin
        public static void Run(JobConnection jobconn, DataSynJobCommand cmd)
        {
            var win = new DataSynForm(jobconn, cmd);

            win.Show();
        }
コード例 #7
0
ファイル: DataSynForm.cs プロジェクト: janproch/datadmin
 public DataSynForm(JobConnection jobconn, DataSynJobCommand cmd)
 {
     Initialize();
     Disposed += new EventHandler(DataSynForm_Disposed);
     LoadFromJob(jobconn, cmd);
 }