Esempio n. 1
0
 public Form_PrintReport(usrc_InvoiceTable xusrc_InvoiceTable)
 {
     InitializeComponent();
     m_usrc_InvoiceTable = xusrc_InvoiceTable;
     this.lbl_From_To.Text = xusrc_InvoiceTable.lbl_From_To.Text;
     this.Text = "";
     btn_DURS_output.Text = lngRPM.s_DURS_output.s;
     this.btn_XML_export.Text = lngRPM.s_XML_export.s;
     this.btn_VOD_xml_OPAL_export.Text = lngRPM.s_VODxml_OPAL_export.s;
 }
Esempio n. 2
0
 public Form_DURS_output(usrc_InvoiceTable xusrc_InvoiceTable)
 {
     InitializeComponent();
     m_usrc_InvoiceTable = xusrc_InvoiceTable;
     DateTime dt = DateTime.Now;
     string s_time_extension = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + "_" + dt.Hour.ToString() + "-" + dt.Minute.ToString() + "-" + dt.Second.ToString() + "-" + dt.Millisecond.ToString();
     lbl_FileNames.Text = filename_DURS_IZPIS_RACUNI_GLAVE_TXT + "\r\n" + filename_DURS_IZPIS_RACUNI_POSTAVKE_TXT;
     DURS_Destination_Folder = Properties.Settings.Default.DURS_output_folder;
     this.cmbR_FilePath.Text = DURS_Destination_Folder;
     this.btn_Save.Text = lngRPM.s_Save.s;
     this.lbl_Folder.Text = lngRPM.s_Folder.s;
     this.Text = lngRPM.s_DURS_Files.s;
     this.btn_View.Text = lngRPM.s_View.s;
 }
        public Form_VODxml_OPAL_output(usrc_InvoiceTable xusrc_InvoiceTable)
        {
            InitializeComponent();
            m_usrc_InvoiceTable = xusrc_InvoiceTable;

            string company_name = myOrg.Name_v.vs;

            company_name = company_name.Replace(' ', '_');
            company_name = company_name.Replace('.', '_');

            filename_XML_IZPIS_RACUNI_GLAVE_TXT = company_name + IZPIS_RACUNI_GLAVE + m_usrc_InvoiceTable.sFromTo_Suffix + ".XML";
            DateTime dt = DateTime.Now;
            string s_time_extension = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + "_" + dt.Hour.ToString() + "-" + dt.Minute.ToString() + "-" + dt.Second.ToString() + "-" + dt.Millisecond.ToString();
            lbl_FileNames.Text =  filename_XML_IZPIS_RACUNI_GLAVE_TXT + "\r\n";
            XML_Destination_Folder = Properties.Settings.Default.XML_output_folder;
            this.lbl_VOD_xml_shema.Text = lngRPM.s_VOD_xml_shema_file_path.s;
            this.cmbR_FilePath.Text = XML_Destination_Folder;

            this.btn_Save.Text = lngRPM.s_Save.s;
            this.lbl_Folder.Text = lngRPM.s_Folder.s;
            this.Text = lngRPM.s_Export_to_VOD_XML.s;
            this.btn_View.Text = lngRPM.s_View.s;

            this.lbl_Konto_Price_with_tax_for_cash.Text = lngRPM.s_Konto_Price_with_tax_for_cash.s;
            this.lbl_Konto_Price_with_tax_for_payment_cards.Text = lngRPM.s_Konto_Price_with_tax_for_payment_cards.s;
            this.lbl_Konto_Net_price.Text = lngRPM.s_Konto_Net_price.s;
            this.lbl_Konto_VAT_general_rate.Text = lngRPM.s_Konto_VAT_general_rate.s;
            this.lbl_End_Customers_Code.Text = lngRPM.s_End_Customers_Code.s;
            this.lbl_End_Customes_Name.Text = lngRPM.s_End_Customes_Name.s;

            //dt_IZPIS_RACUNI_GLAVE = new DataTable();
            //Progra

            //dt_IZPIS_RACUNI_GLAVE.TableName = IZPIS_RACUNI_GLAVE;

            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Davcna_stevilka_zavezanca_za_davek, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Stevilka_Racuna, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Cas_Racuna, typeof(DateTime));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_Poslovne_Enote, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_Elektronske_Naprave, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Firma_ime_in_sedez_kupca, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Kupceva_identifikacijska_stevilka_za_DDV, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_Racuna_skupaj_z_DDV, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Obracunan_DDV_po_9_5, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Obracunan_DDV_po_22, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_z_gotovino_skupaj_z_DDV, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_s_placilno_kartico_skupaj_z_DDV, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_na_drug_nacin_skupaj_z_DDV, typeof(decimal));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Cas_spremembe_racuna, typeof(DateTime));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Zaporedna_stevilka_spremembe_racuna, typeof(long));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_razloga_spremembe_racuna, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Opis_razloga_spremembe_racuna, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Uporabnisko_ime_osebe_ki_je_spremenila_racun, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Ime_in_Priimek_osebe_ki_je_spremenila_racun, typeof(string));
            //dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_OPOMBE, typeof(string));

            Items.cp_Davcna_stevilka_zavezanca_za_davek = Invoices.c_Davcna_stevilka_zavezanca_za_davek;
            Items.cp_Stevilka_Racuna = Invoices.c_Stevilka_Racuna;
            Items.cp_Cas_Racuna = Invoices.c_Cas_Racuna;
            Items.cp_Oznaka_Poslovne_Enote = Invoices.c_Oznaka_Poslovne_Enote;
            Items.cp_Oznaka_Elektronske_Naprave = Invoices.c_Oznaka_Elektronske_Naprave;
        }
