Beispiel #1
0
        private void btnBrowsSellerHistory_Click(object sender, EventArgs e)
        {
            try
            {
                FileDialgSellerSummary.FileName = "SellerHistory.xlsx";
                DialogResult dlgResult = FileDialgSellerSummary.ShowDialog();

                if (dlgResult == System.Windows.Forms.DialogResult.OK)
                {
                    txtBoxSellerHistoryFile.Text = FileDialgSellerSummary.FileName;
                }
            }
            catch (Exception ex)
            {
                CommonFunctions.ShowErrorDialog("UpdateOrderMasterForm.btnBrowsSellerHistory_Click()", ex);
            }
        }
Beispiel #2
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            try
            {
                FileDialgSellerSummary.FileName = "Invoice File";
                DialogResult dlgResult = FileDialgSellerSummary.ShowDialog();

                if (dlgResult == System.Windows.Forms.DialogResult.OK)
                {
                    txtBoxSellerSummaryFile.Text       = FileDialgSellerSummary.FileName;
                    SellerSummaryFilePath              = txtBoxSellerSummaryFile.Text;
                    txtBoxSellerHistoryFile.Text       = Path.GetDirectoryName(SellerSummaryFilePath) + @"\SellerHistory.xlsx";
                    txtBoxProductInventoryFile.Text    = Path.GetDirectoryName(SellerSummaryFilePath) + @"\ProductInventory.xlsx";
                    txtBoxProductStockHistoryFile.Text = Path.GetDirectoryName(SellerSummaryFilePath) + @"\ProductStockHistory.xlsx";
                    groupBoxHistoryUpdate.Enabled      = true;
                    btnUpdate.Enabled = true;
                }
            }
            catch (Exception ex)
            {
                CommonFunctions.ShowErrorDialog("UpdateOrderMasterForm.btnBrowse_Click", ex);
            }
        }