/// <summary> /// Populates the agency MGMT details. /// </summary> /// <param name="agencyIdentifier">The agency identifier.</param> private void PopulateAgencyMgmtDetails(int agencyIdentifier) { this.AgencyId = agencyIdentifier; this.pageLoadStatus = true; this.agencyMgmtDataset = this.form15004Controll.WorkItem.F15004_GetAgencyDetails(this.agencyId); this.GetAgencyDetails(); this.PopulateDisbursementHistoryGridView(); this.pageMode = TerraScanCommon.PageModeTypes.View; this.pageLoadStatus = false; }
/// <summary> /// Activates the Edit button in Master form according to the conditions specified. /// </summary> private void EditEnabled() { if (!this.flagLoadOnProcess && this.pageMode == TerraScanCommon.PageModeTypes.View && this.PermissionFiled.editPermission && this.formMasterPermissionEdit) { this.pageMode = TerraScanCommon.PageModeTypes.Edit; //// Event for enable Save, Cancel in form master this.FormSlice_EditEnabled(this, new DataEventArgs <int>(this.masterFormNo)); } }
public void FormSlice_OnSave_SetKeyId(object sender, DataEventArgs <SliceReloadActiveRecord> eventArgs) { if (this != null && this.IsDisposed != true && this.Visible && this.masterFormNo == eventArgs.Data.MasterFormNo) { this.keyId = eventArgs.Data.SelectedKeyId; this.pageMode = TerraScanCommon.PageModeTypes.View; this.LoadDeprecationControl(); this.FormSliceResize(); } }
/// <summary> /// F15016_Load /// </summary> /// <param name="sender">The Sender</param> /// <param name="e">EventArgs</param> private void F15016_Load(object sender, EventArgs e) { this.FlagSliceForm = true; this.flagLoadOnProcess = true; this.LoadDefaultView(); this.pageMode = TerraScanCommon.PageModeTypes.View; this.flagLoadOnProcess = false; this.ActiveControl = StatemantNumberLinkLabel; this.StatemantNumberLinkLabel.Focus(); }
public void OnD9030_F9030_LoadSliceDetails(object sender, DataEventArgs <SliceReloadActiveRecord> eventArgs) { if (this.masterFormNo == eventArgs.Data.MasterFormNo) { this.eventId = eventArgs.Data.SelectedKeyId; this.GetAglandApplicationDetails(this.eventId); this.FormSlice_EditEnabled(this, new DataEventArgs <int>(this.masterFormNo)); this.pageMode = TerraScanCommon.PageModeTypes.Edit; } }
public void OnD9030_F9030_SaveConfirmed(object sender, EventArgs eventArgs) { if ((this.pageMode == TerraScanCommon.PageModeTypes.Edit)) { mshtml.IHTMLWindow2 win = (mshtml.IHTMLWindow2)WebSliceWebBrowser.Document.Window.DomWindow; win.execScript("if(typeof tsSave=='function')tsSave();", "javascript"); this.pageMode = TerraScanCommon.PageModeTypes.View; this.isSaveMode = true; } }
public void OnD9030_F9030_LoadSliceDetails(object sender, DataEventArgs <SliceReloadActiveRecord> eventArgs) { if (this.masterFormNo == eventArgs.Data.MasterFormNo) { //this.ClearControl(); this.eventId = eventArgs.Data.SelectedKeyId; this.GetHoHEemptionDetails(this.eventId); this.pageMode = TerraScanCommon.PageModeTypes.View; } }
public void OnD9030_F9030_EnableNewMethod(object sender, EventArgs eventArgs) { if (this != null && this.IsDisposed != true && this.Visible) { this.pageMode = TerraScanCommon.PageModeTypes.New; this.LoadDeprecationControl(); this.DeprNeighborhoodlabel.Text = string.Empty; this.FormSliceResize(); } }
/// <summary> /// Handles the KeyPress event of the CommentsTextBox control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.KeyPressEventArgs"/> instance containing the event data.</param> private void CommentsTextBox_KeyPress(object sender, KeyPressEventArgs e) { try { this.pageMode = TerraScanCommon.PageModeTypes.New; } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
/// <summary> /// Handles the Load event of the F84124 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 F84124_Load(object sender, EventArgs e) { this.FlagSliceForm = true; this.flagLoadOnProcess = true; ////Set the Max Length for editable fields this.SetMaxLength(); this.CustomizeSanitaryPipeLocation(); this.pageMode = TerraScanCommon.PageModeTypes.View; this.ControlLock(!this.slicePermissionField.editPermission || !this.formMasterPermissionEdit); this.flagLoadOnProcess = false; }
public void OnD9030_F9030_CancelSliceInformation(object sender, EventArgs eventArgs) { this.Cursor = Cursors.WaitCursor; this.pageMode = TerraScanCommon.PageModeTypes.View; this.catalogIdentity = this.keyId; this.ClearSelectionCatalogDetails(); this.LoadCategoryComboValues(); this.PopulateSelectionCatalogDetails(); this.CategoryComboBox.Focus(); this.Cursor = Cursors.Default; }
public void OnD9030_F9030_EnableNewMethod(object sender, DataEventArgs <int> eventArgs) { this.pageMode = TerraScanCommon.PageModeTypes.New; this.ClearTvDetails(); SanitaryPipeInspectionDetailsData tempTvdetailsDataSet = new SanitaryPipeInspectionDetailsData(); this.TVDetailsGridView.DataSource = tempTvdetailsDataSet.ListEventEngineTVDetails; this.TVDetailsGridView.CurrentCell = null; this.DisableControls(false); ////this.LockControls(true); }
public void OnD9030_F9030_CancelSliceInformation(object sender, DataEventArgs <int> eventArgs) { this.ClearTvDetails(); this.GetDetailType(); this.PopulateTvDetails(); this.recordEdited = false; this.DisableControls(true); ////this.AddButton.Enabled = this.slicePermissionField.newPermission; ////this.DisableHeaderControls(this.slicePermissionField.newPermission); this.pageMode = TerraScanCommon.PageModeTypes.View; }
public void OnD9030_F9030_CancelSliceInformation(object sender, DataEventArgs <int> eventArgs) { ////this.MaterialsGridView.CurrentCell.Selected = true; this.DisableControls(true); this.ClearTimeDetails(); this.UserComboBox.SelectedIndex = 0; this.PartComboBox.SelectedIndex = 0; this.PopulateMaterialDetails(); this.DisableHeaderControls(this.slicePermissionField.newPermission); this.pageMode = TerraScanCommon.PageModeTypes.View; }
/// <summary> /// Handles the CheckedChanged event of the WorkOrderEngineCompleteCheckBox 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 WorkOrderEngineCompleteCheckBox_CheckedChanged(object sender, EventArgs e) { try { this.pageMode = TerraScanCommon.PageModeTypes.New; } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
/// <summary> /// Handles the SelectionChangeCommitted event of the WorkOrderTypeComboBox 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 WorkOrderTypeComboBox_SelectionChangeCommitted(object sender, EventArgs e) { try { this.pageMode = TerraScanCommon.PageModeTypes.New; } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
public void OnD9030_F9030_CancelSliceInformation(object sender, EventArgs eventArgs) { try { this.pageMode = TerraScanCommon.PageModeTypes.View; this.LoadAssociationEventGrid(); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
public void OnD9030_F9030_LoadSliceDetails(object sender, DataEventArgs <SliceReloadActiveRecord> eventArgs) { if (this.masterFormNo == eventArgs.Data.MasterFormNo) { this.stateId = eventArgs.Data.SelectedKeyId; this.GetStateAssessedOwnerDetails(this.stateId); ////this.PermissionControlLock(!this.PermissionFiled.editPermission || !this.formMasterPermissionEdit); this.pageMode = TerraScanCommon.PageModeTypes.View; this.RollYearTextBox.Visible = false; this.RolllinkLabel.Visible = true; } }
/// <summary> /// Handles the KeyDown event of the AssociationLinksGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.KeyEventArgs"/> instance containing the event data.</param> private void AssociationLinksGridView_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 46) { if (gridassociationid > 0) { this.form29531Control.WorkItem.F29531_DeleteAssociationLink(gridassociationid, TerraScanCommon.UserId); this.LoadAssociationEventGrid(); this.pageMode = TerraScanCommon.PageModeTypes.View; } } }
/// <summary> /// Sets the edit record. /// </summary> private void SetEditRecord() { ////if (this.pageMode == TerraScanCommon.PageModeTypes.View && this.EditPermissionButton.ActualPermission) if (this.pageMode == TerraScanCommon.PageModeTypes.View && this.PermissionFiled.editPermission) { ////this.SetButtons(this, new DataEventArgs<Enum>(TerraScanCommon.ButtonActionMode.EditMode)); this.SetButtons(TerraScanCommon.ButtonActionMode.EditMode); this.pageMode = TerraScanCommon.PageModeTypes.Edit; this.NextNumRecordsGridView.Columns[3].SortMode = DataGridViewColumnSortMode.NotSortable; this.NextNumRecordsGridView.TabStop = false; } }
public void OnD9030_F9030_EnableNewMethod(object sender, DataEventArgs <int> eventArgs) { if (this.pageMode == TerraScanCommon.PageModeTypes.View) { if (this.slicePermissionField.newPermission) { this.pageMode = TerraScanCommon.PageModeTypes.New; this.GridPanel.Enabled = false; this.panel2.Enabled = false; this.panel4.Enabled = false; } } }
public void OnD9030_F9030_EnableNewMethod(object sender, EventArgs eventArgs) { try { this.pageMode = TerraScanCommon.PageModeTypes.New; this.ClearWorkOrderCallIn(); this.PanelEnable(false); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
public void OnD9030_F9030_EnableNewMethod(object sender, EventArgs eventArgs) { if (this.slicePermissionField.newPermission) { this.GetHoHEemptionDetails(this.eventId); this.pageMode = TerraScanCommon.PageModeTypes.New; } else { this.pageMode = TerraScanCommon.PageModeTypes.New; this.ClearControl(); } }
/// <summary> /// Populates the value slice header details. /// </summary> private void PopulateValueSliceHeaderDetails() { this.pageLoadStatus = true; this.valueSliceHeaderDataSet = this.Form35001Controll.WorkItem.F35001_GetValueSliceHeader(this.keyId); if (this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows.Count > 0) { decimal outNewConstructionValue; this.SliceTypeTextBox.Text = this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows[0][this.valueSliceHeaderDataSet.GetValueSliceHeader.SliceTypeColumn.ColumnName].ToString(); this.DescriptionTextBox.Text = this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows[0][this.valueSliceHeaderDataSet.GetValueSliceHeader.DescriptionColumn.ColumnName].ToString(); decimal.TryParse(this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows[0][this.valueSliceHeaderDataSet.GetValueSliceHeader.NewConstructionColumn.ColumnName].ToString(), out outNewConstructionValue); this.NewConstValueTextBox.Text = outNewConstructionValue.ToString("#,##0.00"); this.tempNewConstructionValue = outNewConstructionValue.ToString("0.00"); this.WillValueCombo.SelectedValue = Convert.ToInt32(this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows[0][this.valueSliceHeaderDataSet.GetValueSliceHeader.IsValueColumn.ColumnName]); this.WillRollCombo.SelectedValue = Convert.ToInt32(this.valueSliceHeaderDataSet.GetValueSliceHeader.Rows[0][this.valueSliceHeaderDataSet.GetValueSliceHeader.IsRollColumn.ColumnName]); } else { this.ClearValueSliceHeader(); this.LockControls(true); } // Added by Latha //if (this.NewConstValueTextBox.Text.Equals("0.00")) //{ // this.NewConstValueTextBox.ForeColor = System.Drawing.Color.Black; //} //else if (this.ConvertStringtoDec(this.AdjOtherTextBox.Text.Trim()) > 0) //{ // this.NewConstValueTextBox.ForeColor = System.Drawing.Color.FromArgb(0, 128, 0); //} if (this.NewConstValueTextBox.Text.Contains("(")) { this.NewConstValueTextBox.ForeColor = System.Drawing.Color.FromArgb(128, 0, 0); ////Added by Biju on 08/Feb/2010 to fix #5877 //decimal tempNewConstValue; //decimal.TryParse(this.NewConstValueTextBox.Text, out tempNewConstValue); ////till here ////Modified by Biju on 08/Feb/2010 to fix #5877 //this.NewConstValueTextBox.Text = "(" + Decimal.Negate(tempNewConstValue ) + ")"; } else { this.NewConstValueTextBox.ForeColor = System.Drawing.Color.Black; } // Ends here this.DescriptionTextBox.Focus(); this.pageMode = TerraScanCommon.PageModeTypes.View; this.pageLoadStatus = false; }
private void SetEditRecord() { if (this.slicePermissionField.editPermission && this.formMasterPermissionEdit) { if (!this.pageLoadStatus) { if (!string.Equals(this.pageMode, TerraScanCommon.PageModeTypes.Edit)) { this.pageMode = TerraScanCommon.PageModeTypes.Edit; this.FormSlice_EditEnabled(this, new DataEventArgs <int>(this.masterFormNo)); } } } }
/// <summary> /// Sets the edit record. /// </summary> private void SetEditRecord() { if (this.miscImprovementCatalogPermissionFields.editPermission) { if (!this.pageLoadStatus) { if (!string.Equals(this.pageMode, TerraScanCommon.PageModeTypes.Edit)) { this.pageMode = TerraScanCommon.PageModeTypes.Edit; this.MiscSelectionSaveButton.Enabled = true; } } } }
public void OnD9030_F9030_EnableNewMethod(object sender, DataEventArgs <int> eventArgs) { if (this.pageMode == TerraScanCommon.PageModeTypes.View) { if (this.slicePermissionField.newPermission) { this.pageMode = TerraScanCommon.PageModeTypes.New; this.ClearPointEventProperties(); this.PointVisibility(false); this.PointEventPanel.Enabled = false; ////this.LockControls(true); } } }
/// <summary> /// Handles the TextChanged event of the WorkOrderEngineDateTextBox 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 WorkOrderEngineDateTextBox_TextChanged(object sender, EventArgs e) { try { if (this.dateChanged) { this.pageMode = TerraScanCommon.PageModeTypes.New; } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
public void OnD9030_F9030_SaveConfirmed(object sender, EventArgs eventArgs) { if (this.pageMode == TerraScanCommon.PageModeTypes.Edit && this.PermissionFiled.editPermission) { this.SaveReceiptHeaderReceiptNumber(); this.pageMode = TerraScanCommon.PageModeTypes.View; } else { this.ShowPanel(true); this.ControlLock(false); this.pageMode = TerraScanCommon.PageModeTypes.View; } }
/// <summary> /// Initializes a new instance of the <see cref="F3101"/> class. /// </summary> /// <param name="sectionKey">The section key.</param> /// <param name="squareFeet">The square feet.</param> /// <param name="baseQuality">The base quality.</param> /// <param name="qualityDescription">The quality description.</param> /// <param name="description">The description.</param> /// <param name="tagAlongWidth">Width of the tag along.</param> /// <param name="tagAlongLength">Length of the tag along.</param> /// <param name="xmlType">Type of the XML.</param> /// <param name="groupId">The group id.</param> public F3101(int sectionKey, int squareFeet, double baseQuality, string qualityDescription, string description, string tagAlongWidth, string tagAlongLength, string xmlType, int groupId) { InitializeComponent(); this.pageMode = TerraScanCommon.PageModeTypes.Edit; this.houseTypeXml = xmlType; this.sectionKeyValue = sectionKey; this.squareFeet = squareFeet; this.baseQuality = baseQuality; this.baseDescription = qualityDescription; this.tagAlongWidth = tagAlongWidth; this.tagAlongLength = tagAlongLength; this.sectionDescription = description; this.sectionGroupId = groupId; }