当前位置: 首页>>代码示例>>C#>>正文


C# AriCliModel.AriClinicContext类代码示例

本文整理汇总了C#中AriCliModel.AriClinicContext的典型用法代码示例。如果您正苦于以下问题:C# AriClinicContext类的具体用法?C# AriClinicContext怎么用?C# AriClinicContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AriClinicContext类属于AriCliModel命名空间,在下文中一共展示了AriClinicContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Init

 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);
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:28,代码来源:ServiceGrid.aspx.cs

示例2: iniChart

        private void iniChart(AriClinicContext ctx1)
        {
            ctx1 = new AriClinicContext("AriClinicContext");
            IList<Professional> prof = CntAriCli.GetSurgeonTickets(fromDate, toDate, ctx1);
            chart1.PlotArea.XAxis.AutoScale = true;
            chart1.PlotArea.XAxis.Items.Clear();
            chart1.AutoLayout = true;
            chart1.ChartTitle.TextBlock.Visible=false;//.Text = "Servicios por profesional.";
            chart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;
            chart1.PlotArea.Appearance.FillStyle.MainColor = Color.Transparent;
            ChartSeries chartSeries1 = new ChartSeries();
            chartSeries1.Type = ChartSeriesType.Pie;
            chartSeries1.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;

            foreach (Professional item in prof)
            {
                ChartSeriesItem serieItem = new ChartSeriesItem();
                int num = CntAriCli.GetTicketsByCirujano(fromDate, toDate, item.PersonId.ToString(), ctx1).Count;
                if (num > 0)
                {
                    serieItem.YValue = num;
                    serieItem.Name = item.FullName;
                    serieItem.Label.TextBlock.Text = num.ToString();
                    serieItem.Appearance.Exploded = true;
                    chartSeries1.Items.Add(serieItem);
                }
            }

            chart1.Series.Clear();
            chart1.Series.AddRange(new Telerik.Reporting.Charting.ChartSeries[] { chartSeries1 });  
        }
开发者ID:ragare62,项目名称:AriClinic,代码行数:31,代码来源:RptServSurgeon.cs

示例3: Page_Init

    protected void Page_Init(object sender, EventArgs e)
    {
        ctx = new AriClinicContext("AriClinicContext");
        // security control, This is a general view accesible for all

        // Do you want to see a Diary?
        if (Request.QueryString["DiaryId"] != null)
        {
            diaryId = int.Parse(Request.QueryString["DiaryId"]);
            diary = CntAriCli.GetDiary(diaryId, ctx);
            if (diary != null)
            {
                lblTitle.Text = diary.Name;
                this.Title = diary.Name;
            }
        }
        else
        {
            // this view is only for specific agendas
            Response.Redirect("Default.aspx");
        }
        // Do you want to see a Professional?
        if (Request.QueryString["ProfessionalId"] != null)
        {
            professionalId = int.Parse(Request.QueryString["ProfessionalId"]);
            professional = CntAriCli.GetProfessional(professionalId, ctx);
            if (professional != null)
                lblTitle.Text = professional.FullName;
        }
    }
开发者ID:ragare62,项目名称:AriClinic,代码行数:30,代码来源:SchedulerView.aspx.cs

示例4: RptTicket

 public RptTicket(int idticket, AriClinicContext ctx1)
     : this()
 {
     ctx1 = new AriClinicContext("AriClinicContext");
     companyname = CntAriCli.GetHealthCompany(ctx1).Name;
     this.DataSource = CntAriCli.GetTicket(idticket, ctx1);
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:7,代码来源:RptTicket.cs

示例5: Page_Init

 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");
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:7,代码来源:UscAddressGrid.ascx.cs

示例6: Page_Init

 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;
     }
     if (Request.QueryString["CustomerId"] != null)
     {
         customerId = Int32.Parse(Request.QueryString["CustomerId"]);
         cus = CntAriCli.GetCustomer(customerId, ctx);
     }
     // translate filters
     CntWeb.TranslateRadGridFilters(RadGrid1);
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:32,代码来源:PolicyGrid.aspx.cs

示例7: BigDelete

        public static void BigDelete(AriClinicContext ctx)
        {
            ctx.Delete(ctx.InvoiceLines);
            ctx.Delete(ctx.Invoices);
            ctx.SaveChanges();
            ctx.Delete(ctx.AppointmentInfos);
            ctx.Delete(ctx.AppointmentTypes);
            ctx.Delete(ctx.Diaries);
            ctx.SaveChanges();

            ctx.Delete(ctx.Payments);
            ctx.Delete(ctx.Tickets);
            ctx.Delete(ctx.ServiceNotes);
            ctx.Delete(ctx.Policies);
            ctx.Delete(ctx.Insurances);
            ctx.Delete(ctx.InsuranceServices);
            ctx.SaveChanges();

            ctx.Delete(ctx.Services);
            ctx.Delete(ctx.ServiceCategories);
            ctx.Delete(ctx.TaxTypes);
            ctx.Delete(ctx.Addresses); // eliminar direcciones.
            ctx.Delete(ctx.Emails); // eliminar correos electrónicos
            ctx.Delete(ctx.Telephones); // eliminar teléfonos.
            ctx.Delete(ctx.Policies); // eliminar las pólizas.
            ctx.Delete(ctx.PaymentMethods);
            ctx.SaveChanges();
        }
开发者ID:ragare62,项目名称:AriClinic,代码行数:28,代码来源:CntOft.cs

示例8: Page_Init

    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 == "visitreason"
                            select p).FirstOrDefault<Process>();
            per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
            btnAccept.Visible = per.Modify;
        }

        // 
        if (Request.QueryString["VisitReasonId"] != null)
        {
            visitReasonId = Int32.Parse(Request.QueryString["VisitReasonId"]);
            visitReason = CntAriCli.GetVisitReason(visitReasonId, ctx);
            LoadData(visitReason);
        }
    }
