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
  • 相关阅读:
    MFC绘图基础
    MFC绘图基础
    MFC坐标问题
    利用Graphziv帮助理解复杂的类层次关系
    priority_quenue
    1060. Are They Equal (25)
    1057. Stack (30)
    1056. Mice and Rice (25)
    1053. Path of Equal Weight (30)
    1051. Pop Sequence (25)
  • 原文地址:https://www.cnblogs.com/nianyuwen/p/2544675.html
Copyright © 2011-2022 走看看