Exemple #1
0
        //公司日销售明细
        private void allDaySaleBtn_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;
            DataSet  ds = new DataSet();

            ds = allOperate.viewProfit(int.Parse(dt.Day.ToString()), int.Parse(dt.Year.ToString()));
            dataGridViewProfit.DataSource = ds.Tables[0].DefaultView;
            Object obj = allOperate.profitShow(int.Parse(dt.Day.ToString()), int.Parse(dt.Year.ToString()));

            profitLabel.Text = obj.ToString();
        }
Exemple #2
0
        //个人日销售明细
        private void daySaleBtn_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;

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

            ds = db.viewProfit(viewEmployeeID.Text.Trim(), int.Parse(dt.Day.ToString()), int.Parse(dt.Year.ToString()));
            dataGridViewProfit.DataSource = ds.Tables[0].DefaultView;
            profitLabel.Text = allOperate.showDayProfit(viewEmployeeID.Text.Trim(), int.Parse(dt.Day.ToString()), int.Parse(dt.Year.ToString())).ToString();
        }