private void DoBind() { IQueryable <AdjusterMaster> adjusters = null; adjusters = AdjusterManager.GetAll(clientID); gvAdjuster.DataSource = adjusters.ToList(); gvAdjuster.DataBind(); List <StateMaster> states = State.GetAll(); ddlState.DataSource = states; ddlState.DataBind(); CollectionManager.FillCollection(ddlState, "StateId", "StateName", states); CollectionManager.FillCollection(ddlServiceStateLicense, "StateId", "StateName", states); CollectionManager.FillCollection(ddlTypeClaimHandled, "LeadPolicyTypeID", "Description", LeadPolicyTypeManager.GetAll()); }
protected void bindData() { int leadID = SessionHelper.getLeadId(); Leads lead = null; // get claimant name lead = LeadsManager.Get(leadID); if (lead != null) { if (lead.LeadPolicy != null && lead.LeadPolicy.Count > 0) { Core.CollectionManager.FillCollection(ddlPolicyType, "policyTypeID", "policyTypeDescription", LeadPolicyTypeManager.GetCurrentPolicy(lead), false); } } }
protected void bindData() { CollectionManager.FillCollection(ddlPolicyType, "LeadPolicyTypeID", "Description", LeadPolicyTypeManager.GetAll()); }
static protected void exportCoverage(LeadPolicy policy) { string coverageHeder = string.Empty; int policyTypeID = (int)policy.PolicyType; LeadPolicyType policyType = null; // create header policyType = LeadPolicyTypeManager.Get(policyTypeID); if (policyType != null) { coverageHeder = policyType.Description + " - Coverages"; } doc.NewPage(); PdfPTable tblHeader = new PdfPTable(new float[] { 30, 60 }); tblHeader.WidthPercentage = 90; PdfPCell headerCell = new PdfPCell(new Phrase(coverageHeder)); headerCell.Colspan = 2; headerCell.HorizontalAlignment = PdfPCell.ALIGN_CENTER; tblHeader.AddCell(headerCell); doc.Add(tblHeader); PdfPTable ptable = new PdfPTable(new float[] { 30, 60 }); string typeDescripion = ""; string cityName = null; string stateName = null; string zipCode = null; string inspectionCompleted = null; //foreach (LeadPolicy policy in policies) { if (!string.IsNullOrEmpty(policy.InsuranceCompanyName)) { addTableCell(ptable, "Insurance Type"); if (policy.PolicyType != null) { typeDescripion = policy.LeadPolicyType.Description; } addTableCell(ptable, typeDescripion); addTableCell(ptable, "Insurance Company"); addTableCell(ptable, policy.InsuranceCompanyName); addTableCell(ptable, "Address"); addTableCell(ptable, policy.InsuranceAddress ?? " "); addTableCell(ptable, " "); cityName = policy.CityMaster == null ? " " : policy.CityMaster.CityName; stateName = policy.StateMaster == null ? " " : policy.StateMaster.StateCode; zipCode = policy.InsuranceZipCode ?? " "; addTableCell(ptable, cityName + " " + stateName + " " + zipCode); addTableCell(ptable, "Policy Number"); addTableCell(ptable, policy.PolicyNumber ?? " "); //addTableCell(ptable, "Claim Number"); //addTableCell(ptable, policy.ClaimNumber ?? " "); //addTableCell(ptable, "Status"); //addTableCell(ptable, policy.StateMaster == null ? " " : policy.StateMaster.StateName); //addTableCell(ptable, "SubStatus"); //addTableCell(ptable, policy.SubStatusMaster == null ? " " : policy.SubStatusMaster.SubStatusName); //addTableCell(ptable, "Site Survey Date"); //addTableCell(ptable, policy.SiteSurveyDate == null ? " " : Convert.ToDateTime(policy.SiteSurveyDate).ToShortDateString()); //addTableCell(ptable, "Site Inspection Complete"); //if (policy.SiteInspectionCompleted == null) // inspectionCompleted = "No"; //else // inspectionCompleted = policy.SiteInspectionCompleted == 1 ? "Yes" : "No"; addTableCell(ptable, inspectionCompleted); // blank row addTableCell(ptable, " "); addTableCell(ptable, " "); } //} doc.Add(ptable); }
static public void Initialize(DHXScheduler scheduler) { int roleID = 0; int userID = 0; int.TryParse(System.Web.HttpContext.Current.Session["RoleId"].ToString(), out roleID); scheduler.Codebase = "../../js/dhtmlxScheduler"; //scheduler.DataFormat = SchedulerDataLoader.DataFormats.iCal; scheduler.Config.first_hour = 5; //sets the minimum value for the hour scale (Y-Axis) scheduler.Config.last_hour = 19; //sets the maximum value for the hour scale (Y-Axis) scheduler.Config.time_step = 60; //sets the scale interval for the time selector in the lightbox. //scheduler.Config.full_day = true;// blocks entry fields in the 'Time period' section of the lightbox and sets time period to a full day from 00.00 the current cell date untill 00.00 next day. scheduler.Config.multi_day = true; scheduler.Config.limit_time_select = true; scheduler.Skin = DHXScheduler.Skins.Terrace; scheduler.Extensions.Add(SchedulerExtensions.Extension.Collision); scheduler.Extensions.Add(SchedulerExtensions.Extension.Limit); #region lightbox configuration var text = new LightboxText("text", "Task"); // initializes a text input with the label 'Task' text.Height = 20; // sets the height of the control text.Focus = true; // set focus to the control scheduler.Lightbox.Add(text); // adds the control to the lightbox var description = new LightboxText("details", "Details"); // initializes a text input with the label 'Task' description.Height = 20; scheduler.Lightbox.Add(description); var status = new LightboxSelect("status_id", "Status"); // initializes a dropdown list with the label 'Status' status.AddOptions(TasksManager.GetStatuses()); // populates the list with values from the 'Statuses' table scheduler.Lightbox.Add(status); var owners = new LightboxSelect("owner_id", "Owner"); if (roleID == (int)UserRole.Administrator) { owners.AddOptions(TasksManager.GetOwners()); } else { int.TryParse(System.Web.HttpContext.Current.Session["UserId"].ToString(), out userID); owners.AddOptions(TasksManager.GetOwners(userID)); } scheduler.Lightbox.Add(owners); // poplicy types var policyTypes = new LightboxSelect("policy_type", "Policy Type"); policyTypes.AddOptions(LeadPolicyTypeManager.GetPolicyTypesForScheduler()); scheduler.Lightbox.Add(policyTypes); //var lead_name = new LightboxText("lead_name", "Lead Name");// initializes a text input with the label 'Task' //lead_name.Height = 20; //scheduler.Lightbox.Add(lead_name); // initializes and adds a control area for setting start and end times of a task //scheduler.Lightbox.Add(new LightboxTime("Time")); scheduler.Lightbox.Add(new LightboxMiniCalendar("cal", "Time")); #endregion scheduler.LoadData = true; scheduler.EnableDataprocessor = true; scheduler.EnableDynamicLoading(SchedulerDataLoader.DynamicalLoadingMode.Week); scheduler.UpdateFieldsAfterSave(); }