public void GetReportDetail_Test_Dependent() { try { BPersonMonthlyWorkedTime bpWorkTime = new BPersonMonthlyWorkedTime(32688); IList <MonthlyDetailReportProxy> df = bpWorkTime.GetPersonMonthlyRowDetail(DateTime.Now.AddDays(-6)); } catch (Exception ex) { Assert.Fail(ex.Message); } }
private void FillChilds_GridMasterMonthlyOperation_MasterMonthlyOperation(GridNeedChildDataSourceEventArgs e) { if (e.Item.Level == 0) { Dictionary <string, object> obj = this.GetParameters_GridMasterMonthlyOperation_MasterMonthlyOperation(); LoadState LS = (LoadState)obj["LoadState"]; decimal PersonnelID = (decimal)obj["PersonnelID"]; switch (LS) { case LoadState.Manager: break; case LoadState.Personnel: PersonnelID = BUser.CurrentUser.Person.ID; break; } BPersonMonthlyWorkedTime MonthlyOperationBusiness = new BPersonMonthlyWorkedTime(PersonnelID); IList <MonthlyDetailReportProxy> MonthlyDetailReportProxyList = MonthlyOperationBusiness.GetPersonMonthlyRowDetail((DateTime)e.Item["Date"]); e.DataSource = MonthlyDetailReportProxyList; } }
public void GetUnderManagmentBySearch_BarcodeTest22222() { try { BPersonMonthlyWorkedTime bpWorkTime = new BPersonMonthlyWorkedTime(32687); IList <PersonalMonthlyReportRow> DailyRows = null; PersonalMonthlyReportRow MonthlyRow = null; bpWorkTime.GetPersonMonthlyReport(1390, 7, "1390/08/01", "1390/08/30", out DailyRows, out MonthlyRow); string a = DailyRows[0].UnallowableOverTime; IList <PersonalMonthlyReportRow> xxx = DailyRows.Where(x => x.HourlyPureOperation != "00:00").ToList(); PersonalMonthlyReportRow pmrr = DailyRows[2]; string x0 = pmrr.ImpureOperation; string x1 = pmrr.PeriodicDailyAbsence; string x2 = pmrr.DailyAbsence; User user = BUser.CurrentUser; IList <MonthlyDetailReportProxy> list2 = bpWorkTime.GetPersonMonthlyRowDetail(new DateTime(2011, 9, 7)); } catch (Exception ex) { } }