开发者ID:ragare62,项目名称:AriClinic,代码行数:25,代码来源:VisitReasonForm.aspx.cs

示例9: Page_Init

 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 another form
     if (Request.QueryString["Type"] != null)
         type = Request.QueryString["Type"];
     // read patient information
     if (Request.QueryString["CustomerId"] != null)
     {
         customerId = Int32.Parse(Request.QueryString["CustomerId"]);
         cus = CntAriCli.GetCustomer(customerId, ctx);
         lblTitle.Text = String.Format("Historial administrativo: {0}", cus.FullName);
         this.Title = String.Format("Historial administrativo: {0}", cus.FullName);
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:26,代码来源:CustomerTab.aspx.cs

示例10: Page_Init

    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 == "examinationassigned"
                            select p).FirstOrDefault<Process>();
            per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
            btnAccept.Visible = per.Modify;
        }

        // 
        if (Request.QueryString["GlassesTestId"] != null)
        {
            id = Int32.Parse(Request.QueryString["GlassesTestId"]);
            glassesTest = CntAriCli.GetGlassesTest(id, ctx);
            refractometry = glassesTest.Refractometry;
            LoadData(glassesTest);
        }
        if (Request.QueryString["RefractometryId"] != null)
        {
            id = int.Parse(Request.QueryString["RefractometryId"]);
            refractometry = (Refractometry)CntAriCli.GetExaminationAssigned(id, ctx);
        }
    }
开发者ID:ragare62,项目名称:AriClinic,代码行数:31,代码来源:GlassesTestForm.aspx.cs

示例11: Page_Init

    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 == "professional"
                            select p).FirstOrDefault<Process>();
            per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
            btnAccept.Visible = per.Modify;
        }

        // 
        if (Request.QueryString["ProfessionalId"] != null)
        {
            professionalId = Int32.Parse(Request.QueryString["ProfessionalId"]);
            prof = CntAriCli.GetProfessional(professionalId, ctx);
            LoadData(prof);
        }
        else
        {
            LoadUserCombo(null);
            LoadTypeCombo(null);
            LoadTaxWithholdingTypeCombo(null);
        }

    }
开发者ID:ragare62,项目名称:AriClinic,代码行数:31,代码来源:ProfessionalForm.aspx.cs

示例12: Page_Init

 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 == "Estimate"
                         select p).FirstOrDefault<Process>();
         per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
         btnAccept.Visible = per.Modify;
     }
     //
     LoadComboInsurance();
     // 
     if (Request.QueryString["EstimateId"] != null)
     {
         estId = Int32.Parse(Request.QueryString["EstimateId"]);
         est = CntAriCli.GetEstimate(estId, ctx);
         
     }
     // 
     if (Request.QueryString["EstimateLineId"] != null)
     {
         estlId = Int32.Parse(Request.QueryString["EstimateLineId"]);
         estl = CntAriCli.GetEstimateLine(estlId, ctx);
         LoadData(estl);
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:32,代码来源:EstimateLineForm.aspx.cs

示例13: Page_Init

    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 == "usergroup"
                            select p).FirstOrDefault<Process>();
            per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
            btnAccept.Visible = per.Modify;
        }

        // 
        if (Request.QueryString["UserGroupId"] != null)
        {
            userGroupId = Int32.Parse(Request.QueryString["UserGroupId"]);
            UserGroup ug = (from usg in ctx.UserGroups
                            where usg.UserGroupId == userGroupId
                            select usg).FirstOrDefault<UserGroup>();
            LoadData(ug);
        }
    }
开发者ID:ragare62,项目名称:AriClinic,代码行数:26,代码来源:UserGroupForm.aspx.cs

示例14: Page_Init

 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 == "rtickets"
                         select p).FirstOrDefault<Process>();
         per = CntAriCli.GetPermission(user.UserGroup, proc, ctx);
     }
     // cheks if is call from another form
     if (Request.QueryString["Report"] != null)
         report = Request.QueryString["Report"];
     if (Request.QueryString["FDate"] != null)
         fDate = CntWeb.ParseUrlDate(Request.QueryString["FDate"]);
     if (Request.QueryString["TDate"] != null)
         tDate = CntWeb.ParseUrlDate(Request.QueryString["TDate"]);
     if (Request.QueryString["Diary"] != null)
         diary = CntAriCli.GetDiary(int.Parse(Request.QueryString["Diary"]),ctx);
     if (Request.QueryString["Visit"] != null)
         visit = CntAriCli.GetVisit(int.Parse(Request.QueryString["Visit"]), ctx);
     if (Request.QueryString["Treatment"] != null)
         treatment = CntAriCli.GetTreatment(int.Parse(Request.QueryString["Treatment"]), ctx);
     if (Request.QueryString["Invoice"] != null)
         invoice = CntAriCli.GetInvoice(int.Parse(Request.QueryString["Invoice"]), ctx);
     if (Request.QueryString["PrescriptionGlasses"] != null)
         prescriptionGlasses = CntAriCli.GetPrescriptionGlasses(int.Parse(Request.QueryString["PrescriptionGlasses"]), ctx);
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:32,代码来源:RptView.aspx.cs

示例15: DeleteVisit

 public static void DeleteVisit(AriClinicContext ctx)
 {
     ctx.Delete(ctx.OphthalmologicVisits);
     ctx.Delete(ctx.BaseVisits);
     ctx.Delete(ctx.VisitReasons);
     ctx.SaveChanges();
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:7,代码来源:CntOft.cs


注:本文中的AriCliModel.AriClinicContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。