protected void wypelnijRodzaje()
        {
            DevExpress.Web.ListEditItem listEditItem = new DevExpress.Web.ListEditItem();

            if (CBRodzaje.Items.Count == 0)
            {
                listEditItem.Text  = "Statystyki miesięczne";
                listEditItem.Value = (int)Rodzaje.miesieczne;
                CBRodzaje.Items.Add(listEditItem);

                listEditItem = new DevExpress.Web.ListEditItem
                {
                    Text  = "MSS",
                    Value = (int)Rodzaje.MSS
                };
                CBRodzaje.Items.Add(listEditItem);


                listEditItem = new DevExpress.Web.ListEditItem
                {
                    Text  = "Kontrolki",
                    Value = (int)Rodzaje.kontrolki
                };
                CBRodzaje.Items.Add(listEditItem);

                listEditItem = new DevExpress.Web.ListEditItem
                {
                    Text  = "Kof",
                    Value = (int)Rodzaje.kof
                };
                CBRodzaje.Items.Add(listEditItem);

                listEditItem = new DevExpress.Web.ListEditItem
                {
                    Text  = "Wyszukiwarka",
                    Value = (int)Rodzaje.wyszukiwarka
                };
                CBRodzaje.Items.Add(listEditItem);

                listEditItem = new DevExpress.Web.ListEditItem
                {
                    Text  = "Pracownik",
                    Value = (int)Rodzaje.pracownik
                };
                CBRodzaje.Items.Add(listEditItem);

                CBRodzaje.SelectedIndex = 0;
                CBRodzaje.DataBind();
            }

            if (CBRodzaje.SelectedIndex == -1)
            {
                CBRodzaje.DataBind();
                CBRodzaje.SelectedIndex = 0;
            }
        }
Example #2
0
    public void BindDoctor()
    {//Logging Start
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }

        try
        {
            Bill_Sys_DoctorBO objDocBO   = new Bill_Sys_DoctorBO();
            DataSet           doctorList = objDocBO.GetDoctorList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);


            txtCompanyID.Text    = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            ddlDoctor.DataSource = doctorList;
            ddlDoctor.TextField  = "DESCRIPTION";
            ddlDoctor.ValueField = "CODE";
            ddlDoctor.DataBind();
            DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddlDoctor.Items.Insert(0, Item);
            ddlDoctor.SelectedIndex = 0;

            Bill_Sys_ScanDco objScanDoc   = new Bill_Sys_ScanDco();
            DataSet          providerList = objScanDoc.GetProviderList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            ddlRefferingProvider.DataSource = providerList;
            ddlRefferingProvider.TextField  = "DESCRIPTION";
            ddlRefferingProvider.ValueField = "CODE";
            ddlRefferingProvider.DataBind();
            DevExpress.Web.ListEditItem providerItem = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddlRefferingProvider.Items.Insert(0, providerItem);
            ddlRefferingProvider.SelectedIndex = 0;

            DevExpress.Web.ListEditItem ReffDoctor = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddlRefferingDoctor.Items.Insert(0, ReffDoctor);
            ddlRefferingDoctor.SelectedIndex = 0;
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    private void BindCaseType()
    {
        DataSet ds = new DataSet();

        ds = loadcaseType(companyId);
        ASPxListBox lstCaseType = (ASPxListBox)this.ddleCaseType.FindControl("lstCaseType");

        lstCaseType.ValueField = "CODE";
        lstCaseType.TextField  = "DESCRIPTION";
        lstCaseType.DataSource = ds;
        lstCaseType.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All ---", "NA");
        lstCaseType.Items.Insert(0, Item);
    }
    private void BindProvidername()
    {
        DataSet     ds = new DataSet();
        ASPxListBox lstProviderName = (ASPxListBox)this.ddleProviderName.FindControl("lstProviderName");

        ds = loadProvidername(companyId);
        lstProviderName.TextField  = "DESCRIPTION";
        lstProviderName.ValueField = "CODE";
        lstProviderName.DataSource = ds;
        lstProviderName.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All---", "NA");
        lstProviderName.Items.Insert(0, Item);
        //lstProviderName.SelectedIndex = 0;
    }
    private void BindSpeciality()
    {
        DataSet     ds            = new DataSet();
        ASPxListBox lstSpeciality = (ASPxListBox)this.ddleSpeciality.FindControl("lstSpeciality");

        ds = loadSpeciality(companyId);
        lstSpeciality.TextField  = "description";
        lstSpeciality.ValueField = "code";
        lstSpeciality.DataSource = ds;
        lstSpeciality.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All---", "NA");
        lstSpeciality.Items.Insert(0, Item);
        //lstSpeciality.SelectedIndex = 0;
    }
    private void BindCarrier()
    {
        DataSet     ds         = new DataSet();
        ASPxListBox lstCarrier = (ASPxListBox)this.ddleCarrier.FindControl("lstCarrier");

        ds = loadCarrier(companyId);
        lstCarrier.TextField  = "DESCRIPTION";
        lstCarrier.ValueField = "CODE";
        lstCarrier.DataSource = ds;
        lstCarrier.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All---", "NA");
        lstCarrier.Items.Insert(0, Item);
        //lstCarrier.SelectedIndex = 0;
    }
    private void BindLawfirm()
    {
        DataSet ds = new DataSet();

        ds = loadLawfirm();
        ASPxListBox lstLawfirm = (ASPxListBox)this.ddleLawfirm.FindControl("lstLawfirm");

        lstLawfirm.ValueField = "CODE";
        lstLawfirm.TextField  = "DESCRIPTION";
        lstLawfirm.DataSource = ds;
        lstLawfirm.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All---", "NA");
        lstLawfirm.Items.Insert(0, Item);
        //lstLawfirm.SelectedIndex = 0;
    }
