Beispiel #1
0
        private void ProjectsPeggingForm_Load(object sender, EventArgs e)
        {
            _Projects m_Projects = this.CurrentBusiness.Current as _Projects;

            if (m_Projects != null)
            {
                foreach (_Engineering m_Engineering in m_Projects.StrustObject.ObjectList.Values)
                {
                    foreach (_UnitProject m_UnitProject in m_Engineering.StrustObject.ObjectList.Values)
                    {
                        this.FileFBFX(m_UnitProject);
                        this.FileCSXM(m_UnitProject);
                    }
                }
                this.bindingSourceFBFX.DataSource = this.fbfx;
                this.bindingSourceCSXM.DataSource = this.csxm;
                this.gridViewCSXM.ExpandAllGroups();
                this.gridViewFBFX.ExpandAllGroups();
            }
        }
Beispiel #2
0
        private void gridView1_SetRowColorChange(object p_RowObject, _SchemeColor p_SchemeColor, DevExpress.Utils.AppearanceObject appearance)
        {
            _ObjectQuantityUnitInfo info = (p_RowObject as _ObjectQuantityUnitInfo);

            if (info.YSBH == info.BH && info.YSDW == info.DW && info.YSMC == info.MC && info.SCDJ != info.DEDJ)
            {
                //获取特殊样式绑定颜色
                _SpecialStyleInfo style = p_SchemeColor.SpecialStyle.Get("市场单价修改");
                if (style != null)
                {
                    appearance.Font = new Font(appearance.Font.FontFamily, appearance.Font.Size, style.Font);
                    //字体颜色
                    appearance.ForeColor = style.ForeColor.IsEmpty ? appearance.ForeColor : style.ForeColor;
                    //背景颜色
                    appearance.BackColor = style.BColor.IsEmpty ? appearance.BackColor : style.BColor;

                    appearance.BackColor2 = style.BColor2.IsEmpty ? appearance.BackColor2 : style.BColor2;
                }
            }
        }