/// <summary> /// Handles the Click event of the OwnerApplyingPicture control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param> private void OwnerApplyingPicture_Click(object sender, EventArgs e) { try { Form ownerIdForm = new Form(); ownerIdForm = this.form29610Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form29610Control.WorkItem); if (ownerIdForm != null) { if (ownerIdForm.ShowDialog() == DialogResult.Yes) { this.Hohownerid = Convert.ToInt32(TerraScanCommon.GetValue(ownerIdForm, "MasterNameOwnerId")); this.SetEditRecord(); this.ownerDetailDataSet = this.form29610Control.WorkItem.GetOwnerDetails(this.Hohownerid); this.OwnerAppplyingTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.NameColumn].ToString(); this.OwnerAppplyingTextBox.ForeColor = Color.Black; this.OwnerAddressTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address1Column].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address2Column].ToString(); this.CityStateZipTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.CityColumn].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.StateColumn].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.ZipColumn].ToString(); //this.Hohownerid = this.ownerId; this.HoHExemptionDetailDataSet = this.form29610Control.WorkItem.F29610_GetOwnerPercent(Hohownerid, scheduleid); if (this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows.Count > 0) { this.OwnerPercentTextBox.Text = this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows[0][this.HoHExemptionDetailDataSet.GetOwnerPercent.OwnerPercentColumn].ToString(); } } } } catch (Exception e1) { ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Handles the Click event of the PictureReceipt control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void PictureReceipt_Click(object sender, EventArgs e) { try { Form parcelF9101 = new Form(); parcelF9101 = this.form1555Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form1555Control.WorkItem); if (parcelF9101 != null) { if (parcelF9101.ShowDialog() == DialogResult.Yes) { Int32 resultownerid; Int32.TryParse((TerraScanCommon.GetValue(parcelF9101, SharedFunctions.GetResourceString("MasterNameOwnerId"))), out resultownerid); this.selectedownerId = resultownerid; this.ownerDetailDataSet = this.form1555Control.WorkItem.GetOwnerDetails(this.selectedownerId); this.selectedownerName = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.NameColumn].ToString(); this.ToOwnerTextBox.Text = this.selectedownerName; this.searchResult = true; } else { this.searchResult = false; } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm); } }
/// <summary> /// Handles the Click event of the OwnerPictureButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param> private void OwnerPictureButton_Click(object sender, EventArgs e) { try { Form ownerIdForm = new Form(); ownerIdForm = this.form35075Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form35075Control.WorkItem); if (ownerIdForm != null) { if (ownerIdForm.ShowDialog() == DialogResult.Yes) { this.ownerId = Convert.ToInt32(TerraScanCommon.GetValue(ownerIdForm, "MasterNameOwnerId")); this.SetEditRecord(); this.ownerDetailDataSet = this.form35075Control.WorkItem.GetOwnerDetails(this.ownerId); this.ownerid = Convert.ToInt32(this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.OwnerIDColumn].ToString()); this.OwnerLinkLabel.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.NameColumn].ToString(); this.Address1TextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address1Column].ToString(); this.Address2TextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address2Column].ToString(); this.CityTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.CityColumn].ToString(); this.StateTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.StateColumn].ToString(); this.ZipTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.ZipColumn].ToString(); } } } catch (Exception e1) { ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
public override global::System.Data.DataSet Clone() { PartiesOwnerDetailsData cln = ((PartiesOwnerDetailsData)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return(cln); }
/// <summary> /// Gets the owner details. /// </summary> /// <param name="ownerId">The owner id.</param> /// <returns>Returns PartiesOwnerDetails Dataset</returns> public static PartiesOwnerDetailsData GetOwnerDetails(int ownerId) { string ownerDetailDataValue; PartiesOwnerDetailsData ownerDetailData = new PartiesOwnerDetailsData(); ownerDetailDataValue = smartClientService.GetOwnerDetails(ownerId); ownerDetailData.ReadXml(Utilities.SharedFunctions.XmlParser(ownerDetailDataValue)); return(ownerDetailData); }
/// <summary> /// Gets the owner details. /// </summary> /// <param name="ownerId">The owner id.</param> /// <returns>Returns PartiesOwnerDetails Dataset</returns> public static PartiesOwnerDetailsData GetOwnerDetails(int ownerId) { PartiesOwnerDetailsData ownerDetail = new PartiesOwnerDetailsData(); Hashtable ht = new Hashtable(); ht.Add("@OwnerID", ownerId); Utility.LoadDataSet(ownerDetail.ListPartiesOwnerDetail, "f9101_pcget_MasterName", ht); return(ownerDetail); }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { PartiesOwnerDetailsData ds = new PartiesOwnerDetailsData(); global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); PartiesOwnerDetailsData ds = new PartiesOwnerDetailsData(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "ListPartiesOwnerDetailDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }