/// <summary>
        /// Gets the property header details.
        /// </summary>
        /// <param name="scheduleId">The schedule id.</param>
        /// <returns>Personal property header details</returns>
        public static F25055PropertyHeaderData GetPropertyHeaderDetails(int scheduleId)
        {
            F25055PropertyHeaderData personalPropertyTable = new F25055PropertyHeaderData();
            Hashtable ht = new Hashtable();

            ht.Add("@SheduleID", scheduleId);
            Utility.LoadDataSet(personalPropertyTable.GetPersonalPropertyDetail, "f25055_pcget_Schedule", ht);
            return(personalPropertyTable);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the schedule details.
        /// </summary>
        /// <param name="scheduleValue">The schedule value.</param>
        private void GetPropertyHeaderDetails(int scheduleValue)
        {
            // DB call for retrieving data for specific kyid
            this.personalPropertyData = this.form25055Control.WorkItem.GetPropertyHeaderDetails(scheduleValue);

            if (this.personalPropertyData.GetPersonalPropertyDetail.Rows.Count > 0)
            {
                // Set the retrieved values on appropriate controls and make it enable
                this.SetPropertyHeaderDetails((F25055PropertyHeaderData.GetPersonalPropertyDetailRow) this.personalPropertyData.GetPersonalPropertyDetail.Rows[0]);
                this.EnableScheduleHeader(true);
            }
            else
            {
                // If there is no relevent record presents for that keyid, clear all controls and make it disable
                this.ClearControls();
                this.EnableScheduleHeader(false);
            }
        }