Esempio n. 4
0
        public Form_Select_TimeSpan(usrc_InvoiceTable xusrc_InvoiceTable)
        {
            // TODO: Complete member initialization
            InitializeComponent();
            this.m_usrc_InvoiceTable = xusrc_InvoiceTable;

            this.Text = lngRPM.s_SelectTimeSpan.s;
            this.rdb_All.Text = lngRPM.s_all.s;
            this.rdb_CurrentDay.Text = lngRPM.s_Today.s;
            this.rdb_TimeSpan.Text = lngRPM.s_TimeSpan.s;
            this.rdb_LastYear.Text = lngRPM.s_LastYear.s;
            this.rdb_ThisYear.Text= lngRPM.s_ThisYear.s;
            this.rdb_LastMonth.Text = lngRPM.s_LastMonth.s;
            this.rdb_ThisMonth.Text = lngRPM.s_ThisMonth.s;
            this.rdb_LastWeek.Text= lngRPM.s_LastWeek.s;
            this.rdb_ThisWeek.Text= lngRPM.s_ThisWeek.s;
            lbl_From.Text = lngRPM.ss_From.s;
            lbl_To.Text = lngRPM.ss_To.s;
            btn_OK.Text = lngRPM.ss_OK.s;
            Org_Mode = m_usrc_InvoiceTable.Mode;
            Org_dtStartTime = m_usrc_InvoiceTable.dtStartTime;
            Org_dtEndTime = m_usrc_InvoiceTable.dtEndTime;

            switch (m_usrc_InvoiceTable.Mode)
            {
                case usrc_InvoiceTable.eMode.All:
                    rdb_All.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.Today:
                    this.rdb_CurrentDay.Checked = true;
                    break;

                case usrc_InvoiceTable.eMode.ThisWeek:
                    this.rdb_ThisWeek.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.LastWeek:
                    this.rdb_LastWeek.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.ThisMonth:
                    this.rdb_ThisMonth.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.LastMonth:
                    this.rdb_LastMonth.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.ThisYear:
                    this.rdb_ThisYear.Checked = true;
                    break;
                case usrc_InvoiceTable.eMode.LastYear:
                    this.rdb_LastYear.Text = lngRPM.s_LastYear.s;
                    break;
                case usrc_InvoiceTable.eMode.TimeSpan:
                    this.rdb_TimeSpan.Checked = true;
                    break;
            }
            this.rdb_All.CheckedChanged += new System.EventHandler(this.rdb_All_CheckedChanged);
            this.rdb_CurrentDay.CheckedChanged += new System.EventHandler(this.rdb_CurrentDay_CheckedChanged);
            this.rdb_ThisWeek.CheckedChanged += new System.EventHandler(this.rdb_ThisWeek_CheckedChanged);
            this.rdb_LastMonth.CheckedChanged += new System.EventHandler(this.rdb_LastMonth_CheckedChanged);
            this.rdb_ThisYear.CheckedChanged += new System.EventHandler(this.rdb_ThisYear_CheckedChanged);
            this.rdb_TimeSpan.CheckedChanged += new System.EventHandler(this.rdb_TimeSpan_CheckedChanged);
            this.rdb_ThisMonth.CheckedChanged += new System.EventHandler(this.rdb_ThisMonth_CheckedChanged);
            this.rdb_LastYear.CheckedChanged += new System.EventHandler(this.rdb_LastYear_CheckedChanged);
            this.rdb_LastWeek.CheckedChanged += new System.EventHandler(this.rdb_LastWeek_CheckedChanged);

            this.dateTimePicker_From.Value = m_usrc_InvoiceTable.dtStartTime;
            this.dateTimePicker_To.Value = m_usrc_InvoiceTable.dtEndTime;

            this.dateTimePicker_From.ValueChanged += new System.EventHandler(this.dateTimePicker_From_ValueChanged);
            this.dateTimePicker_To.ValueChanged += new System.EventHandler(this.dateTimePicker_To_ValueChanged);
        }
