private void button6_Click(object sender, EventArgs e) { this.Hide(); frmComSelect frm = new frmComSelect(1); frm.ShowDialog(); if (frm._pFileName != string.Empty) { // 選択領域のファイル名を取得します string _exfileName = frm._pFileName; string _exSheetNum = frm._pSheetNum; int _yakushokuType = frm._pYakushokuType; string _grpID = frm._pID; frm.Dispose(); // 月給者月間勤務時間設定 Config.frmGekkyuKinmu frmg = new frmGekkyuKinmu(_grpID); frmg.ShowDialog(); } else { frm.Dispose(); } this.Show(); }
private void button3_Click(object sender, EventArgs e) { this.Hide(); frmComSelect frm = new frmComSelect(1); frm.ShowDialog(); if (frm._pFileName != string.Empty) { // 選択領域のファイル名を取得します string _grpID = frm._pID; string _exfileName = frm._pFileName; string _exSheetNum = frm._pSheetNum; int _yakushokuType = frm._pYakushokuType; frm.Dispose(); // 出勤簿データ作成画面 OCR.frmCorrect frmg = new frmCorrect(_exfileName, _exSheetNum, _yakushokuType, _grpID, string.Empty); frmg.ShowDialog(); } else { frm.Dispose(); } this.Show(); }
private void button1_Click(object sender, EventArgs e) { // プレ印刷 this.Hide(); frmComSelect frm = new frmComSelect(0); frm.ShowDialog(); if (frm._pFileName != string.Empty) { // 選択領域のファイル名を取得します string _grpID = frm._pID; string _grpName = frm._PName; string _exfileName = frm._pFileName; string _exSheetNum = frm._pSheetNum; int _yakushokuType = frm._pYakushokuType; frm.Dispose(); // 全てCSVファイルで管理 2017/05/17 int pMode = global.CSV_MODE; //int pMode = 0; //if (_grpID == "") //{ // // CSVモード // pMode = global.CSV_MODE; //} //else //{ // // エクセルシートモード // pMode = global.XLS_MODE; //} // 出勤簿プレ印刷 prePrint.prePrint frmP = new prePrint.prePrint(_exfileName, _exSheetNum, _yakushokuType, _grpID, _grpName, pMode); frmP.ShowDialog(); } else { frm.Dispose(); } this.Show(); }
private void button9_Click_1(object sender, EventArgs e) { if (MessageBox.Show("常陽コンピュータサービス向けエクセル給与シート出力を行いますか?", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } this.Hide(); frmComSelect frm = new frmComSelect(1); frm.ShowDialog(); if (frm._pFileName != string.Empty) { // 選択領域のファイル名を取得します string _grpID = frm._pID; string _gName = frm._PName; string _exfileName = frm._pFileName; string _exSheetNum = frm._pSheetNum; int _yakushokuType = frm._pYakushokuType; frm.Dispose(); // 常陽コンピュータサービス向けエクセル給与シート出力 string sPath = Properties.Settings.Default.instPath + _grpID.PadLeft(3, '0') + " " + _gName + @"\"; // 出勤簿集計CSVデータパス if (System.IO.File.Exists(sPath + Properties.Settings.Default.outCsvName)) { setExcelData(sPath); MessageBox.Show("常陽コンピュータサービス向けエクセル給与シート出力が終了しました", "確認", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("出勤簿集計CSVデータが存在しません", "確認", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } else { frm.Dispose(); } this.Show(); }