Example #8
0
    private void BindMissingSpecialty()
    {
        DataSet ds = new DataSet();

        ds = loadMissingSpeciality(this.txtCompanyID.Text);
        //ASPxListBox lstMissingSpecialty = (ASPxListBox)this.grdSpeciality.FindControl("lstMissingSpecialty");
        //lstMissingSpecialty.ValueField = "CODE";
        //lstMissingSpecialty.TextField = "DESCRIPTION";
        grdSpeciality.DataSource = ds;
        grdSpeciality.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select All ---", "NA");
        //lstMissingSpecialty.Items.Insert(0, Item);

        //  lstMissingSpecialty.SelectAll();
    }
Example #9
0
    protected void ddlRefferingProvider_SelectedIndexChanged(object sender, EventArgs e)
    {
        string RefferingProviderID = "";

        RefferingProviderID = ddlRefferingProvider.SelectedItem.Value.ToString();
        Bill_Sys_ScanDco objScanDoc        = new Bill_Sys_ScanDco();
        DataSet          dsRefferingDoctor = objScanDoc.GetRefferingDoctorList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, RefferingProviderID);

        ddlRefferingDoctor.DataSource = dsRefferingDoctor;
        ddlRefferingDoctor.TextField  = "DESCRIPTION";
        ddlRefferingDoctor.ValueField = "CODE";
        ddlRefferingDoctor.DataBind();

        DevExpress.Web.ListEditItem ReffDoctor = new DevExpress.Web.ListEditItem("---Select---", "NA");
        ddlRefferingDoctor.Items.Insert(0, ReffDoctor);
        ddlRefferingDoctor.SelectedIndex = 0;
    }
Example #10
0
    private void loadSpecialty()
    {
        DataSet        ds  = new DataSet();
        Reportfunction obj = new Reportfunction();

        // ASPxListBox box = (ASPxListBox)this.cmbSpecialty.FindControl("lst_specialty");

        ds = obj.loadSpecialty(txtCompanyID.Text);

        cmbSpecialty.TextField  = "SZ_PROCEDURE_GROUP";
        cmbSpecialty.ValueField = "SZ_PROCEDURE_GROUP_ID";
        cmbSpecialty.DataSource = ds;
        cmbSpecialty.DataBind();
        DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
        cmbSpecialty.Items.Insert(0, Item);
        cmbSpecialty.SelectedIndex = 0;
    }
Example #11
0
 public void BindCaseType()
 {
     try
     {
         ReferenceProvider objDocBO     = new ReferenceProvider();
         DataSet           casetypelist = objDocBO.getCaseType(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
         ddlCaseType.DataSource = casetypelist;
         ddlCaseType.TextField  = "DESC";
         ddlCaseType.ValueField = "CODE";
         ddlCaseType.DataBind();
         DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
         ddlCaseType.Items.Insert(0, Item);
         ddlCaseType.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
     }
 }
Example #12
0
    //not used
    public void BindLocation()
    {
        try
        {
            TreatingDoctor.TreatingDoctor objDocBO = new TreatingDoctor.TreatingDoctor();
            DataSet locationlist = objDocBO.getLocation(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

            ddllocation.DataSource = locationlist;
            ddllocation.TextField  = "DESC";
            ddllocation.ValueField = "CODE";
            ddllocation.DataBind();
            DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddllocation.Items.Insert(0, Item);
            ddllocation.SelectedIndex = 0;
        }
        catch (Exception ex)
        {
        }
    }
Example #13
0
    public void BindDoctor()
    {
        try
        {
            Bill_Sys_DoctorBO objDocBO   = new Bill_Sys_DoctorBO();
            DataSet           doctorList = objDocBO.GetDoctorList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

            ddlDoctor.DataSource = doctorList;
            ddlDoctor.TextField  = "DESCRIPTION";
            ddlDoctor.ValueField = "CODE";
            ddlDoctor.DataBind();
            DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddlDoctor.Items.Insert(0, Item);
            ddlDoctor.SelectedIndex = 0;
        }
        catch (Exception ex)
        {
        }
    }
Example #14
0
    public void BindSpeciality()
    {
        try
        {
            TreatingDoctor.TreatingDoctor objDocBO = new TreatingDoctor.TreatingDoctor();
            DataSet casetypelist = objDocBO.getSpecialty(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

            //txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            ddlspeciality.DataSource = casetypelist;
            ddlspeciality.TextField  = "DESC";
            ddlspeciality.ValueField = "CODE";
            ddlspeciality.DataBind();
            DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA");
            ddlspeciality.Items.Insert(0, Item);
            ddlspeciality.SelectedIndex = 0;
        }
        catch (Exception ex)
        {
        }
    }