예제 #1
0
        /// <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);
        }
예제 #2
0
파일: F15100.cs 프로젝트: CSSAdmin/TScan
        /// <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));
        }
예제 #3
0
파일: F4991.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Handles the Click event of the InstCopyOkButton 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 InstCopyOkButton_Click(object sender, EventArgs e)
        {
            this.instCopy = string.Empty;

            if (this.instCopyDatatable.Columns.Count == 0)
            {
                for (int i = 0; i <= this.InstCopyGrid.Rows.Count - 1; i++)
                {
                    this.instCopyDatatable.Columns.Add(this.InstCopyGrid.Rows[i].Cells[this.Copy.Name].Value.ToString());
                }
            }

            for (int i = 0; i <= this.InstCopyGrid.Rows.Count - 1; i++)
            {
                if (this.InstCopyGrid.Rows[i].Cells[this.Copyid.Name].Value.ToString().Trim() == "True")
                {
                    this.instCopydatarow = this.instCopyDatatable.NewRow();
                    this.instCopydatarow[this.InstCopyGrid.Rows[i].Cells[this.Copy.Name].Value.ToString()] = 1;
                    this.instCopyDatatable.Rows.Add(this.instCopydatarow);
                }
                else
                {
                    this.instCopydatarow = this.instCopyDatatable.NewRow();
                    this.instCopydatarow[this.InstCopyGrid.Rows[i].Cells[this.Copy.Name].Value.ToString()] = 0;
                    this.instCopyDatatable.Rows.Add(this.instCopydatarow);
                }
            }

            this.instCopy     = TerraScanCommon.GetXmlString(this.instCopyDatatable);
            this.DialogResult = DialogResult.OK;
        }
예제 #4
0
파일: F820003.cs 프로젝트: CSSAdmin/TScan
 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;
     }
 }
예제 #5
0
        /// <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);
        }
예제 #6
0
 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)
     {
     }
 }
예제 #7
0
        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);
        }
예제 #8
0
파일: F820003.cs 프로젝트: CSSAdmin/TScan
        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);
        }
예제 #9
0
 /// <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();
     }
 }
예제 #10
0
        /// <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();
                        }
                    }
                }
            }
        }
