• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TicketStatus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TicketStatus的典型用法代码示例。如果您正苦于以下问题:C# TicketStatus类的具体用法?C# TicketStatus怎么用?C# TicketStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TicketStatus类属于命名空间,在下文中一共展示了TicketStatus类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Close

        public void Close(TicketStatus NewStatus, bool UpdateInDb)
        {
            String dbType = null;
            Status = NewStatus;
            if (UpdateInDb)
            {
                switch (NewStatus)
                {
                    case TicketStatus.RESOLVED:
                        dbType = "resolved";
                        break;

                    case TicketStatus.ABUSIVE:
                        dbType = "abusive";
                        break;

                    case TicketStatus.INVALID:
                        dbType = "invalid";
                        break;
                }

                using (DatabaseClient adapter = PhoenixEnvironment.GetDatabase().GetClient())
                {
                    adapter.ExecuteQuery("UPDATE moderation_tickets SET status = '" + dbType + "' WHERE Id = '" + Id + "' LIMIT 1");
                }
            }
        }
开发者ID:neto737,项目名称:Phoenix_3.0,代码行数:27,代码来源:SupportTicket.cs


示例2: AssemblaTicket

 /// <summary>
 /// create a new assembla ticket
 /// </summary>
 /// <param name="summary"></param>
 /// <param name="desc"></param>
 /// <param name="pri"></param>
 /// <param name="stat"></param>
 public AssemblaTicket(string summary, string desc, Priority pri, TicketStatus stat)
 {
     _stat = stat;
     _pri = pri;
     _sum = summary;
     _desc = desc;
 }
开发者ID:sopnic,项目名称:larytet-master,代码行数:14,代码来源:AssemblaTicket.cs


示例3: SupportTicket

        public SupportTicket(uint Id, int Score, int Type, int CatagoryId, uint SenderId, uint ReportedId, string Message, uint RoomId, string RoomName, double Timestamp, object senderName, object reportedName, object modName)
        {
            this.Id = Id;
            this.Score = Score;
            this.Type = Type;
            CategoryId = CatagoryId;
            Status = TicketStatus.OPEN;
            this.SenderId = SenderId;
            this.ReportedId = ReportedId;
            ModeratorId = 0;
            this.Message = Message;
            this.RoomId = RoomId;
            this.RoomName = RoomName;
            this.Timestamp = Timestamp;

            if (senderName == DBNull.Value)
                SenderName = string.Empty;
            else
                SenderName = (string)senderName;

            if (reportedName == DBNull.Value)
                ReportedName = string.Empty;
            else
                ReportedName = (string)reportedName;

            if (modName == DBNull.Value)
                ModName = string.Empty;
            else
                ModName = (string)modName;
        }
开发者ID:BjkGkh,项目名称:R106,代码行数:30,代码来源:SupportTicket.cs


示例4: SupportTicket

        internal SupportTicket(UInt32 Id, int Score, int Type, UInt32 SenderId, UInt32 ReportedId, String Message, UInt32 RoomId, String RoomName, Double Timestamp, object senderName, object reportedName, object modName)
        {
            this.Id = Id;
            this.Score = Score;
            this.Type = Type;
            this.Status = TicketStatus.OPEN;
            this.SenderId = SenderId;
            this.ReportedId = ReportedId;
            this.ModeratorId = 0;
            this.Message = Message;
            this.RoomId = RoomId;
            this.RoomName = RoomName;
            this.Timestamp = Timestamp;

            if (senderName == DBNull.Value)
                this.SenderName = string.Empty;
            else
                this.SenderName = (string)senderName;

            if (reportedName == DBNull.Value)
                this.ReportedName = string.Empty;
            else
                this.ReportedName = (string)reportedName;

            if (modName == DBNull.Value)
                this.ModName = string.Empty;
            else
                this.ModName = (string)modName;
        }
开发者ID:habb0,项目名称:Bfly,代码行数:29,代码来源:SupportTicket.cs


示例5: Ticket

 protected Ticket(IPerformance performance, TicketType type)
 {
     this.Performance = performance;
     this.Price = this.CalculatePrice();
     this.status = TicketStatus.Unsold;
     this.Type = type;
 }
