예제 #1
0
		public void UpdateCannedText(CannedText cannedText, CannedTextDetail detail, Staff owner, IPersistenceContext context)
		{
			cannedText.Name = detail.Name;
			cannedText.Category = detail.Category;
			cannedText.Staff = detail.IsPersonal ? owner : null;
			cannedText.StaffGroup = detail.IsGroup ? context.Load<StaffGroup>(detail.StaffGroup.StaffGroupRef, EntityLoadFlags.Proxy) : null;
			cannedText.Text = detail.Text;
		}
 public AddCannedTextRequest(CannedTextDetail detail)
 {
     this.Detail = detail;
 }
예제 #3
0
 public UpdateCannedTextRequest(EntityRef cannedTextRef, CannedTextDetail detail)
 {
     this.CannedTextRef = cannedTextRef;
     this.Detail        = detail;
 }
		public LoadCannedTextForEditResponse(CannedTextDetail detail)
		{
			this.CannedTextDetail = detail;
		}
예제 #5
0
		public AddCannedTextRequest(CannedTextDetail detail)
        {
            this.Detail = detail;
        }
예제 #6
0
		private static void CheckCannedTextWriteAccess(CannedTextDetail cannedText)
		{
			CheckCannedTextWriteAccess(cannedText.IsPersonal);
		}
예제 #7
0
		public CannedText CreateCannedText(CannedTextDetail detail, Staff owner, IPersistenceContext context)
		{
			CannedText newCannedText = new CannedText();
			UpdateCannedText(newCannedText, detail, owner, context);
			return newCannedText;
		}
예제 #8
0
 public LoadCannedTextForEditResponse(CannedTextDetail detail)
 {
     this.CannedTextDetail = detail;
 }
		public UpdateCannedTextRequest(EntityRef cannedTextRef, CannedTextDetail detail)
        {
			this.CannedTextRef = cannedTextRef;
            this.Detail = detail;
        }