示例#1
0
 public EVHF(EVHF eVHF)
 {
     IO        = eVHF.IO;
     Voen      = eVHF.Voen;
     Ad        = eVHF.Ad;
     Tip       = eVHF.Tip;
     Veziyyet  = eVHF.Veziyyet;
     Tarix     = eVHF.Tarix;
     Seriya    = eVHF.Seriya;
     Nomre     = eVHF.Nomre;
     EsasQeyd  = eVHF.EsasQeyd;
     ElaveQeyd = eVHF.ElaveQeyd;
     EDVsiz    = eVHF.EDVsiz;
     EDV       = eVHF.EDV;
     Hesab1C   = eVHF.Hesab1C;
     MVQeyd    = eVHF.MVQeyd;
 }
示例#2
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!");
        }
示例#3
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();
        }
示例#4
0
        public static List <EVHF> StringToListEVHF(string str)
        {
            var RZEVHFList = new List <EVHF>();
            var RZEVHF     = new EVHF();

            int j = 0, k = 0, count = 0;

            for (int i = 0; i < str.Length; i++)
            {
                string tempDocx = "";
                for (; j < MainTaxes.TextForBegin.Length; j++)
                {
                    tempDocx += str[(i + j) >= str.Length - 1 ?
                                    str.Length - 1 : (i + j)];
                }
                if (tempDocx == MainTaxes.TextForBegin)
                {
                    count++;
                    string Xvalue    = "";
                    int    tempIndex = 0;
                    do
                    {
                        tempIndex = (i + j + k) >= str.Length - 1 ?
                                    str.Length - 1 : (i + j + k);
                        Xvalue += str[tempIndex];
                        k++;
                    } while (str[tempIndex] != '<');
                    Xvalue    = Xvalue.Replace("<", "");
                    tempIndex = 0;
                    k         = 0;
                    i         = (i + j + k + Xvalue.Length) >= str.Length - 1 ?
                                str.Length - 1 : (i + j + k + Xvalue.Length);
                    if (count == 1)
                    {
                        RZEVHF /*[0]*/.IO   = MainTaxes.TaxesIO;
                        RZEVHF /*[1]*/.Voen = Xvalue;
                    }
                    if (count == 2)
                    {
                        RZEVHF /*[2]*/.Ad = Xvalue;
                    }
                    if (count == 3)
                    {
                        RZEVHF /*[3]*/.Tip = Xvalue;
                    }
                    if (count == 4)
                    {
                        RZEVHF /*[4]*/.Veziyyet = Xvalue;
                    }
                    if (count == 5)
                    {
                        RZEVHF /*[5]*/.Tarix = Xvalue;
                    }
                    if (count == 6)
                    {
                        RZEVHF /*[6]*/.Seriya = Xvalue;
                    }
                    if (count == 7)
                    {
                        RZEVHF /*[7]*/.Nomre = Xvalue;
                    }
                    if (count == 8)
                    {
                        RZEVHF /*[8]*/.EsasQeyd = Xvalue;
                    }
                    if (count == 9)
                    {
                        RZEVHF /*[9]*/.ElaveQeyd = Xvalue;
                    }
                    if (count == 10)
                    {
                        //Xvalue = Xvalue.Replace(".", ",");
                        //RZEVHF.EDVsiz = decimal.Parse(Xvalue);
                        RZEVHF /*[10]*/.EDVsiz = Xvalue;
                    }
                    if (count == 11)
                    {
                        //Xvalue = Xvalue.Replace(".", ",");
                        //RZEVHF.EDV = decimal.Parse(Xvalue);
                        RZEVHF /*[11]*/.EDV     = Xvalue;
                        RZEVHF /*[12]*/.Hesab1C = (MainTaxes.TaxesIO == "I" ? "531.1" : "211.3");
                        RZEVHF /*[13]*/.MVQeyd  = "";
                        //Console.WriteLine(RZEVHF.ToString());
                        if (MainTaxes.TaxesVeziyyet == 1)
                        {
                            if (RZEVHF.Veziyyet == "N")
                            {
                                RZEVHFList.Add(new EVHF(RZEVHF));
                            }
                        }
                        else if (MainTaxes.TaxesVeziyyet == 2)
                        {
                            if (RZEVHF.Veziyyet == "L")
                            {
                                RZEVHFList.Add(new EVHF(RZEVHF));
                            }
                        }
                        else if (MainTaxes.TaxesVeziyyet == 3)
                        {
                            if (RZEVHF.Tip == "D")
                            {
                                RZEVHFList.Add(new EVHF(RZEVHF));
                            }
                        }
                        else
                        {
                            RZEVHFList.Add(new EVHF(RZEVHF));
                        }
                        //RZEVHFList.Add(new EVHF(RZEVHF[0],
                        //    RZEVHF[1],
                        //    RZEVHF[2],
                        //    RZEVHF[3],
                        //    RZEVHF[4],
                        //    RZEVHF[5],
                        //    RZEVHF[6],
                        //    RZEVHF[7],
                        //    RZEVHF[8],
                        //    RZEVHF[9],
                        //    RZEVHF[10],
                        //    RZEVHF[11],
                        //    RZEVHF[12],
                        //    RZEVHF[13]));
                        count = 0;
                    }
                }
                j = 0;
            }
            return(RZEVHFList);
        }