public void Init(UjPartner parent, Vezerloinfo vezerles, Tablainfo partner,Tablainfo vezirpartner) { //panel1.Visible = false; //label2.Text = "Új partner felvétele"; //panel3.Height = this.Height - panel1.Height; dataGridView3.Width = this.Width / 2; dataGridView4.Width = this.Width - dataGridView3.Width; megnev1.Width = dataGridView3.Width - 100; megnev2.Width = dataGridView4.Width - 100; dataGridView3.Visible = false; dataGridView4.Visible = false; Parentform = parent; // ParameterAtvetel(vezerles, false); Hivo = Vezerles.AktivControl; VezerloControl = (VezerloControl)Hivo.Hivo; Hivo.AktivControl = this; Vezerles = vezerles; Tabinfo = partner; TablainfoTag = partner.TablaTag; Elsoeset = true; bevsemainfo = FakUserInterface.GetCsoport("C", "Termfeloszt"); koltssemainfo = FakUserInterface.GetCsoport("C", "Feloszt"); termcsopinfo = FakUserInterface.GetKodtab("C", "Termcsop"); koltscsopinfo = FakUserInterface.GetBySzintPluszTablanev("C", "KOLTSEGCSOPORT"); felosztinfo = FakUserInterface.GetKodtab("C", "Fszazal"); }
private void ujpartner_Click(object sender, EventArgs e) { bool volthiba = AktivPage.Text.Contains("!"); if (ujpartnerform == null) ujpartnerform = new UjPartner(); ujpartnerform.UjPartnerInit(AktivVezerles, VezerloControl, this.Name, szlainfo, partnerinfo, vezirpartnerinfo, partner, FakUserInterface); if (ujpartnerform.ShowDialog() == DialogResult.OK) { // VezerloControl.ComboSzures(this.Name, partner); Termekkodalapertelmezes(); // partner.SelectedIndex = partner.Items.IndexOf(partnerinfo.Adattabla.Rows[partnerinfo.Adattabla.Rows.Count-1]["SZOVEG"].ToString()); } else if (!volthiba) { AktivMenuItem.Text = AktivMenuItem.Text.Replace("!", ""); AktivDropDownItem.Text = AktivDropDownItem.Text.Replace("!", ""); AktivPage.Text = AktivPage.Text.Replace("!", ""); } }
private void ujpartner_Click(object sender, EventArgs e) { bool volthiba = AktivPage.Text.Contains("!"); if (ujpartnerform == null) ujpartnerform = new UjPartner(); ujpartnerform.UjPartnerInit(AktivVezerles, VezerloControl, this.Name, szlainfo, partnerinfo, vezirpartnerinfo, partner, FakUserInterface); if (ujpartnerform.ShowDialog() == DialogResult.OK) { Koltsegkodalapertelmezes(); } else if (!volthiba) { AktivMenuItem.Text = AktivMenuItem.Text.Replace("!", ""); AktivDropDownItem.Text = AktivDropDownItem.Text.Replace("!", ""); AktivPage.Text = AktivPage.Text.Replace("!", ""); } }