public void CalcGekkanDaikyuNissuTest() { int res1 = manager1.CalcGekkanDaikyuNissu(); Assert.IsTrue(res1 == 1, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2018, 11); int res2 = manager3.CalcGekkanDaikyuNissu(); Assert.IsTrue(res2 == 1, "失敗2:res = " + res2); }
public void CalcGekkanKoukyuKakuteiNissuTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanKoukyuKakuteiNissu(); Assert.IsTrue(res1 == 4, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanKoukyuKakuteiNissu(); Assert.IsTrue(res2 == 5, "失敗2:res = " + res2); }
public void CalcGekkanTotalJitsuRoudoJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanTotalJitsuRoudoJikan(); Assert.IsTrue(res1 == 11390, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanTotalJitsuRoudoJikan(); Assert.IsTrue(res2 == 9820, "失敗2:res = " + res2); }
public void CalcGekkanRoudouNissuTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanRoudouNissu(); Assert.IsTrue(res1 == 20, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanRoudouNissu(); Assert.IsTrue(res2 == 20, "失敗2:res = " + res2); }
public void CalcGekkanMukyuNissuTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanMukyuNissu(); Assert.IsTrue(res1 == 3, "失敗1:res = " + res1); //DBに無給のデータがあればmanager2もテストできる //int res2 = manager2.CalcGekkanMukyuNissu(); //Assert.IsTrue(res2 != 0, "失敗2:res = " + res2); }
public void CalcGekkanGengakuAjikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanGengakuAjikan(); Assert.IsTrue(res1 == 0, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2016, 4); int res2 = manager3.CalcGekkanGengakuAjikan(); Assert.IsTrue(res2 == 9200, "失敗2:res = " + res2); }
public void CalcTounenRuikeiTyoukinJissekiJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcTounenRuikeiTyoukinJissekiJikan(); Assert.IsTrue(res1 == 1730, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2017, 6); int res2 = manager3.CalcTounenRuikeiTyoukinJissekiJikan(); Assert.IsTrue(res2 == 3550, "失敗2:res = " + res2); }
public void CalcGekkanTankaKoukyuDJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanTankaKoukyuDJikan(); Assert.IsTrue(res1 == 520, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9400346", 2013, 2); int res2 = manager3.CalcGekkanTankaKoukyuDJikan(); Assert.IsTrue(res2 == 970, "失敗2:res = " + res2); }
public void CaclGekkanPMHankyuTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CaclGekkanPMHankyu(); Assert.IsTrue(res1 == 3, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2018, 11); int res2 = manager3.CaclGekkanPMHankyu(); Assert.IsTrue(res2 == 1, "失敗2:res = " + res2); }
public void CalcTounenRuikeiHouteigaiJissekiJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcTounenRuikeiHouteigaiJissekiJikan(); Assert.IsTrue(res1 == 1105, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2017, 6); int res2 = manager3.CalcTounenRuikeiHouteigaiJissekiJikan(); Assert.IsTrue(res2 == 2465, "失敗2:res = " + res2); }
public void CalcGekkanYukyuJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanYukyuJikan(); Assert.IsTrue(res1 == 2060, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2016, 11); int res2 = manager3.CalcGekkanYukyuJikan(); Assert.IsTrue(res2 == 460, "失敗2:res = " + res2); }
public void CalcGekkanKokyuRoudouNissuTest1() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanKokyuRoudouNissu(); Assert.IsTrue(res1 == 2, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2017, 4); int res2 = manager3.CalcGekkanKokyuRoudouNissu(); Assert.IsTrue(res2 == 0, "失敗2:res = " + res2); }
public void CalcGekkanJikangaiRoudoJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanJikangaiRoudoJikan(); Assert.IsTrue(res1 == 1105, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9016617", 2014, 9); int res2 = manager3.CalcGekkanJikangaiRoudoJikan(); Assert.IsTrue(res2 == 3695, "失敗2:res = " + res2); }
public void CalcGekkanTankaEJikanTest() { //KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); //int res1 = manager1.CalcGekkanTankaEJikan(); //Assert.IsTrue(res1 == 650, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanTankaEJikan(); Assert.IsTrue(res2 == 0, "失敗2:res = " + res2); KinmuManager manager3 = new KinmuManager("9400346", 2013, 2); int res3 = manager3.CalcGekkanTankaEJikan(); Assert.IsTrue(res3 == 1190, "失敗3:res = " + res3); }
public void CalcGekkanMinashi1JikanTest() { int res1 = manager1.CalcGekkanMinashi1Jikan(); Assert.IsTrue(res1 == 0, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanMinashi1Jikan(); Assert.IsTrue(res2 == 460, "失敗2:res = " + res2); KinmuManager manager3 = new KinmuManager("7743391", 2016, 2); int res3 = manager3.CalcGekkanMinashi1Jikan(); Assert.IsTrue(res3 == 920, "失敗3:res = " + res3); }
public void CalcGekkanHouTeiRoudoJikanTest() { int res1 = manager1.CalcGekkanHouTeiRoudoJikan(); Assert.IsTrue(res1 == 10285, "失敗1:res = " + res1); int res2 = manager2.CalcGekkanHouTeiRoudoJikan(); Assert.IsTrue(res2 == 10628, "失敗2:res = " + res2); KinmuManager manager3 = new KinmuManager("9016617", 2014, 9); int res3 = manager3.CalcGekkanHouTeiRoudoJikan(); Assert.IsTrue(res3 == 10285, "失敗2:res = " + res2); }
public void CalcGekkanSyukujituRoudoJikanTest() { int res1 = manager1.CalcGekkanSyukujituRoudoJikan(); Assert.IsTrue(res1 == 0, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9016617", 2014, 9); int res2 = manager3.CalcGekkanSyukujituRoudoJikan(); Assert.IsTrue(res2 == 730, "失敗2:res = " + res2); KinmuManager manager4 = new KinmuManager("9012859", 2015, 9); int res3 = manager4.CalcGekkanSyukujituRoudoJikan(); Assert.IsTrue(res3 == 700, "失敗3:res = " + res3); }
public void CalcGekkanTankaTokkyuDJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanTankaTokkyuDJikan(); Assert.IsTrue(res1 == 1370, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9400346", 2013, 2); int res2 = manager3.CalcGekkanTankaTokkyuDJikan(); Assert.IsTrue(res2 == 590, "失敗2:res = " + res2); KinmuManager manager4 = new KinmuManager("9017812", 2017, 4); int res3 = manager4.CalcGekkanTankaTokkyuDJikan(); Assert.IsTrue(res3 == 50, "失敗3:res = " + res3); }
public void CalcGekkanKoujyoAJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanKoujyoAJikan(); Assert.IsTrue(res1 == 460, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2018, 11); int res2 = manager3.CalcGekkanKoujyoAJikan(); Assert.IsTrue(res2 == 460, "失敗2:res = " + res2); KinmuManager manager4 = new KinmuManager("1201519", 2017, 2); int res3 = manager4.CalcGekkanKoujyoAJikan(); Assert.IsTrue(res3 == 920, "失敗3:res = " + res3); }
public void SetSagyoNisshiParameterTest1() { List <KNS_D02> _d02s = new List <KNS_D02>(); KNS_D02 _d02 = new KNS_D02 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "1", PROJ_CD = "V00000000A", SAGYO_CD = "01", SAGYO_MIN = 460 }; _d02s.Add(_d02); bool res = KinmuManager.ExecuteUpdate(ref _d02s); Assert.IsTrue(res); }
public void CalcGekkanTankaCJikanTest() { KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); int res1 = manager1.CalcGekkanTankaCJikan(); Assert.IsTrue(res1 == 0, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9013373", 2014, 9); int res2 = manager3.CalcGekkanTankaCJikan(); Assert.IsTrue(res2 == 30, "失敗2:res = " + res2); KinmuManager manager4 = new KinmuManager("9017812", 2017, 4); int res3 = manager4.CalcGekkanTankaCJikan(); Assert.IsTrue(res3 == 270, "失敗3:res = " + res3); KinmuManager manager5 = new KinmuManager("9400346", 2013, 2); int res4 = manager5.CalcGekkanTankaCJikan(); Assert.IsTrue(res4 == 170, "失敗4:res = " + res4); }
private void CopyPlans() { logger.Debug(LOG_START); // コピー元の勤務データを取得 KNS_D13 origin = GetLocalKinmuYotei(viewShainInfo.SHAIN_CD, viewDateTime.Year, viewDateTime.Month, GetOriginDayFromRequest()); //コピー先の勤務データを取得 int[] destDays = GetCopytoDaysFromRequest(); List <KNS_D13> copytoList = new List <KNS_D13>(); foreach (int dest in destDays) { if (origin == null) { // コピー元にデータがない場合は削除用リストの作成を行う。 KNS_D13 copyto = GetLocalKinmuYotei(viewShainInfo.SHAIN_CD, viewDateTime.Year, viewDateTime.Month, dest); if (copyto != null) { copytoList.Add(copyto); } } else { KNS_D13 copytod13 = origin.Clone(); copytod13.DATA_D = dest.ToString(); copytod13.SHONIN_FLG = "0"; // 都度DBに更新処理をかけるが、業務ルールのcheckをかけたいのでExecuteUpdateを使っている。 KinmuManager.ExecuteUpdate(ref copytod13); } } // 予定の削除はここで一括してやる if (origin == null) { dbManager.DeleteKinmuYotei(copytoList); } SetInformationPanel(ref InformationPanel, ref InfoIcon, ref InfoText, "勤務予定のコピーが完了しました。", InformationLevel.Highlight); }
public void SetKinmuYoteiParameterTest1() { KNS_D13 _d13 = new KNS_D13 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "1", YOTEI_CD = "01", STR_Y_HR = "9", STR_Y_MIN = "20", END_Y_HR = "18", END_Y_MIN = "0", END_Y_PAR = "0", KAKN_FLG = "0", SHONIN_FLG = "0" }; bool res = KinmuManager.ExecuteUpdate(ref _d13); Assert.IsTrue(res); }
public void ValidationD01AndD02Test1() { KNS_D01 _d01 = new KNS_D01 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "1", NINYO_CD = "01", NINKA_CD = "10", STR_HR = "9", STR_MIN = "20", END_HR = "18", END_MIN = "0", END_PAR = "0", RESTS1_HR = "12", RESTS1_MIN = "00", RESTE1_HR = "13", RESTE1_MIN = "0", //RESTS2_HR = "24", //RESTS2_MIN = "30", //RESTE2_HR = "25", //RESTE2_MIN = "0" }; List <KNS_D02> _d02s = new List <KNS_D02>(); KNS_D02 _d02 = new KNS_D02 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "1", PROJ_CD = "V00303010A", SAGYO_CD = "01", SAGYO_MIN = 460 }; _d02s.Add(_d02); KinmuManager.ValidationD01AndD02(ref _d01, ref _d02s); }
public void CalcGekkanTankaBJikanTest() { //KinmuManager manager1 = new KinmuManager("9999999", 2018, 11); //int res1 = manager1.CalcGekkanTankaBJikan(); //Assert.IsTrue(res1 == 2850, "失敗1:res = " + res1); KinmuManager manager3 = new KinmuManager("9017812", 2017, 4); int res2 = manager3.CalcGekkanTankaBJikan(); Assert.IsTrue(res2 == 3500, "失敗2:res = " + res2); KinmuManager manager4 = new KinmuManager("9017812", 2016, 7); int res3 = manager4.CalcGekkanTankaBJikan(); Assert.IsTrue(res3 == 620, "失敗3:res = " + res3); KinmuManager manager5 = new KinmuManager("9400346", 2013, 2); int res4 = manager5.CalcGekkanTankaBJikan(); Assert.IsTrue(res4 == 4200, "失敗4:res = " + res4); KinmuManager manager6 = new KinmuManager("9016617", 2014, 9); int res5 = manager6.CalcGekkanTankaBJikan(); Assert.IsTrue(res5 == 4050, "失敗5:res = " + res5); }
protected void Page_Load(object sender, EventArgs e) { logger.Debug(LOG_START); // セッションデータの取得 KinmuSystem.SetSessionData(ref loginShainInfo, ref viewShainInfo, ref viewDateTime, Response, Request, Session); string companyName = "(株)エスケイケイ"; string dataErrorMessage = "データ読み込み時にエラーが発生しました。管理者に連絡してください。"; try { var kinmuManager = new KinmuManager(viewShainInfo.SHAIN_CD, viewDateTime.Year, viewDateTime.Month); var pdfManager = new PDFManager(kinmuManager); //データをバインドする YearLabel.Text = viewDateTime.ToString("yyyy"); MonthLabel.Text = viewDateTime.ToString("MM"); CompanyNameLabel.Text = companyName; NameLabel.Text = viewShainInfo.SHAIN_NM; Title = "作業日誌 " + viewShainInfo.SHAIN_NM + " " + viewDateTime.ToString("yyyy年MM月"); WorkDiaryGridView.DataSource = pdfManager.GetWorkDiaryList(); WorkDiaryGridView.DataBind(); //minuteをhourにする int totalWorkTime = kinmuManager.CalcGekkanTotalJitsuRoudoJikan(); TotalWorkTimeLabel.Text = MinutesToStringFormat(totalWorkTime, "{0}時間{1:00}分"); } catch (KinmuException ex) { WorkDiaryPanel.Visible = false; ErrorPanel.Visible = true; ErrorMessageLabel.Text = dataErrorMessage + "\nErrorMessage:" + ex.Message + "\nStackTrace:" + ex.StackTrace; } }
public void CalcSyukujituCTest1() { KNS_D01 _d01 = new KNS_D01 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "11", NINYO_CD = "01", NINKA_CD = "10", STR_HR = "9", STR_MIN = "20", END_HR = "18", END_MIN = "0", END_PAR = "0", RESTS1_HR = "12", RESTS1_MIN = "00", RESTE1_HR = "13", RESTE1_MIN = "0", }; int res = KinmuManager.CalcSyukujituC(ref _d01); Assert.IsTrue(res == 460, "失敗:res = " + res); }
public void SetKinmuJissekiParameterTest1() { KNS_D01 _d01 = new KNS_D01 { SHAIN_CD = "9999999", DATA_Y = "2019", DATA_M = "2", DATA_D = "1", NINYO_CD = "01", NINKA_CD = "10", STR_HR = "9", STR_MIN = "20", END_HR = "18", END_MIN = "0", END_PAR = "0", RESTS1_HR = "12", RESTS1_MIN = "00", RESTE1_HR = "13", RESTE1_MIN = "0", }; bool res = KinmuManager.ExecuteUpdate(ref _d01); Assert.IsTrue(res); }
/// <summary> /// フレックス確認テーブルの作成 /// </summary> private void CreateFlexTable() { try { logger.Debug(LOG_START); List <KNS_M01> shainMaster = dbManager.GetSyainMasterAll(); List <KinmuRecordRow> kinmuAll = dbManager.GetKinmuRecordRow(null, viewDateTime.Year, viewDateTime.Month); List <TableRow> tr = new List <TableRow>(); BtnCodeUpdate.Enabled = false; // 行を日付+ヘッダ2行分作成 for (int i = 0; i < calender.Count + 2; i++) { tr.Add(new TableRow()); } // 全社員分のデータを日付行に追加 foreach (var item in shainMaster) { // 社員名セル TableCell tableCell = new TableCell { ID = "tc" + item.SHAIN_CD, CssClass = "shainName" }; if (item.SHONIN_SHAIN_CD == loginShainInfo.SHAIN_CD) { // 承認社員=自分の場合、予定確認チェックボックスを追加 CheckBox cb = new CheckBox { ID = "cd" + item.SHAIN_CD, Text = item.SHAIN_NM, }; tableCell.Controls.Add(cb); BtnCodeUpdate.Enabled = true; } else { // それ以外は社員名を表示 tableCell.Text = item.SHAIN_NM; } tr[0].Cells.Add(tableCell); // 超勤時間セル List <KNS_D01> tmp_d01s = KinmuManager.CallB(kinmuAll.Where(_ => _.EmployeeCD == item.SHAIN_CD).ToList()); tr[1].Cells.Add(new TableCell() { Text = MinutesToStringFormat(KinmuManager.CalcFastGekkanTankaBJikan(tmp_d01s)), CssClass = "overKinmuTimeHeaderRow" }); // 勤務情報セル(日付分) for (int day = 1; day <= calender.Count; day++) { KinmuRecordRow kinmu = kinmuAll.Single(_ => _.EmployeeCD == item.SHAIN_CD && _.CalendarMaster.DATA_Y == viewDateTime.ToString("yyyy") && _.CalendarMaster.DATA_M == viewDateTime.ToString("MM") && _.CalendarMaster.DATA_D == day.ToString("00")); tr[day + 1].Cells.Add(CreateFlexDataTableCellFromKinmuRecordRow(kinmu)); } } // テーブルにバインド kinmuConfirmTableData.Rows.AddRange(tr.ToArray()); } catch (KinmuException) { throw; } catch (Exception ex) { throw new KinmuException(ex.Message, ex); } }
protected void Page_Load(object sender, EventArgs e) { try { logger.Debug(LOG_START); KinmuSystem.SetSessionData(ref loginShainInfo, ref viewShainInfo, ref viewDateTime, Response, Request, Session); int workTimeTotal = 0; List <KinmuGridViewWorkResultsRow> data = new List <KinmuGridViewWorkResultsRow>(); KinmuManager kinmuManager = new KinmuManager(viewShainInfo.SHAIN_CD, viewDateTime.Year, viewDateTime.Month); DateTimeStringLabel.Text = viewDateTime.ToString("yyyy年MM月"); CompanyNameLabel.Text = companyName; EmployeeCodeLabel.Text = viewShainInfo.SHAIN_CD; NameLabel.Text = viewShainInfo.SHAIN_NM; Title = "勤務実績整理簿 " + viewShainInfo.SHAIN_NM + " " + viewDateTime.ToString("yyyy年MM月"); //メインの表をバインド for (int i = 1; i <= DateTime.DaysInMonth(kinmuManager.Year, kinmuManager.Month); i++) { // 本当はKinmuRecordRowを取得しておきたかったが、処理の関係上こうなってる // なんか良い方法あったら教えてください KNS_D01 KinmuJisseki = kinmuManager.KinmuJisseki.SingleOrDefault(_ => _.DATA_D == i.ToString(PADDING_ZERO_2)) ?? new KNS_D01(); KNS_D13 KinmuYotei = kinmuManager.KinmuYotei.SingleOrDefault(_ => _.DATA_D == i.ToString(PADDING_ZERO_2)) ?? new KNS_D13(); KNS_M05 CalendarMaster = kinmuManager.CalendarMaster.SingleOrDefault(_ => _.DATA_D == i.ToString(PADDING_ZERO_2)) ?? new KNS_M05(); workTimeTotal += KinmuJisseki.DKINM ?? 0; data.Add( new KinmuGridViewWorkResultsRow( new KinmuRecordRow(kinmuManager.EmployeeCD, KinmuJisseki, KinmuYotei, new List <KNS_D02>(), CalendarMaster), workTimeTotal ) ); } WorkResultsGridView.DataSource = data; WorkResultsGridView.DataBind(); // 所定日数 A1Label.Text = kinmuManager.CalcGekkanSyoteiNissu().ToString(); // 出勤日数 A2Label.Text = kinmuManager.CalcGekkanSyukkinNissu().ToString(); // 休労日数 A3Label.Text = kinmuManager.CalcGekkanKyujitsuRoudouNissu().ToString(); // -日数 A4Label.Text = kinmuManager.CalcBarNissu().ToString(); // 代休日数 A5Label.Text = kinmuManager.CalcGekkanDaikyuNissu().ToString(); // 非番日数 A6Label.Text = kinmuManager.CalcGekkanHibanNissu().ToString(); // 有給日数 A7Label.Text = kinmuManager.CalcGekkanYukyuNissu().ToString(); // 無休日数 A8Label.Text = kinmuManager.CalcGekkanMukyuNissu().ToString(); // 組休日数 B1Label.Text = kinmuManager.CalcGekkanKumikyuNissu().ToString(); // 公休日労働回数 B2Label.Text = kinmuManager.CalcGekkanKokyuRoudouNissu().ToString(); // 所定労働日数 B3Label.Text = kinmuManager.CalcGekkanSyoteiRoudoNissu().ToString(); // 労働日数 B4Label.Text = kinmuManager.CalcGekkanRoudouNissu().ToString(); // 特休日数 予定 B5Label.Text = kinmuManager.CalcGekkanTokkyuYoteiNissu().ToString(); // 特休日数 確定 B6Label.Text = kinmuManager.CalcGekkanTokkyuKakuteiNissu().ToString(); // 公休日数 予定 B7Label.Text = kinmuManager.CalcGekkanKoukyuYoteiNissu().ToString(); // 公休日数 確定 B8Label.Text = kinmuManager.CalcGekkanKoukyuKakuteiNissu().ToString(); // 実総労働時間 int tmp = kinmuManager.CalcGekkanTotalJitsuRoudoJikan(); C1Label1.Text = MinutesToStringFormat(tmp); C1Label2.Text = tmp.ToString(); // みなし2 tmp = kinmuManager.CalcGekkanYukyuJikan(); C2Label1.Text = MinutesToStringFormat(tmp); C2Label2.Text = tmp.ToString(); // 超勤A tmp = kinmuManager.CalcGekkanTankaAJikan(); C3Label1.Text = MinutesToStringFormat(tmp); C3Label2.Text = tmp.ToString(); // 超勤B tmp = kinmuManager.CalcGekkanTankaBJikan(); C4Label1.Text = MinutesToStringFormat(tmp); C4Label2.Text = tmp.ToString(); // 超勤D(特休) tmp = kinmuManager.CalcGekkanTankaTokkyuDJikan(); C5Label1.Text = MinutesToStringFormat(tmp); C5Label2.Text = tmp.ToString(); // 超勤D(公休) tmp = kinmuManager.CalcGekkanTankaKoukyuDJikan(); C6Label1.Text = MinutesToStringFormat(tmp); C6Label2.Text = tmp.ToString(); // 夜勤C tmp = kinmuManager.CalcGekkanTankaCJikan(); C7Label1.Text = MinutesToStringFormat(tmp); C7Label2.Text = tmp.ToString(); // 控除A tmp = kinmuManager.CalcGekkanKoujyoAJikan(); C8Label1.Text = MinutesToStringFormat(tmp); C8Label2.Text = tmp.ToString(); // 減額A tmp = kinmuManager.CalcGekkanGengakuAjikan(); D1Label1.Text = MinutesToStringFormat(tmp); D1Label2.Text = tmp.ToString(); // 時間外労働時間 tmp = kinmuManager.CalcGekkanJikangaiRoudoJikan(); D2Label1.Text = MinutesToStringFormat(tmp); D2Label2.Text = tmp.ToString(); // 経営公休日労働時間 tmp = kinmuManager.CalcGekkanKeieiKokyuRoudoJikan(); D3Label1.Text = MinutesToStringFormat(tmp); D3Label2.Text = tmp.ToString(); // 法定労働時間 tmp = kinmuManager.CalcGekkanHouTeiRoudoJikan(); D4Label1.Text = MinutesToStringFormat(tmp); D4Label2.Text = tmp.ToString(); // 所定労働時間 tmp = kinmuManager.CalcGekkanSyoteiRoudoJikan(); D5Label1.Text = MinutesToStringFormat(tmp); D5Label2.Text = tmp.ToString(); // みなし1 tmp = kinmuManager.CalcGekkanMinashi1Jikan(); D6Label1.Text = MinutesToStringFormat(tmp); D6Label2.Text = tmp.ToString(); // 超勤E tmp = kinmuManager.CalcGekkanTankaEJikan(); D7Label1.Text = MinutesToStringFormat(tmp); D7Label2.Text = tmp.ToString(); // 祝日C tmp = kinmuManager.CalcGekkanSyukujituRoudoJikan(); D8Label1.Text = MinutesToStringFormat(tmp); D8Label2.Text = tmp.ToString(); } catch (KinmuException ex) { WorkResultsPanel.Visible = false; ErrorPanel.Visible = true; ErrorMessageLabel.Text = dataErrorMessage + "ErrorMessage:" + ex.Message + "StackTrace:" + ex.StackTrace; } }