• 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
  • 相关阅读:
    .NET框架设计—常被忽视的C#设计技巧
    判断网络是否链接
    ADO.NET入门教程(五) 细说数据库连接池
    爬虫selenium中截图
    爬虫极滑块验证思路
    Linux 磁盘分区、挂载
    linux中crontab任务调度
    第30课 操作符重载的概念
    第29课 类中的函数重载
    第28课 友元的尴尬能力
  • 原文地址:https://www.cnblogs.com/nianyuwen/p/2544675.html
Copyright © 2020-2023  润新知