Files
Groupware/SubProject/FPJ0000/JobReport/rJobReportDay.cs
chikyun.kim 93b2cdb3ae 업무일지 삭제 화면만 불러도 데이터가 삭제되는 현상 수정
사용자 목록이 실 데이터 입력자로 변경 함
업무일지  : 개인별/일자별 집계 추가
2019-05-09 10:15:40 +09:00

47 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FPJ0000.JobReport
{
public partial class rJobReportDay : Form
{
public rJobReportDay()
{
InitializeComponent();
this.WindowState = FormWindowState.Maximized;
}
private void rJobReport_Load(object sender, EventArgs e)
{
this.tbMon.Text = DateTime.Now.ToString("yyyy-MM");
refrehData();
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var f = new FCOMMON.fSelectMonth();
if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
this.tbMon.Text = string.Format("{0:0000}-{1:00}", DateTime.Now.Year, f.selectmon);
refrehData();
}
void refrehData()
{
this.ta.Fill(this.dsReport.JobReportDay, tbMon.Text);
this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
this.reportViewer1.RefreshReport();
}
private void button1_Click(object sender, EventArgs e)
{
refrehData();
}
}
}