Esempio n. 1
0
        public UcThuChiList()
        {
            InitializeComponent();
            InitAuthorize();
            ReloadData();
            ObserverControl.Regist(this.Name, "DefaultForm", Define.ActionTypeEnum.Close, RefreshData);

            FormBehavior.GenerateFormatRuleByValue(gridViewThuChi, colLoai, "Chi", FormatCondition.Equal, Color.Wheat, Color.Red);
            FormBehavior.GenerateFormatRuleByValue(gridViewThuChi, colLoai, "Thu", FormatCondition.Equal, Color.Honeydew, Color.Green);
        }
Esempio n. 2
0
        public UcThongKe()
        {
            InitializeComponent();

            var currentDate = TimeHelper.CurentDateTime();

            EndDate.Value   = currentDate;
            StartDate.Value = currentDate.AddYears(-1);

            FormBehavior.GenerateFormatRuleByValue(gridViewHangHoa, colLoiNhuan, 0, FormatCondition.LessOrEqual, Color.Wheat, Color.Red);
            FormBehavior.GenerateFormatRuleByValue(gridViewHangHoa, colLoiNhuan, 0, FormatCondition.Greater, Color.Honeydew, Color.Green);
        }