Пример #1
0
        private void Btn_select_ware_Click(object sender, EventArgs e)
        {
            var wares = WareManage.SelectWare();

            data_ware.Rows.Clear();
            wares.ForEach(ware =>
            {
                data_ware.Rows.Add(ware.warecode, ware.warename, ware.enable, ware.rowcount, ware.columncount, ware.layercount);
            });
        }
Пример #2
0
        private void Btn_selectware_area_Click(object sender, EventArgs e)
        {
            var wares = WareManage.SelectWare();

            cbWares_area.Items.Clear();
            wares.ForEach(ware =>
            {
                cbWares_area.Items.Add(ware.warecode);
            });
            cbWares_area.SelectedIndex = 0;
        }
Пример #3
0
        private void Btn_selectwares_container_Click(object sender, EventArgs e)
        {
            cbwares_container.Items.Clear();
            var wares = WareManage.SelectWare();

            wares.ForEach(ware =>
            {
                cbwares_container.Items.Add(ware.warecode);
            });
            if (cbwares_container.Items.Count > 0)
            {
                cbwares_container.SelectedIndex = 0;
            }
        }
Пример #4
0
        private void Btn_selectwares_point_Click(object sender, EventArgs e)
        {
            cbwares_point.Items.Clear();
            var wares = WareManage.SelectWare();

            wares.ForEach(ware =>
            {
                cbwares_point.Items.Add(ware.warecode);
            });

            if (cbwares_point.Items.Count > 0)
            {
                cbwares_point.SelectedIndex = 0;
            }
            Btn_selectareas_point_Click(null, null);
        }