예제 #11
0
        private void SaveZoningDetails()
        {
            try
            {
                int saveConfirm;
                if (this.ZoningSaveButton.Enabled)
                {
                    this.Cursor = Cursors.WaitCursor;
                    if (this.ValidateKeyItems())
                    {
                        string zoningItems = string.Empty;
                        this.ZoningDataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);
                        this.zoningDetailsData.ListZoning.AcceptChanges();
                        zoningItems = TerraScanCommon.GetXmlString(this.zoningDetailsData.ListZoning);
                        saveConfirm = this.form3040Control.WorkItem.F3040_SaveZoningDetails(zoningItems, TerraScan.Common.TerraScanCommon.UserId);

                        if (saveConfirm == -99)
                        {
                            MessageBox.Show("Zoning Code can not be duplicate", ConfigurationManager.AppSettings["ApplicationName"].ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error);
                            this.saveStatus   = false;
                            this.DialogResult = DialogResult.None;
                        }
                        else if (saveConfirm == -100)
                        {
                            MessageBox.Show("Zoning can not be duplicate", ConfigurationManager.AppSettings["ApplicationName"].ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error);
                            this.saveStatus   = false;
                            this.DialogResult = DialogResult.None;
                        }
                        else if (saveConfirm == 0)
                        {
                            ////to reload the entire form afther save function.
                            this.LoadZoningForm();
                            this.EnableSelectButtons(true);
                            ////TO DISABLE THE SEARCH BUTTON
                            this.saveStatus = true;
                        }
                    }
                    else
                    {
                        MessageBox.Show(SharedFunctions.GetResourceString("RequiredField"), ConfigurationWrapper.ApplicationSave, MessageBoxButtons.OK, MessageBoxIcon.Error);
                        this.saveStatus   = false;
                        this.DialogResult = DialogResult.None;
                    }
                }
            }
            catch (SoapException e)
            {
                ExceptionManager.ManageException(e, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
예제 #12
0
파일: F29650.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Saves the frozen details.
        /// </summary>
        private void SaveExemptionDetails()
        {
            F29650ExemptionData.SaveExemptionDataTable exemptionInsertTable = new F29650ExemptionData.SaveExemptionDataTable();
            F29650ExemptionData.SaveExemptionRow       insertRow            = exemptionInsertTable.NewSaveExemptionRow();

            insertRow.EventID = this.keyId;

            if (this.exemptionEventId > 0)
            {
                insertRow.ExemptionEventID = this.exemptionEventId;
            }
            else
            {
                insertRow.ExemptionEventID = 0;
            }

            if (this.ExemptionTypeComboBox.SelectedValue != null)
            {
                string[] exemptionData = this.ExemptionTypeComboBox.SelectedValue.ToString().Split('|');
                insertRow.ExemptionID   = Convert.ToInt32(exemptionData[0].Trim());
                insertRow.ExemptionCode = exemptionData[1].Trim();
            }
            else
            {
                insertRow.ExemptionID   = 0;
                insertRow.ExemptionCode = string.Empty;
            }

            if (!string.IsNullOrEmpty(this.LossTextBox.Text.Trim()))
            {
                if (this.LossTextBox.DecimalTextBoxValue > 922337203685477.5807M)
                {
                    this.LossTextBox.Text = "0";
                    this.CalculateLoss();
                }

                insertRow.Loss = this.LossTextBox.DecimalTextBoxValue;
            }
            else
            {
                insertRow.Loss = 0;
            }

            if (!string.IsNullOrEmpty(this.ReductionTextBox.Text.Trim()))
            {
                insertRow.ReductionOfValue = this.ReductionTextBox.DecimalTextBoxValue;
            }
            else
            {
                insertRow.ReductionOfValue = 0;
            }

            exemptionInsertTable.Rows.Add(insertRow);

            // DB call for Save
            this.form29650Controller.WorkItem.SaveExemptionDetails(TerraScanCommon.GetXmlString(exemptionInsertTable), TerraScanCommon.UserId);
        }
예제 #13
0
        /// <summary>
        /// Returns the XML string.
        /// </summary>
        private void ReturnXMLString()
        {
            decimal tempTagalongWidth;
            decimal tempTagalongLength;
            decimal tempSquareFeetValue;

            DataTable sectionDataTable = new DataTable();

            DataColumn[] sectionColumn = new DataColumn[] { new DataColumn("Description"), new DataColumn("ResidenceGroupType_Id"), new DataColumn("SectionKey"), new DataColumn("SquareFeet"), new DataColumn("BaseQuality"), new DataColumn("QualityDescription"), new DataColumn("TagalongWidth"), new DataColumn("TagalongLength"), new DataColumn("GroupID") };
            sectionDataTable.Columns.AddRange(sectionColumn);
            DataRow sectionDataRow = sectionDataTable.NewRow();

            int.TryParse(this.SectionTypeCombo.SelectedValue.ToString(), out this.keyId);

            string findexp = "Key = " + "'" + this.keyId + "'";

            DataRow[] fromAssign = this.houseTypeDataset.Tables["ResidenceGroupType"].Select(findexp);

            foreach (DataRow dataRow in fromAssign)
            {
                tempTagalongWidth   = 0;
                tempTagalongLength  = 0;
                tempSquareFeetValue = 0;

                //// sectionDataRow["GroupID"] = this.sectionGroupId + 1;
                sectionDataRow["GroupID"]               = this.SectionTypeCombo.SelectedValue.ToString();
                sectionDataRow["Description"]           = this.DescriptionTextBox.Text.Trim();
                sectionDataRow["ResidenceGroupType_Id"] = dataRow.ItemArray[4].ToString();
                ////sectionDataRow["SectionKey"] = dataRow.ItemArray[0].ToString();
                sectionDataRow["SectionKey"]         = this.sectionKeyValue.ToString();
                sectionDataRow["BaseQuality"]        = this.QualityValueTextBox.Text.Trim();
                sectionDataRow["QualityDescription"] = this.QualityValueLabel.Text.Trim();

                if (this.SectionTypeCombo.Text.Trim() == "Tagalong")
                {
                    sectionDataRow["TagalongWidth"] = this.WidthTextBox.Text.Trim();
                    decimal.TryParse(this.WidthTextBox.Text.Trim(), out tempTagalongWidth);

                    sectionDataRow["TagalongLength"] = this.TALengthTextBox.Text.Trim();
                    decimal.TryParse(this.TALengthTextBox.Text.Trim(), out tempTagalongLength);

                    tempSquareFeetValue = tempTagalongWidth * tempTagalongLength;

                    sectionDataRow["SquareFeet"] = tempSquareFeetValue.ToString();
                }
                else
                {
                    sectionDataRow["SquareFeet"]     = this.SizeTextBox.Text.Trim();
                    sectionDataRow["TagalongWidth"]  = string.Empty;
                    sectionDataRow["TagalongLength"] = string.Empty;
                }

                sectionDataTable.Rows.Add(sectionDataRow);
            }

            this.returnStringvalue = TerraScanCommon.GetXmlString(sectionDataTable);
        }
예제 #14
0
파일: F1024.cs 프로젝트: CSSAdmin/TScan
        private void AppendDistrictButton_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.ReplaceDistrictButton.Enabled)
                {
                    if (this.DistrictListDataGridView.OriginalRowCount > 0)
                    {
                        this.ReplaceDistrictButton.Focus();
                        ////Check For Required Fields
                        if (String.IsNullOrEmpty(this.AmountTextBox.Text.Trim()))// || string.IsNullOrEmpty(this.DistrictTextBox.Text.Trim()))
                        {
                            MessageBox.Show("Amount cannot be Blank.", ConfigurationWrapper.ApplicationSave, MessageBoxButtons.OK, MessageBoxIcon.Error);
                            this.AmountTextBox.Focus();
                            return;
                        }

                        this.Cursor = Cursors.WaitCursor;
                        int selectedDistrictId = 0;
                        if (this.districtId != null && !string.IsNullOrEmpty(this.districtId))
                        {
                            int.TryParse(this.districtId, out selectedDistrictId);
                        }

                        bool   IsReplace  = false; // For Append
                        string SubFundXML = string.Empty;
                        this.Button = "Append";
                        SubFundXML  = TerraScanCommon.GetXmlString(this.GetSelectedSubFundID());

                        this.SelectedDistrict = this.form1024Control.WorkItem.F1024_SaveDistrictDetails((int)this.LevisComboBox.SelectedValue, selectedDistrictId, this.AmountTextBox.DecimalTextBoxValue, TerraScanCommon.UserId, IsReplace, SubFundXML).ListReceiptItem;

                        this.Cursor = Cursors.Default;
                        ////modified flag
                        this.DialogResult = DialogResult.Yes;
                        this.Close();
                    }
                    else
                    {
                        MessageBox.Show("Please select District.", "TerraScan T2", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
            }
            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;
            }
        }
예제 #15
0
파일: F29531.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Handles the Click event of the CreateButton 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 CreateButton_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            string associationLinkItems = string.Empty;
            //for (int i = 0; i <= this.AssociationLinksGridView.OriginalRowCount - 1; i++)
            //{
            //    this.linkData.AssociationDataTable.Rows[0][this.linkData.AssociationDataTable.DescriptionColumn.ColumnName]  = this.DescriptionTextBox.Text;
            //    this.linkData.AssociationDataTable.Rows[i][this.linkData.AssociationDataTable.FormColumn.ColumnName] = this.formId;
            //}
            //this.linkData.AssociationDataTable.AcceptChanges();
            DataTable dt = new DataTable();

            if (dt.Columns.Count == 0)
            {
                dt.Columns.Add("Associationcfgid");
                dt.Columns.Add("keyId");
                dt.Columns.Add("LinkText");
                dt.Columns.Add("Description");
                dt.Columns.Add("CurrentForm");
                dt.Columns.Add("Param1");
                dt.Columns.Add("Param2");
                dt.Columns.Add("Param3");
            }
            DataRow dr;

            dr = dt.NewRow();
            dr["Associationcfgid"] = this.LinkTypeComboBox.SelectedValue;
            // dr["keyId"] = this.activekeyid;
            dr["keyId"]       = selectionformactiveid;
            dr["LinkText"]    = this.LinkTypeComboBox.Text + ": " + this.LinkToTextBox.Text;
            dr["Description"] = this.DescriptionTextBox.Text;
            ////Modified by Biju on 26-Nov-2010 to fix #9549
            dr["CurrentForm"] = this.masterFormNo; //// this.formId;
            dr["Param1"]      = this.activekeyid;
            //dr["Param2"] = this.activekeyid;
            //dr["Param3"] = this.activekeyid;
            dt.Rows.Add(dr);
            associationLinkItems = TerraScanCommon.GetXmlString(dt);
            int returnValue = this.form29531Control.WorkItem.F29531_SaveAssociationLink(asscoationId, associationLinkItems, TerraScanCommon.UserId);

            this.LinkTypeComboBox.SelectedIndex = 0;
            this.flag = true;
            this.LinkToTextBox.Text         = string.Empty;
            this.DescriptionTextBox.Text    = string.Empty;
            this.CreateButton.Enabled       = false;
            this.LinkToButton.Enabled       = false;
            this.DescriptionTextBox.Enabled = false;
            SliceReloadActiveRecord sliceReloadActiveRecord;

            sliceReloadActiveRecord.MasterFormNo  = this.masterFormNo;
            sliceReloadActiveRecord.SelectedKeyId = this.selectionformactiveid;
            this.OnD9030_F9030_ReloadAfterSave(new TerraScan.Infrastructure.Interface.EventArgs <SliceReloadActiveRecord>(sliceReloadActiveRecord));
            this.OnD9030_F9030_LoadSliceDetails(this, new DataEventArgs <SliceReloadActiveRecord>(sliceReloadActiveRecord));
            this.Cursor = Cursors.Default;
        }
