Ejemplo n.º 1
0
        private void getOrderStatistic()
        {
            Data orderStatistic = ShardDb.getOrderAmount(DateTime.Today);

            if (!orderStatistic.Success)
            {
                this.Close();
                return;
            }
            DataTable dt = orderStatistic.DataTable;

            labelOrderStatistic.Text = "今日订单金额:" + (dt.Rows[0].ItemArray[0].ToString().Length == 0 ? "0" : dt.Rows[0].ItemArray[0].ToString()) + " 实收金额:" + (dt.Rows[0].ItemArray[1].ToString().Length == 0 ? "0" : dt.Rows[0].ItemArray[1].ToString());
        }