/// <summary>
        /// 枚举界面上的TextBox,每个TEXTBOX做的一个参数
        /// Add到数据库中,或 Update数据库 或 Delete
        /// </summary>
        /// <param name="control"></param>
        private void EnumControl(Control control)
        {
            foreach (Control con in control.Controls)
            {
                if (con.Controls.Count > 0)
                {
                    this.EnumControl(con);
                }

                TextBox tb = con as TextBox;

                if (tb != null)
                {
                    if (tb.ID != txtItemCodeQuery.ID && tb.ID != this.txtUnit.ID)
                    {
                        string paramname = tb.ID.Substring(3, tb.ID.Length - 3);
                        BenQGuru.eMES.Domain.MOModel.Item2Dimention dim = _facade.GetItem2Dimention(this.txtItemCodeQuery.Text,
                                                                                                    paramname, int.Parse(this.TextboxOrgID.Text)) as BenQGuru.eMES.Domain.MOModel.Item2Dimention;

                        if (tb.Text.Trim() != string.Empty)                        //如果不空,则 Add or Update
                        {
                            if (dim == null)
                            {
                                dim              = new BenQGuru.eMES.Domain.MOModel.Item2Dimention();
                                dim.ItemCode     = this.txtItemCodeQuery.Text;
                                dim.MaintainUser = this.GetUserCode();
                                dim.ParamName    = paramname;
                                dim.ParamValue   = decimal.Parse(tb.Text);

                                _facade.AddItem2Dimention(dim);
                            }
                            else
                            {
                                dim.ParamValue = decimal.Parse(tb.Text);
                                _facade.UpdateItem2Dimention(dim);
                            }
                        }
                        else                         //如果没输入,则检查用户是不已经存在,如果存在则删除
                        {
                            if (dim != null)
                            {
                                _facade.DeleteItem2Dimention(dim);
                            }
                        }
                    }
                }
            }
        }