예제 #16
0
        /// <summary>
        /// Gets the parcel ID.
        /// </summary>
        private void GetParcelID()
        {
            if (this.parcelSectionDataSet.ParcelSearchDataTable.Rows.Count > 0)
            {
                if (this.parcelsearchDatatable.Columns.Count == 0)
                {
                    this.parcelsearchDatatable.Columns.Add("ParcelID");
                }

                ////To get a Multiple or single parcel Id(s)
                DataGridViewSelectedRowCollection selectedRows = this.ParcelSearchDataGridView.SelectedRows;
                foreach (DataGridViewRow dataRow in selectedRows)
                {
                    if (!string.IsNullOrEmpty(dataRow.Cells["ParcelSearchID"].Value.ToString().Trim()))
                    {
                        this.parcelsearchdatarow             = this.parcelsearchDatatable.NewRow();
                        this.parcelsearchdatarow["ParcelID"] = dataRow.Cells["ParcelSearchID"].Value.ToString().Trim();
                        this.parcelsearchDatatable.Rows.Add(this.parcelsearchdatarow);
                    }
                }

                ////for (int i = 0; i <= this.ParcelSearchDataGridView.OriginalRowCount - 1; i++)
                ////{
                ////    if (this.ParcelSearchDataGridView.Rows[i].Selected)
                ////    {
                ////        if (!string.IsNullOrEmpty(this.ParcelSearchDataGridView.Rows[i].Cells["ParcelSearchID"].Value.ToString().Trim()))
                ////        {
                ////            this.parcelsearchdatarow = this.parcelsearchDatatable.NewRow();
                ////            this.parcelsearchdatarow["ParcelID"] = this.ParcelSearchDataGridView.Rows[i].Cells["ParcelSearchID"].Value.ToString().Trim();
                ////            this.parcelsearchDatatable.Rows.Add(this.parcelsearchdatarow);
                ////        }
                ////    }
                ////}

                this.commandResult = TerraScanCommon.GetXmlString(this.parcelsearchDatatable);
                this.DialogResult  = DialogResult.OK;
                this.Close();
                //if (this.ParcelSearchDataGridView.CurrentRow != null)
                //{
                //    if (!string.IsNullOrEmpty(this.ParcelSearchDataGridView.Rows[this.ParcelSearchDataGridView.CurrentRowIndex].Cells["ParcelSearchID"].Value.ToString()))
                //    {
                //        int.TryParse(this.ParcelSearchDataGridView.Rows[this.ParcelSearchDataGridView.CurrentRowIndex].Cells["ParcelSearchID"].Value.ToString(), out this.parcelId);

                //        this.commandResult = this.parcelId.ToString();
                //        this.DialogResult = DialogResult.OK;
                //        this.Close();
                //    }
                //}
            }
        }
