Example #1
0
 public static void AddSubCorrespondence(crmSubCorrespondenceView SelectedSubCorrespondence)
 {
     sub_correspondence newCat = new sub_correspondence();
     newCat.sub_correspondence_name = SelectedSubCorrespondence.Name;
     newCat.code = SelectedSubCorrespondence.code;
     newCat.description = SelectedSubCorrespondence.description;
     newCat.correspondence_id = SelectedSubCorrespondence.correspondence_id;
     newCat.sla_id = SelectedSubCorrespondence.sla_id;
     newCat.status = (bool)SelectedSubCorrespondence.active;
     newCat.owner = AppData.CurrentUser.id;
     newCat.created_at = DateTime.Now;
     Database.CRM.sub_correspondences.InsertOnSubmit(newCat);
     Database.CRM.SubmitChanges();
 }
Example #2
0
		private void detach_sub_correspondences(sub_correspondence entity)
		{
			this.SendPropertyChanging();
			entity.correspondence = null;
		}
Example #3
0
 partial void Deletesub_correspondence(sub_correspondence instance);
Example #4
0
 partial void Updatesub_correspondence(sub_correspondence instance);
Example #5
0
 partial void Insertsub_correspondence(sub_correspondence instance);
Example #6
0
		private void attach_sub_correspondences(sub_correspondence entity)
		{
			this.SendPropertyChanging();
			entity.sla_timer = this;
		}