예제 #1
0
 /// <summary>
 /// 汇总信息设置
 /// </summary>
 void DataSourceTotalInfoSet()
 {
     lblFabCount.Text  = "匹数:" + SysConvert.ToString(UCDataSource.Compute("COUNT(SubSeq)", "(ISNULL(Qty,0)<>0 OR ISNULL(Weight,0)<>0 OR ISNULL(Yard,0)<>0)")); //UCDataSource.Rows.Count.ToString();
     lblFabQty.Text    = "米数:" + SysConvert.ToString(UCDataSource.Compute("SUM(Qty)", ""));
     lblFabWeight.Text = "公斤数:" + SysConvert.ToString(UCDataSource.Compute("SUM(Weight)", ""));
     lblFabYard.Text   = "码数:" + SysConvert.ToString(UCDataSource.Compute("SUM(Yard)", ""));
 }
예제 #2
0
        void BindGrid()
        {
            gridView1.GridControl.DataSource = ConvertDataSource(UCDataSource);
            gridView1.GridControl.Show();

            lblFabCount.Text  = UCDataSource.Rows.Count.ToString();
            lblFabQty.Text    = SysConvert.ToString(UCDataSource.Compute("SUM(Qty)", ""));
            lblFabWeight.Text = SysConvert.ToString(UCDataSource.Compute("SUM(Weight)", ""));
            lblFabYard.Text   = SysConvert.ToString(UCDataSource.Compute("SUM(Yard)", ""));
        }
예제 #3
0
        void BindGrid()
        {
            gridView1.GridControl.DataSource = ConvertDataSource(UCDataSource);
            gridView1.GridControl.Show();
            DataSourceTotalCalcAll();//计算小计

            lblFabCount.Text  = "匹数:" + UCDataSource.Rows.Count.ToString();
            lblFabQty.Text    = "米数:" + SysConvert.ToString(UCDataSource.Compute("SUM(Qty)", ""));
            lblFabWeight.Text = "重量:" + SysConvert.ToString(UCDataSource.Compute("SUM(Weight)", ""));
            lblFabYard.Text   = "码数:" + SysConvert.ToString(UCDataSource.Compute("SUM(Yard)", ""));
        }