예제 #17
0
파일: F1060.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Selects the SubFunDID from the account element mgmt grid.
        /// </summary>
        private void SelectedPaymentIds()
        {
            ////TODO: Need to Write the Logic Based on the Items Selected in the Grid.
            if (this.selectedPaymentItemsCount > 0)
            {
                this.paymentIds = new int[this.selectedPaymentItemsCount];
                int currentRowNum = 0;

                foreach (DataRow dr in this.sudpendedPaymentSelectionData.ListSuspendedPayment.Rows)
                {
                    if (!Convert.ToBoolean(dr[this.SuspendedPaymentSelectionDataGridView.EmptyRecordColumnName]))
                    {
                        if (Convert.ToBoolean(dr[this.sudpendedPaymentSelectionData.ListSuspendedPayment.PaymentCheckColumn.ColumnName]))
                        {
                            this.paymentIds[currentRowNum] = Convert.ToInt32(dr[this.sudpendedPaymentSelectionData.ListSuspendedPayment.PPaymentIDColumn.ColumnName]);
                            currentRowNum += 1;
                        }
                    }
                }

                //// XML String
                this.paymentIdsXml = string.Empty;
                DataTable tempXMLdataTable = new DataTable();

                foreach (DataColumn column in this.sudpendedPaymentSelectionData.ListSuspendedPayment.Columns)
                {
                    if (column.ColumnName == this.sudpendedPaymentSelectionData.ListSuspendedPayment.PPaymentIDColumn.ColumnName)
                    {
                        tempXMLdataTable.Columns.Add(new DataColumn(column.ColumnName));
                    }
                }

                for (int item = 0; item < this.paymentIds.Length; item++)
                {
                    DataRow tempXMLDataRow = tempXMLdataTable.NewRow();
                    tempXMLDataRow[this.sudpendedPaymentSelectionData.ListSuspendedPayment.PPaymentIDColumn.ColumnName] = this.paymentIds[item].ToString();
                    tempXMLdataTable.Rows.Add(tempXMLDataRow);
                }

                this.paymentIdsXml = TerraScanCommon.GetXmlString(tempXMLdataTable);
                this.commandResult = this.paymentIdsXml;
                this.DialogResult  = DialogResult.OK;
                this.Close();
            }
            else
            {
                this.DialogResult = DialogResult.None;
            }
        }
예제 #18
0
파일: F9008.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Saves the reportdetails.
        /// </summary>
        /// <returns>reportdetails</returns>
        private bool SaveReportdetails()
        {
            string printConfigValue = string.Empty;

            this.ReportDetailsDataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);
            this.form9008ReportDetailsData.F9008GetReportDetails.AcceptChanges();
            printConfigValue = TerraScanCommon.GetXmlString(this.form9008ReportDetailsData.F9008GetReportDetails);

            this.form9008Control.WorkItem.F9008_SaveReportDetails(TerraScanCommon.UserId, printConfigValue);
            this.SetButtons(TerraScanCommon.ButtonActionMode.CancelMode);
            this.LoadReportDetailsGrid();

            this.ReportDetailsDataGridView.Columns[this.form9008ReportDetailsData.F9008GetReportDetails.ReportColumn.ColumnName].SortMode        = DataGridViewColumnSortMode.Programmatic;
            this.ReportDetailsDataGridView.Columns[this.form9008ReportDetailsData.F9008GetReportDetails.DescriptionColumn.ColumnName].SortMode   = DataGridViewColumnSortMode.Programmatic;
            this.ReportDetailsDataGridView.Columns[this.form9008ReportDetailsData.F9008GetReportDetails.PrinterColumn.ColumnName].SortMode       = DataGridViewColumnSortMode.Programmatic;
            this.ReportDetailsDataGridView.Columns[this.form9008ReportDetailsData.F9008GetReportDetails.PrinterSelectColumn.ColumnName].SortMode = DataGridViewColumnSortMode.Programmatic;
            this.ReportDetailsDataGridView.Columns[this.form9008ReportDetailsData.F9008GetReportDetails.PrinterClearColumn.ColumnName].SortMode  = DataGridViewColumnSortMode.Programmatic;
            ////this.NextNumRecordsGridView.TabStop = true;
            return(true);
        }
예제 #19
0
        /// <summary>
        /// Gets the snapshot XML.
        /// </summary>
        /// <returns>ownerIdsXml</returns>
        private string GetSnapshotXML()
        {
            //// to get the ownerid's XML String to create system snapshotid.
            this.ownerIdsXml = string.Empty;
            DataTable  tempDataTable       = new DataTable();
            DataColumn tempDataTableColumn = new DataColumn("KeyID");

            tempDataTable.Columns.Add("KeyID");

            for (int item = 0; item < this.OwnerStatusDataGridView.Rows.Count; item++)
            {
                DataRow tempDataRow = tempDataTable.NewRow();
                tempDataRow[0] = this.OwnerStatusDataGridView.Rows[item].Cells[this.ownerStatusData.OwnerStatusDetailsTable.OwnerIDColumn.ColumnName].Value;
                tempDataTable.Rows.Add(tempDataRow);
            }

            this.ownerIdsXml = TerraScanCommon.GetXmlString(tempDataTable);

            return(this.ownerIdsXml);
        }
