Esempio n. 1
0
        //个人月销售明细
        private void monthSaleBtn_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;

            DataSet    ds = new DataSet();
            DatabaseOP db = new DatabaseOP();

            ds = db.viewMonthProfit(viewEmployeeID.Text.Trim(), int.Parse(dt.Month.ToString()), int.Parse(dt.Year.ToString()));
            dataGridViewProfit.DataSource = ds.Tables[0].DefaultView;
            profitLabel.Text = allOperate.showMonthProfit(viewEmployeeID.Text.Trim(), int.Parse(dt.Month.ToString()), int.Parse(dt.Year.ToString())).ToString();
        }
Esempio n. 2
0
        //公司总体销售情况
        private void viewSale_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;

            DataSet ds = new DataSet();

            ds = allOperate.viewMonthProfit(int.Parse(dt.Month.ToString()), int.Parse(dt.Year.ToString()));
            dataGridViewProfit.DataSource = ds.Tables[0].DefaultView;
            Object obj = new Object();

            obj = allOperate.profitMonthShow(int.Parse(dt.Month.ToString()), int.Parse(dt.Year.ToString()));
            profitLabel.Text = obj.ToString();
        }