Пример #1
0
        /// <summary>
        /// Lists the GDoc event header status.
        /// </summary>
        /// <param name="eventId">The event Id.</param>
        /// <returns>Typed status containing Event Engine status.</returns>
        public static GDocEventHeaderData ListGDocEventHeaderStatus(int eventId)
        {
            GDocEventHeaderData gdocEventHeaderData = new GDocEventHeaderData();
            Hashtable           ht = new Hashtable();

            ht.Add("@EventID", eventId);
            Utility.LoadDataSet(gdocEventHeaderData.ListGDocEventHeaderStatus, "f8030_pclst_EventHeader", ht);
            return(gdocEventHeaderData);
        }
Пример #2
0
        /// <summary>
        /// Gets the GDoc event header.
        /// </summary>
        /// <param name="eventId">The event id.</param>
        /// <returns>Typed dataset containing the Event,Event date,Work Order and Is complete. </returns>
        public static GDocEventHeaderData GetGDocEventHeader(int eventId)
        {
            GDocEventHeaderData gdocEventHeaderData = new GDocEventHeaderData();
            Hashtable           ht = new Hashtable();

            ht.Add("@EventID", eventId);
            string[] tableName = new string[] { gdocEventHeaderData.GetGDocEventHeader.TableName, gdocEventHeaderData.GetMasterFormNo.TableName };
            Utility.LoadDataSet(gdocEventHeaderData, "f8030_pcget_EventHeader", ht, tableName);
            return(gdocEventHeaderData);
        }
Пример #3
0
        /// <summary>
        /// Saves the GDoc event header.
        /// </summary>
        /// <param name="eventItems">The event items.</param>
        /// <param name="userId">userId</param>
        /// <returns>Typed dataset</returns>
        public static GDocEventHeaderData SaveGDocEventHeader(string eventItems, int userId)
        {
            GDocEventHeaderData gdocEventHeaderData = new GDocEventHeaderData();
            Hashtable           ht = new Hashtable();

            ht.Add("@EventItems", eventItems);
            ht.Add("@UserID", userId);
            Utility.LoadDataSet(gdocEventHeaderData.SaveGDocEventHeader, "f8030_pcupd_EventHeader", ht);
            return(gdocEventHeaderData);

            // Utility.ExecuteSP("f8030_pcupd_EventEngineSliceHeader", ht);
        }