예제 #20
0
파일: F1224.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Gets the checked unprinted items.
        /// </summary>
        /// <returns>UnChecked Print Checks</returns>
        private string GetCheckedUnprintedItems()
        {
            this.tempPaymentItemsDataTable = new DataTable();
            string clsIds = string.Empty;

            foreach (DataColumn column in this.checkPrintQueueDataset.ListUnPrintedChecksTable.Columns)
            {
                if (column.ColumnName == this.checkPrintQueueDataset.ListUnPrintedChecksTable.CLIDColumn.ColumnName)
                {
                    this.tempPaymentItemsDataTable.Columns.Add(new DataColumn(column.ColumnName));
                }
            }

            foreach (DataRow dr in this.checkPrintQueueDataset.ListUnPrintedChecksTable.Rows)
            {
                this.tempPaymentItemsDataRow = this.tempPaymentItemsDataTable.NewRow();

                if (dr["CheckedItem"] != DBNull.Value)
                {
                    if (Convert.ToBoolean(dr["CheckedItem"]))
                    {
                        foreach (DataColumn column in this.checkPrintQueueDataset.ListUnPrintedChecksTable.Columns)
                        {
                            if (column.ColumnName == this.checkPrintQueueDataset.ListUnPrintedChecksTable.CLIDColumn.ColumnName)
                            {
                                this.tempPaymentItemsDataRow[column.ColumnName] = dr[column.ColumnName];
                            }
                        }

                        this.tempPaymentItemsDataTable.Rows.Add(this.tempPaymentItemsDataRow);
                    }
                }
            }

            if (this.tempPaymentItemsDataTable.Rows.Count > 0)
            {
                clsIds = TerraScanCommon.GetXmlString(this.tempPaymentItemsDataTable);
            }

            return(clsIds);
        }
