protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); user = CntAriCli.GetUser(user.UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "agenda" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "scat" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } //cheks if is call from customer form tabs if (type == "InTab") { HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // hide patient column RadGrid1.Columns.FindByDataField("Patient.FullName").Visible = false; } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = (User)Session["User"]; user = CntAriCli.GetUser(user.UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "diagnosticassigned" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); // control base visit type if (user.BaseVisitType != null) { rdcVisitType.SelectedValue = user.BaseVisitType.Code; } } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // check if grid is call from a tab if (type == "InTab") { HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // hide patient column RadGrid1.Columns.FindByDataField("Patient.FullName").Visible = false; } if (Request.QueryString["PatientId"] != null) { patientId = int.Parse(Request.QueryString["PatientId"]); patient = CntAriCli.GetPatient(patientId, ctx); } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "policy" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // read the realated patient if (Request.QueryString["PatientId"] != null) { patientId = Int32.Parse(Request.QueryString["PatientId"]); pat = CntAriCli.GetPatient(patientId, ctx); cus = pat.Customer; } // read passed customer if any if (Request.QueryString["CustomerId"] != null) { customerId = Int32.Parse(Request.QueryString["CustomerId"]); cus = CntAriCli.GetCustomer(customerId, ctx); } // if (Request.QueryString["NotPaid"] != null) { notPaid = true; } // if (type == "InTab") { HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // hide patient column RadGrid1.Columns.FindByDataField("Policy.Customer.FullName").Visible = false; // RadGrid1.PageSize = 6; } else { } if (Request.QueryString["AnestheticServiceNoteId"] != null) { anestheticServiceNoteId = Int32.Parse(Request.QueryString["AnestheticServiceNoteId"]); asn = CntAriCli.GetAnestheticServiceNote(anestheticServiceNoteId, ctx); HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // here the fields that must be hidden RadGrid1.Columns.FindByDataField("TicketDate").Visible = false; RadGrid1.Columns.FindByDataField("Policy.Customer.FullName").Visible = false; RadGrid1.Columns.FindByDataField("Checked").Visible = false; RadGrid1.Columns.FindByDataField("Clinic.Name").Visible = false; } if (Request.QueryString["ServiceNoteId"] != null) { serviceNoteId = int.Parse(Request.QueryString["ServiceNoteId"]); sn = CntAriCli.GetServiceNote(serviceNoteId, ctx); HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // here the fields that must be hidden RadGrid1.Columns.FindByDataField("TicketDate").Visible = false; RadGrid1.Columns.FindByDataField("Policy.Customer.FullName").Visible = false; RadGrid1.Columns.FindByDataField("Checked").Visible = false; RadGrid1.Columns.FindByDataField("Clinic.Name").Visible = false; RadGrid1.Columns.FindByDataField("Paid").Visible = false; } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); // }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "policy" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } if (Session["Clinic"] != null) { cl = (Clinic)Session["Clinic"]; } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // read the realated patient if (Request.QueryString["PatientId"] != null) { patientId = Int32.Parse(Request.QueryString["PatientId"]); pat = CntAriCli.GetPatient(patientId, ctx); cus = pat.Customer; } // read passed customer if any if (Request.QueryString["CustomerId"] != null) { customerId = Int32.Parse(Request.QueryString["CustomerId"]); cus = CntAriCli.GetCustomer(customerId, ctx); } // if (Request.QueryString["NotPaid"] != null) { notPaid = true; } // if (type == "InTab") { HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // hide patient column RadGrid1.Columns.FindByDataField("Policy.Customer.FullName").Visible = false; } else if (type == "comprobante") { HtmlControl tt = (HtmlControl)this.FindControl("Actions"); tt.Attributes["class"] = "ghost"; // hide patient column //RadGrid1.Columns.FindByDataField("Policy.Customer.FullName").Visible = false; btnComp.Visible = true; lblTitle.Text = "Comprobantes"; rdcbType.AutoPostBack = true; rdcbType.Items.Clear(); rdcbType.Items.Add(new RadComboBoxItem("Con comprobante", "C")); rdcbType.Items.Add(new RadComboBoxItem("Sin comprobante", "SC")); RadGrid1.PageSize = 6; } else { // RadGrid1.PageSize = 6; } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); // LoadInsuranceCombo(); LoadPayementFormCombo(); LoadClinicCombo(); }