Exemplo n.º 1
0
        /// <summary>
        /// Gets the Get Sale Detail
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_ParcelSale(int keyId)
        {
            F25090FieldSummaryData SaleDetailData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@ParcelID", keyId);
            Utility.LoadDataSet(SaleDetailData, "f25030_pcget_ParcelSaleHistory", ht, new string[] { SaleDetailData.ParcelSaleHistoryData.TableName });
            return(SaleDetailData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get Building Permits
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_BuildingPermits(int keyId)
        {
            F25090FieldSummaryData BuildingPermitsData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@parcelID", keyId);
            Utility.LoadDataSet(BuildingPermitsData, "f24555_pcget_BuildingPermits", ht, new string[] { BuildingPermitsData.BuildingPermitsData.TableName });
            return(BuildingPermitsData);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  Get ParcelOwnerShip Data
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_GetParcelOwnerShip(int keyId)
        {
            F25090FieldSummaryData GetParcelOwnerShip = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@KeyID", keyId);
            Utility.LoadDataSet(GetParcelOwnerShip, "f25098_pcget_ParcelOwnership", ht, new string[] { GetParcelOwnerShip.ParcelOwnershipData.TableName });
            return(GetParcelOwnerShip);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Gets the Get Field Summary
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_FieldSummary(int keyId)
        {
            F25090FieldSummaryData summaryDetailData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@KeyID", keyId);
            Utility.LoadDataSet(summaryDetailData, "f25099_pcget_QuickValueSummary", ht, new string[] { summaryDetailData.QuickValueSummaryData.TableName });
            return(summaryDetailData);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Get History Data
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_GetHistoryData(int keyId)
        {
            F25090FieldSummaryData GetHistoryData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@Keyid", keyId);
            Utility.LoadDataSet(GetHistoryData, "f19097_pcget_relStatAA", ht, new string[] { GetHistoryData.HistoryData.TableName });
            return(GetHistoryData);
        }
Exemplo n.º 6
0
        /// <summary>
        ///  Get Ancestry Data
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_GetAncestryData(int keyId)
        {
            F25090FieldSummaryData GetAncestryData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@KeyID", keyId);
            Utility.LoadDataSet(GetAncestryData, "f25040_pcget_ParcelAncestry", ht, new string[] { GetAncestryData.ParcelAncestryData.TableName });
            return(GetAncestryData);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Get Correction Data
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_GetCorrection(int keyId)
        {
            F25090FieldSummaryData GetCorrectionData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@keyId", keyId);
            Utility.LoadDataSet(GetCorrectionData, "f19099_pcget_TxRollCorrectAA", ht, new string[] { GetCorrectionData.CorrectionData.TableName });
            return(GetCorrectionData);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Get Photos Data
        /// </summary>
        /// <param name="KeyId">The KeyId.</param>
        /// <returns>CheckDetailData with Cash Ledger Detail</returns>
        public static F25090FieldSummaryData F25090_GetPhotos(int keyId, int form)
        {
            F25090FieldSummaryData GetPhotosData = new F25090FieldSummaryData();
            Hashtable ht = new Hashtable();

            ht.Add("@KeyID", keyId);
            ht.Add("@Form", form);
            Utility.LoadDataSet(GetPhotosData, "f9005_pcget_GetPhotos", ht, new string[] { GetPhotosData.PhotosData.TableName });
            return(GetPhotosData);
        }
Exemplo n.º 9
0
 private void F25090_Load(object sender, EventArgs e)
 {
     this.FlagSliceForm               = true;
     this.SummaryButton.Image         = global::D20000.Properties.Resources.summer;
     this.Salesbutton.Image           = global::D20000.Properties.Resources.sales1;
     this.Permitsbutton.Image         = global::D20000.Properties.Resources.Permits1;
     this.Photosbutton.Image          = global::D20000.Properties.Resources.Photos1;
     this.Correctionbutton.Image      = global::D20000.Properties.Resources.Corrections1;
     this.Ancestrybutton.Image        = global::D20000.Properties.Resources.ancestry1;
     this.Historybutton.Image         = global::D20000.Properties.Resources.history1;
     this.ParcelOwnershipbutton.Image = global::D20000.Properties.Resources.ownership1;
     this.FieldData = this.form25090Control.WorkItem.F25090_FieldSummary(this.keyId);
     if (this.FieldData.QuickValueSummaryData.Rows.Count > 0)
     {
         this.PopulateSummaryUserControl();
     }
 }
Exemplo n.º 10
0
 public void OnD9030_F9030_LoadSliceDetails(object sender, DataEventArgs <SliceReloadActiveRecord> eventArgs)
 {
     // Checks the masterform no is same
     if (this.masterFormNo == eventArgs.Data.MasterFormNo)
     {
         this.FlagSliceForm               = true;
         this.keyId                       = eventArgs.Data.SelectedKeyId;
         this.SummaryButton.Image         = global::D20000.Properties.Resources.summer;
         this.Salesbutton.Image           = global::D20000.Properties.Resources.sales1;
         this.Permitsbutton.Image         = global::D20000.Properties.Resources.Permits1;
         this.Photosbutton.Image          = global::D20000.Properties.Resources.Photos1;
         this.Correctionbutton.Image      = global::D20000.Properties.Resources.Corrections1;
         this.Ancestrybutton.Image        = global::D20000.Properties.Resources.ancestry1;
         this.Historybutton.Image         = global::D20000.Properties.Resources.history1;
         this.ParcelOwnershipbutton.Image = global::D20000.Properties.Resources.ownership1;
         this.FieldData                   = this.form25090Control.WorkItem.F25090_FieldSummary(this.keyId);
         if (this.FieldData.QuickValueSummaryData.Rows.Count > 0)
         {
             this.PopulateSummaryUserControl();
         }
     }
 }
Exemplo n.º 11
0
 private void Ancestrybutton_Click(object sender, EventArgs e)
 {
     if (this.FieldData.ParcelAncestryData != null)
     {
         if (this.FieldData.ParcelAncestryData.Rows.Count > 0)
         {
             this.FieldData.ParcelAncestryData.Rows.Clear();
         }
     }
     this.SummaryButton.Image         = global::D20000.Properties.Resources.summer1;
     this.Salesbutton.Image           = global::D20000.Properties.Resources.sales1;
     this.Permitsbutton.Image         = global::D20000.Properties.Resources.Permits1;
     this.Photosbutton.Image          = global::D20000.Properties.Resources.Photos1;
     this.Correctionbutton.Image      = global::D20000.Properties.Resources.Corrections1;
     this.Ancestrybutton.Image        = global::D20000.Properties.Resources.Ancestry;
     this.Historybutton.Image         = global::D20000.Properties.Resources.history1;
     this.ParcelOwnershipbutton.Image = global::D20000.Properties.Resources.ownership1;
     this.FieldData = this.form25090Control.WorkItem.F25090_GetAncestryData(this.keyId);
     if (this.FieldData != null)
     {
         this.populateAncestryUserControl();
     }
 }
Exemplo n.º 12
0
        private void Photosbutton_Click(object sender, EventArgs e)
        {
            if (this.FieldData.PhotosData != null)
            {
                if (this.FieldData.PhotosData.Rows.Count > 0)
                {
                    this.FieldData.PhotosData.Rows.Clear();
                }
            }
            if (AttachFileDataTable != null)
            {
                AttachFileDataTable.Rows.Clear();
            }
            if (FileDataTable != null)
            {
                FileDataTable.Rows.Clear();
            }
            this.SummaryButton.Image         = global::D20000.Properties.Resources.summer1;
            this.Salesbutton.Image           = global::D20000.Properties.Resources.sales1;
            this.Permitsbutton.Image         = global::D20000.Properties.Resources.Permits1;
            this.Photosbutton.Image          = global::D20000.Properties.Resources.Photos;
            this.Correctionbutton.Image      = global::D20000.Properties.Resources.Corrections1;
            this.Ancestrybutton.Image        = global::D20000.Properties.Resources.ancestry1;
            this.Historybutton.Image         = global::D20000.Properties.Resources.history1;
            this.ParcelOwnershipbutton.Image = global::D20000.Properties.Resources.ownership1;
            this.FieldData = this.form25090Control.WorkItem.F25090_GetPhotos(this.keyId, 30000);
            if (this.FieldData != null)
            {
                if (FileDataTable.Columns.Count.Equals(0))
                {
                    FileDataTable.Columns.Add(AttachFilePath);
                }
                if (AttachFileDataTable.Columns.Count.Equals(0))
                {
                    AttachFileDataTable.Columns.Add(FileID);
                    AttachFileDataTable.Columns.Add(EventDate);
                    AttachFileDataTable.Columns.Add(FunctionName);
                    AttachFileDataTable.Columns.Add(DescriptName);
                    AttachFileDataTable.Columns.Add(Extension);
                }
                AttachFileDataTable = this.FieldData.PhotosData;

                if (this.FieldData.PhotosData.Rows.Count > 0)
                {
                    if (AttachFileDataTable.Rows.Count > 0)
                    {
                        //Used for the Attachment Path Creation
                        for (int j = 0; j < AttachFileDataTable.Rows.Count; j++)
                        {
                            DataRow fileAttachRow = FileDataTable.NewRow();
                            int     fileId;
                            int.TryParse(AttachFileDataTable.Rows[j][3].ToString(), out fileId);
                            string FileAttachID    = this.form25090Control.WorkItem.GetOriginalFilePath(fileId, TerraScanCommon.UserId);
                            string CentralApexPath = string.Empty;
                            string fieldLocalPath  = string.Empty;

                            CommentsData serverFilePathData = this.form25090Control.WorkItem.GetudfConfigurationFile();
                            CentralApexPath = serverFilePathData.GetCommentsConfigDetails[0][0].ToString();
                            if (TerraScanCommon.IsFieldUser)
                            {
                                fieldLocalPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\TerraScan Attachment\";
                                FileAttachID   = FileAttachID.Replace(CentralApexPath, fieldLocalPath);
                                // Path1 = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
                                if (String.IsNullOrEmpty(FileAttachID))
                                {
                                }
                                else
                                {
                                    FileInfo photoFile = new FileInfo(FileAttachID);
                                    {
                                        if (photoFile.Exists)
                                        {
                                        }
                                        else
                                        {
                                            FileInfo fieldUpdatedPAth = new FileInfo(FileAttachID.Replace(fieldLocalPath, fieldLocalPath + @"\IsFieldAdded\"));
                                            if (fieldUpdatedPAth.Exists)
                                            {
                                                FileAttachID = FileAttachID.Replace(fieldLocalPath, fieldLocalPath + @"\IsFieldAdded\");
                                            }
                                        }
                                    }
                                }
                            }
                            fileAttachRow[0] = FileAttachID;
                            FileDataTable.Rows.Add(fileAttachRow);
                            FileDataTable.AcceptChanges();
                        }
                    }
                }


                ///Used to populate Path
                this.PopulatePhotosUserControll();
            }
        }