Esempio n. 1
0
        private void Btn_select_materiel_Click(object sender, EventArgs e)
        {
            data_materiel.Rows.Clear();
            var materiels = MaterielManage.SelectMateriel();

            materiels.ForEach(materiel =>
            {
                data_materiel.Rows.Add(materiel.materielcode, materiel.materielname);
            });
        }
Esempio n. 2
0
        private void Btn_selectmateriel_Click(object sender, EventArgs e)
        {
            cbmateriels.Items.Clear();
            var materiels = MaterielManage.SelectMateriel();

            materiels.ForEach(materiel =>
            {
                cbmateriels.Items.Add(materiel.materielcode);
            });
            cbmateriels.SelectedItem = MaterielCode;
        }
Esempio n. 3
0
        private void Btn_select_materiel_Click(object sender, EventArgs e)
        {
            cbmateriels.Items.Clear();
            var materiels = MaterielManage.SelectMateriel();

            materiels.ForEach(materiel =>
            {
                cbmateriels.Items.Add(materiel.materielcode);
            });
            if (cbmateriels.Items.Count > 0)
            {
                cbmateriels.SelectedIndex = 0;
            }
        }
Esempio n. 4
0
        private void FrmSetMateriel_Load(object sender, EventArgs e)
        {
            var areas = AreaManage.SelectArea(WareCode);

            cbareacode.Items.Clear();
            areas.ForEach(area => cbareacode.Items.Add(area.areacode));
            cbareacode.SelectedItem = AreaCode;

            var materiels = MaterielManage.SelectMateriel();

            cbmaterielcode.Items.Clear();
            materiels.ForEach(materiel => cbmaterielcode.Items.Add(materiel.materielcode));
            if (cbmaterielcode.Items.Count > 0)
            {
                cbmaterielcode.SelectedIndex = 0;
            }
        }