コード例 #1
0
ファイル: F15004.cs プロジェクト: CSSAdmin/TScan
 /// <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;
 }
コード例 #2
0
ファイル: F29650.cs プロジェクト: CSSAdmin/TScan
 /// <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));
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 /// <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();
 }
コード例 #5
0
 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;
     }
 }
コード例 #6
0
ファイル: F95010.cs プロジェクト: CSSAdmin/TScan
 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;
     }
 }
コード例 #7
0
 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;
     }
 }
コード例 #8
0
 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();
     }
 }
コード例 #9
0
 /// <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);
     }
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
ファイル: F81003.cs プロジェクト: CSSAdmin/TScan
 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;
 }
コード例 #12
0
ファイル: F8104.cs プロジェクト: CSSAdmin/TScan
        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);
        }
コード例 #13
0
ファイル: F8104.cs プロジェクト: CSSAdmin/TScan
 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;
 }
コード例 #14
0
ファイル: F8044.cs プロジェクト: CSSAdmin/TScan
 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;
 }
コード例 #15
0
 /// <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);
     }
 }
コード例 #16
0
 /// <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);
     }
 }
コード例 #17
0
ファイル: F29531.cs プロジェクト: CSSAdmin/TScan
 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);
     }
 }
コード例 #18
0
ファイル: F35075.cs プロジェクト: CSSAdmin/TScan
 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;
     }
 }
コード例 #19
0
ファイル: F29531.cs プロジェクト: CSSAdmin/TScan
 /// <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;
         }
     }
 }
コード例 #20
0
ファイル: F1016.cs プロジェクト: CSSAdmin/TScan
 /// <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;
     }
 }
コード例 #21
0
 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;
         }
     }
 }
コード例 #22
0
ファイル: F8912.cs プロジェクト: CSSAdmin/TScan
 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);
     }
 }
コード例 #23
0
 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();
     }
 }
コード例 #24
0
ファイル: F35001.cs プロジェクト: CSSAdmin/TScan
        /// <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;
        }
コード例 #25
0
ファイル: F820003.cs プロジェクト: CSSAdmin/TScan
 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));
             }
         }
     }
 }
コード例 #26
0
ファイル: F36012.cs プロジェクト: CSSAdmin/TScan
 /// <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;
             }
         }
     }
 }
コード例 #27
0
 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);
         }
     }
 }
コード例 #28
0
 /// <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);
     }
 }
コード例 #29
0
ファイル: F15100.cs プロジェクト: CSSAdmin/TScan
 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;
     }
 }
コード例 #30
0
 /// <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;
 }