Exemple #1
0
 public FrmEsek()
 {
     InitializeComponent();
     es = new esek();
     MiluyCombo();
     frmStatus = "NEW";
 }
Exemple #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            ee = new esek(Convert.ToInt32(dgvAsakim.SelectedRows[0].Cells[0].Value));
            FrmEsek f = new FrmEsek(ee);

            f.Show();
        }
Exemple #3
0
 public FrmEsek(string bb, esek ee)
 {
     InitializeComponent();
     es = ee;
     MiluyCombo();
     frmStatus                = bb;
     lblMis.Text              = ee.MisEsek.ToString();
     txtShemEsek.Text         = ee.ShemEsek;
     txtShemIshKesher.Text    = ee.ShemIshKesher;
     txtNayad.Text            = ee.NayadIshKesher;
     cmbkid.SelectedValue     = ee.Kidomet;
     txtMailIshKesher.Text    = ee.MailIshKesher;
     txtCtovet.Text           = ee.CtovetMisrad;
     cmbShemIr.SelectedValue  = ee.kodIr.ToString();
     lblMis.Enabled           = false;
     txtShemEsek.Enabled      = false;
     txtShemIshKesher.Enabled = false;
     txtNayad.Enabled         = false;
     cmbkid.Enabled           = false;
     txtMailIshKesher.Enabled = false;
     txtCtovet.Enabled        = false;
     cmbShemIr.Enabled        = false;
     txtMailEsek.Text         = ee.MailEsek;
     txtMailEsek.Enabled      = false;
 }
Exemple #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            string mazav = "SHOW";

            ee = new esek(Convert.ToInt32(dgvAsakim.SelectedRows[0].Cells[0].Value));
            FrmEsek f = new FrmEsek(mazav, ee);

            f.Show();
        }
Exemple #5
0
 public FrmEsek(esek ee)
 {
     InitializeComponent();
     es = ee;
     MiluyCombo();
     frmStatus               = "UPDATE";
     lblMis.Text             = ee.MisEsek.ToString();
     txtShemEsek.Text        = ee.ShemEsek;
     txtShemIshKesher.Text   = ee.ShemIshKesher;
     txtNayad.Text           = ee.NayadIshKesher;
     cmbkid.SelectedValue    = ee.Kidomet;
     txtMailIshKesher.Text   = ee.MailIshKesher;
     txtCtovet.Text          = ee.CtovetMisrad;
     cmbShemIr.SelectedValue = ee.kodIr.ToString();
 }
Exemple #6
0
        private void button5_Click(object sender, EventArgs e)
        {
            esek     esek = new esek(Convert.ToInt32(dgvAsakim.SelectedRows[0].Cells[0].Value));
            DataView dv   = new DataView(new hascarotTable().GetDataTable());

            dv.RowFilter = "misEsek =" + esek.MisEsek;
            if (dv.Count > 0)
            {
                MessageBox.Show("לא ניתן למחוק כיוון שיש רשומות מקושרות");
            }
            else
            {
                esek.Delete();
            }
        }