private bool Equals(LicenseDetails other) { return(string.Equals(LicenseKey, other.LicenseKey) && string.Equals(Application, other.Application) && Equals(MinVersion, other.MinVersion) && Equals(MaxVersion, other.MaxVersion) && string.Equals(LicensedUserName, other.LicensedUserName) && string.Equals(LicensedUserEmail, other.LicensedUserEmail) && StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate) && Equals(CustomValues, other.CustomValues)); }
protected override void OnEndDateChanged() { // Prevent end date being set to exactly midnight if (EndDate == EndDate.Date) { EndDate = EndDate.AddSeconds(-1); } }
void LoadLogsData() { var sd = DateTime.Parse(StartDate.ToString("yyyy-MM-dd 00:00:00")); var ed = DateTime.Parse(EndDate.ToString("yyyy-MM-dd 23:59:59")); LogsData = new DbContext().Db.Queryable <Logs>().Where(p => SqlSugar.SqlFunc.Between(p.CreateDate, sd, ed)).OrderBy(p => p.CreateDate, SqlSugar.OrderByType.Desc).ToList(); OnPropertyChanged(nameof(LogsData)); }
public override int GetHashCode() { return(Id ^ Name.GetHashCode() ^ StartDate.GetHashCode() ^ EndDate.GetHashCode() ^ PassCredits); }
void UpdateStartEndDates() { periodChangeLock = true; EndDate = DateTime.Now; periodChangeLock = false; StartDate = EndDate.AddMonths(-Period); UpdateGridCaption(); }
public override int GetHashCode() { return(PersonId.GetHashCode() ^ ConceptId.GetHashCode() ^ (StartDate.GetHashCode()) ^ (EndDate.GetHashCode()) ^ StopReason.GetHashCode()); }
/* Дата окончания была изменена */ private void mc_EndDate_DateChanged(object sender, DateRangeEventArgs e) { StartDate = mc_startDate.SelectionStart; EndDate = mc_EndDate.SelectionEnd; lb_endDateText.Text = "По " + EndDate.ToString().Substring(0, 10); DaysDiff = (EndDate - StartDate).Days + 1; lb_DaysDiff.Text = "Разница дат - " + DaysDiff; }
public void Output() { Console.WriteLine(Title); Console.WriteLine(Stream); Console.WriteLine(Type); Console.WriteLine(StartDate.ToShortDateString()); Console.WriteLine(EndDate.ToShortDateString()); }
public override int GetHashCode() { if (!IsValid) { return(base.GetHashCode()); } return(StartDate.GetHashCode() | EndDate.GetHashCode()); }
private void SetWorkingDaysCount() { DateTime date_to = new DateTime(EndDate.Year, EndDate.AddMonths(1).Month, 1).AddDays(-1); //end of the specified month WorkingDaysTotal = DateHelper.WorkingDaysInMonth(EndDate); WorkingDaysCompleted = DateHelper.WorkingDaysInMonthUntilDate(EndDate); WorkingDaysRemaining = WorkingDaysTotal - WorkingDaysCompleted; }
protected void Page_PreRender(object sender, EventArgs e) { if (!IsPostBack) { StartDate.setDate(DateTime.Now.AddDays(-5)); EndDate.setDate(DateTime.Now); } }
/* * @return whether that FactDate ends after this FactDate */ public bool EndsAfter(FactDate that) { if (this.DoubleDate && that != null && !that.DoubleDate) { return(EndDate.TryAddYears(1) > that.EndDate); } return((that == null) ? true : EndDate > that.EndDate); }
public override int GetHashCode() { return(StartDate.GetHashCode() + EndDate.GetHashCode() + TaxType.GetHashCode() + Jurisdiction.GetHashCode() + Percent.GetHashCode()); }
public override void Place(Member m, Product p, SqlTransaction trans = null) { Remark = !string.IsNullOrEmpty(AlterMethod) ? $"{MemberCardNo}|{AlterMethod}" : MemberCardNo; Size = EndDate.ToString("yyyy-MM-dd"); base.Place(m, p, trans); }
//Adding Repayment,Expenses and Liabilities internal void RepaymentExpensesLiabilities() { //To skip the highlighted option SkipButton?.Click(); System.Threading.Thread.Sleep(5000); // Populating the data from Excel ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty"); OwnersSelect.Click(); System.Threading.Thread.Sleep(5000); PropertiesSelect.Click(); ClickingAddNewProperty.Click(); //Value set for property page details PropertyName.SendKeys(ExcelLib.ReadData(2, "Value")); SearchAddress.SendKeys(ExcelLib.ReadData(33, "Value")); System.Threading.Thread.Sleep(5000); //Value set using google api var address = Global.Driver.driver.FindElements(By.ClassName("pac-item"))[0]; address.Click(); TargetRent.SendKeys(ExcelLib.ReadData(14, "Value")); LandArea.SendKeys(ExcelLib.ReadData(10, "Value")); BedRooms.SendKeys(ExcelLib.ReadData(11, "Value")); CarParks.SendKeys(ExcelLib.ReadData(12, "Value")); Description.SendKeys(ExcelLib.ReadData(13, "Value")); FloorArea.SendKeys(ExcelLib.ReadData(15, "Value")); BathRooms.SendKeys(ExcelLib.ReadData(16, "Value")); YearBuilt.SendKeys(ExcelLib.ReadData(9, "Value")); NextButton.Click(); //Value set for financial details page System.Threading.Thread.Sleep(2000); PurchasePrice.SendKeys(ExcelLib.ReadData(17, "Value")); HomeValue.SendKeys(ExcelLib.ReadData(18, "Value")); Mortgage.SendKeys(ExcelLib.ReadData(19, "Value")); //Adding repayment option AddRepayment.Click(); RepaymentAmount.SendKeys(ExcelLib.ReadData(2, "AddRepaymentfieldValue")); RepaymentStartDate.SendKeys(ExcelLib.ReadData(3, "AddRepaymentfieldValue")); //Adding expenses option AddExpense.Click(); ExpenseAmount.SendKeys(ExcelLib.ReadData(2, "AddExpensefieldValue")); var ExpenseDescription = Global.Driver.driver.FindElement(By.ClassName("seven")).FindElement(By.ClassName("width")).FindElement(By.Id("Text1")); ExpenseDescription.SendKeys(ExcelLib.ReadData(3, "AddExpensefieldValue")); ExpenseDate.SendKeys(ExcelLib.ReadData(4, "AddExpensefieldValue")); NextButton2.Click(); //Value set for financial details page TenantEmail.SendKeys(ExcelLib.ReadData(20, "Value")); FirstName.SendKeys(ExcelLib.ReadData(21, "Value")); LastName.SendKeys(ExcelLib.ReadData(22, "Value")); StartDate.SendKeys(ExcelLib.ReadData(23, "Value")); EndDate.SendKeys(ExcelLib.ReadData(24, "Value")); RentAmount.SendKeys(ExcelLib.ReadData(25, "Value")); PaymentStartDate.SendKeys(ExcelLib.ReadData(26, "Value")); //Adding liability option NewLiability.Click(); Amount.SendKeys(ExcelLib.ReadData(2, "NewLiabilityFieldValue")); Save.Click(); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasId) { hash ^= Id.GetHashCode(); } if (HasCampaignDraft) { hash ^= CampaignDraft.GetHashCode(); } if (HasName) { hash ^= Name.GetHashCode(); } if (HasDescription) { hash ^= Description.GetHashCode(); } if (HasTrafficSplitPercent) { hash ^= TrafficSplitPercent.GetHashCode(); } if (TrafficSplitType != global::Google.Ads.GoogleAds.V9.Enums.CampaignExperimentTrafficSplitTypeEnum.Types.CampaignExperimentTrafficSplitType.Unspecified) { hash ^= TrafficSplitType.GetHashCode(); } if (HasExperimentCampaign) { hash ^= ExperimentCampaign.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V9.Enums.CampaignExperimentStatusEnum.Types.CampaignExperimentStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (HasLongRunningOperation) { hash ^= LongRunningOperation.GetHashCode(); } if (HasStartDate) { hash ^= StartDate.GetHashCode(); } if (HasEndDate) { hash ^= EndDate.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Serializes the specified serializer. /// </summary> /// <param name="serializer">The serializer.</param> /// <returns> /// A serialized <see cref="IDictionary{String,Object}" />. /// </returns> public IDictionary <string, object> Serialize(JavaScriptSerializer serializer) { IDictionary <string, object> serialized = new Dictionary <string, object>(); serialized["customFields"] = CustomFields; serialized["economics"] = Economics.ToBrightcoveName(); serialized["itemState"] = ItemState.ToBrightcoveName(); serialized["linkURL"] = LinkUrl; serialized["linkText"] = LinkText; serialized["longDescription"] = LongDescription; serialized["name"] = Name; serialized["referenceId"] = ReferenceId; serialized["shortDescription"] = ShortDescription; serialized["tags"] = Tags; // if the date is MinValue, that means it hasn't been set, so don't include it if (StartDate > DateTime.MinValue) { serialized["startDate"] = StartDate.ToUnixMillisecondsUtc(); } if (EndDate > DateTime.MinValue) { serialized["endDate"] = EndDate.ToUnixMillisecondsUtc(); } // When creating or updating a video, only one of either VideoFullLength and Renditions may // be set. If both are set, we get the following error: // "IllegalValueError - videoFullLength and renditions are mutually exclusive; you must set one or the other. (code 304)" // To prevent this exception, only submit Renditions if both are set // Additionally, Renditions may only be updated through the Media API in cases where they use a remote asset. // Don't submit renditions that lack a RemoteUrl, or the API will return an error. if (Renditions.Count > 0) { serialized["renditions"] = Renditions.Where(r => !String.IsNullOrEmpty(r.RemoteUrl)); } else if (VideoFullLength != null && !String.IsNullOrEmpty(VideoFullLength.RemoteUrl)) { serialized["videoFullLength"] = VideoFullLength; } if (IOSRenditions.Count > 0) { serialized["IOSRenditions"] = IOSRenditions.Where(r => !String.IsNullOrEmpty(r.RemoteUrl)); } if (CuePoints.Count > 0) { serialized["cuePoints"] = CuePoints; } // The Id must be non-0. if (Id != 0) { serialized["id"] = Id; } return(serialized); }
private string GetOptionalParameters() { bool HasOneOptionalParam = false; string OptionalParams = ""; if (Limit != null) { OptionalParams += "limit=" + Limit.ToString(); HasOneOptionalParam = true; } if (ColumnIndex != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "column_index=" + ColumnIndex.ToString(); HasOneOptionalParam = true; } if (StartDate != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "start_date=" + StartDate.ToString(); HasOneOptionalParam = true; } if (EndDate != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "end_date=" + EndDate.ToString(); HasOneOptionalParam = true; } if (Order == eTimeSeriesOrder.Asc) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "order=" + Order.ToString(); HasOneOptionalParam = true; } if (Collapse != eTimeSeriesCollapse.None) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "collapse=" + Collapse.ToString(); HasOneOptionalParam = true; } if (Transform != eTimeSeriesTransform.None) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "transform=" + Transform.ToString(); HasOneOptionalParam = true; } return((HasOneOptionalParam) ? ("?" + OptionalParams) : ""); }
private void RefreshData() { try { int cnt = 0; if (SelectedUser == null) { return; } if (ReportCode.ToValueAsString().Trim() == "") { ShowInformationMessage(PDMsg.NotEmpty("Report Option")); return; } if (StartDate.ToValueAsString().Trim() == "") { ShowInformationMessage(PDMsg.NotEmpty("Start Date")); return; } if (EndDate.ToValueAsString().Trim() == "") { ShowInformationMessage(PDMsg.NotEmpty("End Date")); return; } if (StartDate > EndDate) { ShowInformationMessage("Start Date is Greater than End Date,Please Check it.!"); return; } //ReportData = _flxReportsBll if (ReportCode == "PPAP") //PPAP Submitted { ReportData = _flxReportsBll.PPAPSubmitted(SelectedUser.USER_NAME.ToUpper().Trim(), Convert.ToDateTime(StartDate).ToString("dd/MM/yyyy"), Convert.ToDateTime(EndDate).ToString("dd/MM/yyyy")); } else if (ReportCode == "DR") //Document Released { ReportData = _flxReportsBll.DocumentReleased(SelectedUser.USER_NAME.ToUpper().Trim(), Convert.ToDateTime(StartDate).ToString("dd/MM/yyyy"), Convert.ToDateTime(EndDate).ToString("dd/MM/yyyy")); } else if (ReportCode == "PNA") //part Nos Allotted { ReportData = _flxReportsBll.PartNoAllotted(SelectedUser.USER_NAME.ToUpper().Trim(), Convert.ToDateTime(StartDate).ToString("dd/MM/yyyy"), Convert.ToDateTime(EndDate).ToString("dd/MM/yyyy")); } cnt = ReportData.Count; HeaderDetails = "Designers - " + SelectedUser.FULL_NAME + " - " + cnt.ToString() + (cnt > 0 ? " Entries" : " Entry") + " found "; //if (ReportData.Count == 0) //{ // ShowInformationMessage("No Entries Found!"); //} } catch (Exception ex) { throw ex.LogException(); } }
public Dictionary <string, IEnumerable <INodeble> > getNodableCilds() { var childs = new Dictionary <string, IEnumerable <INodeble> >(); var cap = String.Format("[{0}] - [{1}]: {2}", StartDate.ToString(), EndDate.ToString(), PhaseDescription); childs.Add(cap, this.DownPhase.Cast <INodeble>()); return(childs); }
public void ClearEndTimesAndDurationForRecreate() { EndDate.Clear(); EndTime.Clear(); EndDateTime = null; Duration = 0; CreateHasDetail = true; RecreateState = RecreateEventState.Duration; }
/// <summary> /// Gets the Test End Date /// </summary> /// <returns>text</returns> public string GetTestEndDate() { EndDate.Wait(2); if (Driver.WrappedDriver.GetType() == typeof(DummyDriver)) { EndDate.Text = FakeText; } return(EndDate.Text.Trim()); }
public IActionResult OnPost() { return(RedirectToPage(new { SearchEnabled = true, StartDate = StartDate.ToString("yyyy-MM-dd"), EndDate = EndDate.ToString("yyyy-MM-dd") })); }
public IActionResult OnPost() { return(RedirectToPage(new { SearchEnabled = true, StartDate = StartDate.ToString("yyyy-MM-dd"), // fixes formatting issues over line EndDate = EndDate.ToString("yyyy-MM-dd") })); }
SaveScheduleEntryRangeParam createSaveParam() { SaveScheduleEntryRangeParam param = new SaveScheduleEntryRangeParam(); param.Entries.AddRange(Entries.Select(x => x.Item)); param.StartDay = StartDate.ToUniversalTime(); param.EndDay = EndDate.AddDays(1).ToUniversalTime(); return(param); }
// Click on End date internal void EndingDate() { Thread.Sleep(1000); DateTime Finish = DateTime.Now + TimeSpan.FromDays(90); string FinishDate = Finish.ToString("ddMMyyyy"); EndDate.SendKeys(FinishDate); Thread.Sleep(1000); }
public override int GetHashCode() { return(PersonId.GetHashCode() ^ ConceptId.GetHashCode() ^ (StartDate.GetHashCode()) ^ (EndDate.GetHashCode()) ^ TypeConceptId.GetHashCode() ^ OccurrenceCount.GetHashCode()); }
public static void PreRange(string Range, out string Start, out string End, out string Cycle) { DateTime StartDate; DateTime EndDate; PreRange(Range, out StartDate, out EndDate, out Cycle); Start = StartDate.ToString("yyyyMMdd"); End = EndDate.ToString("yyyyMMdd"); }
protected override void LoadComplete() { base.LoadComplete(); EndDate.BindValueChanged(_ => updateDisplay()); Status.BindValueChanged(_ => updateDisplay(), true); FinishTransforms(true); }
public override void BuildWorkShiftPeriod() { int diffDays = (int)(EndDate.Subtract(StartDate)).TotalDays; for (int i = this._parity; i <= diffDays; i += 2) { this.WorkShiftPeriodList.Add(new WorkShiftPeriodModel(this.StartDate.AddDays(i))); } }