예제 #21
0
        /// <summary>
        /// Selects the state id.
        /// </summary>
        private void selectStateId()
        {
            if (this.stateSelectionData.GetStateSelection.Rows.Count > 0)
            {
                ////to obtain single Id (or) multiple State Ids
                if (this.statesearchDatatable.Columns.Count == 0)
                {
                    this.statesearchDatatable.Columns.Add("StateID");
                }
                //if (this.statesearchValueDatatable.Columns.Count == 0)
                //{
                //    this.statesearchValueDatatable.Columns.Add("ScheduleNumber");
                //}
                DataGridViewSelectedRowCollection selectedRows = this.StateSearchDataGridView.SelectedRows;
                foreach (DataGridViewRow dataRow in selectedRows)
                {
                    if (!string.IsNullOrEmpty(dataRow.Cells["StateSearchID"].Value.ToString().Trim()))
                    {
                        ////Adding StateId
                        this.statesearchdatarow            = this.statesearchDatatable.NewRow();
                        this.statesearchdatarow["StateID"] = dataRow.Cells["StateSearchID"].Value.ToString().Trim();
                        this.statesearchDatatable.Rows.Add(this.statesearchdatarow);

                        //////Adding Parcel Number
                        //this.statesearchValuedatarow = this.statesearchValueDatatable.NewRow();
                        //this.statesearchValuedatarow["ParcelNumber"] = dataRow.Cells["ParcelNumber"].Value.ToString().Trim();
                        //this.statesearchValueDatatable.Rows.Add(this.statesearchValuedatarow);
                    }
                }

                ////used to get the xml and display in the TaxRollCorrection form grid view.
                this.commandResult = TerraScanCommon.GetXmlString(this.statesearchDatatable);
                //this.commandValue = TerraScanCommon.GetXmlString(this.statesearchValueDatatable);
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {
                this.DialogResult = DialogResult.None;
            }
        }
예제 #22
0
        /// <summary>
        /// Gets the statement id.
        /// </summary>
        private void GetStatementId()
        {
            int rowId = 0;

            //  this.GetRowIndex();

            if (!this.emptyRecord)
            {
                if (this.parcelstatementsearchDatatable.Columns.Count == 0)
                {
                    this.parcelstatementsearchDatatable.Columns.Add("StatementID");
                }

                for (int i = 0; i < this.ParcelStmtSearchGridView.SelectedRows.Count; i++)
                {
                    this.parcelstatementsearchDataRow = this.parcelstatementsearchDatatable.NewRow();
                    this.parcelstatementsearchDataRow["StatementID"] = this.ParcelStmtSearchGridView.Rows[this.ParcelStmtSearchGridView.SelectedRows[i].Index].Cells["StatementID"].Value.ToString().Trim();
                    this.parcelstatementsearchDatatable.Rows.Add(this.parcelstatementsearchDataRow);
                    this.commandResult = TerraScanCommon.GetXmlString(this.parcelstatementsearchDatatable);
                    this.DialogResult  = DialogResult.OK;
                    this.Close();
                }

                //for (int i = 0; i <= this.ParcelStmtSearchGridView.OriginalRowCount - 1; i++)
                //{
                //    if (this.ParcelStmtSearchGridView.Rows[i].Selected)
                //    {
                //        if (!string.IsNullOrEmpty(this.ParcelStmtSearchGridView.Rows[i].Cells["StatementID"].Value.ToString().Trim()))
                //        {
                //            this.parcelstatementsearchDataRow = this.parcelstatementsearchDatatable.NewRow();
                //            this.parcelstatementsearchDataRow["StatementID"] = this.ParcelStmtSearchGridView.Rows[i].Cells["StatementID"].Value.ToString().Trim();
                //            this.parcelstatementsearchDatatable.Rows.Add(this.parcelstatementsearchDataRow);
                //            this.commandResult = TerraScanCommon.GetXmlString(this.parcelstatementsearchDatatable);
                //            this.DialogResult = DialogResult.OK;
                //            this.Close();
                //        }
                //    }
                //}
            }
        }
예제 #23
0
파일: F2204.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// To create a parcel Copy
        /// </summary>
        private void CreateNewStatement()
        {
            ////if ((this.scheduleNumber == this.ScheduleNumberTextBox.Text.Trim()) && (this.scheduleYear == this.RollYearTextBox.Text.Trim()) && (this.parcelTypeIndex == Convert.ToInt32(this.ScheduleTypeComboBox.SelectedValue.ToString())))
            ////{
            ////    MessageBox.Show(SharedFunctions.GetResourceString("ScheduleRecordStatus"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
            ////}
            ////else
            ////{
            F2204CopyScheduleData.f25050_CreateCopyScheduleDataTable createNewSchedule = new F2204CopyScheduleData.f25050_CreateCopyScheduleDataTable();
            F2204CopyScheduleData.f25050_CreateCopyScheduleRow       dr = createNewSchedule.Newf25050_CreateCopyScheduleRow();
            dr.ScheduleNumber   = this.ScheduleNumberTextBox.Text.Trim();
            dr.RollYear         = this.RollYearTextBox.Text.Trim();
            dr.AssessmentTypeID = Convert.ToInt32(this.AssessmentTypeComboBox.SelectedValue.ToString());
            dr.ScheduleTypeID   = Convert.ToInt32(this.ScheduleTypeComboBox.SelectedValue.ToString());
            dr.CopyLineItem     = this.CopyComboBox.SelectedItem.ToString();
            createNewSchedule.Rows.Add(dr);
            string scheduleIems = TerraScanCommon.GetXmlString(createNewSchedule);

            this.returnValue = this.formF2204Control.WorkItem.F2204CreateNewScheduleCopy(this.keyId, scheduleIems, TerraScanCommon.UserId);

            ////Coding added for the CO 4781 by malliga on 13/11/2009
            if (this.returnValue.Equals(-1))
            {
                MessageBox.Show(SharedFunctions.GetResourceString("ScheduleRecordStatus"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                //// this.CancelCommandButton.Enabled = true;
                this.createButton = false;
                this.DialogResult = DialogResult.None;
                return;
            }
            ////this.CancelCommandButton.Enabled = false;
            this.DialogResult = DialogResult.Cancel;
            if (MessageBox.Show(SharedFunctions.GetResourceString("ScheduleCopy"), ConfigurationWrapper.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
            {
                if (this.createButton)
                {
                    this.Close();
                }
            }
            //// }
        }
예제 #24
0
        /// <summary>
        /// Handles the CellDoubleClick event of the MasterNameDataGridView 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 MasterNameDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (!this.emptyRecord)
                {
                    if (e.RowIndex >= 0)
                    {
                        if (!string.IsNullOrEmpty(this.MasterNameDataGridView.Rows[e.RowIndex].Cells["OwnerId"].Value.ToString()))
                        {
                            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();
                        }
                    }
                }
            }
            catch (Exception)
            {
            }
        }
예제 #25
0
        /// <summary>
        /// Gets the schedule header details.
        /// </summary>
        private void GetScheduleHeaderDetails()
        {
            F2205MoveScheduleData.ScheduleHeaderItemsTableDataTable moveScheduleTable = new F2205MoveScheduleData.ScheduleHeaderItemsTableDataTable();
            F2205MoveScheduleData.ScheduleHeaderItemsTableRow       moveScheduleRow   = moveScheduleTable.NewScheduleHeaderItemsTableRow();

            // Conversion
            int rollYear;
            int districtId;
            int ownerId;
            int scheduleTypeId   = 0;
            int assessmentTypeId = 0;

            int.TryParse(this.RollYearTextBox.Text, out rollYear);
            int.TryParse(this.ownerId, out ownerId);
            int.TryParse(this.districtId, out districtId);
            if (this.ScheduleTypeComboBox.SelectedValue != null)
            {
                int.TryParse(this.ScheduleTypeComboBox.SelectedValue.ToString(), out scheduleTypeId);
            }

            if (this.AssessmentTypeComboBox.SelectedValue != null)
            {
                int.TryParse(this.AssessmentTypeComboBox.SelectedValue.ToString(), out assessmentTypeId);
            }

            // Assign value on appropriate controls
            moveScheduleRow.ScheduleNumber    = this.NewScheduleTextBox.Text;
            moveScheduleRow.RollYear          = rollYear;
            moveScheduleRow.OwnerID           = ownerId;
            moveScheduleRow.DistrictID        = districtId;
            moveScheduleRow.ScheduleTypeID    = scheduleTypeId;
            moveScheduleRow.AssessmentTypeID  = assessmentTypeId;
            moveScheduleRow.IsHeadofHouseHold = (byte)this.HouseholdComboBox.SelectedIndex;
            moveScheduleRow.IsExempt          = (byte)this.ExemptComboBox.SelectedIndex;
            moveScheduleTable.Rows.Add(moveScheduleRow);

            // Get XML string for moveScheduleTable
            this.scheduleHeaderItems = TerraScanCommon.GetXmlString(moveScheduleTable);
        }
예제 #26
0
        private string CreateItemCodeTable()
        {
            DataTable itemTable = new DataTable();

            DataGridViewRow[] selectedRows = new DataGridViewRow[this.ItemCodeGridView.SelectedRows.Count];
            this.ItemCodeGridView.SelectedRows.CopyTo(selectedRows, 0);

            itemTable.Columns.Add("ItemCodeID", typeof(System.String));

            foreach (DataGridViewRow dataRow in selectedRows)
            {
                DataRow newRow = itemTable.NewRow();
                newRow["ItemcodeID"] = dataRow.Cells["ItemCodeID"].Value.ToString();
                itemTable.Rows.Add(newRow);
            }

            if (itemTable.Rows.Count > 0)
            {
                return(TerraScanCommon.GetXmlString(itemTable));
            }

            return(null);
        }
예제 #27
0
파일: F1212.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Gets the payment ids.
        /// </summary>
        /// <returns>XML String as PaymentDetails</returns>
        private string GetPaymentIds()
        {
            this.tempListPaymentItemsDataTable = new DataTable();
            string paymentIds = string.Empty;

            foreach (DataColumn column in this.makeDepositsDataSet.ListPaymentItemTable.Columns)
            {
                if (column.ColumnName == this.makeDepositsDataSet.ListPaymentItemTable.PaymentIDColumn.ColumnName)
                {
                    this.tempListPaymentItemsDataTable.Columns.Add(new DataColumn(column.ColumnName));
                }
            }

            foreach (DataRow dr in this.makeDepositsDataSet.ListPaymentItemTable.Rows)
            {
                this.tempListPaymentItemsDataRow = this.tempListPaymentItemsDataTable.NewRow();

                if (dr["PaymentCheck"] != DBNull.Value)
                {
                    if (Convert.ToBoolean(dr["PaymentCheck"]))
                    {
                        foreach (DataColumn column in this.makeDepositsDataSet.ListPaymentItemTable.Columns)
                        {
                            if (column.ColumnName == this.makeDepositsDataSet.ListPaymentItemTable.PaymentIDColumn.ColumnName)
                            {
                                this.tempListPaymentItemsDataRow[column.ColumnName] = dr[column.ColumnName];
                            }
                        }

                        this.tempListPaymentItemsDataTable.Rows.Add(this.tempListPaymentItemsDataRow);
                    }
                }
            }

            paymentIds = TerraScanCommon.GetXmlString(this.tempListPaymentItemsDataTable);
            return(paymentIds);
        }
예제 #28
0
        /// <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.stateSelectionData.GetStateSelection.Clone();

            DataRow searchRow;

            searchRow = searchValueDataTable.NewRow();

            int.TryParse(this.RollYearTextBox.Text.Trim(), out rollYearSearch);
            searchRow[this.stateSelectionData.GetStateSelection.RollYearColumn.ColumnName]      = rollYearSearch;
            searchRow[this.stateSelectionData.GetStateSelection.ParcelNumberColumn.ColumnName]  = this.ParcelNumberTextBox.Text.Trim();
            searchRow[this.stateSelectionData.GetStateSelection.FirstNameColumn.ColumnName]     = this.FirstNameTextBox.Text.Trim();
            searchRow[this.stateSelectionData.GetStateSelection.LastNameColumn.ColumnName]      = this.LastNameTextBox.Text.Trim();
            searchRow[this.stateSelectionData.GetStateSelection.CompanyNumberColumn.ColumnName] = this.CompanyNumberTextBox.Text.Trim();
            searchRow[this.stateSelectionData.GetStateSelection.DistrictColumn.ColumnName]      = this.DistrictTextBox.Text.Trim();
            searchValueDataTable.Rows.Add(searchRow);

            searchValueXml = TerraScanCommon.GetXmlString(searchValueDataTable);
            return(searchValueXml);
        }
예제 #29
0
파일: F820003.cs 프로젝트: CSSAdmin/TScan
 private void PopulateFormFields()
 {
     //DataSet ds = new DataSet();
     RdlToCodeData.ParameterDataDataTable dt = new RdlToCodeData.ParameterDataDataTable();
     dt.Rows.Add(new object[] { "EventID", this.keyId });
     try
     {
         this.formDetailsDataSet = this.form820003control.WorkItem.RdlToCode_Get(TerraScanCommon.GetXmlString(dt), "r820003");
         ////	 ds = TerraScan.Helper.WSHelper.RdlToCode_Get(dt,"r820003");
     }
     catch (Exception ex1)
     {
     }
     if (this.formDetailsDataSet != null)
     {
         if (this.formDetailsDataSet.Tables.Count > 0)
         {
             if (this.formDetailsDataSet.Tables[0].Rows.Count > 0)
             {
                 foreach (Control c in this.Controls)
                 {
                     try
                     {
                         if (c.Name.EndsWith("subreport"))
                         {
                             string[] formName         = c.Name.Split(new char[] { '_' });
                             DataSet  subReportDataset = new DataSet();
                             ////	     subReportDataset = TerraScan.Helper.WSHelper.RdlToCode_Get(dt, formName[2]);
                             if (c.HasChildren)
                             {
                                 if (c is Panel)
                                 {
                                     //(c as Panel).BorderStyle = BorderStyle.None;
                                 }
                                 AddValuesToControl(subReportDataset, c.Controls);
                             }
                         }
                         else if (c.HasChildren)
                         {
                             AddValuesToControl(this.formDetailsDataSet, c.Controls);
                         }
                         else if (c.GetType() == typeof(TerraScan.UI.Controls.TerraScanTextBox))
                         {
                             if (!string.IsNullOrEmpty(c.Tag.ToString()))
                             {
                                 c.Text = this.formDetailsDataSet.Tables[0].Rows[0][c.Tag.ToString()].ToString();
                             }
                         }
                         else if (c.GetType() == typeof(TerraScan.UI.Controls.TerraScanCheckBox))
                         {
                             if (!string.IsNullOrEmpty(c.Tag.ToString()))
                             {
                                 string result = this.formDetailsDataSet.Tables[0].Rows[0][c.Tag.ToString()].ToString();
                                 if (result == "True")
                                 {
                                     ((CheckBox)c).Checked = true;
                                 }
                             }
                         }
                         else if (c.GetType() == typeof(RadioButton))
                         {
                             if (!string.IsNullOrEmpty(c.Tag.ToString()))
                             {
                                 string result = this.formDetailsDataSet.Tables[0].Rows[0][c.Tag.ToString()].ToString();
                                 if (c.AccessibleName.ToString().EndsWith(result))
                                 {
                                     ((RadioButton)c).Checked = true;
                                 }
                             }
                         }
                     }
                     catch (Exception ex)
                     {
                     }
                 }
             }
             else
             {
                 this.LockControls(true);
             }
         }
     }
 }
예제 #30
0
파일: F2409.cs 프로젝트: CSSAdmin/TScan
        /// <summary>
        /// Saves the review status.
        /// </summary>
        private void SaveReviewStatus()
        {
            try
            {
                bool saveFailure = false;
                ////assign all control values to datatable
                this.Cursor = Cursors.WaitCursor;
                F2409ReviewStatusData listReviewStatusData = new F2409ReviewStatusData();
                listReviewStatusData.F2409_ListReviewStatus.Columns.Add("ParcelID");
                F2409ReviewStatusData.F2409_ListReviewStatusRow reviewStatusRow = listReviewStatusData.F2409_ListReviewStatus.NewF2409_ListReviewStatusRow();

                if (this.InspectedByComboBox.SelectedIndex > 0)
                {
                    reviewStatusRow.InspectedByUserID = this.InspectedByComboBox.SelectedValue.ToString();
                }

                if (!string.IsNullOrEmpty(this.InspectedByDateTextBox.Text.Trim()))
                {
                    var      dateString = this.InspectedByDateTextBox.Text;
                    DateTime result;
                    bool     success = DateTime.TryParse(dateString, out result);
                    if (success)
                    {
                        reviewStatusRow.DateInspected = this.InspectedByDateTextBox.Text.Trim();
                    }
                    else
                    {
                        saveFailure = true;
                    }
                }

                if (this.InspectionTypeComboBox.SelectedIndex > 0)
                {
                    reviewStatusRow.InspectionTypeID = this.InspectionTypeComboBox.SelectedValue.ToString();
                }

                if (this.ReviewedByComboBox.SelectedIndex > 0)
                {
                    reviewStatusRow.ReviewedByUserID = this.ReviewedByComboBox.SelectedValue.ToString();
                }

                if (!string.IsNullOrEmpty(this.ReviewedByDateTextBox.Text.Trim()))
                {
                    var      dateString = this.ReviewedByDateTextBox.Text;
                    DateTime result;
                    bool     success = DateTime.TryParse(dateString, out result);
                    if (success)
                    {
                        reviewStatusRow.ReviewDate = this.ReviewedByDateTextBox.Text.Trim();
                    }
                    else
                    {
                        saveFailure = true;
                    }
                }
                if (this.ReviewStatusComboBox.SelectedIndex > 0)
                {
                    reviewStatusRow.ReviewStatusID = this.ReviewStatusComboBox.SelectedValue.ToString();
                }
                if (this.EnteredByComboBox.SelectedIndex > 0)
                {
                    reviewStatusRow.EnteredByUserID = this.EnteredByComboBox.SelectedValue.ToString();
                }
                if (!string.IsNullOrEmpty(this.EnteredDateTextBox.Text.Trim()))
                {
                    var      dateString = this.EnteredDateTextBox.Text;
                    DateTime result;
                    bool     success = DateTime.TryParse(dateString, out result);
                    if (success)
                    {
                        reviewStatusRow.EnteredByDate = this.EnteredDateTextBox.Text.Trim();
                    }
                    else
                    {
                        saveFailure = true;
                    }
                }

                reviewStatusRow["ParcelID"] = this.parcelId;
                listReviewStatusData.F2409_ListReviewStatus.Rows.Add(reviewStatusRow);
                ////DB Call for save
                if (!saveFailure)
                {
                    this.form2409Control.WorkItem.F2409UpdateParcelReviewDetails(TerraScanCommon.GetXmlString(listReviewStatusData.F2409_ListReviewStatus.Copy()), TerraScanCommon.UserId);
                    ////After saving Populate values to controls.
                    this.PopulateControlValues();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Invalid Date Format - Save Operation Aborted", "TerraScan T2", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                this.Cursor = Cursors.Default;
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
            }
        }