Beispiel #1
0
        /// <summary>
        /// 품목번호를 선택해서 갖고옴
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        ///
        private void itemBtn_Click(object sender, EventArgs e)
        {
            Frm_ItemSelect item = new Frm_ItemSelect();

            if (item.ShowDialog() == DialogResult.OK)
            {
                itemCode.Text = item.SelectItem.Item_code;
            }
        }
Beispiel #2
0
        private void btnPartSearch_Click(object sender, EventArgs e)
        {
            Frm_ItemSelect fis = new Frm_ItemSelect();

            if (fis.ShowDialog() == DialogResult.OK)
            {
                txtPartCode.Text = fis.SelectItem.Item_code;
            }
        }
        /// <summary>
        /// 주문품목을 추가하는 버튼이벤트
        /// </summary>
        private void btn_ItemAdd_Click(object sender, EventArgs e)
        {
            Frm_ItemSelect frm = new Frm_ItemSelect();

            if (frm.ShowDialog() != DialogResult.Cancel)
            {
                VO.Item item = frm.SelectItem;
                SetGridView(item);
            }
        }
Beispiel #4
0
        /// <summary>
        /// 기본값 (담당자,거래처,창고)를 입력하는 버튼이벤트
        /// </summary>
        private void btn_Text_Click(object sender, EventArgs e)
        {
            Form frm;

            if (((Button)sender).Name.Contains("Item"))
            {
                frm = new Frm_ItemSelect();
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    this.txt_ItemCode.Text = ((Frm_ItemSelect)frm).SelectItem.Item_code;
                    this.txt_ItemName.Text = ((Frm_ItemSelect)frm).SelectItem.Item_name;
                }
            }
            else if (((Button)sender).Name.Contains("Warehouse"))
            {
                frm = new Frm_WarehouseSelect();
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    this.txt_WareCode.Text = ((Frm_WarehouseSelect)frm).Warehouse.Warehouse_code;
                    this.txt_WareName.Text = ((Frm_WarehouseSelect)frm).Warehouse.Warehouse_name;
                }
            }
        }
        private void btn_ItemSelect_Click(object sender, EventArgs e)
        {
            Frm_ItemSelect itemSelect = new Frm_ItemSelect();

            itemSelect.Show();
        }