/// <summary>
        /// 기본값 (담당자,거래처,창고)를 입력하는 버튼이벤트
        /// </summary>
        private void btn_Text_Click(object sender, EventArgs e)
        {
            Form frm;

            if (((Button)sender).Name.Contains("Clerk"))
            {
                frm = new Frm_ClerkSelect();
                if (frm.ShowDialog() != DialogResult.Cancel)
                {
                    this.txt_ClerkCode.Text = ((Frm_ClerkSelect)frm).Clerk.Clerk_code;
                    this.txt_ClerkName.Text = ((Frm_ClerkSelect)frm).Clerk.Clerk_name;
                }
            }
            else if (((Button)sender).Name.Contains("Business"))
            {
                frm = new Frm_BusinessSelect();
                if (frm.ShowDialog() != DialogResult.Cancel)
                {
                    this.txt_BusinessCode.Text = ((Frm_BusinessSelect)frm).Business.Code;
                    this.txt_BusinessName.Text = ((Frm_BusinessSelect)frm).Business.Name;
                }
            }
            else if (((Button)sender).Name.Contains("Warehouse"))
            {
                frm = new Frm_WarehouseSelect();
                if (frm.ShowDialog() != DialogResult.Cancel)
                {
                    this.txt_WareCode.Text = ((Frm_WarehouseSelect)frm).Warehouse.Warehouse_code;
                    this.txt_WareName.Text = ((Frm_WarehouseSelect)frm).Warehouse.Warehouse_name;
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 도착 창고를 갖고옴
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void awButton_Click(object sender, EventArgs e)
        {
            Frm_WarehouseSelect warehouse = new Frm_WarehouseSelect();

            if (warehouse.ShowDialog() == DialogResult.OK)
            {
                afterWarehouse.Text = warehouse.Warehouse.Warehouse_code;
            }
        }
Esempio n. 3
0
        private void warehouseBtn_Click(object sender, EventArgs e)
        {
            Frm_WarehouseSelect warehouse = new Frm_WarehouseSelect();

            if (warehouse.ShowDialog() == DialogResult.OK)
            {
                warehouseCode.Text = warehouse.Warehouse.Warehouse_code;
                warehouseName      = warehouse.Warehouse.Warehouse_name;
            }
        }
Esempio n. 4
0
        private void btnSearchWarehouse_Click(object sender, EventArgs e)
        {
            Frm_WarehouseSelect fws = new Frm_WarehouseSelect();

            if (fws.ShowDialog() == DialogResult.OK)
            {
                txtCode.Text = fws.Warehouse.Warehouse_code;
                txtName.Text = fws.Warehouse.Warehouse_name;
                if (fws.Warehouse.Warehouse_standard == "창고")
                {
                    rdoWarehouse.Checked = true;
                    rdoFactory.Checked   = false;
                }
                else
                {
                    rdoWarehouse.Checked = false;
                    rdoFactory.Checked   = true;
                }
            }
        }
Esempio n. 5
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;
                }
            }
        }