示例#1
0
        public void buttonStart_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter = "Excel file|*.xlsx";
            sfd.Title  = "Save Excel File";
            sfd.ShowDialog();
            SaveFileName = sfd.FileName;
            if (sfd.FileName.Length == 0)
            {
                return;
            }

            TaxesToken = CopyToken(textBoxLink.Text);

            TimeSpan span = dateTimePickerSon.Value - dateTimePickerIlk.Value;

            progressBar.Maximum = span.Days + 1;
            progressBar.Minimum = 0;
            progressBar.Value   = 0;

            string[] linrArray = CreateLinkArray(TaxesToken, DateToString(dateTimePickerIlk.Value), DateToString(dateTimePickerSon.Value), progressBar);

            progressBar.Maximum = linrArray.Length;
            progressBar.Minimum = 0;
            progressBar.Value   = 0;

            List <EVHF>   EVHFlist = new List <EVHF>();
            List <EQaime> EQlist   = new List <EQaime>();

            if (DocType == 0)
            {
                EVHF tempEVHF = new EVHF();
                tempEVHF.RZLoadFromTaxes(ref EVHFlist, ref linrArray, ref progressBar);
                EVHF.CreateExcel(ref EVHFlist);
            }
            else
            {
                EQaime tempEQaime = new EQaime();
                tempEQaime.RZLoadFromTaxes(ref EQlist, linrArray);
                EQaime.CreateExcel(ref EQlist);
            }
            MessageBox.Show("Yükləndi!");
        }
示例#2
0
        public static void Main(string[] args)
        {
            MainMenyu();
            string[] linrArray = CreateLinkArray(EVHFsLink, TaxesIlkTarix, TaxesSonTarix);

            List <EVHF>   EVHFlist = new List <EVHF>();
            List <EQaime> EQlist   = new List <EQaime>();

            if (DocType == 0)
            {
                EVHF.RZLoadFromTaxes(ref EVHFlist, linrArray);
                EVHF.CreateExcel(ref EVHFlist);
            }
            else
            {
                EQaime.RZLoadFromTaxes(ref EQlist, linrArray);
                EQaime.CreateExcel(ref EQlist);
            }
            Console.ReadKey();
        }