Esempio n. 5
0
        public Form_XML_output(usrc_InvoiceTable xusrc_InvoiceTable)
        {
            InitializeComponent();
            m_usrc_InvoiceTable = xusrc_InvoiceTable;
            filename_XML_IZPIS_RACUNI_GLAVE_TXT = IZPIS_RACUNI_GLAVE +m_usrc_InvoiceTable.sFromTo_Suffix+ ".XML";
            filename_XML_IZPIS_RACUNI_POSTAVKE_TXT = IZPIS_RACUNI_POSTAVKE +m_usrc_InvoiceTable.sFromTo_Suffix+".XML";
            DateTime dt = DateTime.Now;
            string s_time_extension = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + "_" + dt.Hour.ToString() + "-" + dt.Minute.ToString() + "-" + dt.Second.ToString() + "-" + dt.Millisecond.ToString();
            lbl_FileNames.Text = filename_XML_IZPIS_RACUNI_GLAVE_TXT + "\r\n" + filename_XML_IZPIS_RACUNI_POSTAVKE_TXT;
            XML_Destination_Folder = Properties.Settings.Default.XML_output_folder;
            this.cmbR_FilePath.Text = XML_Destination_Folder;
            this.btn_Save.Text = lngRPM.s_Save.s;
            this.lbl_Folder.Text = lngRPM.s_Folder.s;
            this.Text = lngRPM.s_XML_Files.s;
            this.btn_View.Text = lngRPM.s_View.s;
            dt_IZPIS_RACUNI_GLAVE = new DataTable();

            dt_IZPIS_RACUNI_GLAVE.TableName = IZPIS_RACUNI_GLAVE;

            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Davcna_stevilka_zavezanca_za_davek, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Stevilka_Racuna, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Cas_Racuna, typeof(DateTime));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_Poslovne_Enote, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_Elektronske_Naprave, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Firma_ime_in_sedez_kupca, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Kupceva_identifikacijska_stevilka_za_DDV, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_Racuna_skupaj_z_DDV, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Obracunan_DDV_po_9_5, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Obracunan_DDV_po_22, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_z_gotovino_skupaj_z_DDV, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_s_placilno_kartico_skupaj_z_DDV, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Znesek_placila_na_drug_nacin_skupaj_z_DDV, typeof(decimal));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Cas_spremembe_racuna, typeof(DateTime));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Zaporedna_stevilka_spremembe_racuna, typeof(long));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Oznaka_razloga_spremembe_racuna, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Opis_razloga_spremembe_racuna, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Uporabnisko_ime_osebe_ki_je_spremenila_racun, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_Ime_in_Priimek_osebe_ki_je_spremenila_racun, typeof(string));
            dt_IZPIS_RACUNI_GLAVE.Columns.Add(Invoices.c_OPOMBE, typeof(string));

            Items.cp_Davcna_stevilka_zavezanca_za_davek = Invoices.c_Davcna_stevilka_zavezanca_za_davek;
            Items.cp_Stevilka_Racuna = Invoices.c_Stevilka_Racuna;
            Items.cp_Cas_Racuna = Invoices.c_Cas_Racuna;
            Items.cp_Oznaka_Poslovne_Enote = Invoices.c_Oznaka_Poslovne_Enote;
            Items.cp_Oznaka_Elektronske_Naprave = Invoices.c_Oznaka_Elektronske_Naprave;

            dt_IZPIS_RACUNI_POSTAVKE = new DataTable();
            dt_IZPIS_RACUNI_POSTAVKE.TableName = IZPIS_RACUNI_POSTAVKE;

            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Davcna_stevilka_zavezanca_za_davek, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Stevilka_Racuna, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Cas_Racuna, typeof(DateTime));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Oznaka_Poslovne_Enote, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Oznaka_Elektronske_Naprave, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Zaporedna_stevilka_postavke_na_racunu, typeof(int));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Oznaka_ali_sifra_blaga_oziroma_storitve, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Naziv_blaga_oziroma_storitve, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Kolicina_blaga_oziroma_storitve, typeof(decimal));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Enota_mere_blaga_oziroma_storitve, typeof(string));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Cena_blaga_oziroma_storitve_na_enoto_mere_skupaj_z_DDV, typeof(decimal));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Obracunan_DDV_po_stopnji_9_5, typeof(decimal));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Obracunan_DDV_po_stopnji_22, typeof(decimal));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_Zaporedna_stevilka_spremembe, typeof(int));
            dt_IZPIS_RACUNI_POSTAVKE.Columns.Add(Items.cp_OPOMBE, typeof(string));
        }