Пример #1
0
        /// <summary>
        /// F29510 the base parcel value.
        /// </summary>
        /// <param name="eventId">Event ID</param>
        /// <returns>F29510BaseParcelCombineData</returns>
        public static F29510ParcelCombineData F29510_GetBaseParcelValue(int eventId)
        {
            F29510ParcelCombineData parcelCombineDataSet = new F29510ParcelCombineData();
            Hashtable ht = new Hashtable();

            ht.Add("@EventID", eventId);
            Utility.LoadDataSet(parcelCombineDataSet.f29510ListParcel, "f29510_pclst_Parcel", ht);
            return(parcelCombineDataSet);
        }
Пример #2
0
        /// <summary>
        /// Create Combined Parcel Details
        /// </summary>
        /// <param name="combineId">CombineID</param>
        /// <param name="eventId">EventID</param>
        /// <param name="parcelNumber">ParcelNumber</param>
        /// <param name="userId">UserID</param>
        /// <returns>F29510ParcelCombineData</returns>
        public static F29510ParcelCombineData F29510_CreateCombinedParcel(int combineId, string eventId, string parcelNumber, int userId, bool IsAttachment, bool IsComment, bool IsPermit, bool IsAssociation, bool IsNewConstruction)
        {
            F29510ParcelCombineData listOutput = new F29510ParcelCombineData();

            listOutput.OutputParams.AddOutputParamsRow("@PrimaryKeyID", string.Empty, "int", 8);
            listOutput.OutputParams.AddOutputParamsRow("@Results", string.Empty, "string", 3000);

            Hashtable ht = new Hashtable();

            ht.Add("@CombineID", combineId);
            ht.Add("@EventID", eventId);
            ht.Add("@ParcelNumber", parcelNumber);
            ht.Add("@UserID", userId);
            ht.Add("@IsAttachment", IsAttachment);
            ht.Add("@IsComment", IsComment);
            ht.Add("@IsPermit", IsPermit);
            ht.Add("@IsAssociation", IsAssociation);
            ht.Add("@IsNewConstruction", IsNewConstruction);
            //return Utility.FetchSPExecuteKeyId("f29510_pcexe_CreateParcel", ht);
            Utility.SPParameters("f29510_pcexe_CreateParcel", listOutput.OutputParams, ht, listOutput.OutputValues);
            return(listOutput);
        }