Exemplo n.º 1
0
    public void BindGrid()
    {
        DataSet dsBills = new DataSet();

        TreatingDoctor.TreatingDoctor objDocBO   = new TreatingDoctor.TreatingDoctor();
        TreatingDoctorBillDAO         objBillDao = new TreatingDoctorBillDAO();

        objBillDao.BillNumber = Billno.Text.ToString();
        objBillDao.CaseNumber = txtCaseno.Text.ToString();

        if (ddlcasetype.SelectedItem.Value.ToString() != "NA")
        {
            objBillDao.CaseTypeID = ddlcasetype.SelectedItem.Value.ToString();
        }
        else
        {
            objBillDao.CaseTypeID = "";
        }

        if (ddlBillstatus.SelectedItem.Value.ToString() != "NA")
        {
            objBillDao.BillStatusID = ddlBillstatus.SelectedItem.Value.ToString();
        }
        else
        {
            objBillDao.BillStatusID = "";
        }
        if (ddlspeciality.SelectedItem.Value.ToString() != "NA")
        {
            objBillDao.SpecialtyID = ddlspeciality.SelectedItem.Value.ToString();
        }
        else
        {
            objBillDao.SpecialtyID = "";
        }

        string szFrmDate = "";
        string Todate    = "";

        if (dtfromdate.Value != null && dttodate.Value != null)
        {
            DateTime dtFrmdate = Convert.ToDateTime(dtfromdate.Value);
            DateTime dtTodate  = Convert.ToDateTime(dttodate.Value);
            szFrmDate = dtFrmdate.ToString("MM/dd/yyyy");
            Todate    = dtTodate.ToString("MM/dd/yyyy");
        }
        objBillDao.FromDate = szFrmDate;
        objBillDao.ToDate   = Todate;

        objBillDao.CompanyID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        objBillDao.ReferringOfficeID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_REFF_PROVIDER_ID;
        objBillDao.UserID            = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;

        dsBills             = objDocBO.getBillList(objBillDao);
        grdBills.DataSource = dsBills;
        grdBills.DataBind();
    }
Exemplo n.º 2
0
    public void BindGrid()
    {
        DataSet dsVisits = new DataSet();

        TreatingDoctor.TreatingDoctor objDocBO    = new TreatingDoctor.TreatingDoctor();
        TreatingDoctorVisitDAO        objVisitDao = new TreatingDoctorVisitDAO();

        if (ddlDoctor.SelectedItem.Value.ToString() != "NA")
        {
            objVisitDao.DoctorID = ddlDoctor.SelectedItem.Value.ToString();
        }
        else
        {
            objVisitDao.DoctorID = "";
        }

        if (ddlCaseType.SelectedItem.Value.ToString() != "NA")
        {
            objVisitDao.CaseTypeID = ddlCaseType.SelectedItem.Value.ToString();
        }
        else
        {
            objVisitDao.CaseTypeID = "";
        }

        if (ddlSpecility.SelectedItem.Value.ToString() != "NA")
        {
            objVisitDao.SpecialtyID = ddlSpecility.SelectedItem.Value.ToString();
        }
        else
        {
            objVisitDao.SpecialtyID = "";
        }
        string szFrmDate = "";
        string Todate    = "";

        if (dtfromdate.Value != null && dttodate.Value != null)
        {
            DateTime dtFrmdate = Convert.ToDateTime(dtfromdate.Value);
            DateTime dtTodate  = Convert.ToDateTime(dttodate.Value);
            szFrmDate = dtFrmdate.ToString("MM/dd/yyyy");
            Todate    = dtTodate.ToString("MM/dd/yyyy");
        }
        objVisitDao.VisitDateFrom = szFrmDate;
        objVisitDao.VisitDateTo   = Todate;

        objVisitDao.CompanyID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        objVisitDao.ReferringOfficeID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_REFF_PROVIDER_ID;
        objVisitDao.UserID            = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;

        dsVisits             = objDocBO.getVisitList(objVisitDao);
        grdVisits.DataSource = dsVisits;
        grdVisits.DataBind();
    }
Exemplo n.º 3
0
 public void BindCaseType()
 {
     try
     {
         TreatingDoctor.TreatingDoctor objDocBO = new TreatingDoctor.TreatingDoctor();
         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)
     {
     }
 }
Exemplo n.º 4
0
    public void BindGrid()
    {
        DataSet dsPatient = new DataSet();

        TreatingDoctor.TreatingDoctor objDocBO      = new TreatingDoctor.TreatingDoctor();
        TreatingDoctorPatientDAO      objPatientDao = new TreatingDoctorPatientDAO();

        objPatientDao.CaseNo = txtCaseNO.Text.ToString();
        if (ddlcasetype.SelectedItem.Value.ToString() != "NA")
        {
            objPatientDao.CaseType = ddlcasetype.SelectedItem.Value.ToString();
        }
        else
        {
            objPatientDao.CaseType = "";
        }
        if (ddlcasestatus.SelectedItem.Value.ToString() != "NA")
        {
            objPatientDao.CaseStatus = ddlcasestatus.SelectedItem.Value.ToString();
        }
        else
        {
            objPatientDao.CaseStatus = "";
        }
        objPatientDao.PatientName = txtpatient.Text.ToString();
        objPatientDao.Insurance   = txtinsurance.Text.ToString();
        objPatientDao.claimNumber = txtClaimnumber.Text.ToString();
        objPatientDao.SSNNumber   = txtSSN.Text.ToString();

        objPatientDao.CompanyID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        objPatientDao.ReferringOfficeID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_REFF_PROVIDER_ID;
        objPatientDao.userID            = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;

        dsPatient            = objDocBO.getPatientList(objPatientDao);
        grdVisits.DataSource = dsPatient;
        grdVisits.DataBind();
    }