开发者ID:IskraNikolova,项目名称:Object-oriented-programming,代码行数:7,代码来源:Ticket.cs


示例6: TicketItemViewModel

        public TicketItemViewModel(string description, TicketStatus status = TicketStatus.Open, Action<object> removeAction = null)
        {
            removeAction = removeAction ?? (x => Console.WriteLine("NoOp."));
            Description = description;
            Status = status;

            RemoveItem = new ReactiveCommand();
            RemoveItem.Subscribe(removeAction);
        }
开发者ID:pingortle,项目名称:CompsysTicketingPlayground,代码行数:9,代码来源:TicketItemViewModel.cs


示例7: Ticket

 public Ticket(long ticketnr, long klantnr, int verwachteReparatieTijd, double verwachteKosten, TicketStatus status, string afdelingsAfkorting, string probleem, string categorieNaam)
 {
     this.ticketnr = ticketnr;
     this.klantnr = klantnr;
     this.verwachteReparatieTijd = verwachteReparatieTijd;
     this.verwachteKosten = verwachteKosten;
     this.status = status;
     this.afdelingsAfkorting = afdelingsAfkorting;
     this.probleem = probleem;
     this.categorieNaam = categorieNaam;
 }
开发者ID:Renellekes1991,项目名称:ProftaakS63C,代码行数:11,代码来源:Ticket.cs


示例8: Pick

		public void Pick(uint ModeratorId, bool UpdateInDb)
		{
			Status = TicketStatus.PICKED;
			//ModeratorId = ModeratorId;
			ModName = PhoenixEnvironment.GetGame().GetClientManager().GetNameById(ModeratorId);
			if (UpdateInDb)
			{
				using (DatabaseClient adapter = PhoenixEnvironment.GetDatabase().GetClient())
				{
					adapter.ExecuteQuery("UPDATE moderation_tickets SET status = 'picked', moderator_id = '" + ModeratorId + "' WHERE Id = '" + Id + "' LIMIT 1");
				}
			}
		}
开发者ID:neto737,项目名称:Phoenix_3.0,代码行数:13,代码来源:SupportTicket.cs


示例9: SupportTicket

 public SupportTicket(uint Id, int Score, int Type, uint SenderId, uint ReportedId, string Message, uint RoomId, string RoomName, Double Timestamp)
 {
     this.Id = Id;
     this.Score = Score;
     this.Type = Type;
     this.Status = TicketStatus.OPEN;
     this.SenderId = SenderId;
     this.ReportedId = ReportedId;
     this.ModeratorId = 0;
     this.Message = Message;
     this.RoomId = RoomId;
     this.RoomName = RoomName;
     this.Timestamp = Timestamp;
 }
开发者ID:habb0,项目名称:uberEmu-stabilized,代码行数:14,代码来源:SupportTicket.cs


示例10: CanChangeTo

 public override bool CanChangeTo(TicketStatus toStatus)
 {
     switch (toStatus) {
         case TicketStatus.New:
             return false;
         case TicketStatus.Accepted:
             return true;
         case TicketStatus.Rejected:
             return false;
         case TicketStatus.Closed:
             return false;
         default:
             return false;
     }
 }
开发者ID:sstae,项目名称:contactus,代码行数:15,代码来源:ClosedTicketState.cs


示例11: SupportTicket

 internal SupportTicket(UInt32 Id, int Score, int Type, UInt32 SenderId, UInt32 ReportedId, String Message, UInt32 RoomId, String RoomName, Double Timestamp)
 {
     this.Id = Id;
     this.Score = Score;
     this.Type = Type;
     this.Status = TicketStatus.OPEN;
     this.SenderId = SenderId;
     this.ReportedId = ReportedId;
     this.ModeratorId = 0;
     this.Message = Message;
     this.RoomId = RoomId;
     this.RoomName = RoomName;
     this.Timestamp = Timestamp;
     this.SenderName = SilverwaveEnvironment.GetGame().GetClientManager().GetNameById(SenderId);
     this.ReportedName = SilverwaveEnvironment.GetGame().GetClientManager().GetNameById(ReportedId);
     this.ModName = SilverwaveEnvironment.GetGame().GetClientManager().GetNameById(ModeratorId);
 }
