/// <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); } }
public void OnD9030_F9030_DeleteSliceInformation(object sender, EventArgs eventArgs) { try { if (this != null && this.IsDisposed != true) { if (this.slicePermissionField.deletePermission) { //this.DeleteButton_Click(); RdlToCodeData.ParameterDataDataTable dt = new RdlToCodeData.ParameterDataDataTable(); dt.Rows.Add(new object[] { "EventID", this.keyId }); string deleteXML = TerraScanCommon.GetXmlString(dt); this.form820003control.WorkItem.RdlToCode_Delete(deleteXML, "r820003"); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// StatemantNumberLinkLabel_LinkClicked /// </summary> /// <param name="sender">The Sender</param> /// <param name="e">EventArgs</param> private void StatemantNumberLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { this.Cursor = Cursors.WaitCursor; FormInfo formInfo; if (!string.IsNullOrEmpty(this.form15016StatementHeaderData.f15016StatementHeaderSlim.Rows[0][this.form15016StatementHeaderData.f15016StatementHeaderSlim.FormColumn].ToString())) { formInfo = TerraScanCommon.GetFormInfo(int.Parse(this.form15016StatementHeaderData.f15016StatementHeaderSlim.Rows[0][this.form15016StatementHeaderData.f15016StatementHeaderSlim.FormColumn].ToString())); } else { formInfo = TerraScanCommon.GetFormInfo(1020); } formInfo.optionalParameters = new object[1]; formInfo.optionalParameters[0] = this.keyID; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } catch (Exception e1) { ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Handles the CellContentClick event of the ReceiptOwnersDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellEventArgs"/> instance containing the event data.</param> private void ReceiptOwnersDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == this.ReceiptOwnersDataGridView.Columns["OwnerName"].Index) { this.Cursor = Cursors.WaitCursor; FormInfo formInfo; if (e.RowIndex >= 0) { formInfo = TerraScanCommon.GetFormInfo(91000); formInfo.optionalParameters = new object[] { this.ReceiptOwnersDataGridView.Rows[e.RowIndex].Cells[this.form15103ReceiptOwnersData.ListReceiptOwners.OwnerIDColumn.ColumnName].Value }; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); ////object[] optionalParameter = new object[] { this.ReceiptOwnersDataGridView.Rows[e.RowIndex].Cells[this.form15103ReceiptOwnersData.ListReceiptOwners.OwnerIDColumn.ColumnName].Value }; ////Form receiptOwners = new Form(); ////receiptOwners = TerraScanCommon.GetForm(91000, optionalParameter, this.form15103Control.WorkItem); ////if (receiptOwners != null) ////{ //// receiptOwners.ShowDialog(); ////} } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
public void OnD9030_F9030_SetSlicePermission(object sender, DataEventArgs <SlicePermissionReload> eventArgs) { try { if (this.masterFormNo == eventArgs.Data.MasterFormNo) { this.slicePermissionField.deletePermission = this.PermissionFiled.deletePermission; this.slicePermissionField.editPermission = this.PermissionFiled.editPermission; this.slicePermissionField.newPermission = this.PermissionFiled.newPermission; this.slicePermissionField.openPermission = this.PermissionFiled.openPermission; } if (this.associationEventCount > 0) { // this.AssociationEventsGridView.Rows[0].Selected = true; TerraScanCommon.SetDataGridViewPosition(this.AssociationEventsGridView, 0); } } catch (SoapException ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
/// <summary> /// Handles the Click event of the AccountSelectionButton 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 AccountSelectionButton_Click(object sender, EventArgs e) { try { Form form1345 = new Form(); object[] optionalParameter = new object[] { this.rollYear }; form1345 = this.form15050Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(1345, optionalParameter, this.form15050Control.WorkItem); if (form1345 != null) { if (form1345.ShowDialog().Equals(DialogResult.OK)) { this.AccountTextBox.Text = TerraScanCommon.GetValue(form1345, "SelectedAccountName"); int.TryParse(TerraScanCommon.GetValue(form1345, "AccountId"), out this.accountId); this.EnableSaveAndApplyFeeButton(); } } } catch (SoapException ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
public void OnD9030_F9030_SaveConfirmed(object sender, EventArgs eventArgs) { try { if ((this.pageMode == TerraScanCommon.PageModeTypes.Edit && this.slicePermissionField.editPermission) || (this.pageMode == TerraScanCommon.PageModeTypes.New && this.slicePermissionField.newPermission)) { //this.Cursor = Cursors.WaitCursor; string HoHItems = string.Empty; F29610HoHExemptionData.GetHoHExemptionDetailsDataTable currentTable = new F29610HoHExemptionData.GetHoHExemptionDetailsDataTable(); F29610HoHExemptionData.GetHoHExemptionDetailsRow currenRow = currentTable.NewGetHoHExemptionDetailsRow(); currenRow.OwnerID = this.Hohownerid; currenRow.EventID = this.eventId; currenRow.IsQualified = Convert.ToBoolean(this.QualifiedComboBox.SelectedValue); currenRow.EffectiveDate = this.EffectiveDateTextBox.Text.Trim(); currenRow.ThroughDate = this.ThroughDateTextBox.Text.Trim(); string reductionofvalue = this.ReductionofvalueTextBox.Text.Replace("$", "").Replace(",", "").Trim(); currenRow.ReductionValue = Convert.ToInt32(reductionofvalue); string resultingtaxablevalue = this.ResultingTaxableValueTextBox.Text.Replace("$", "").Replace(",", "").Trim(); currenRow.ResultingTaxable = Convert.ToInt32(resultingtaxablevalue); currentTable.Rows.Add(currenRow); HoHItems = TerraScanCommon.GetXmlString(currentTable); int returnValue = this.form29610Control.WorkItem.F29610_SaveHoHExemptionDetails(this.eventId, HoHItems, TerraScanCommon.UserId); SliceReloadActiveRecord sliceReloadActiveRecord; sliceReloadActiveRecord.MasterFormNo = this.masterFormNo; sliceReloadActiveRecord.SelectedKeyId = returnValue; this.OnD9030_F9030_ReloadAfterSave(new TerraScan.Infrastructure.Interface.EventArgs <SliceReloadActiveRecord>(sliceReloadActiveRecord)); this.pageMode = TerraScanCommon.PageModeTypes.View; this.Cursor = Cursors.Default; } } catch (Exception ex) { } }
/// <summary> /// Handles the Click event of the CommentButton 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 CommentButton_Click(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; ////1531 - current form id object[] optionalParameter = new object[] { this.formId, this.registerId, this.formId }; ////9075 - comment form no Form commentForm = this.form1531Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9075, optionalParameter, this.form1531Control.WorkItem); if (commentForm != null) { commentForm.ShowDialog(); // Code Need to be Modified to Set the Text For Attachmnent/Comment Button (Get the Count,Flag From Attachment/Comment Form Makin Public Propertis. AdditionalOperationCountEntity additionalOperationCountEnt; additionalOperationCountEnt = new AdditionalOperationCountEntity(-999, -999, false); additionalOperationCountEnt.CommentCount = Convert.ToInt32(TerraScanCommon.GetValue(commentForm, "CommentCount")); additionalOperationCountEnt.HighPriority = Convert.ToBoolean(TerraScanCommon.GetValue(commentForm, "HighPriorityFlag")); this.SetText(additionalOperationCountEnt); } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Gets the parcel ID. /// </summary> private void GetCentralIDs() { if (this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.Rows.Count > 0) { if (this.centralSearchDatatable.Columns.Count == 0) { this.centralSearchDatatable.Columns.Add("CentralItemID"); } DataGridViewSelectedRowCollection selectedRows = this.ParcelSearchDataGridView.SelectedRows; if (selectedRows.Count > 0) { foreach (DataGridViewRow dataRow in selectedRows) { if (!string.IsNullOrEmpty(dataRow.Cells["CentralItemID"].Value.ToString().Trim())) { this.centralSearchdatarow = this.centralSearchDatatable.NewRow(); this.centralSearchdatarow["CentralItemID"] = dataRow.Cells["CentralItemID"].Value.ToString().Trim(); this.centralSearchDatatable.Rows.Add(this.centralSearchdatarow); } } //this.commandResult = TerraScanCommon.GetXmlString(this.centralSearchDatatable); } this.commandResult = TerraScanCommon.GetXmlString(this.centralSearchDatatable); this.DialogResult = DialogResult.OK; this.Close(); } }
/// <summary> /// Gets the owner id. /// </summary> private void GetOwnerId() { int rowId = 0; rowId = this.GetRowIndex(); if (!this.emptyRecord) { if (this.masternamesearchDatatable.Columns.Count == 0) { this.masternamesearchDatatable.Columns.Add("OwnerId"); } for (int i = 0; i <= this.MasterNameDataGridView.OriginalRowCount - 1; i++) { if (this.MasterNameDataGridView.Rows[i].Selected) { if (!string.IsNullOrEmpty(this.MasterNameDataGridView.Rows[i].Cells["OwnerId"].Value.ToString().Trim())) { this.masternamesearchdatarow = this.masternamesearchDatatable.NewRow(); this.masternamesearchdatarow["OwnerId"] = this.MasterNameDataGridView.Rows[i].Cells["OwnerId"].Value.ToString().Trim(); this.masternamesearchDatatable.Rows.Add(this.masternamesearchdatarow); this.commandResult = TerraScanCommon.GetXmlString(this.masternamesearchDatatable); this.DialogResult = DialogResult.Yes; this.Close(); } } } } }
/// <summary> /// Associate GridView Cellcontent Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AssociatedGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == this.AssociatedGridView.Columns["ReceiptNaumber"].Index) { int i = e.RowIndex; if (i >= 0) { Form associateReceiptsForm = new Form(); FormInfo formInfo; formInfo = TerraScanCommon.GetFormInfo(11001); formInfo.optionalParameters = new object[2]; formInfo.optionalParameters[0] = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.Rows[i][this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.ReceiptIDColumn]; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
public void PreviewButtonClick(object sender, DataEventArgs <Button> e) { try { TerraScanCommon.SetDataGridViewPosition(this.ReportDetailsDataGridView, this.selectedRow); this.Cursor = Cursors.WaitCursor; //// Calling the Common Function for Report Hashtable ht = new Hashtable(); ht.Add("UserId", this.userId); if (this.ReportDetailsDataGridView.SelectedRows.Count > 0) { ////TerraScanCommon.ShowReport(Convert.ToInt32(this.ReportDetailsDataGridView.SelectedRows[0].Cells[0].Value), TerraScan.Common.Reports.Report.ReportType.Preview); TerraScanCommon.ShowReport(900801, TerraScan.Common.Reports.Report.ReportType.Preview, ht); } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
private void PreviousButton_Click(object sender, EventArgs e) { bool IsNext = false; if (this.parcelId > 0) { this.parcelDetailData = this.form25006Control.WorkItem.GetParcelDetails(this.parcelId, IsNext);//,this.IsNext parcelId = Convert.ToInt32(this.parcelDetailData.f25006_ParcelNavigation.Rows[0][this.parcelDetailData.f25006_ParcelNavigation.ParcelIDColumn].ToString()); //this.parcelId = this.nextParcelId; if (this.parcelDetailData != null) { if (this.parcelDetailData.Tables[0].Rows.Count == 0) { this.NextButton.BackgroundImage = global::D20000.Properties.Resources.Arrow_Right_Disabled; this.PreviousButton.BackgroundImage = global::D20000.Properties.Resources.Arrow_Left_Disabled; } else { this.PreviousButton.BackgroundImage = global::D20000.Properties.Resources.Arrow_Left; this.NextButton.BackgroundImage = global::D20000.Properties.Resources.Arrow_Right; this.Cursor = Cursors.WaitCursor; FormInfo formInfo; formInfo = TerraScanCommon.GetFormInfo(30000); formInfo.optionalParameters = new object[1]; //formInfo.optionalParameters[0] = this.masterFormNo; formInfo.optionalParameters[0] = this.parcelId; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } } } }
/// <summary> /// Handles the DoubleClickCell event of the DepreciationControlDataGrid control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs"/> instance containing the event data.</param> private void DepreciationControlDataGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { if ((e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low1Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low2Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low3Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low4Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low5Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low6Column.ColumnName].Index)) { ////on double click the drop down will not come ////F36060 form slice is called e.Cell.DroppedDown = false; int deprtableId = 0; if (e.Cell.Value != null) { int.TryParse(e.Cell.Value.ToString(), out deprtableId); } if (deprtableId > 0) { FormInfo formInfo; formInfo = TerraScanCommon.GetFormInfo(31060); formInfo.optionalParameters = new object[1]; formInfo.optionalParameters[0] = deprtableId; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
/// <summary> /// Gets the search XML. /// </summary> /// <returns>string</returns> private string GetSearchXml() { int rollYearSearch = 0; DataTable searchValueDataTable = new DataTable(); string searchValueXml = string.Empty; searchValueDataTable = (DataTable)this.parcelSectionDataSet.ParcelSearchDataTable.Clone(); DataRow searchRow; searchRow = searchValueDataTable.NewRow(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ParcelNumberColumn.ColumnName] = this.ParcelNumberTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.StatementNumberColumn.ColumnName] = this.StatementNumberTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.OwnerNameColumn.ColumnName] = this.OwnerTextBox.Text.Trim(); int.TryParse(this.RollYearTextBox.Text.Trim(), out rollYearSearch); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.RollYearColumn.ColumnName] = rollYearSearch; searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.SitusColumn.ColumnName] = this.SitusTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.LegalColumn.ColumnName] = this.LegalTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.DistrictColumn.ColumnName] = this.DistrictTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.NeighborhoodColumn.ColumnName] = this.NeighborhoodTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.StateCodeColumn.ColumnName] = this.DorTextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ID1Column.ColumnName] = this.ID1TextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ID2Column.ColumnName] = this.ID2TextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ID3Column.ColumnName] = this.ID3TextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ID4Column.ColumnName] = this.ID4TextBox.Text.Trim(); searchRow[this.parcelSectionDataSet.ParcelSearchDataTable.ID5Column.ColumnName] = this.ID5TextBox.Text.Trim(); searchRow[SharedFunctions.GetResourceString("ParcelTypeIDColumnName")] = this.ParcelTypeComboBox.SelectedValue; searchValueDataTable.Rows.Add(searchRow); searchValueXml = TerraScanCommon.GetXmlString(searchValueDataTable); return(searchValueXml); }
private string GetSearchXml() { int rollYearSearch = 0; DataTable searchValueDataTable = new DataTable(); string searchValueXml = string.Empty; searchValueDataTable = (DataTable)this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.Clone(); DataRow searchRow; searchRow = searchValueDataTable.NewRow(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.ParcelNumberColumn.ColumnName] = this.ParcelNumberTextBox.Text.Trim(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.StatementNumberColumn.ColumnName] = this.StatementNumberTextBox.Text.Trim(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.OwnerNameColumn.ColumnName] = this.OwnerTextBox.Text.Trim(); int.TryParse(this.RollYearTextBox.Text.Trim(), out rollYearSearch); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.RollYearColumn.ColumnName] = rollYearSearch; searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.CompanyNameColumn.ColumnName] = this.CompanyNameTextBox.Text.Trim(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.CompanyNumberColumn.ColumnName] = this.CompanyNumberTextBox.Text.Trim(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.BranchLineColumn.ColumnName] = this.BranchLineTextBox.Text.Trim(); searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.PropertyClassColumn.ColumnName] = this.PropertyClassComboBox.SelectedValue; searchRow[this.GridSearchDataSet.f1406_pclst_CentrallyAssessedGridTable.FundColumn.ColumnName] = this.SubfundTextBox.Text.Trim(); searchValueDataTable.Rows.Add(searchRow); searchValueXml = TerraScanCommon.GetXmlString(searchValueDataTable); return(searchValueXml); }
/// <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; } }
/// <summary> /// Gets the smart part. /// </summary> /// <param name="formId">The form id.</param> /// <param name="optionalParameter">The optional parameter.</param> /// <param name="parentWorkItem">The parent work item.</param> /// <returns>The generated smartpart.</returns> public UserControl GetSmartPart(int formId, object[] optionalParameter, WorkItem parentWorkItem) { string currentWorkItemName = string.Empty; UserControl currentSmartPart = new UserControl(); WorkItem currentWorkItem = new WorkItem(); //// get the form information like formFile,permissions etc.. FormInfo formInfo = TerraScanCommon.GetFormInfo(formId); if (!string.IsNullOrEmpty(formInfo.formFile)) { currentWorkItemName = formInfo.formFile.Trim() + "WorkItem"; //// check for the parent workitem contains the current workitem if (!parentWorkItem.Items.Contains(currentWorkItemName)) { ////create the instance of current smartpart. currentSmartPart = CreateSmartPartInstance(formInfo.formFile, optionalParameter, currentWorkItemName, parentWorkItem); } else { currentWorkItem = (WorkItem)parentWorkItem.Items.Get(currentWorkItemName); currentSmartPart = (UserControl)currentWorkItem.Items.Get(formInfo.formFile); currentWorkItem.Terminate(); currentSmartPart.Dispose(); currentSmartPart = CreateSmartPartInstance(formInfo.formFile, optionalParameter, currentWorkItemName, parentWorkItem); } return(currentSmartPart); } else { ErrorEngine.ShowForm((int)TerraScanCommon.ErrorEngineType.Six); return(null); } }
/// <summary> /// Handles the LinkClicked event of the PostingsLink control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param> private void PostingsLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { if (this.PostId > 0) { this.Cursor = Cursors.WaitCursor; FormInfo formInfo; formInfo = TerraScanCommon.GetFormInfo(90101); formInfo.optionalParameters = new object[2]; formInfo.optionalParameters[0] = this.Tag; formInfo.optionalParameters[1] = this.PostId; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } ////int reportAuditId = 0; ////this.Cursor = Cursors.WaitCursor; ////reportAuditId = this.PostId; ////this.reportFileIdHashTable.Clear(); ////this.reportFileIdHashTable.Add("ReportFileID", reportAuditId); ////TerraScanCommon.ShowReport(90101, TerraScan.Common.Reports.Report.ReportType.Preview, this.reportFileIdHashTable); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Handles the LinkClicked event of the MasterNameLinkLabel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param> private void MasterNameLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { ///Changes to open the form Name\Address Management Form for the CO:10531 ////Master Name Address Form - FormID - 91000 FormInfo formInfo = TerraScanCommon.GetFormInfo(91000); formInfo.optionalParameters = new object[] { null }; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); this.Close(); //Form form9100 = new Form(); //form9100 = this.form9101Control.WorkItem.Services.Get<TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(91000, null, this.F9101Controll.WorkItem); //if (form9100 != null) //{ // form9100.ShowDialog(); //} } catch (Exception) { ErrorEngine.ShowForm((int)TerraScanCommon.ErrorEngineType.Six); } finally { this.MasterNameDataGridView.Focus(); } }
/// <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; } }
private void ReportListingGrid_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e) { try { if (e.Row.Band.Index > 0 && e.Row.Index > -1) { if (e.Row.Index < this.form9070ReportListingData.F9070GetReportListing.Rows.Count) { this.Cursor = Cursors.WaitCursor; int reportNumberId; int.TryParse(e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.ReportIDColumn.ColumnName].Value.ToString(), out reportNumberId); TerraScanCommon.ShowReportPreview(reportNumberId, TerraScan.Common.Reports.Report.ReportType.Preview , e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.ReportFileColumn.ColumnName].Value.ToString() , e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.DescriptionColumn.ColumnName].Value.ToString()); //// Calling the Common Function for Report // TerraScanCommon.ShowReport(reportNumberId, TerraScan.Common.Reports.Report.ReportType.Preview); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Checks the errors. /// </summary> /// <param name="formNo">The form no.</param> /// <returns>returns formNo</returns> private SliceValidationFields CheckErrors(int formNo) { SliceValidationFields sliceValidationFields = new SliceValidationFields(); sliceValidationFields.FormNo = formNo; if (!string.IsNullOrEmpty(this.ComplainantEmailTextBox.Text.Trim()) && !TerraScanCommon.CheckValidEmailID(this.ComplainantEmailTextBox.Text.Trim())) { this.ComplainantEmailTextBox.Focus(); sliceValidationFields.ErrorMessage = SharedFunctions.GetResourceString("EmailValidation"); return(sliceValidationFields); } ////To Verify whether the selected value is valid Value member if (!string.IsNullOrEmpty(Convert.ToString(this.ComplainantAddressCombo.Text)) && string.IsNullOrEmpty(Convert.ToString(this.ComplainantAddressCombo.SelectedValue))) { sliceValidationFields.ErrorMessage = SharedFunctions.GetResourceString("CallInInValidComplainant"); return(sliceValidationFields); } ////To Verify whether the selected value is valid Value member if (!string.IsNullOrEmpty(Convert.ToString(this.IncidentAddressCombo.Text)) && string.IsNullOrEmpty(Convert.ToString(this.IncidentAddressCombo.SelectedValue))) { sliceValidationFields.ErrorMessage = SharedFunctions.GetResourceString("CallInInValidIncident"); return(sliceValidationFields); } sliceValidationFields.RequiredFieldMissing = false; return(sliceValidationFields); }
private void catalogForm_ApexFormOpened(object sender, string filePath) { if (!IsApexOpened) { // IsApexOpened = true; //catalogForm.DisableSketch(true); if (apexForm != null) { // MessageBox.Show("Please Close the previous apex before opening new sketch", "Terrascan", MessageBoxButtons.OK, MessageBoxIcon.Warning); ((F3205)apexForm).CloseSketch(); } //catalogForm.DisableSketch(true); object[] optionalParameter = { this.ParcelId }; apexForm = TerraScanCommon.GetForm(3205, optionalParameter, this.form32012Control.WorkItem);//(3205, optionalParameter, this.form32012Control.WorkItem); ////open form in view mode - possible to edit if (apexForm != null) { apexForm.Show(); } //catalogForm.DisableSketch(true); IsApexOpened = true; this.F9030_ApexOpenEvent(this, new DataEventArgs <bool>(true)); } }
/// <summary> /// DistrictlinkLabel2_LinkClicked /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void DistrictlinkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { this.Cursor = Cursors.WaitCursor; FormInfo formInfo; ////Added by Biju on 22/Jun/2009 to fix #1377 Int64 districtID = 0; formInfo = TerraScanCommon.GetFormInfo(11002); formInfo.optionalParameters = new object[1]; ////Added by Biju on 22/Jun/2009 to fix #1377 if (this.form27007ParcelHeaderSlimData.f27007ParcelHeaderSlim.Rows.Count > 0) { Int64.TryParse(this.form27007ParcelHeaderSlimData.f27007ParcelHeaderSlim.Rows[0][this.form27007ParcelHeaderSlimData.f27007ParcelHeaderSlim.DistrictIDColumn].ToString(), out districtID); } ////till here formInfo.optionalParameters[0] = districtID;//Commented/Added by Biju on 22/Jun/2009 to fix #1377//this.keyID ; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } catch (Exception e1) { ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// Handles the LinkClicked event of the CauseListLinkLabel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param> private void CauseListLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { //Save the records this.SaveRecords(); System.Threading.Thread thread = new Thread(new ThreadStart(ProcessCauseList)); thread.Start(); //Once thread over make invisible the form and again open the form(BugID = 1052) this.Hide(); // Shows the report form. TerraScanCommon.ShowReport(90101, TerraScan.Common.Reports.Report.ReportType.Preview, this.errorIdHashTable); } catch (SoapException ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this); } finally { this.Cursor = Cursors.Default; } }
private int SaveOperation(RdlToCodeData.ParameterDataDataTable dt, bool newRecord, string formName) { int errorId = -1; if (!newRecord) { if (dt.Rows.Count > 1) { dt.Rows.Add(new object[] { "EventID", this.keyId }); string saveXML = TerraScanCommon.GetXmlString(dt); errorId = this.form820003control.WorkItem.RdlToCode_Save(saveXML, formName); this.keyId = errorId; //MessageBox.Show("Record Updated Successfully for " + formName, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { if (dt.Rows.Count > 0) { string saveXML = TerraScanCommon.GetXmlString(dt); errorId = this.form820003control.WorkItem.RdlToCode_Save(saveXML, formName); this.keyId = errorId; //MessageBox.Show("New Record Created Successfully for " + formName, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } } return(errorId); }
/// <summary> /// Delete Header Properties /// </summary> private void DeleteHeaderProperties() { DialogResult dialogResult; this.Cursor = Cursors.WaitCursor; this.workOrderHeaderData = this.form8902Control.WorkItem.GetHeader(this.workId); if (this.workOrderHeaderData.Rows.Count > 0) { dialogResult = MessageBox.Show(SharedFunctions.GetResourceString("F8902WorkOrderConfirmDelete"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dialogResult == DialogResult.Yes) { this.form8902Control.WorkItem.DeleteHeader(this.workId, TerraScanCommon.UserId); this.deleteMessageResult = true; FormInfo formInform; formInform = TerraScanCommon.GetFormInfo(this.masterFormNo); this.ShowForm(this, new DataEventArgs <FormInfo>(formInform)); SliceFormCloseAlert sliceFormCloseAlert; sliceFormCloseAlert.FormNo = this.masterFormNo; sliceFormCloseAlert.FlagFormClose = true; this.FormSlice_FormCloseAlert(this, new DataEventArgs <SliceFormCloseAlert>(sliceFormCloseAlert)); } else if (dialogResult == DialogResult.No) { this.deleteMessageResult = false; return; } } this.Cursor = Cursors.Default; }
/// <summary> /// To Save the Receipt Header Receipt Number /// </summary> private void SaveReceiptHeaderReceiptNumber() { DataTable receiptData = new DataTable(); receiptData.Columns.AddRange(new DataColumn[] { new DataColumn("ReceiptNumber"), new DataColumn("ReceiptDate"), new DataColumn("InterestDate") }); DataRow dr = receiptData.NewRow(); dr["ReceiptNumber"] = this.ReceiptNumberTextBox.Text.Trim(); dr["ReceiptDate"] = this.ReceiptDateTextBox.Text; dr["InterestDate"] = this.InterestDateTextBox.Text; receiptData.Rows.Add(dr); string receiptValue = TerraScanCommon.GetXmlString(receiptData); try { this.form15100control.WorkItem.F15100_SaveReceiptHeaderreceiptNumber(this.keyId, receiptValue, TerraScanCommon.UserId); } catch (Exception ex) { } SliceReloadActiveRecord currentSliceInfo; currentSliceInfo.MasterFormNo = this.masterFormNo; currentSliceInfo.SelectedKeyId = this.keyId; ////to reload the form with the current keyid ////to refresh the master form with the return keyid this.OnD9030_F9030_ReloadAfterSave(new TerraScan.Infrastructure.Interface.EventArgs <SliceReloadActiveRecord>(currentSliceInfo)); }
/// <summary> /// Saves the frozen details. /// </summary> private void SaveFrozenDetails() { F29640FrozenValueData.SaveFrozenValuesDataTable frozenTable = new F29640FrozenValueData.SaveFrozenValuesDataTable(); F29640FrozenValueData.SaveFrozenValuesRow frozenRow = frozenTable.NewSaveFrozenValuesRow(); frozenRow.EventID = this.keyId; if (this.frozenId > 0) { frozenRow.FrozenID = this.frozenId; } else { frozenRow.FrozenID = 0; } frozenRow.FrozenValue = this.FrozenValueTextBox.DecimalTextBoxValue; if (!string.IsNullOrEmpty(this.NoteTextBox.Text.Trim())) { frozenRow.Note = this.NoteTextBox.Text.Trim(); } else { frozenRow.Note = string.Empty; } frozenTable.Rows.Add(frozenRow); // DB call for save this.form29640Controller.WorkItem.SaveFrozenDetails(TerraScanCommon.GetXmlString(frozenTable), TerraScanCommon.UserId); }