Example #1
0
 public IssueFeedbackStruct(IssueFeedback feedback)
 {
     this.description = feedback.description;
     this.accessicon  = (feedback.accesstype == IssueFeedback.ACCESSTYPE_PUBLIC) ? "" : Images.PRIVATE();
     this.name        = feedback.createdname;
     this.date        = DateUtils.ConvertToDateString(feedback.createddate);
     this.time        = DateUtils.ConvertToTimeString(feedback.createddate);
 }
Example #2
0
 public IssueTransitionStruct(IssueTransition transition)
 {
     this.fromstatus = Issue.StatusAsString(transition.fromstatus);
     this.tostatus   = Issue.StatusAsString(transition.tostatus);
     this.statusicon = Images.StatusAsImage(transition.tostatus);
     this.name       = transition.createdname;
     this.date       = DateUtils.ConvertToDateString(transition.createddate);
     this.time       = DateUtils.ConvertToTimeString(transition.createddate);
 }
Example #3
0
 public UIResident_List(Account model)
 {
     this.id            = model.id;
     this.email         = model.email;
     this.authz         = Account.AuthzAsString(model.authz);
     this.firstname     = model.firstname;
     this.lastname      = model.lastname;
     this.lastlogin     = DateUtils.ConvertToDateString(model.lastlogin);
     this.editcmdlink   = Images.EDIT();
     this.securecmdlink = Images.SECURE();
     this.deletecmdlink = Images.DELETE();
 }
Example #4
0
 public UINews_List(News news, long now)
 {
     this.id            = news.id;
     this.categoryicon  = Images.NewsCategoryAsImage(news.category, news.id.ToString(), News.CategoryAsString(news.category));
     this.headline      = news.headline;
     this.speakicon     = (news.showfrom <= now && now <= news.showuntil) ? Images.SPEAK() : Images.EMPTY;
     this.message       = StringUtils.Shorten(news.message, 100);
     this.showfrom      = DateUtils.ConvertToDateString(news.showfrom);
     this.showuntil     = DateUtils.ConvertToDateString(news.showuntil);
     this.editcmdlink   = Images.EDIT();
     this.deletecmdlink = Images.DELETE();
 }
Example #5
0
 public UIOffer_List(Offer offer, long now)
 {
     this.id            = offer.id;
     this.categoryicon  = Images.OfferCategoryAsImage(offer.category, offer.id.ToString(), Offer.CategoryAsString(offer.category));
     this.headline      = offer.headline;
     this.speakicon     = (offer.showfrom <= now && now <= offer.showuntil) ? Images.SPEAK() : Images.EMPTY;
     this.message       = StringUtils.Shorten(offer.message, 100);
     this.showfrom      = DateUtils.ConvertToDateString(offer.showfrom);
     this.showuntil     = DateUtils.ConvertToDateString(offer.showuntil);
     this.editcmdlink   = Images.EDIT();
     this.deletecmdlink = Images.DELETE();
 }
Example #6
0
 public UIOffer_CRU(Offer model)
 {
     this.id            = model.id;
     this.customerid    = model.customerid;
     this.category      = model.category;
     this.headline      = model.headline;
     this.message       = model.message;
     this.author        = model.author;
     this.sent          = DateUtils.ConvertToDateTimeString(model.sent);
     this.showfromdate  = DateUtils.ConvertToDateString(model.showfrom);
     this.showfromtime  = DateUtils.ConvertToTimeString(model.showfrom);
     this.showuntildate = DateUtils.ConvertToDateString(model.showuntil);
     this.showuntiltime = DateUtils.ConvertToTimeString(model.showuntil);
 }
Example #7
0
 public IssueProblemStruct(Issue issue, Customer customer)
 {
     this.issueid         = issue.id;
     this.name            = issue.name;
     this.assignedid      = issue.assignedid;
     this.startdatestring = DateUtils.ConvertToDateString(issue.startdate);
     this.starttimestring = DateUtils.ConvertToTimeString(issue.startdate);
     this.enddatestring   = DateUtils.ConvertToDateString(issue.enddate);
     this.endtimestring   = DateUtils.ConvertToTimeString(issue.enddate);
     this.issueclassid    = issue.issueclassid;
     this.prio            = issue.prio;
     this.responsible     = issue.responsible;
     this.areatype        = issue.areatype;
     this.description     = issue.description;
     this.customername    = (customer == null) ? "--" : customer.name;
 }
        public UIIssueList_List(Issue model, string assigned)
        {
            int nextstatus = Issue.NextProbableStatus(model.status);

            this.id              = model.id;
            this.statusicon      = Images.StatusAsImage(model.status, null, Issue.StatusAsString(model.status));
            this.priority        = Issue.PrioAsString(model.prio);
            this.header          = StringUtils.Shorten(model.name, 30);
            this.descriptionicon = Images.COMMENT(null, model.description);
            this.address         = StringUtils.Shorten(model.address, 30);
            this.assigned        = assigned;
            this.responsibleicon = model.responsible == Issue.RESPONSIBLE_INTERNAL ? "" : Images.CUSTOMER();
            this.areatype        = Issue.AreaTypeAsString(model.areatype);
            this.startdate       = DateUtils.ConvertToDateString(model.startdate);
            this.enddate         = DateUtils.ConvertToDateString(model.enddate);
            this.status          = model.status;
            this.editcmdlink     = Images.EDIT();
            this.statuscmdlink   = Images.StatusAsNextImage(nextstatus, null, nextstatus + "/" + Issue.StatusAsString(nextstatus));
        }