示例#1
0
        private void btn_Save_Click(object sender, EventArgs e)
        {
            Save();
            NavBar.Navigate(new Models(), this.Parent.Parent.Parent.Parent, this);

            this.Close();
        }
示例#2
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            closingData = Globals.FillDictionary(this.radPanel1);

            if (CheckDataModified(initialData, closingData) == true)
            {
                DialogResult dialogResult = MessageBox.Show("Записът е бил променен. Сигурни ли сте, че искате да запазите промените?", "Съобщение", MessageBoxButtons.YesNo);
                if (dialogResult == DialogResult.Yes)
                {
                    Save();
                    MessageBox.Show("Записът беше запаметен!");

                    NavBar.Navigate(new Manufacturers(), this.Parent.Parent.Parent.Parent, this);
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Записът не беше запаметен!");

                    NavBar.Navigate(new Manufacturers(), this.Parent.Parent.Parent.Parent, this);
                    this.Close();
                }
            }
            else
            {
                NavBar.Navigate(new Manufacturers(), this.Parent.Parent.Parent.Parent, this);
                this.Close();
            }
        }
示例#3
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            LocationCard mc = new LocationCard();

            mc.Location_ID = "-1";
            NavBar.Navigate(mc, Globals.GetParent(this.Parent.Parent), this);

            Close();
        }
示例#4
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            ItemCard ic = new ItemCard();

            ic.Item_ID = "-1";
            NavBar.Navigate(ic, Globals.GetParent(this.Parent.Parent), this);

            Close();
        }
示例#5
0
        private void MasterTemplate_CommandCellClick(object sender, EventArgs e)
        {
            ReportViewer_FORM barcode_report = new ReportViewer_FORM();

            barcode_report.repName = "Item_Barcode";
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add(Item_table.Item_ID, radGridView1.SelectedRows[0].Cells[Item_table.Item_ID].Value.MakeString());
            barcode_report.rep_parameters = parameters;
            barcode_report.Text           = "Справка - Баркод Артикул";
            NavBar.Navigate(barcode_report, Globals.GetParent(this.Parent.Parent), this, true);
        }
示例#6
0
        private void btn_Card_Click(object sender, EventArgs e)
        {
            if (MasterTemplate.SelectedRows.Count < 1)
            {
                MessageBox.Show("Изберете ред!");
                return;
            }
            ProductCard ic = new ProductCard();

            // ic.Item_ID = radGridView1.SelectedRows[0].Cells[Item_table.Item_ID].Value.MakeString();

            NavBar.Navigate(ic, Globals.GetParent(this.Parent.Parent), this);
            Close();
        }
示例#7
0
        private void btn_Card_Click(object sender, EventArgs e)
        {
            if (radGridView1.SelectedRows.Count < 1)
            {
                MessageBox.Show("Изберете ред!");
                return;
            }
            LocationCard mc = new LocationCard();

            mc.Location_ID = radGridView1.SelectedRows[0].Cells[Location_table.Location_ID].Value.MakeString();

            NavBar.Navigate(mc, Globals.GetParent(this.Parent.Parent), this);
            Close();
        }
示例#8
0
 private void btn_Back_Click(object sender, EventArgs e)
 {
     NavBar.Navigate(new Location(), this.Parent.Parent.Parent.Parent, this);
     this.Close();
 }