Ejemplo n.º 1
0
        /// <summary>
        /// 初始化UI提示信息显示
        /// </summary>
        private void InitUITipsInfo()
        {
            switch (ThisEntryType)
            {
            case UIModels.EntryType.ZDSJGJ:
                ThisFromTitle    = "购进";
                _control         = new EntryModel.ZDSJGJ((GouJinInfo)ModelData);
                btnPrint.Visible = true;
                break;

            case UIModels.EntryType.YS:
                ThisFromTitle = "验收";
                _control      = new EntryModel.YS((YanShouInfo)ModelData);
                break;

            case UIModels.EntryType.CC:
                ThisFromTitle = "存储";
                _control      = new EntryModel.CC((CunChuInfo)ModelData);
                break;

            case UIModels.EntryType.XS:
                ThisFromTitle = "销售";
                _control      = new EntryModel.XS((XiaoShouInfo)ModelData);
                break;

            case UIModels.EntryType.CK:
                ThisFromTitle = "出库";
                _control      = new EntryModel.CK((ChuKuInfo)ModelData);
                break;

            case UIModels.EntryType.SH:
                _control      = new EntryModel.SH((ShouHouInfo)ModelData);
                ThisFromTitle = "退换货";
                break;

            case UIModels.EntryType.BHGPJL:
                _control      = new EntryModel.BHGPJL((BuHeGePinJiLuInfo)ModelData);
                ThisFromTitle = "不合格品记录";
                break;

            case UIModels.EntryType.BLSJ:
                _control      = new EntryModel.BLSJ((BuLiangShiJianInfo)ModelData);
                ThisFromTitle = "不良事件";
                break;

            case UIModels.EntryType.ZLGZ:
                ThisFromTitle = "质量跟踪";
                _control      = new EntryModel.ZLGZ((ProcessLoggingInfo)ModelData);
                break;

            default:
                ThisFromTitle = "诊断试剂购进";
                break;
            }
            _control.SetEntryType(ThisEntryType);
            groupBox1.Controls.Add(_control);
            _control.Dock = DockStyle.Fill;


            if (ModelData != null)
            {
                this.Text = string.Format("{0}{1} 信息编辑", thisdeviceinfo.DeviceType, ThisFromTitle);
            }
            else
            {
                //窗体标题
                this.Text = string.Format("{0}{1}", thisdeviceinfo.DeviceType, ThisFromTitle);
            }

            if (_control != null)
            {
                groupBox1.Controls.Add(_control);
                _control.Dock = DockStyle.Fill;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 初始化UI提示信息显示
        /// </summary>
        private void InitUITipsInfo()
        {
            switch (ThisEntryType)
            {
                case UIModels.EntryType.ZDSJGJ:
                    ThisFromTitle = "购进";
                    _control = new EntryModel.ZDSJGJ((GouJinInfo)ModelData);
                    btnPrint.Visible = true;
                    break;
                case UIModels.EntryType.YS:
                    ThisFromTitle = "验收";
                    _control = new EntryModel.YS((YanShouInfo)ModelData);
                    break;
                case UIModels.EntryType.CC:
                    ThisFromTitle = "存储";
                    _control = new EntryModel.CC((CunChuInfo)ModelData);
                    break;
                case UIModels.EntryType.XS:
                        ThisFromTitle = "销售";
                        _control = new EntryModel.XS((XiaoShouInfo)ModelData);
                    break;
                case UIModels.EntryType.CK:
                    ThisFromTitle = "出库";
                    _control = new EntryModel.CK((ChuKuInfo)ModelData);
                    break;
                case UIModels.EntryType.SH:
                    _control = new EntryModel.SH((ShouHouInfo)ModelData);
                    ThisFromTitle = "退换货";
                    break;
                case UIModels.EntryType.BHGPJL:
                    _control = new EntryModel.BHGPJL((BuHeGePinJiLuInfo)ModelData);
                    ThisFromTitle = "不合格品记录";
                    break;
                case UIModels.EntryType.BLSJ:
                    _control = new EntryModel.BLSJ((BuLiangShiJianInfo)ModelData);
                    ThisFromTitle = "不良事件";
                    break;
                case UIModels.EntryType.ZLGZ:
                    ThisFromTitle = "质量跟踪";
                    _control = new EntryModel.ZLGZ((ProcessLoggingInfo)ModelData);
                    break;
                default:
                    ThisFromTitle = "诊断试剂购进";
                    break;
            }
            _control.SetEntryType(ThisEntryType);
            groupBox1.Controls.Add(_control);
            _control.Dock = DockStyle.Fill;

            if (ModelData != null)
            {
                this.Text = string.Format("{0}{1} 信息编辑", thisdeviceinfo.DeviceType, ThisFromTitle);
            }
            else
            {
                //窗体标题
                this.Text = string.Format("{0}{1}", thisdeviceinfo.DeviceType, ThisFromTitle);
            }

            if (_control != null)
            {
                groupBox1.Controls.Add(_control);
                _control.Dock = DockStyle.Fill;
            }
        }