protected void Page_Load(object sender, EventArgs e) { bool isAdmin = false; roleID = Core.SessionHelper.getUserRoleId(); clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; this.Page.Form.DefaultButton = this.btnSave.UniqueID; isAdmin = (Session["UserName"] != null && Session["UserName"].ToString().ToLower() == "admin"); if (!IsPostBack) { FillForm(); if (isAdmin) { bindClients(); } } // tortega - show clients if (isAdmin) { tr_client.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; roleID = SessionHelper.getUserRoleId(); clientID = SessionHelper.getClientId(); // check permissions if (Core.PermissionHelper.checkViewPermission("UsersLeads.aspx") && !Core.PermissionHelper.checkEditPermission("UsersLeads.aspx")) { masterPage.disableControls(this.pnlContent, false); } hlnlNewClaim.Visible = Core.PermissionHelper.checkAddPermission("UsersLeads.aspx"); if (!Page.IsPostBack) { //bindPolicyData(); tabContainerPolicy.ActiveTabIndex = 0; } //bindLimits(); SetAddCoverageAdd(); }
protected void Page_Init(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; clientID = Core.SessionHelper.getClientId(); userID = Core.SessionHelper.getUserId(); roleID = Core.SessionHelper.getUserRoleId(); }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; if (!Page.IsPostBack) { loadData(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; if (!IsPostBack) { bindRole(); DoBind(); } }
protected void Page_Load(object sender, EventArgs e) { Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; //masterPage.checkPermission(); if (!Page.IsPostBack) { bindData(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; this.Page.Form.DefaultButton = btnSave.UniqueID; if (!IsPostBack) { DoBind(); } }
protected void Page_Load(object sender, EventArgs e) { clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; if (!IsPostBack) { DoBind(); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); if (!Page.IsPostBack) { legacyInvoices.bindData(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; this.Page.Form.DefaultButton = this.btnSave.UniqueID; if (!IsPostBack) { DoBind(); } if (Session["LeadIds"] == null) { btnReturnToClaim.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { string search = null; search = Request.Params["q"]; clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; if (!Page.IsPostBack) { loadData(search); } }
protected void Page_Load(object sender, EventArgs e) { clientID = SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; Page.Form.DefaultButton = btnSearch.UniqueID; if (!IsPostBack) { DoBind(); } if (Session["LeadIds"] == null) { btnReturnToClaim.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); clientID = SessionHelper.getClientId(); userID = SessionHelper.getUserId(); leadID = SessionHelper.getLeadId(); claimID = SessionHelper.getClaimID(); if (!Page.IsPostBack) { bindData(); } }
protected void Page_Load(object sender, EventArgs e) { string dencryptedID = null; bool isPrimeSessionFields = false; // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission bool hasEditPermission = Core.PermissionHelper.checkEditPermission("UsersLeads.aspx"); //lbtnSave.Visible = hasEditPermission; //btnLetter.Visible = hasEditPermission; btnEmail.Visible = hasEditPermission; Master.showTopMenu(hasEditPermission); //btnAutoInvoice.Visible = Core.PermissionHelper.checkAction((int)Globals.Actions.GenerateInvoice); -OC 9/2/14 //masterPage.checkPermission(); Form.DefaultButton = btnSave_hidden.UniqueID; // hide return to claim button Master.enableBackToClaimButton = false; if (!Page.IsPostBack) { if (Request.Params["q"] != null) { dencryptedID = Core.SecurityManager.DecryptQueryString(Request.Params["q"].ToString()); this.claimID = Convert.ToInt32(dencryptedID); } else { isPrimeSessionFields = Request.QueryString["id"] != null; } claimEdit.bindData(this.claimID, isPrimeSessionFields); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission // masterPage.checkPermission(); leadID = Core.SessionHelper.getLeadId(); if (!Page.IsPostBack) { legacyPhotos.bindData(leadID); claimPhotos.bindData(claimID); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission //masterPage.checkPermission(); clientID = Core.SessionHelper.getClientId(); leadID = Core.SessionHelper.getLeadId(); claimID = Core.SessionHelper.getClaimID(); appPath = ConfigurationManager.AppSettings["appPath"].ToString(); if (!Page.IsPostBack) { bindData(); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); int invoiceID = 0; if (!Page.IsPostBack) { bindData(); } if (int.TryParse(ViewState["InvoiceID"].ToString(), out invoiceID) && invoiceID > 0) { showToolbarButtons(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; }
protected void Page_Init(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; clientID = Core.SessionHelper.getClientId(); userID = Core.SessionHelper.getUserId(); roleID = Core.SessionHelper.getUserRoleId(); }
protected void Page_Load(object sender, EventArgs e) { bool isAdmin = false; roleID = Core.SessionHelper.getUserRoleId(); clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; this.Page.Form.DefaultButton = this.btnSave.UniqueID; isAdmin = (Session["UserName"] != null && Session["UserName"].ToString().ToLower() == "admin"); if (!IsPostBack) { FillForm(); if (isAdmin) { bindClients(); } } // tortega - show clients if (isAdmin) { tr_client.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; if (!Page.IsPostBack) { DoBind(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; roleID = SessionHelper.getUserRoleId(); clientID = SessionHelper.getClientId(); // check permissions if (Core.PermissionHelper.checkViewPermission("UsersLeads.aspx") && !Core.PermissionHelper.checkEditPermission("UsersLeads.aspx")) masterPage.disableControls(this.pnlContent, false); hlnlNewClaim.Visible = Core.PermissionHelper.checkAddPermission("UsersLeads.aspx"); if (!Page.IsPostBack) { //bindPolicyData(); tabContainerPolicy.ActiveTabIndex = 0; } //bindLimits(); SetAddCoverageAdd(); }
protected void Page_Load(object sender, EventArgs e) { clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; if (!IsPostBack) { DoBind(); } }
protected void Page_Load(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; this.Page.Form.DefaultButton = btnSave.UniqueID; if (!IsPostBack) { DoBind(); } if (Session["LeadIds"] == null) btnReturnToClaim.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission //masterPage.checkPermission(); clientID = SessionHelper.getClientId(); // get current lead leadID = SessionHelper.getLeadId(); // get current lead id claimID = SessionHelper.getClaimID(); // get current user userID = SessionHelper.getUserId(); // set directory where client can upload pictures for signature txtSignature.UploadedFilesDirectory = appPath + "/clientLogo/" + clientID; if (!Page.IsPostBack) { bindData(); userID = SessionHelper.getUserId(); CRM.Data.Entities.SecUser secUser = SecUserManager.GetByUserId(userID); string email = secUser.Email; string password = SecurityManager.Decrypt(secUser.emailPassword); string url = "https://" + secUser.emailHost + "/EWS/Exchange.asmx"; try { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.Credentials = new WebCredentials(email, password); service.Url = new Uri(url); ContactsFolder contactsfolder = ContactsFolder.Bind(service, WellKnownFolderName.Contacts); int numItems = contactsfolder.TotalCount < 50 ? contactsfolder.TotalCount : 50; ItemView view = new ItemView(int.MaxValue); view.PropertySet = new PropertySet(BasePropertySet.IdOnly, ContactSchema.DisplayName); FindItemsResults <Item> contactItems = service.FindItems(WellKnownFolderName.Contacts, view); DataTable table = new DataTable(); table.Columns.Add("FirstName", typeof(string)); table.Columns.Add("LastName", typeof(string)); table.Columns.Add("CompanyName", typeof(string)); table.Columns.Add("Email", typeof(string)); table.Columns.Add("ContactType", typeof(string)); foreach (GridRecord crow in contractGrid.Rows) { DataRow row = table.NewRow(); row[0] = crow.Items[0].Text; row[1] = crow.Items[1].Text; //row[2] = crow.Cells[2].Text; row[3] = crow.Items[3].Text; row[4] = crow.Items[4].Text; table.Rows.Add(row); } foreach (Item item in contactItems) { if (item is Microsoft.Exchange.WebServices.Data.Contact) { item.Load(); Microsoft.Exchange.WebServices.Data.Contact contact = item as Microsoft.Exchange.WebServices.Data.Contact; DataRow row = table.NewRow(); row[0] = contact.GivenName; row[1] = contact.Surname; row[3] = contact.EmailAddresses[0].Address; row[4] = "Outlook"; table.Rows.Add(row); } } contractGrid.DataSourceID = null; contractGrid.Columns.Clear(); contractGrid.DataBind(); contractGrid.DataSource = table; contractGrid.DataBind(); } catch (Exception ex) { } } }
protected void Page_Init(object sender, EventArgs e) { masterPage = this.Page.Master as Protected.ClaimRuler; }
protected void Page_Load(object sender, EventArgs e) { string search = null; search = Request.Params["q"]; clientID = Core.SessionHelper.getClientId(); masterPage = this.Page.Master as Protected.ClaimRuler; if (!Page.IsPostBack) loadData(search); }