private void RevenueStatus_Load(object sender, EventArgs e) { foreach (var item in new SalesDao().ProList()) //상품별 조회에 아이템 추가 { comboProduct.Items.Add(item.ProductName); } DateTime DateAdd; // dtpStart.Value = dtpComparison1.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); DateAdd = dtpEnd.Value = dtpComparison2.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)); DateAdd.AddDays(1); RevenueSearch(dtpStart.Value.ToShortDateString(), DateAdd.ToShortDateString()); chartRevenue.Series.Clear(); ChartView(revenueList, "날짜", 0); }
private void FrmRevenueStatusControl_Load(object sender, EventArgs e) { grdRevenue.Font = new Font("맑은고딕", 9); foreach (var item in new SalesDao().ProList()) //상품별 조회에 아이템 추가 { comboProduct.Items.Add(item.ProductName); } DateTime DateAdd; // dtpStart.Value = dtpComparison1.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); DateAdd = dtpEnd.Value = dtpComparison2.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)); DateAdd.AddDays(1); RevenueSearch(dtpStart.Value.ToShortDateString(), DateAdd.ToShortDateString()); chartRevenue.Series.Clear(); ChartView(revenueList, "날짜", 0); lbl1.Text = String.Format("{0:##,##0}", (Accumulated * 0.2)) + " 원"; label7.Text = String.Format("{0:##,##0}", (Accumulated)) + " 원"; }