示例#1
0
        private void Initialize()
        {
            try
            {
                SetYear();
                setProperty();
                //  SetSize();
                // AutoInsertTitleImage();

                this.titleImageControlWidth1.Clear();
                if (CurItem != null)
                { //如果是编辑绑定所有显示,点击下拉时变更为有效的供应商选择
                    skinComboBox_SupplierID.EnabledSupplier = false;
                }
                else
                {
                    skinComboBox_SupplierID.EnabledSupplier = true;
                }

                colorComboBox1.Initialize();
                SetParameterConfig();
                this.dataGridView.AutoGenerateColumns = false;

                ColorList = new List <ListItem <String> >();

                Display();
                if (!DataGridViewUtil.CheckPerMission(this, RolePermissionMenuEnum.商品档案, RolePermissionEnum.查看_备注))
                {
                    this.skinTextBox_Remarks.Visible = false;
                    this.skinLabel16.Visible         = false;
                }
                else
                {
                    this.skinTextBox_Remarks.Visible = true;
                    this.skinLabel16.Visible         = true;
                }
            }
            catch (Exception ex)
            {
                GlobalUtil.ShowError(ex);
            }
        }