/// <remarks/> public void upsertWorkdayPTOAsync(psaWorkdayPTO[] workdayPTOs) { this.upsertWorkdayPTOAsync(workdayPTOs, null); }
/// <remarks/> public void upsertWorkdayPTOAsync(psaWorkdayPTO[] workdayPTOs, object userState) { if ((this.upsertWorkdayPTOOperationCompleted == null)) { this.upsertWorkdayPTOOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupsertWorkdayPTOOperationCompleted); } this.InvokeAsync("upsertWorkdayPTO", new object[] { workdayPTOs}, this.upsertWorkdayPTOOperationCompleted, userState); }
private psaUser.psaWorkdayPTO AssemblePTO(LinqToExcel.Row myRow) { psaUser.psaWorkdayPTO myPTO = new psaUser.psaWorkdayPTO(); myPTO.dayOfWeek = DateTime.Parse(myRow["Date"]).DayOfWeek.ToString() ; myPTO.hours = System.Convert.ToInt32(myRow["Requested"].Value); myPTO.hoursSpecified = true; myPTO.timeOffDate = DateTime.Parse(myRow["Date"]); myPTO.timeOffDateSpecified=true; myPTO.workDayPTOId = myRow["Spreadsheet Key"].ToString(); myPTO.workdDayEmployeeId = myRow["Employee"].ToString(); return myPTO; }