Exemplo n.º 1
0
        void wizSelection_Closed(object sender, EventArgs e)
        {
            ImportFromPoS_SelectionWizard wizSelection = sender as ImportFromPoS_SelectionWizard;
            if (wizSelection != null)
            {
                List<string[]> resultList = wizSelection.ResultList;

                if (resultList != null)
                {
                    foreach (string[] result in resultList)
                    {
                        ListViewItem lvItem = lvUploadList.Items.Add(result[0]); // File name
                        lvItem.SubItems.Add(result[1]); // Txnumber
                        lvItem.SubItems.Add(result[2]); // Shop#
                        lvItem.SubItems.Add(result[3]); // Status
                        lvItem.SubItems.Add(result[4]); // Remarks
                        lvItem.SubItems.Add(result[5]); // HHT

                        if (result.Contains("Failed") || result.Contains("Ignored/Failed"))
                        {
                            txtStatus.Text = "Data Transform from POS data failed/Igored.";
                        }
                        else
                        {
                            txtStatus.Text = "Data Transform from POS data successfully.";
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void btnImportData_Click(object sender, EventArgs e)
        {
            txtStatus.Text = "Select import files.";

            ImportFromPoS_SelectionWizard wizSelection = new ImportFromPoS_SelectionWizard();
            wizSelection.Remarks = txtRemarks.Text;
            wizSelection.Closed += new EventHandler(wizSelection_Closed);
            wizSelection.ShowDialog();
        }