Пример #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;
            }
        }
Пример #2
0
 private void txtUser_DoubleClick(object sender, EventArgs e)
 {
     if (dataType == DataType.Insert || dataType == DataType.Update)
     {
         StaffForm staffForm = new StaffForm();
         staffForm.ShowDialog();
         if (!staffForm.staffName.Equals(string.Empty))
         {
             txtUser.Text = staffForm.staffName;
         }
     }
 }
Пример #3
0
 //双击选择回访人
 private void txtStaff_name_DoubleClick(object sender, EventArgs e)
 {
     //判断当前页面的状态
     if (dataType == DataType.Insert || dataType == DataType.Update)
     {
         StaffForm child = new StaffForm();
         child.ShowDialog();
         //获取员工信息
         if (!child.staffName.Equals(string.Empty))
         {
             txtStaff_name.Text = child.staffName;
         }
     }
 }
Пример #4
0
        /// <summary>
        /// 添加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        ///    完成信息:李梓楠      2010/7/15 完成
        ///    更新信息:
        /// </history>

        private void btnInsert_Click(object sender, EventArgs e)
        {
            dataType = DataType.Insert;
            setButtonState();
            if (dataType == DataType.Insert || dataType == DataType.Update)
            {
                StaffForm child = new StaffForm();
                child.ShowDialog();
                if (child.staffName != string.Empty)
                {
                    txtStaff_name.Text = child.staffName;
                    staffCode          = child.staffCode;
                }
            }
        }
Пример #5
0
 //***********************************************************************
 /// <summary>
 /// 经办人TEXTBOX双击,选择经办人
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// <history>
 ///    完成信息:李梓楠      2010/7/26 完成
 ///    更新信息:
 /// </history>
 //***********************************************************************
 private void txtApparatus_qualityt_issued_DoubleClick(object sender, EventArgs e)
 {
     if (dataType == DataType.Insert || dataType == DataType.Update)
     {
         StaffForm child = new StaffForm();
         child.ShowDialog();
         if (child.staffName != string.Empty)
         {
             txtApparatus_qualityt_issued.Text = child.staffName;
         }
     }
     else
     {
         return;
     }
 }
Пример #6
0
 //***********************************************************************
 /// <summary>
 /// 养护员TEXTBOX双击,选择养护员
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// <history>
 ///    完成信息:李梓楠      2010/7/22 完成
 ///    更新信息:
 /// </history>
 //***********************************************************************
 private void txtMaintain_detail_oper_DoubleClick(object sender, EventArgs e)
 {
     if (dataType == DataType.Insert || dataType == DataType.Update)
     {
         StaffForm child = new StaffForm();
         child.ShowDialog();
         if (child.staffName != string.Empty)
         {
             txtMaintain_detail_oper.Text = child.staffName;
         }
     }
     else
     {
         return;
     }
 }
Пример #7
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;
            }
        }
Пример #8
0
        //*******************************************************************
        /// <summary>
        /// 双击文本框弹出不同的选择窗体
        /// </summary>
        /// <history>
        ///     完成信息:吴小科      2010/07/13 完成
        ///     更新信息:
        /// </history>
        //*******************************************************************

        private void textBox_DoubleClick(object sender, EventArgs e)
        {
            switch (((TextBox)sender).Name)
            {   //双击文本框弹出弹出产品信息窗体
            case "textBox_goods_name":
            {   //判断当前页面的状态
                if (dataType == DataType.Insert)
                {
                    goodsInformation goodInfo = new goodsInformation();
                    goodInfo.ShowDialog();
                    //获取产品信息
                    if (!goodInfo.goodsCode.Equals(string.Empty))
                    {
                        goods_code = goodInfo.goodsCode;
                        textBox_goods_name.Text = goodInfo.goodsName;
                    }
                }
                break;
            }

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

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

            //双击文本框弹出弹出供货商信息窗体
            case "textBox_supplier_name":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert || dataType == DataType.Update)
                {
                    supplierManageDialogForm child = new supplierManageDialogForm();
                    child.ShowDialog();
                    //获取供货商信息
                    if (!child.supplierName.Equals(string.Empty))
                    {
                        textBox_supplier_name.Text = child.supplierName;
                    }
                }
                break;
            }

            //双击文本框弹出弹出货柜信息窗体
            case "textBox_counter_name":
            {
                //判断当前页面的状态
                if (dataType == DataType.Insert || dataType == DataType.Update)
                {
                    counterForm counter = new counterForm();
                    counter.ShowDialog();
                    //获取货柜信息
                    if (!counter.counterCode.Equals(string.Empty))
                    {
                        textBox_counter_name.Text = counter.counterCode;
                    }
                }
                break;
            }

            default:
                break;
            }
        }
Пример #9
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;
            }
        }