protected void ExecTasksView() { RegisterClientScriptHelper.DataContactDetailsViewForTaskAction(Page, TargetContact); }
protected void ExecPeopleContainerView() { RegisterClientScriptHelper.DataListContactTab(Page, TargetContact.ID, EntityType.Company); }
protected void Page_Load(object sender, EventArgs e) { RegisterClientScriptHelper.DataUserSelectorListView(Page, "", SelectedUsers); RegisterScript(); }
protected void Page_Load(object sender, EventArgs e) { RegisterClientScriptHelper.DataCasesFullCardView(Page, TargetCase); ExecHistoryView(); RegisterScript(); }
protected void Page_Load(object sender, EventArgs e) { ContactInfoTypes = (from ContactInfoType item in Enum.GetValues(typeof(ContactInfoType)) where (item != ContactInfoType.Address && item != ContactInfoType.Email && item != ContactInfoType.Phone) select item).ToList(); LinkMessageId = UrlParameters.LinkMessageId; saveContactButton.Text = SaveContactButtonText; saveContactButton.OnClientClick = String.Format("return ASC.CRM.ContactActionView.submitForm('{0}');", saveContactButton.UniqueID); saveAndCreateContactButton.Text = SaveAndCreateContactButtonText; saveAndCreateContactButton.OnClientClick = String.Format("return ASC.CRM.ContactActionView.submitForm('{0}');", saveAndCreateContactButton.UniqueID); List <CustomField> data; var networks = new List <ContactInfo>(); if (TargetContact == null) { data = DaoFactory.CustomFieldDao.GetFieldsDescription(UrlParameters.Type != "people" ? EntityType.Company : EntityType.Person); var URLEmail = UrlParameters.Email; if (!String.IsNullOrEmpty(URLEmail)) { networks.Add(new ContactInfo() { Category = (int)ContactInfoBaseCategory.Work, ContactID = 0, Data = URLEmail.HtmlEncode(), ID = 0, InfoType = ContactInfoType.Email, IsPrimary = true }); } if (UrlParameters.Type != "people") { //init ListContactView RegisterClientScriptHelper.DataListContactTab(Page, 0, EntityType.Company); } } else { data = DaoFactory.CustomFieldDao.GetEnityFields( TargetContact is Person ? EntityType.Person : EntityType.Company, TargetContact.ID, true); networks = DaoFactory.ContactInfoDao.GetList(TargetContact.ID, null, null, null).ConvertAll( n => new ContactInfo() { Category = n.Category, ContactID = n.ContactID, Data = n.Data.HtmlEncode(), ID = n.ID, InfoType = n.InfoType, IsPrimary = n.IsPrimary }); if (TargetContact is Company) { //init ListContactView RegisterClientScriptHelper.DataListContactTab(Page, TargetContact.ID, EntityType.Company); } } RegisterClientScriptHelper.DataContactActionView(Page, TargetContact, data, networks); if (TargetContact != null) { cancelButton.Attributes.Add("href", String.Format("Default.aspx?{0}={1}{2}", UrlConstant.ID, TargetContact.ID, !String.IsNullOrEmpty(UrlParameters.Type) ? String.Format("&{0}={1}", UrlConstant.Type, UrlParameters.Type) : String.Empty)); } else { cancelButton.Attributes.Add("href", Request.UrlReferrer != null && Request.Url != null && String.Compare(Request.UrlReferrer.PathAndQuery, Request.Url.PathAndQuery) != 0 ? Request.UrlReferrer.OriginalString : "Default.aspx"); } InitContactManagerSelector(); RegisterScript(); }