zoukankan      html  css  js  c++  java
  • C1flexgrid格式化

      this.c1FlexGrid1.DataSource = BLL_Pos_InOutMoney.PosInOutMoneyQuery(computer, payKind, inoutType, oprtid, dptid, start, end).Tables[0];
                    c1FlexGrid1.Cols["收入"].Format = string.Format("C");
                    c1FlexGrid1.Cols["支出"].Format = string.Format("C");
    
                    C1AfterFilterSum();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "错误");
                }
                finally
                {
                    JC.Common.LogHelper.WriteLog(App.消费系统, WorkLevel.中, this.Text, "查询资金收支明细数据");
                }
            }
    
            private void C1AfterFilterSum()
            {
                C1FlexGridHelper.SetGridNum(c1FlexGrid1);
                c1FlexGrid1.Tree.Column = 1;
    
                c1FlexGrid1.Subtotal(AggregateEnum.Sum, 0, -1, 7, "总计:");
                c1FlexGrid1.Subtotal(AggregateEnum.Sum, 0, -1, 8, "");
    
                c1FlexGrid1.AutoSizeCols();
            }
            private void c1FlexGrid1_AfterFilter(object sender, EventArgs e)
            {
                C1AfterFilterSum();
            }
    
            private void btnOkCount_Click(object sender, EventArgs e)
            {
                if (!AppFunForPfOprt.PubCheckOprtNoFunRight(26041004, true, false))
                    return;
                try
                {
    
                    BLL_Pos_InOutMoney.SelectCondition condition = GetQueryCondition();
    
                    int itemIndex = this.cboCountType.SelectedIndex;
    
                    c1FlexGrid2.Subtotal(AggregateEnum.Clear);
                    c1FlexGrid2.DataSource = null;
                    c1FlexGrid2.Clear();
                    this.c1FlexGrid2.BeginUpdate();
    关注.NET开发技术,网站开发,应用系统开发http://www.hnhqwl.com
  • 相关阅读:
    Thomas Hobbes: Leviathan
    10 Easy Steps to a Complete Understanding of SQL
    day3心得
    py编码终极版
    day2 作业
    Python 中的比较:is 与 ==
    day2-心得
    day1--心得
    day1作业
    python--open用法
  • 原文地址:https://www.cnblogs.com/nianyuwen/p/2544675.html
Copyright © 2011-2022 走看看