private void Save() { if (ErrorCheck()) { if (trgshbl.ShowMessage("Q101") == DialogResult.Yes) { DataTable dt = new DataTable(); dt = trgshbl.SimpleSelect1("70", ChangeDate.Replace("/", "-"), InOperatorCD); if (dt.Rows.Count > 0) { trgshbl.ShowMessage("E252"); } if (trgshbl.TempoRegiShiNyuuryoku_InsertUpdate(ddpe)) { trgshbl.ShowMessage("I101"); RunConsole();//exeRun <<<< PTK txtPayment.Clear(); txtPayment.Focus(); cboDenominationName.SelectedValue = "-1"; txtRemarks.Clear(); DisplayData(); } } } }
private void Write2_ChangeDate(string n, string ns, ChangeDate o, bool isNullable, bool needType) { if (o == null) { if (isNullable) { base.WriteNullTagLiteral(n, ns); } return; } if (!needType) { Type type = o.GetType(); if (!(type == typeof(ChangeDate))) { throw base.CreateUnknownTypeException(o); } } base.WriteStartElement(n, ns, o, false, null); if (needType) { base.WriteXsiType("ChangeDate", "WorkingHours.xsd"); } base.WriteElementString("Time", "WorkingHours.xsd", o.Time); base.WriteElementString("Date", "WorkingHours.xsd", o.Date); base.WriteElementStringRaw("DayOfWeek", "WorkingHours.xsd", XmlConvert.ToString(o.DayOfWeek)); base.WriteEndElement(o); }
/// <summary> /// String that is used to update this instance. /// </summary> /// <returns>String in format: "collumn1=value1, collumn2=value2, collumn3=value3"</returns> public string GetSQLiteUpdateString() { return ("eventHash='" + TimeEventHash.ToString() + "', " + "type='" + ((long)Type).ToString() + "', " + "changeDate='" + ChangeDate.ToString(Constants.DateTimeFormat) + "'"); }
/// <summary> /// String that is used for synchronization through network. /// </summary> /// <returns>String, where data values are delimited by ';'.</returns> public string GetSynchronizationString() { return ("" + TimeEventHash.ToString() + ";" + "" + ((long)Type).ToString() + ";" + "" + ChangeDate.ToString(Constants.DateTimeFormat) + ""); }
public bool ErrorCheck() { if (!RequireCheck(new Control[] { txtPayment, cboDenominationName })) { return(false); } DataTable dt = new DataTable(); dt = trntBL.SimpleSelect1("70", ChangeDate.Replace("/", "-"), StoreCD); if (dt.Rows.Count > 0) { trntBL.ShowMessage("E252"); return(false); } if (!string.IsNullOrWhiteSpace(txtCustomerCD.Text)) { DataTable dtCust = new DataTable(); dtCust = trntBL.SimpleSelect1("36", null, txtCustomerCD.Text); if (dtCust.Rows.Count < 1) { trntBL.ShowMessage("E101"); txtCustomerCD.Focus(); return(false); } } return(true); }
public bool ErrorCheck() { if (string.IsNullOrWhiteSpace(txtPayment.Text)) { trgshbl.ShowMessage("E102"); txtPayment.Focus(); return(false); } DataTable dt = new DataTable(); dt = trgshbl.SimpleSelect1("70", ChangeDate.Replace("/", "-"), InOperatorCD); if (dt.Rows.Count > 0) { trgshbl.ShowMessage("E252"); return(false); } if (cboDenominationName.SelectedValue.ToString() == "-1") { trgshbl.ShowMessage("E102"); cboDenominationName.Focus(); return(false); } return(true); }
/// <summary> /// 入力必須エラーをチェックする /// </summary> private bool ErrorCheck() { if (!RequireCheck(new Control[] { ExchangeMoney, ExchangeDenomination })) // go that focus { return(false); } if (ExchangeDenomination.SelectedValue.ToString() == "-1") { trrnbl.ShowMessage("E102"); ExchangeDenomination.Focus(); ExchangeDenomination.MoveNext = false; ExchangeCount.MoveNext = false; return(false); } DataTable dt = new DataTable(); //dt = trrnbl.SimpleSelect1("70",null, storeCD,null,null); dt = trrnbl.SimpleSelect1("70", ChangeDate.Replace("/", "-"), storeCD); if (dt.Rows.Count > 0) { trrnbl.ShowMessage("E252"); return(false); } if (!RequireCheck(new Control[] { ExchangeCount })) // go that focus { return(false); } return(true); }
/// <summary> /// Return string required for insertion into Database. /// </summary> /// <returns>String in specific format: "value1, value2, value3"</returns> public string GetSQLiteInsertString() { return ("'" + TimeEventHash.ToString() + "', " + "'" + ((long)Type).ToString() + "', " + "'" + ChangeDate.ToString(Constants.DateTimeFormat) + "'"); }
// GET: Task/Delete/5 public PartialViewResult ChangeDates(int?id) { base.SessionHandleOtherActions(); ChangeDate changeDate = new ChangeDate(); changeDate.ID = id ?? 0; changeDate.Quantity = 1; return(PartialView("_ChangeDates", changeDate)); }
// ------------------------------------------------ // // Exit Window // // ------------------------------------------------ private void exit(object sender, EventArgs e) { // StartDate = DateTime.Today; StartDate = Start.Value; ChangeDate = StartDate.AddMonths(3); information[4] = ChangeDate.ToString(); information[5] = ODStart.Text; //save information if not null int pos = Array.IndexOf(information, null); if (pos > -1) { Console.WriteLine("values are not being saved?"); MessageBoxButtons buttons = MessageBoxButtons.YesNo; DialogResult box; //make sure if want to exit box = MessageBox.Show("Are you sure you want to exit?", "all fields where not filled", buttons); if (box == System.Windows.Forms.DialogResult.Yes) { box = MessageBox.Show("Warring: if click yes, information maybe become lost or wrong in the future.", "incomplete", buttons); if (box == System.Windows.Forms.DialogResult.Yes) { Console.WriteLine("Saving incomplete data"); CheckIFHaveFiles(); this.Close(); } else if (box == System.Windows.Forms.DialogResult.No) { Console.WriteLine("values are not saved"); this.Close(); } } } else { Console.WriteLine("Saving Dates"); information[3] = StartDate.ToString(); information[4] = ChangeDate.ToString(); CheckIFHaveFiles(); } }
/// /// <summary> /// 登録ボタンを押下時データベースにInsertする /// </summary> public void Save() { if (ErrorCheck()) { if (ExchangeLabel.Text != ExchangeMoney.Text) { trrnbl.ShowMessage("E181"); ExchangeCount.Focus(); } else { if (trrnbl.ShowMessage("Q101") == DialogResult.Yes) { DataTable dt = new DataTable(); dt = trrnbl.SimpleSelect1("70", ChangeDate.Replace("/", "-"), storeCD); if (dt.Rows.Count > 0) { trrnbl.ShowMessage("E252"); } valid = false; mre = DepositHistoryEnity(); if (trrnbl.TempoRegiRyougaeNyuuryoku_Insert_Update(mre)) { trrnbl.ShowMessage("I101"); RunConsole(); //exeRun ExchangeDenomination.SelectedValue = "-1"; ExchangeMoney.Clear(); ExchangeCount.Clear(); ExchangeLabel.Text = ""; Remark.Clear(); ExchangeMoney.Focus(); } else { trrnbl.ShowMessage("S001"); } } else { PreviousCtrl.Focus(); //Remark.Focus(); } } } }
private bool ErrorCheck() { if (!RequireCheck(new Control[] { txtDate, DepositGaku })) // go that focus { return(false); } DataTable dt = new DataTable(); dt = trtjb.SimpleSelect1("71", ChangeDate.Replace("/", "-"), storeCD, txtDate.Text); if (dt.Rows.Count > 0) { trtjb.ShowMessage("E252"); return(false); } return(true); }
/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to this instance. /// </summary> /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param> /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns> public override bool Equals(object obj) { if (obj is FilteredCriteria) { var c = (FilteredCriteria)obj; if (!FolderTypeID.Equals(c.FolderTypeID)) { return(false); } if (!FolderRef.Equals(c.FolderRef)) { return(false); } if (!Year.Equals(c.Year)) { return(false); } if (!Subject.Equals(c.Subject)) { return(false); } if (!FolderStatusID.Equals(c.FolderStatusID)) { return(false); } if (!CreateDate.Equals(c.CreateDate)) { return(false); } if (!CreateUserID.Equals(c.CreateUserID)) { return(false); } if (!ChangeDate.Equals(c.ChangeDate)) { return(false); } if (!ChangeUserID.Equals(c.ChangeUserID)) { return(false); } return(true); } return(false); }
/// <summary> /// Appends this item to the maintenance log. The log is assumed append-only; editing of entries is not supported. /// </summary> /// <returns>True for success</returns> public void FAddToLog() { DBHelper dbh = new DBHelper(); dbh.DoNonQuery("INSERT INTO maintenancelog SET idaircraft=?idAircraft, Description=?Description, Date=?Date, User=?User, Comment = ?Comment", (comm) => { comm.Parameters.AddWithValue("idAircraft", AircraftID); comm.Parameters.AddWithValue("Description", Description); comm.Parameters.AddWithValue("Date", ChangeDate.ToString("yyyy-MM-dd HH:mm", CultureInfo.InvariantCulture)); comm.Parameters.AddWithValue("User", User); comm.Parameters.AddWithValue("Comment", Comment); }); if (dbh.LastError.Length > 0) { throw new MyFlightbookException("Error adding to log: " + dbh.CommandText + "\r\n" + dbh.LastError); } }
private void Save() { if (ErrorCheck()) { if (trntBL.ShowMessage("Q101") == DialogResult.Yes) { DataTable dt = new DataTable(); dt = trntBL.SimpleSelect1("70", ChangeDate.Replace("/", "-"), StoreCD); if (dt.Rows.Count > 0) { trntBL.ShowMessage("E252"); } ddpe = GetDepositEntity(); if (trntBL.TempoNyuukinTouroku_D_DepositHistory_InsertUpdate(ddpe)) { if (!string.IsNullOrWhiteSpace(txtCustomerCD.Text)) { dce = GetDCollectData(); trntBL.TempoNyuukinTouroku_D_Collect_Insert(dce); } trntBL.ShowMessage("I101"); RunConsole(); txtPayment.Clear(); txtPayment.Focus(); cboDenominationName.SelectedValue = "-1"; txtCustomerCD.Clear(); lblCustomerName.Text = string.Empty; txtRemarks.Clear(); DisplayData(); chkAdvanceFlg.Enabled = chkAdvanceFlg.Checked = false; } } else { PreviousCtrl.Focus(); } } }
/// <summary> /// Generates the change date XML. /// </summary> /// <param name="recNode">The record node.</param> public void GenerateChangeDateXML(XmlNode recNode) { XmlDocument doc = recNode.OwnerDocument; if (ChangeDate != null) { XmlNode changeNode = doc.CreateElement("Changed"); changeNode.Attributes.Append(doc.CreateAttribute("Date")); changeNode.Attributes.Append(doc.CreateAttribute("Time")); // Should always have a GedcomDate that can be a DateTime, // if not pretend the change date is right now so the // xml stays valid DateTime date = ChangeDate.DateTime1 ?? DateTime.Now; changeNode.Attributes["Date"].Value = date.ToString("dd MMM yyyy"); changeNode.Attributes["Time"].Value = date.ToString("HH:mm:ss"); ChangeDate.GenerateNoteXML(changeNode); } }
public override int GetHashCode() { int hashCode = -1424578035; hashCode = hashCode * -1521134295 + Id.GetHashCode(); hashCode = hashCode * -1521134295 + LabBookId.GetHashCode(); hashCode = hashCode * -1521134295 + Version.GetHashCode(); hashCode = hashCode * -1521134295 + Mass.GetHashCode(); hashCode = hashCode * -1521134295 + Amount.GetHashCode(); hashCode = hashCode * -1521134295 + ChangeDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Comment); hashCode = hashCode * -1521134295 + LoginId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LoginShortcut); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Permision); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + Density.GetHashCode(); return(hashCode); }
/// <summary> /// 登録ボタンを押下時データベースにInsertする /// </summary> public void Save() { if (ErrorCheck()) { { if (trtjb.ShowMessage("Q101") == DialogResult.Yes) { DataTable dt = new DataTable(); dt = trtjb.SimpleSelect1("70", ChangeDate.Replace("/", "-"), storeCD, txtDate.Text); if (dt.Rows.Count > 0) { trtjb.ShowMessage("E252"); } mre = DepositHistoryEnity(); if (trtjb.TempoRegiTsurisenJyunbi_Insert_Update(mre)) { trtjb.ShowMessage("I101"); RunConsole(); txtDate.Clear(); DepositGaku.Clear(); Remark.Clear(); txtDate.Focus(); } else { trtjb.ShowMessage("S001"); } } else { DepositGaku.Focus(); } } } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { return(string.Concat("DocListFilteredCriteria", DocID.ToString(), DocClassID.ToString(), DocTypeID.ToString(), SenderID.ToString(), RecipientID.ToString(), DocRef.ToString(), DocDate.ToString(), Subject.ToString(), DocStatusID.ToString(), CreateDate.ToString(), CreateUserID.ToString(), ChangeDate.ToString(), ChangeUserID.ToString()).GetHashCode()); }
public void Search() { string mode = string.Empty; Control[] ctlmode = this.TopLevelControl.Controls.Find("cboMode", true); if (ctlmode.Length > 0) { Control cbo = this.TopLevelControl.Controls.Find("cboMode", true)[0]; mode = cbo.Text; } Control[] ctrlArr = this.TopLevelControl.Controls.Find("BtnF9", true); if (DepandOnMode == false || (DepandOnMode == true && mode != "新規")) { MultiPorposeSearch msearch = new MultiPorposeSearch(); switch (this.SearchType) { case Entity.SearchType.ScType.Souko: SoukoSearch soukoSearch = new SoukoSearch(); soukoSearch.ShowDialog(); CD = soukoSearch.soukoCD; //CDate = soukoSearch.soukoName; break; case Entity.SearchType.ScType.Staff: StaffSearch staffSearch = new StaffSearch(); staffSearch.changeDate_Access = ChangeDate.Text; staffSearch.ShowDialog(); CD = staffSearch.staffCD; CDate = staffSearch.changeDate; name = staffSearch.staffName; break; case Entity.SearchType.ScType.Denpyou: DenpyouNoSearch denpyouSearch = new DenpyouNoSearch(); denpyouSearch.ShowDialog(); //Combo.SelectedIndex = Convert.ToInt32(denpyouSearch.renban); if (!string.IsNullOrWhiteSpace(denpyouSearch.renban)) // ktp no 181 { Combo.SelectedValue = denpyouSearch.renban; if (this.Name == "txtSEQNO") { TxtBox.Text = denpyouSearch.prefix; TxtBox.Focus(); CD = denpyouSearch.seqno; } else { TxtBox.Text = denpyouSearch.seqno; CD = denpyouSearch.prefix; } } break; case Entity.SearchType.ScType.Siiresaki: SiiresakiSearch siiresakiSearch = new SiiresakiSearch(); siiresakiSearch.Date_Access_Siiresaki = ChangeDate.Text; siiresakiSearch.ShowDialog(); CD = siiresakiSearch.SiiresakiCD; CDate = siiresakiSearch.changeDate; break; case Entity.SearchType.ScType.Tokuisaki: TokuisakiSearch tokuisakiSearch = new TokuisakiSearch(); tokuisakiSearch.Date_Access_Tokuisaki = ChangeDate.Text; tokuisakiSearch.ShowDialog(); CD = tokuisakiSearch.Tokuisaki; CDate = tokuisakiSearch.ChangeDate; name = tokuisakiSearch.TokuisakiRyakuName; break; case Entity.SearchType.ScType.multiporpose: msearch.Access_Type = string.Empty; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Brand: msearch.Access_Type = "103"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Partition: msearch.Access_Type = "101"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Tani: msearch.Access_Type = "102"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Color: msearch.Access_Type = "104"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Size: msearch.Access_Type = "105"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.FileImport: if (this.Name == "txtImportFolder") { using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.InitialDirectory = "C:\\Excel\\"; openFileDialog.Title = "Browse CSV Files"; openFileDialog.Filter = "csv files (*.csv)|*.csv"; openFileDialog.FilterIndex = 2; openFileDialog.RestoreDirectory = true; openFileDialog.ShowDialog(); //CD = openFileDialog.InitialDirectory; if (!string.IsNullOrEmpty(openFileDialog.FileName)) { CD = openFileDialog.FileName.Remove(openFileDialog.FileName.LastIndexOf("\\") + 1); } } } else if (this.Name == "txtImportFileName") { using (OpenFileDialog openFileDialog = new OpenFileDialog()) { if (!string.IsNullOrEmpty(TxtBox.Text) && Directory.Exists(TxtBox.Text)) { openFileDialog.InitialDirectory = TxtBox.Text; } else { openFileDialog.InitialDirectory = "C:\\"; } openFileDialog.Title = "Browse CSV Files"; openFileDialog.Filter = "csv files (*.csv)|*.csv"; openFileDialog.FilterIndex = 2; openFileDialog.RestoreDirectory = true; openFileDialog.ShowDialog(); if (!string.IsNullOrEmpty(openFileDialog.FileName)) { CD = openFileDialog.SafeFileName; } } } break; case Entity.SearchType.ScType.TaxRate: msearch.Access_Type = "221"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Evaluation: msearch.Access_Type = "106"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Management: msearch.Access_Type = "107"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Kubun: msearch.Access_Type = "109"; msearch.ShowDialog(); if (this.Name == "txtID" || this.Name == "txtCopyID") { CD = msearch.Id; } else { CD = msearch.Key; } if (CDate != null) { CDate = msearch.Key; } if (lblName != null) { name = msearch.Char1; } break; case Entity.SearchType.ScType.Kouriten: KouritenSearch kSearch = new KouritenSearch(); kSearch.Date_Access_Kouriten = ChangeDate.Text; if (this.TxtBox != null) { kSearch.tokuisakiCD = TxtBox.Text; } kSearch.ShowDialog(); CD = kSearch.KouritenCD; CDate = kSearch.changeDate; name = kSearch.KouritenRyakuName; break; case Entity.SearchType.ScType.ShippingNO: ShippingNoSearch snSearch = new ShippingNoSearch(); snSearch.ShowDialog(); CD = snSearch.ShippingNo; break; case Entity.SearchType.ScType.Shouhin: Shouhin_Search shsearch = new Shouhin_Search(); shsearch.parent_changeDate = ChangeDate.Text; shsearch.ShowDialog(); //if(this.Name == "txtCopyProduct") //{ // //CD = shsearch.shouhinCD; // CD = shsearch.hinbanCD; // TxtBox.Text = shsearch.colorNO; // TxtBox.Focus(); //} //else //{ //CD = shsearch.shouhinCD;ses CD = shsearch.hinbanCD; colorNO = shsearch.colorNO; name = shsearch.colorName; sizeNO = shsearch.sizeNO; colName = shsearch.sizeName; CDate = shsearch.changeDate; //} break; case Entity.SearchType.ScType.ArrivalNo: ArrivalNOSearch search = new ArrivalNOSearch(); search.ShowDialog(); CD = search.ChakuniNO; break; case Entity.SearchType.ScType.ChakuniYoteiNyuuryoku: ChakuniYoteiNyuuryokuSearch cysearch = new ChakuniYoteiNyuuryokuSearch(); cysearch.ShowDialog(); CD = cysearch.ChakuniYoteiNO; break; case Entity.SearchType.ScType.JuchuuNo: JuchuuNyuuryokuSearch obj_search = new JuchuuNyuuryokuSearch(); obj_search.ShowDialog(); CD = obj_search.JuchuuNo; break; case Entity.SearchType.ScType.ShukkaNo: ShukkaNoSearch shukkaNoSearch = new ShukkaNoSearch(); shukkaNoSearch.ShowDialog(); CD = shukkaNoSearch.ShukkaNo; break; case Entity.SearchType.ScType.IdouNyuuryoku: IdouNyuuryokuSearch idou_search = new IdouNyuuryokuSearch(); idou_search.ShowDialog(); CD = idou_search.IdouNo; break; case Entity.SearchType.ScType.HacchuuNyuuryoku: HacchuuNyuuryokuSearch hacc_search = new HacchuuNyuuryokuSearch(); hacc_search.ShowDialog(); CD = hacc_search.HacchuuNo; break; } if (!string.IsNullOrWhiteSpace(CD)) { this.Text = CD; if (lblName != null) { lblName.Text = name; } if (this.Parent.Name.Equals("PanelTitle")) { if (TxtBox != null && TxtBox1 != null) { TxtBox.Text = colorNO; lblName.Text = name; TxtBox1.Text = sizeNO; lblName1.Text = colName; } if (ChangeDate != null) { ChangeDate.Text = CDate; ChangeDate.Focus(); } SendKeys.Send("{ENTER}"); } else { SendKeys.Send("{ENTER}"); } } CD = string.Empty; // For enter case to show search screen ////for combo box //if (Combo != null) //{ // ChangeDate.Text = CDate; // //SendKeys.Send("{ENTER}"); //} ////for textbox //if (lblName != null) //{ // lblName.Text = name; // //SendKeys.Send("{ENTER}"); //} //else if (ChangeDate != null) //{ // if (ChangeDate.Name == this.NextControlName) // ChangeDate.Text = CDate; // if (string.IsNullOrEmpty(this.Text)) // { // this.Focus(); // } // else // { // //comment 2020-12-28 // //ChangeDate.Focus(); // //SendKeys.Send("{ENTER}"); // //add 2020-12-28 // //CD and change date is not located(top,down) in form design // if (this.NextControlName != ChangeDate.Name) // { // this.Focus(); // } // else // { // ChangeDate.Focus(); // } // SendKeys.Send("{ENTER}"); // } //} //else //{ // if(this.Text=="") // { // this.Focus(); // } // else // { // Control control = this.TopLevelControl.Controls.Find(this.NextControlName, true)[0]; // control.Focus(); // } //} } }
/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to this instance. /// </summary> /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param> /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.</returns> public override bool Equals(object obj) { if (obj is DocListFilteredCriteria) { var c = (DocListFilteredCriteria)obj; if (!DocID.Equals(c.DocID)) { return(false); } if (!DocClassID.Equals(c.DocClassID)) { return(false); } if (!DocTypeID.Equals(c.DocTypeID)) { return(false); } if (!SenderID.Equals(c.SenderID)) { return(false); } if (!RecipientID.Equals(c.RecipientID)) { return(false); } if (!DocRef.Equals(c.DocRef)) { return(false); } if (!DocDate.Equals(c.DocDate)) { return(false); } if (!Subject.Equals(c.Subject)) { return(false); } if (!DocStatusID.Equals(c.DocStatusID)) { return(false); } if (!CreateDate.Equals(c.CreateDate)) { return(false); } if (!CreateUserID.Equals(c.CreateUserID)) { return(false); } if (!ChangeDate.Equals(c.ChangeDate)) { return(false); } if (!ChangeUserID.Equals(c.ChangeUserID)) { return(false); } return(true); } return(false); }
/// <summary> /// Outputs the standard. /// </summary> /// <param name="sw">The writer.</param> protected void OutputStandard(TextWriter sw) { string levelPlusOne = null; if (ChangeDate != null) { if (levelPlusOne == null) { levelPlusOne = (Level + 1).ToString(); } sw.Write(Environment.NewLine); sw.Write(levelPlusOne); sw.Write(" CHAN "); ChangeDate.Output(sw); } if (notes != null) { if (levelPlusOne == null) { levelPlusOne = (Level + 1).ToString(); } foreach (string noteID in Notes) { sw.Write(Environment.NewLine); sw.Write("{0} NOTE @{1}@", levelPlusOne, noteID); } } if (sources != null) { foreach (GedcomSourceCitation citation in Sources) { citation.Output(sw); } } if (multimedia != null) { if (levelPlusOne == null) { levelPlusOne = (Level + 1).ToString(); } foreach (string multimediaID in Multimedia) { sw.Write(Environment.NewLine); sw.Write("{0} OBJE @{1}@", levelPlusOne, multimediaID); } } if (!string.IsNullOrEmpty(UserReferenceNumber)) { if (levelPlusOne == null) { levelPlusOne = (Level + 1).ToString(); } sw.Write(Environment.NewLine); sw.Write(levelPlusOne); sw.Write(" REFN "); string line = UserReferenceNumber.Replace("@", "@@"); sw.Write(line); if (!string.IsNullOrEmpty(UserReferenceType)) { sw.Write(Environment.NewLine); sw.Write((Level + 2).ToString()); sw.Write(" REFN "); line = UserReferenceType.Replace("@", "@@"); sw.Write(line); } } if (!string.IsNullOrEmpty(AutomatedRecordId)) { if (levelPlusOne == null) { levelPlusOne = (Level + 1).ToString(); } sw.Write(Environment.NewLine); sw.Write(levelPlusOne); sw.Write(" RIN "); string line = AutomatedRecordId.Replace("@", "@@"); sw.Write(line); } }
public void ResetSettings() { ObservationDate.ResetSettings(); RegistrationDate.ResetSettings(); ChangeDate.ResetSettings(); }
protected void OnChangeDate() { ChangeDate?.Invoke(this, new EventArgs()); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { return(string.Concat("FilteredCriteria", FolderTypeID.ToString(), FolderRef.ToString(), Year.ToString(), Subject.ToString(), FolderStatusID.ToString(), CreateDate.ToString(), CreateUserID.ToString(), ChangeDate.ToString(), ChangeUserID.ToString()).GetHashCode()); }
public M_StorePoint_Entity GetStorePointEntity() { mspe = new M_StorePoint_Entity { StoreCD = StoreCD, ChangeDate = txtChangeDate.Text.Replace("/", "-"), PointRate = txtPointRate.Text, ServicedayRate = txtServiceDayRate.Text, ExpirationDate = txtExperationDate.Text, MaxPoint = txtMaxPoint.Text, TicketUnit = txtTicketUnit.Text, Print1 = txtPrint1.Text, Size1 = string.IsNullOrWhiteSpace(txtSize1.Text)? "0" : txtSize1.Text, Bold1 = chk1.Checked ? "1" : "0", Print2 = txtPrint2.Text, Size2 = string.IsNullOrWhiteSpace(txtSize2.Text) ? "0" : txtSize2.Text, Bold2 = chk2.Checked ? "1" : "0", Print3 = txtPrint3.Text, Size3 = string.IsNullOrWhiteSpace(txtSize3.Text) ? "0" : txtSize3.Text, Bold3 = chk3.Checked ? "1" : "0", Print4 = txtPrint4.Text, Size4 = string.IsNullOrWhiteSpace(txtSize4.Text) ? "0" : txtSize4.Text, Bold4 = chk4.Checked ? "1" : "0", Print5 = txtPrint5.Text, Size5 = string.IsNullOrWhiteSpace(txtSize5.Text) ? "0" : txtSize5.Text, Bold5 = chk5.Checked ? "1" : "0", Print6 = txtPrint6.Text, Size6 = string.IsNullOrWhiteSpace(txtSize6.Text) ? "0" : txtSize6.Text, Bold6 = chk6.Checked ? "1" : "0", Print7 = txtPrint7.Text, Size7 = string.IsNullOrWhiteSpace(txtSize7.Text) ? "0" : txtSize7.Text, Bold7 = chk7.Checked ? "1" : "0", Print8 = txtPrint8.Text, Size8 = string.IsNullOrWhiteSpace(txtSize8.Text) ? "0" : txtSize8.Text, Bold8 = chk8.Checked ? "1" : "0", Print9 = txtPrint9.Text, Size9 = string.IsNullOrWhiteSpace(txtSize9.Text) ? "0" : txtSize9.Text, Bold9 = chk9.Checked ? "1" : "0", Print10 = txtPrint10.Text, Size10 = string.IsNullOrWhiteSpace(txtSize10.Text) ? "0" : txtSize10.Text, Bold10 = chk10.Checked ? "1" : "0", Print11 = txtPrint11.Text, Size11 = string.IsNullOrWhiteSpace(txtSize11.Text) ? "0" : txtSize11.Text, Bold11 = chk11.Checked ? "1" : "0", Print12 = txtPrint12.Text, Size12 = string.IsNullOrWhiteSpace(txtSize12.Text) ? "0" : txtSize12.Text, Bold12 = chk12.Checked ? "1" : "0", DeleteFlg = "0", ProcessMode = "登録", InsertOperator = InOperatorCD, ProgramID = InProgramID, Key = StoreCD.ToString() + " " + ChangeDate.ToString(), PC = InPcID, }; return(mspe); }
private ChangeDate Read2_ChangeDate(bool isNullable, bool checkType) { XmlQualifiedName xmlQualifiedName = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if (checkType && !(xmlQualifiedName == null) && (xmlQualifiedName.Name != this.id16_ChangeDate || xmlQualifiedName.Namespace != this.id2_WorkingHoursxsd)) { throw base.CreateUnknownTypeException(xmlQualifiedName); } if (flag) { return(null); } ChangeDate changeDate = new ChangeDate(); bool[] array = new bool[3]; while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(changeDate); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return(changeDate); } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int num = 0; int readerCount = base.ReaderCount; while (base.Reader.NodeType != XmlNodeType.EndElement && base.Reader.NodeType != XmlNodeType.None) { if (base.Reader.NodeType == XmlNodeType.Element) { if (!array[0] && base.Reader.LocalName == this.id17_Time && base.Reader.NamespaceURI == this.id2_WorkingHoursxsd) { changeDate.Time = base.Reader.ReadElementString(); array[0] = true; } else if (!array[1] && base.Reader.LocalName == this.id18_Date && base.Reader.NamespaceURI == this.id2_WorkingHoursxsd) { changeDate.Date = base.Reader.ReadElementString(); array[1] = true; } else if (!array[2] && base.Reader.LocalName == this.id19_DayOfWeek && base.Reader.NamespaceURI == this.id2_WorkingHoursxsd) { changeDate.DayOfWeek = XmlConvert.ToInt16(base.Reader.ReadElementString()); array[2] = true; } else { base.UnknownNode(changeDate, "WorkingHours.xsd:Time, WorkingHours.xsd:Date, WorkingHours.xsd:DayOfWeek"); } } else { base.UnknownNode(changeDate, "WorkingHours.xsd:Time, WorkingHours.xsd:Date, WorkingHours.xsd:DayOfWeek"); } base.Reader.MoveToContent(); base.CheckReaderCount(ref num, ref readerCount); } base.ReadEndElement(); return(changeDate); }