Example #1
0
        public YReport()
        {
            InitializeComponent();
            SQLite = new SQLite();

            #region 예시 데이터 입력
            date = DateTime.Now;

            Thanks = 0;
            O10 = 0;
            Cell = 0;
            Archi = 0;
            Mission = 0;
            Rice = 0;
            Help = 0;
            Car = 0;
            Term = 0;

            sum = 0;

            #endregion
            NN.Location = new Point(750, 50);
            NN.Font = new Font("Microsoft Sans Serif", 13);
            name.Font = new Font("Microsoft Sans Serif", 15);

            NNbtn.Location = new Point(875, 50);
            NNbtn.Size = new Size(70, 26);
            NNbtn.Font = new Font("Microsoft Sans Serif", 12);
            NNbtn.Text = "검색";
            NNbtn.TextAlign = ContentAlignment.MiddleCenter;

            NNbtn.Click += NNbtn_Click;


            sum = Thanks + O10 + Cell + Archi + Mission + Rice + Help + Car + Term + Other + Interest;

            // Income DataGridView 설정
            setIncome();

            // 합계부분 두 DataGridView를 설정합니다.
            setTotal();

            inputData();

            Paint += YReport_Paint;            
        }
Example #2
0
        public SpendReport(DMode d, Button printerBtn)
        {
            mode = d;
            InitializeComponent();
            SQLite = new SQLite();

            Title.Location = new Point(380, 20);
            spend.ClearSelection();

            // 인쇄할 버튼 나중에 설정
            printBtn = printerBtn;

            pd = new PrintDocument();
            pgSettings = new PageSettings();

            Paint += SpendReport_Paint;
            pd.PrintPage += Pd_PrintPage;
            printBtn.Click += PrintBtn_Click;
        }
Example #3
0
        public SpendDetail(DMode d, Button btn)
        {
            mode = d;
            InitializeComponent();
            SQLite = new SQLite();
            #region 변수 초기화

            budgetPray = new Pray();
            budgetMissionWork = new MissionWork();
            budgetEdu = new Education();
            budgetPerson = new Person();
            budgetService = new Service();
            budgetManage = new Manage();
            budgetLoan = new Loan();

            curPray = new Pray();
            curMissionWork = new MissionWork();
            curEdu = new Education();
            curPerson = new Person();
            curService = new Service();
            curManage = new Manage();
            curLoan = new Loan();

            #endregion

            printBtn = btn;

            // 표 설정
            setView();

            Paint += SpendDetail_Paint;
        }
        /// <summary>
        /// 생성자
        /// </summary>
        public IncomeProgress(DMode drawMode, Button button2)
        {
            InitializeComponent();
            printDocument1.PrintPage += PrintDocument1_PrintPage;
            SQLite = new SQLite();

            mode = drawMode;

            Paint += IncomeProgress_Paint;
            
            date = DateTime.Now;
            
            title.Location = new Point(360, 10);
            titleInvalidate();

            if (mode == DMode.income || mode == DMode.Y_income)
            {
                AdditionalView.Visible = true;
                SumView.Visible = true;
                setAdditionalView();
                setSumView();
            }
            else if (mode == DMode.spend || mode == DMode.Y_spend)
            {
                AdditionalView.Visible = false;
                SumView.Visible = false;
            }

            setViews();
            button2.Click += Button2_Click;

            pgSettings = new PageSettings();

        }