Exemplo n.º 1
0
        private void frmCorrect_Load(object sender, EventArgs e)
        {
            this.pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height);

            // フォーム最大値
            Utility.WindowsMaxSize(this, this.Width, this.Height);

            // フォーム最小値
            Utility.WindowsMinSize(this, this.Width, this.Height);

            //元号を取得
            //label1.Text = Properties.Settings.Default.gengou;

            // キャプション
            this.Text = "勤務表データ表示";

            // グリッドビュー定義
            GridviewSet gs = new GridviewSet();

            gs.Setting_Shain(dGV);

            //// 参照テーブルデータセット読込み
            //adp.Fill(dts.過去勤務票ヘッダ);
            //mAdp.Fill(dts.過去勤務票明細);

            // 編集作業、過去データ表示の判断
            // 渡されたヘッダIDの過去データを表示します
            showPastData(dID, _sYY, _sMM, _sID);

            // tagを初期化
            this.Tag = string.Empty;
        }
Exemplo n.º 2
0
        private void frmCorrect_Load(object sender, EventArgs e)
        {
            this.pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height);

            // フォーム最大値
            Utility.WindowsMaxSize(this, this.Width, this.Height);

            // フォーム最小値
            Utility.WindowsMinSize(this, this.Width, this.Height);

            // キャプション
            this.Text = "過去勤務報告書データ表示";

            // 参照テーブルデータセット読込み
            adp.Fill(dts.過去勤務票ヘッダ);
            mAdp.Fill(dts.過去勤務票明細);
            sAdp.Fill(dts.社員所属);
            yAdp.Fill(dts.休日);

            //kAdp.Fill(dts.勤怠記号);
            //eAdp.Fill(dts.出勤形態);
            //nAdp.Fill(dts.出勤日数);

            // グリッドビュー定義
            GridviewSet gs = new GridviewSet();

            gs.Setting_Shain(dGV);

            // 編集作業、過去データ表示の判断
            // 渡されたヘッダIDの過去データを表示します
            showPastData(dID, _sYY, _sMM);

            // tagを初期化
            this.Tag = string.Empty;
        }
Exemplo n.º 3
0
        private void frmCorrect_Load(object sender, EventArgs e)
        {
            this.pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height);

            // フォーム最大値
            Utility.WindowsMaxSize(this, this.Width, this.Height);

            // フォーム最小値
            Utility.WindowsMinSize(this, this.Width, this.Height);

            // 自分のコンピュータの登録名を取得
            // 登録されていないとき終了します
            string pcName = Utility.getPcDir();

            if (pcName == string.Empty)
            {
                MessageBox.Show("このコンピュータがOCR出力先として登録されていません。", "出力先未登録", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.Close();
            }

            // スキャンPCのコンピュータ別フォルダ内のOCRデータ存在チェック
            if (Directory.Exists(Properties.Settings.Default.pcPath + pcName + @"\"))
            {
                string[] ocrfiles = Directory.GetFiles(Properties.Settings.Default.pcPath + pcName + @"\", "*.csv");

                // スキャンPCのOCR画像、CSVデータをローカルのDATAフォルダへ移動します
                if (ocrfiles.Length > 0)
                {
                    foreach (string files in System.IO.Directory.GetFiles(Properties.Settings.Default.pcPath + pcName + @"\", "*"))
                    {
                        // パスを含まないファイル名を取得
                        string reFile = Path.GetFileName(files);

                        // ファイル移動
                        if (reFile != "Thumbs.db")
                        {
                            File.Move(files, Properties.Settings.Default.dataPath + @"\" + reFile);
                        }
                    }
                }
            }

            // データセットへデータを読み込みます
            getDataSet(dID);

            // キャプション
            //this.Text = "出勤簿データ表示";

            // グリッドビュー定義
            GridviewSet gs = new GridviewSet();

            gs.Setting_Shain(dGV);

            // レコードを表示
            showOcrData(dID);

            // tagを初期化
            this.Tag = string.Empty;
        }