Esempio n. 1
0
        /// <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);
            }
        }
Esempio n. 2
0
        /// <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);
            }
        }
Esempio n. 3
0
 /// <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;
     }
 }
Esempio n. 4
0
 /// <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;
     }
 }
Esempio n. 5
0
        /// <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>
        /// 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)
        {
            //// this.CommentButtonClick(this, new DataEventArgs<string>(string.Empty));

            try
            {
                this.Cursor = Cursors.WaitCursor;
                object[] optionalParameter;
                int      currentCommentForm;
                if (this.commentFormIdDiffers)
                {
                    currentCommentForm = this.commentFormId;
                }
                else
                {
                    currentCommentForm = this.currentFormId;
                }

                if (Convert.ToBoolean(TerraScanCommon.GetFormInfo(currentCommentForm).openPermission))
                {
                    optionalParameter = new object[] { currentCommentForm, this.keyId, this.parentFormId };

                    Form commentForm = new Form();
                    commentForm     = TerraScanCommon.GetForm(9075, optionalParameter, this.ParentWorkItem);
                    commentForm.Tag = currentCommentForm;

                    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.ToInt16(TerraScanCommon.GetValue(commentForm, "CommentCount"));
                        additionalOperationCountEnt.HighPriority = Convert.ToBoolean(TerraScanCommon.GetValue(commentForm, "HighPriorityFlag"));
                        this.SetText(additionalOperationCountEnt);
                    }
                }
                else
                {
                    MessageBox.Show(SharedFunctions.GetResourceString("OpenPermission"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
Esempio n. 7
0
        private void Districbutton_Click(object sender, EventArgs e)
        {
            try
            {
                Form     districtF15122    = new Form();
                object[] optionalParameter = new object[] { this.rollYear, this.ParentFormId };
                districtF15122 = TerraScanCommon.GetForm(1512, optionalParameter, this.form1024Control.WorkItem);

                DialogResult districtDialog;
                if (districtF15122 != null)
                {
                    districtDialog = districtF15122.ShowDialog();

                    if (districtDialog == DialogResult.OK)
                    {
                        try
                        {
                            this.districtId = TerraScanCommon.GetValue(districtF15122, "DistrictId");
                            int selectedDistrictId = 0;
                            if (this.districtId != null && !string.IsNullOrEmpty(this.districtId))
                            {
                                int.TryParse(this.districtId, out selectedDistrictId);
                            }

                            F1512DistrictSelectionData districtSlectionDataset = this.form1024Control.WorkItem.F1204_GetDistrictSelectionData(selectedDistrictId, "", "", -999);

                            if (districtSlectionDataset.ListDistrictSelection.Rows.Count > 0)
                            {
                                this.DistrictTextBox.Text = districtSlectionDataset.ListDistrictSelection.Rows[0][districtSlectionDataset.ListDistrictSelection.DistrictColumn].ToString() + " - " + districtSlectionDataset.ListDistrictSelection.Rows[0][districtSlectionDataset.ListDistrictSelection.DescriptionColumn].ToString();
                            }
                            this.LoadSubGrid(this.districtId);
                        }
                        catch (Exception ex)
                        {
                            ExceptionManager.ManageException(SharedFunctions.GetResourceString("ErrorLoadingForm"), ex, ExceptionManager.ActionType.Display, this.ParentForm);
                        }
                    }
                }
            }
            catch (Exception e1)
            {
                ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
Esempio n. 8
0
 private void PeopleButton_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         string currentOwnerId = string.Empty;
         Form   paidbyF1019    = new Form();
         paidbyF1019 = this.form1019Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form1019Control.WorkItem);
         if (paidbyF1019 != null)
         {
             if (paidbyF1019.ShowDialog() == DialogResult.Yes)
             {
                 this.ownerId            = Convert.ToInt32(TerraScanCommon.GetValue(paidbyF1019, "MasterNameOwnerId"));
                 this.ownerDetailDataSet = this.form1019Control.WorkItem.F1019_GetPayeeDetails(this.ownerId);
                 this.CurrentOwnerID     = this.ownerId.ToString();
                 if (this.ownerDetailDataSet.PayeeDetail.Rows.Count > 0)
                 {
                     this.PaidByTextBox.Text   = this.ownerDetailDataSet.PayeeDetail.Rows[0]["PaidBy"].ToString();
                     this.Address1TextBox.Text = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Address1"].ToString();
                     this.Address2TextBox.Text = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Address2"].ToString();
                     this.CityTextBox.Text     = this.ownerDetailDataSet.PayeeDetail.Rows[0]["City"].ToString();
                     this.StateTextBox.Text    = this.ownerDetailDataSet.PayeeDetail.Rows[0]["State"].ToString();
                     this.ZipTextBox.Text      = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Zip"].ToString();
                     this.CommentTextBox.Text  = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Comment"].ToString();
                 }
                 else
                 {
                     this.PaidByTextBox.Text   = string.Empty;
                     this.Address1TextBox.Text = string.Empty;
                     this.Address2TextBox.Text = string.Empty;
                     this.CityTextBox.Text     = string.Empty;
                     this.StateTextBox.Text    = string.Empty;
                     this.ZipTextBox.Text      = string.Empty;
                     this.CommentTextBox.Text  = string.Empty;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 9
0
        /// <summary>
        /// Shows the queryUtility form on query UtilityButton Click.- called from smartpart used this
        /// </summary>
        public void ShowQueryUtilityForm()
        {
            object[] optionalParameter = new object[] { this.toolBoxEntity.CurrentFormId, this.toolBoxEntity.WhereCondition, this.toolBoxEntity.UserDefinedWhereCondition };
            ////9050 - query utility form
            Form query = TerraScanCommon.GetForm(9050, optionalParameter, this.toolBoxEntity.ParentWorkItem);

            if (query != null && query.ShowDialog() == DialogResult.Yes)
            {
                this.toolBoxEntity.CalledFormStatus          = true;
                this.toolBoxEntity.KeyId                     = Convert.ToInt32(TerraScanCommon.GetValue(query, "QueryId"));
                this.toolBoxEntity.WhereCondition            = TerraScanCommon.GetValue(query, "WhereCondition");
                this.toolBoxEntity.UserDefinedWhereCondition = TerraScanCommon.GetValue(query, "UserWhereCondition");
            }
            else
            {
                this.toolBoxEntity.CalledFormStatus = false;
            }
        }
Esempio n. 10
0
        /// <summary>
        /// Shows the SnapshotUtility form on Snapshot UtilityButton Click.- called from smartpart used this
        /// </summary>
        public void ShowSnapshotUtilityForm()
        {
            object[] optionalParameter = new object[] { this.toolBoxEntity.CurrentFormId, this.toolBoxEntity.SnapshotIdXmlString, this.toolBoxEntity.SnapshotCount };
            ////9051 - snapshot utility form
            Form snapshot = TerraScanCommon.GetForm(9051, optionalParameter, this.toolBoxEntity.ParentWorkItem);

            if (snapshot != null && snapshot.ShowDialog() == DialogResult.Yes)
            {
                this.toolBoxEntity.CalledFormStatus    = true;
                this.toolBoxEntity.KeyId               = Convert.ToInt32(TerraScanCommon.GetValue(snapshot, "SnapShotId"));
                this.toolBoxEntity.SnapshotName        = TerraScanCommon.GetValue(snapshot, "SnapshotName");
                this.toolBoxEntity.SnapshotDescription = TerraScanCommon.GetValue(snapshot, "SnapshotDescription");
            }
            else
            {
                this.toolBoxEntity.CalledFormStatus = false;
            }
        }
Esempio n. 11
0
        /// <summary>
        /// Handles the Click event of the LinkToButton 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 LinkToButton_Click(object sender, EventArgs e)
        {
            Form formInfo = new Form();

            object[] optionalParameter = new object[] { RollYear, this.masterFormNo.ToString() };
            formInfo = this.form29531Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(linkselectionform, optionalParameter, this.form29531Control.WorkItem);
            if (formInfo != null)
            {
                if (formInfo.ShowDialog() == DialogResult.OK)
                {
                    int parcelid;
                    parcelid         = Convert.ToInt32(TerraScanCommon.GetValue(formInfo, "CommandResult").ToString());
                    this.activekeyid = parcelid;
                    string associationlink = F29531WorkItem.F29531_GetLinkText(asscoationId, this.activekeyid);
                    this.LinkToTextBox.Text = associationlink;
                    // this.LoadAssociationEventGrid();
                }
            }
        }
Esempio n. 12
0
        /// <summary>
        /// Handles the Click event of the ScheduleButton 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 ScheduleButton_Click(object sender, EventArgs e)
        {
            try
            {
                Form     scheduleSelectionForm = new Form();
                object[] optionalParameter     = new object[] { this.RollYearTextBox.Text.Trim() };
                scheduleSelectionForm = this.formF2205Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(1402, optionalParameter, this.formF2205Control.WorkItem);
                if (scheduleSelectionForm != null)
                {
                    if (scheduleSelectionForm.ShowDialog() == DialogResult.OK)
                    {
                        // Get selected schedule details
                        this.existScheduleId     = TerraScanCommon.GetValue(scheduleSelectionForm, "ScheduleId");
                        this.existScheduleNumber = TerraScanCommon.GetValue(scheduleSelectionForm, "CommandValue");

                        if (this.existScheduleId.Equals(this.keyId.ToString()))
                        {
                            // Show messagebox when select same scheduleid
                            MessageBox.Show(SharedFunctions.GetResourceString("SameScheduleMessage"),
                                            SharedFunctions.GetResourceString("MoveScheduleLineHeader"),
                                            MessageBoxButtons.OK,
                                            MessageBoxIcon.Information);

                            // Remove the existing value presents in the textbox
                            this.ExistScheduleTextBox.Text = string.Empty;

                            // Set focus on schedule button to select another schedule
                            this.ScheduleButton.Focus();
                        }
                        else
                        {
                            this.ExistScheduleTextBox.Text = this.existScheduleNumber;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }
Esempio n. 13
0
        /// <summary>
        /// Shows the requery form on Filtered Button Click.
        /// </summary>
        public void ShowRequeryForm()
        {
            ////shows form
            if (this.statusBarEntity.CalledForm == null)
            {
                ////9052 - requery form
                this.statusBarEntity.CalledForm = TerraScanCommon.GetForm(9052, this.statusBarEntity.OptionalInputParameter, this.statusBarEntity.ParentWorkItem);
            }

            if (this.statusBarEntity.CalledForm != null && this.statusBarEntity.CalledForm.ShowDialog() == DialogResult.Yes)
            {
                this.statusBarEntity.CalledFormStatus          = true;
                this.statusBarEntity.WhereCondition            = TerraScanCommon.GetValue(this.statusBarEntity.CalledForm, "CurrentQueryWhereCondition");
                this.statusBarEntity.UserDefinedWhereCondition = TerraScanCommon.GetValue(this.statusBarEntity.CalledForm, "UserDefinedWhereCondition");
            }
            else
            {
                this.statusBarEntity.CalledFormStatus = false;
                this.statusBarEntity.CalledForm       = null;
            }
        }
Esempio n. 14
0
        /// <summary>
        /// To load the Situs edit Form
        /// </summary>
        /// <param name="currentSitusId">The current situs id.</param>
        private void LoadSitusEdit(int currentSitusId)
        {
            Form situsEdit = new Form();

            object[] optionalParameter = new object[] { currentSitusId, this.parcelId };

            situsEdit = this.form25003Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(25004, optionalParameter, this.form25003Control.WorkItem);

            if (situsEdit != null)
            {
                if (situsEdit.ShowDialog() != DialogResult.Cancel)
                {
                    this.currentSitusId = TerraScanCommon.GetValue(situsEdit, "CurrentSitusId");
                    this.LoadSitusManagementGrid();
                    this.GetRowIndex(this.currentSitusId);
                    this.SitusManagementGrid.Focus();
                    TerraScanCommon.SetDataGridViewPosition(this.SitusManagementGrid, this.tempSitusMgmtGridRowId);
                    this.ToSetSlicePermission();
                }
            }
        }
Esempio n. 15
0
 /// <summary>
 /// Handles the Click event of the OwnerPicture 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 OwnerPicture_Click(object sender, EventArgs e)
 {
     try
     {
         Form     masterNameSearchForm = new Form();
         object[] optionalParameter    = new object[0];
         masterNameSearchForm = this.formF2205Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, optionalParameter, this.formF2205Control.WorkItem);
         if (masterNameSearchForm != null)
         {
             if (masterNameSearchForm.ShowDialog() == DialogResult.Yes)
             {
                 // Get selected owner details
                 this.ownerId           = TerraScanCommon.GetValue(masterNameSearchForm, "MasterNameOwnerId");
                 this.ownerName         = TerraScanCommon.GetValue(masterNameSearchForm, "CommandValue");
                 this.OwnerTextBox.Text = this.ownerName;
             }
         }
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
     }
 }
Esempio n. 16
0
        /// <summary>
        /// Handles the Click event of the DistrictButton 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 DistrictButton_Click(object sender, EventArgs e)
        {
            try
            {
                Form     districtSelectionForm = new Form();
                object[] optionalParameter     = new object[] { this.RollYearTextBox.Text.Trim(), 2205 };
                districtSelectionForm = TerraScanCommon.GetForm(1512, optionalParameter, this.formF2205Control.WorkItem);

                if (districtSelectionForm != null)
                {
                    if (districtSelectionForm.ShowDialog() == DialogResult.OK)
                    {
                        // Get selected district details
                        this.districtId           = TerraScanCommon.GetValue(districtSelectionForm, "DistrictId");
                        this.districtNumber       = TerraScanCommon.GetValue(districtSelectionForm, "CommandValue");
                        this.DistrictTextBox.Text = this.districtNumber;
                    }
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }
Esempio n. 17
0
        /// <summary>
        /// Handles the Click event of the RunBatchButton 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 RunBatchButton_Click(object sender, EventArgs e)
        {
            try
            {
                switch (this.currentParentFormBatchButtonStatusMode)
                {
                ////when the BatchButtonStatusMode is Pause
                case BatchButtonStatusMode.Pause:
                {
                    this.currentParentFormBatchButtonStatusMode = BatchButtonStatusMode.Run;
                    this.SetBatchButton(BatchButtonStatusMode.Run);
                    break;
                }

                ////when the BatchButtonStatusMode is Run
                case BatchButtonStatusMode.Run:
                {
                    this.currentParentFormBatchButtonStatusMode = BatchButtonStatusMode.Pause;
                    this.SetBatchButton(BatchButtonStatusMode.Pause);
                    break;
                }

                ////when the BatchButtonStatusMode is load
                default:
                {
                    object[] optionalParameter;
                    optionalParameter = new object[] { this.formSliceFormNo, this.currentFormSlicePermission };
                    Form snapShotForm = new Form();
                    snapShotForm = TerraScanCommon.GetForm(9040, optionalParameter, this.parentWorkItem);
                    if (snapShotForm != null)
                    {
                        DialogResult dialogResult = snapShotForm.ShowDialog();

                        if (dialogResult.Equals(DialogResult.OK))
                        {
                            this.snapShotId = Convert.ToInt32(TerraScanCommon.GetValue(snapShotForm, "CurrentSnapShotId"));
                        }
                        else
                        {
                            ////if no record is select in the F9040 snapshot dialog form set it as zero
                            this.snapShotId = 0;
                        }
                    }

                    ////if the F9040 snapShot form returns snapshot id, chnage the Batch Button status
                    if (this.snapShotId > 0)
                    {
                        ////db call is used get the no of count in snapshot item collection
                        this.currentFormBatchItemCount = WSHelper.F1440_SaveRecieptinSnapShotBatchButtonControl(this.snapShotId, null, this.currentBatchButtonUserId);
                        this.currentParentFormBatchButtonStatusMode = BatchButtonStatusMode.Pause;
                        this.SetBatchButton(BatchButtonStatusMode.Pause);
                    }

                    break;
                }
                }
            }
            catch (SoapException soapException)
            {
                ExceptionManager.ManageException(soapException, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
        }
Esempio n. 18
0
        private void ExciseRatePictureBox_Click(object sender, EventArgs e)
        {
            Form districtF1102 = new Form();

            if (!string.IsNullOrEmpty(this.RollYearTextBox.Text.Trim()))
            {
                int temprollyear = int.Parse(this.RollYearTextBox.Text);
                if (temprollyear > 0)
                {
                    object[] optionalParameters = new object[] { temprollyear };
                    districtF1102 = this.form1505Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(1102, optionalParameters, this.form1505Control.WorkItem);
                }
                else
                {
                    int      temrollyear        = GetYear();
                    object[] optionalParameters = new object[] { temrollyear };
                    districtF1102 = this.form1505Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(1102, optionalParameters, this.form1505Control.WorkItem);
                }
            }
            else
            {
                int      temrollyear        = GetYear();
                object[] optionalParameters = new object[] { temrollyear };
                districtF1102 = this.form1505Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(1102, optionalParameters, this.form1505Control.WorkItem);
            }

            DialogResult districtDialog;

            if (districtF1102 != null)
            {
                districtDialog = districtF1102.ShowDialog();

                if (districtDialog == DialogResult.Yes)
                {
                    try
                    {
                        exciseID     = TerraScanCommon.GetValue(districtF1102, "ExciseRateDistrictSelectionId");
                        exciseRateId = Convert.ToInt32(exciseID);
                        this.districtSelectionDataSet = this.form1505Control.WorkItem.F15010_GetDistrictSelection(Convert.ToInt32(this.exciseRateId));
                        if (this.districtSelectionDataSet.ListAffidavitDistrictSelection.Rows.Count > 0)
                        {
                            F15010ExciseAffidavitData.ListAffidavitDistrictSelectionRow districtRow = (F15010ExciseAffidavitData.ListAffidavitDistrictSelectionRow) this.districtSelectionDataSet.ListAffidavitDistrictSelection.Rows[0];
                            if (!districtRow.IsDistrictNull())
                            {
                                this.Exciselabel.Text = districtRow.District;
                            }
                            else
                            {
                                this.Exciselabel.Text = string.Empty;
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        ExceptionManager.ManageException(SharedFunctions.GetResourceString("ErrorLoadingForm"), ex, ExceptionManager.ActionType.Display, this.ParentForm);
                    }
                }
                else if (districtDialog == DialogResult.Ignore)
                {
                    try
                    {
                        FormInfo formInfo;
                        formInfo = TerraScanCommon.GetFormInfo(1101);
                        this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo));
                    }
                    catch (Exception ex)
                    {
                        ExceptionManager.ManageException(SharedFunctions.GetResourceString("ErrorLoadingForm"), ex, ExceptionManager.ActionType.Display, this.ParentForm);
                    }
                }
            }
        }
Esempio n. 19
0
        private void CommentButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                object[] optionalParameter;

                if (!this.ZoningSaveButton.Enabled)
                {
                    if (Convert.ToBoolean(TerraScanCommon.GetFormInfo(this.currentFormId).openPermission))
                    {
                        optionalParameter = new object[] { this.currentFormId, this.currentKeyId, 25003 };

                        Form commentForm = new Form();
                        commentForm     = this.form3040Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9075, optionalParameter, this.form3040Control.WorkItem);
                        commentForm.Tag = this.currentFormId;

                        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);
                        }
                    }
                    else
                    {
                        MessageBox.Show(SharedFunctions.GetResourceString("OpenPermission"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
                else
                {
                    MessageBox.Show(SharedFunctions.GetResourceString("Unsaved changes exists"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
Esempio n. 20
0
        /// <summary>
        /// Handles the LinkClicked event of the ScheduleNumberLinkLabel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The instance containing the event data.</param>
        private void ScheduleNumberLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                if (this.scheduleId > 0)
                {
                    object[] optionalParameter;
                    optionalParameter    = new object[2];
                    optionalParameter[0] = this.masterFormNo;
                    optionalParameter[1] = this.scheduleId;
                    Form scheduleForm = new Form();
                    scheduleForm = this.form25055Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(2200, optionalParameter, this.form25055Control.WorkItem);
                    if (scheduleForm != null)
                    {
                        if (scheduleForm.ShowDialog() == DialogResult.OK)
                        {
                            int formScheduleID;
                            int.TryParse(TerraScanCommon.GetValue(scheduleForm, SharedFunctions.GetResourceString("F25050ScheduleProperty")).ToString(), out formScheduleID);
                            SliceReloadActiveRecord currentSliceInfo;
                            currentSliceInfo.MasterFormNo  = this.masterFormNo;
                            currentSliceInfo.SelectedKeyId = formScheduleID;

                            int isRecordDeleted;
                            int.TryParse(TerraScanCommon.GetValue(scheduleForm, SharedFunctions.GetResourceString("F25050DeleteProperty")).ToString(), out isRecordDeleted);

                            if (isRecordDeleted > 0)
                            {
                                this.D9030_F9030_ReloadAfterDelete(this, new TerraScan.Infrastructure.Interface.EventArgs <SliceReloadActiveRecord>(currentSliceInfo));
                            }
                            else
                            {
                                this.FormSlice_OnSave_SetKeyId(this, new DataEventArgs <SliceReloadActiveRecord>(currentSliceInfo));

                                // Refresh master form with the returned keyid
                                this.OnD9030_F9030_ReloadAfterSave(new TerraScan.Infrastructure.Interface.EventArgs <SliceReloadActiveRecord>(currentSliceInfo));
                                this.GetPropertyHeaderDetails(formScheduleID);
                                this.scheduleId = formScheduleID;
                            }

                            //if (isDeleted > 0)
                            //{
                            //    this.OnD9030_F9030_KeyIdAlertSlice(new TerraScan.Infrastructure.Interface.EventArgs<int>(this.masterFormNo));
                            //}
                            //else
                            //{
                            //    this.GetPropertyHeaderDetails(formScheduleID);
                            //    this.scheduleId = formScheduleID;
                            //}
                        }
                    }
                }

                this.ActiveControl = this.ScheduleNumberLinkLabel;
                this.ActiveControl.Focus();
            }
            catch (SoapException ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
        /// <summary>
        /// Handles the Click event of the AttachmentButton 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 AttachmentButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                object[] optionalParameter = new object[] { this.currentFormId, this.keyId, this.parentFormId };

                Form attachmentForm = new Form();
                //attachmentForm.Icon = @"D:\Workarea\TerraScan-T.ico";
                if (Convert.ToBoolean(TerraScanCommon.GetFormInfo(this.currentFormId).openPermission))
                {
                    attachmentForm     = TerraScanCommon.GetForm(9005, optionalParameter, this.ParentWorkItem);
                    attachmentForm.Tag = this.currentFormId;
                    if (attachmentForm != null)
                    {
                        attachmentForm.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.AttachmentCount = Convert.ToInt16(TerraScanCommon.GetValue(attachmentForm, "AttachmentCount"));
                        this.SetText(additionalOperationCountEnt);
                    }
                }
                else
                {
                    MessageBox.Show(SharedFunctions.GetResourceString("OpenPermission"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }