Esempio n. 1
0
        //*******************************************************************
        /// <summary>
        /// 双击文本框弹出不同的选择窗体
        /// </summary>
        /// <history>
        ///     完成信息:代国明      2010/07/25 完成
        ///     更新信息:
        /// </history>
        //*******************************************************************
        private void textBox_DoubleClick(object sender, EventArgs e)
        {
            switch (((TextBox)sender).Name)
            {
            //双击文本框弹出弹出产品信息窗体
            case "txt_input_code":
            {           //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    storageGoodsDialogForm sgd = new storageGoodsDialogForm("报损数量:");
                    sgd.ShowDialog();
                    if (sgd.inputCode != string.Empty)
                    {
                        txt_goods_name.Text  = sgd.goodName;
                        nud_lose_count.Value = sgd.outputStorage1;
                        txt_input_code.Text  = sgd.inputCode;
                        tempStorageEntity    = sgd.tempStorageEntity;
                        instorageDate        = sgd.instorageDate;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_lose_applier":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_lose_applier.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_lose_checker":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_lose_checker.Text = child.staffName;
                    }
                }
                break;
            }

            default:
                break;
            }
        }
Esempio n. 2
0
        //***********************************************************************
        /// <summary>
        /// 双击text事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        ///    完成信息:代国明      2010/07/22 完成
        ///    更新信息:
        /// </history>
        //***********************************************************************
        private void textBox_DoubleClick(object sender, EventArgs e)
        {
            switch (((TextBox)sender).Name)
            {
            //双击文本框弹出弹出产品信息窗体
            case "txt_goods_name":
            {           //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    storageGoodsDialogForm sgd = new storageGoodsDialogForm("退货数量:");
                    sgd.ShowDialog();

                    if (sgd.goodName != string.Empty)
                    {
                        //产品名称
                        txt_goods_name.Text = sgd.goodName;

                        //退货数量
                        nud_output_count.Value = sgd.outputStorage1;

                        //入库编号
                        inputCode = sgd.inputCode;

                        //供货商名称
                        txt_supplier_name.Text = sgd.supplierName;

                        //库存数量临时表
                        tempStorageEntity = sgd.tempStorageEntity;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_check_persion":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_check_persion.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_oper":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_oper.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_issued":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_issued.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_quality_persion":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_quality_persion.Text = child.staffName;
                    }
                }
                break;
            }

            default:
                break;
            }
        }
Esempio n. 3
0
        //*******************************************************************
        /// <summary>
        /// 双击文本框弹出不同的选择窗体
        /// </summary>
        /// <history>
        ///     完成信息:代国明      2010/07/20 完成
        ///     更新信息:
        /// </history>
        //*******************************************************************
        private void textBox_DoubleClick(object sender, EventArgs e)
        {
            switch (((TextBox)sender).Name)
            {
            //双击文本框弹出弹出产品信息窗体
            case "txt_goods_name":
            {           //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    storageGoodsDialogForm sgd = new storageGoodsDialogForm("销售数量:");
                    sgd.ShowDialog();
                    if (sgd.goodName != string.Empty)
                    {
                        txt_goods_name.Text    = sgd.goodName;
                        nud_output_count.Value = sgd.outputStorage1;
                        inputCode         = sgd.inputCode;
                        tempStorageEntity = sgd.tempStorageEntity;
                        makeTime          = sgd.makeTime;
                        instorageDate     = sgd.instorageDate;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_check_persion":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_check_persion.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_oper":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_oper.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_issued":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_issued.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出员工信息窗体
            case "txt_output_quality_persion":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    StaffForm child = new StaffForm();
                    child.ShowDialog();
                    if (child.staffName != string.Empty)
                    {
                        txt_output_quality_persion.Text = child.staffName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出客户信息窗体
            case "txt_output_customer_name":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    if (LoginUser.CompanyType == "0")
                    {
                        customerDialogForm customerForm = new customerDialogForm();
                        customerForm.ShowDialog();
                        if (customerForm.customerName != string.Empty)
                        {
                            txt_output_customer_name.Text = customerForm.customerName;
                            customerCode = customerForm.customerCode;
                        }
                    }
                    else
                    {
                        persionalDialogForm persionalForm = new persionalDialogForm();
                        persionalForm.ShowDialog();
                        if (persionalForm.customerName != string.Empty)
                        {
                            txt_output_customer_name.Text = persionalForm.customerName;
                            customerCode = persionalForm.customerCode;
                        }
                    }
                }
                break;
            }

            default:
                break;
            }
        }