开发者ID:BjkGkh,项目名称:Custom-R2,代码行数:17,代码来源:SupportTicket.cs


示例12: SupportTicket

		public SupportTicket(uint mId, int mScore, int mType, uint mSenderId, uint mReportedId, string mMessage, uint mRoomId, string mRoomName, double mTimestamp, uint mModeratorId)
		{
			Id = mId;
			Score = mScore;
			Type = mType;
			Status = TicketStatus.OPEN;
			SenderId = mSenderId;
			ReportedId = mReportedId;
			ModeratorId = mModeratorId;
			Message = mMessage;
			RoomId = mRoomId;
			RoomName = mRoomName;
			Timestamp = mTimestamp;
			SenderName = PhoenixEnvironment.GetGame().GetClientManager().GetNameById(mSenderId);
			ReportedName = PhoenixEnvironment.GetGame().GetClientManager().GetNameById(mReportedId);
			ModName = PhoenixEnvironment.GetGame().GetClientManager().GetNameById(mModeratorId);
		}
开发者ID:neto737,项目名称:Phoenix_3.0,代码行数:17,代码来源:SupportTicket.cs


示例13: SupportTicket

 public SupportTicket(uint mId, int mScore, int mType, uint mSenderId, uint mReportedId, string mMessage, uint mRoomId, string mRoomName, double mTimestamp, uint mModeratorId)
 {
     this.Id = mId;
     this.Score = mScore;
     this.Type = mType;
     this.Status = TicketStatus.OPEN;
     this.SenderId = mSenderId;
     this.ReportedId = mReportedId;
     this.ModeratorId = mModeratorId;
     this.Message = mMessage;
     this.RoomId = mRoomId;
     this.RoomName = mRoomName;
     this.Timestamp = mTimestamp;
     this.string_2 = GoldTree.GetGame().GetClientManager().GetNameById(mSenderId);
     this.string_3 = GoldTree.GetGame().GetClientManager().GetNameById(mReportedId);
     this.string_4 = GoldTree.GetGame().GetClientManager().GetNameById(mModeratorId);
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:17,代码来源:SupportTicket.cs


示例14: SupportTicket

		internal SupportTicket(uint Id, int Score, int Type, uint SenderId, uint ReportedId, string Message, uint RoomId, string RoomName, double Timestamp, List<string> ReportedChats)
		{
			this.Id = Id;
			this.Score = Score;
			this.Type = Type;
			this.Status = TicketStatus.OPEN;
			this.SenderId = SenderId;
			this.ReportedId = ReportedId;
			this.ModeratorId = 0u;
			this.Message = Message;
			this.RoomId = RoomId;
			this.RoomName = RoomName;
			this.Timestamp = Timestamp;
			this.SenderName = CyberEnvironment.GetGame().GetClientManager().GetNameById(SenderId);
			this.ReportedName = CyberEnvironment.GetGame().GetClientManager().GetNameById(ReportedId);
			this.ModName = CyberEnvironment.GetGame().GetClientManager().GetNameById(this.ModeratorId);
            this.ReportedChats = ReportedChats;
		}
开发者ID:kessiler,项目名称:habboServer,代码行数:18,代码来源:SupportTicket.cs


示例15: Create

        public static int Create(string space, string user, string password, string summary, string description, TicketStatus status, Priority priority)
        {
            int stat = (int)status;
            int pri = (int)priority;
            string url = GetTicketUrl(space);
                        StringBuilder data = new StringBuilder();
            data.AppendLine("<ticket>");
            data.AppendLine("<status>" + stat.ToString() + "</status>");
            data.AppendLine("<priority>" + pri.ToString() + "</priority>");
            data.AppendLine("<summary>");
            data.AppendLine(System.Web.HttpUtility.HtmlEncode(summary));
            data.AppendLine("</summary>");
            data.AppendLine("<description>");
            data.AppendLine(System.Web.HttpUtility.HtmlEncode(description));
            data.AppendLine("</description>");
            data.AppendLine("</ticket>");

            // prepare id
            int id = 0;
            string rs = string.Empty;
            try 
            {
                qc.gopost(url,user,password, data.ToString(),SendDebug, out rs);
                

                XmlDocument xd = new XmlDocument();
                xd.LoadXml(rs);
                XmlNodeList xnl = xd.GetElementsByTagName("id");
                string val = xnl[0].InnerText;
                if ((val != null) && (val != string.Empty))
                    id = Convert.ToInt32(val);
                // display it
                if (SendDebug != null)
                    SendDebug(rs);
            }
            catch (Exception ex)
            {
                if (SendDebug != null)
                    SendDebug("error on data: "+rs+" err: " + ex.Message + ex.StackTrace);
                return 0;
            }
            return id;
        }
开发者ID:antonywu,项目名称:tradelink,代码行数:43,代码来源:AssemblaTicket.cs


示例16: SupportTicket

        public SupportTicket(int Id, int Score, int Type, int Category, int SenderId, int ReportedId, String Message, int RoomId, String RoomName, Double Timestamp, List<string> ReportedChats)
        {
            this.Id = Id;
            this.Score = Score;
            this.Type = Type;
            this.Category = Category;
            this.Status = TicketStatus.OPEN;
            this.SenderId = SenderId;
            this.ReportedId = ReportedId;
            ModeratorId = 0;
            this.Message = Message;
            this.RoomId = RoomId;
            this.RoomName = RoomName;
            this.Timestamp = Timestamp;
            this.ReportedChats = ReportedChats;

            SenderName = PlusEnvironment.GetGame().GetClientManager().GetNameById(SenderId);
            ReportedName = PlusEnvironment.GetGame().GetClientManager().GetNameById(ReportedId);
            ModName = PlusEnvironment.GetGame().GetClientManager().GetNameById(ModeratorId);
        }
开发者ID:BjkGkh,项目名称:Boon,代码行数:20,代码来源:SupportTicket.cs


示例17: Pick

		internal void Pick(uint pModeratorId, bool UpdateInDb)
		{
			this.Status = TicketStatus.PICKED;
			this.ModeratorId = pModeratorId;
			this.ModName = CyberEnvironment.getHabboForId(pModeratorId).Username;
			if (UpdateInDb)
			{
				using (IQueryAdapter queryreactor = CyberEnvironment.GetDatabaseManager().getQueryReactor())
				{
					queryreactor.runFastQuery(string.Concat(new object[]
					{
						"UPDATE moderation_tickets SET status = 'picked', moderator_id = ",
						pModeratorId,
						", timestamp = '",
						CyberEnvironment.GetUnixTimestamp(),
						"' WHERE id = ",
						this.Id
					}));
				}
			}
		}
开发者ID:kessiler,项目名称:habboServer,代码行数:21,代码来源:SupportTicket.cs


示例18: NewStatus

        /// <summary>
        /// Creates shiny new modules that are not referenced / altered by other methods.
        /// </summary>
        /// <returns></returns>
        private TicketStatus NewStatus()
        {
            //Initialize a basic module object.
            TicketStatus Status = new TicketStatus();
            Status.Description = "This is my status descrition";
            Status.IsActive = true;
            Status.Name = "Ticket Status Name";
            Status.StatusOrder = 1;

            return Status;
        }
开发者ID:senkoroma,项目名称:ticketing-engine,代码行数:15,代码来源:TicketStatusTest.cs


示例19: InsertStatusIntoDatabase

 /// <summary>
 /// Helper method to insert values into the database.  If successful, it will set teh appropriate row id.
 /// </summary>
 /// <param name="Module"></param>
 private void InsertStatusIntoDatabase(TicketStatus Status)
 {
     HelpdeskService.CreateStatus(Status);
 }
开发者ID:senkoroma,项目名称:ticketing-engine,代码行数:8,代码来源:TicketStatusTest.cs


示例20: Response_SendTicketEvent

 void Response_SendTicketEvent(string space, string user, string password, string summary, string description, Priority pri, TicketStatus stat)
 {
     if (_sendticketwarn) return;
     debug("Sendticket not supported in gauntlet.");
     _sendticketwarn = true;
 }
开发者ID:antonywu,项目名称:tradelink,代码行数:6,代码来源:Gauntlet.cs



注:本文中的TicketStatus类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Ticks类代码示例发布时间:2022-05-24
下一篇:
C# Ticket类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap