public void BindPatientInfo()
    {
        Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
        DataSet            DsPatientInfo       = _bill_Sys_PatientBO.GetPatientInfo(txtPatientId.Text, txtCompanyId.Text);

        DtlView.DataSource = DsPatientInfo;
        DtlView.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        strConn = ConfigurationManager.AppSettings["Connection_String"].ToString();
        {
            mbs.lawfirm.Bill_Sys_Patient_Details obj          = new Bill_Sys_Patient_Details();
            mbs.provider.ProviderServices        obj_provider = new ProviderServices();
            try
            {
                if (!IsPostBack)
                {
                    Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();

                    if (Session["Office_ID"] != null)
                    {
                        hdnOfficeId.Value = Session["Office_ID"].ToString();
                    }

                    if (Request.QueryString.Count > 0)
                    {
                        szCaseId       = Request.QueryString["caseid"].ToString();
                        txtcaseid.Text = szCaseId;
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        szBillingCmp      = Request.QueryString["cmpid"].ToString();
                        txtCompanyid.Text = szBillingCmp;
                        // string patientName = Request.QueryString["pname"].ToString();
                        caseno = Request.QueryString["caseno"].ToString();
                        _bill_Sys_CaseObject.SZ_CASE_ID    = szCaseId;
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID = szBillingCmp;
                        //_bill_Sys_CaseObject.SZ_PATIENT_NAME = patientName;
                        _bill_Sys_CaseObject.SZ_CASE_NO = caseno;
                        Session["CASE_OBJECT"]          = _bill_Sys_CaseObject;
                        mbs.lawfirm.Bill_Sys_CollectDocAndZip _cNz = new mbs.lawfirm.Bill_Sys_CollectDocAndZip();
                        DataSet Batchds = new DataSet();
                        Batchds = _cNz.GetDowloadAs(szCaseId);
                        if (Batchds.Tables[0].Rows.Count > 0 && Batchds.Tables[0].Rows[0][0].ToString() == "SNGL")
                        {
                            //i=  DtlView.FindControl("abc");
                            //Table tb = (Table)DtlView.Items.FindControl("tblF");
                            //DtlView1.DataSource = Batchds;
                            //DtlView1.DataBind();
                            //DtlView1.Visible = true;
                        }
                        else
                        {
                        }
                    }
                    _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
                    DataSet ds = obj_provider.GetPatientInfo_Provider(szCaseId, szBillingCmp);
                    //DataSet ds = _bill_Sys_PatientBO.GetPatientInfo_Provider(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, sz_CmpId);


                    //DataSet ds = obj.GetPatientInformation(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, sz_CmpId);

                    if (ds.Tables[0].Columns.Count == 1)
                    {
                        Session["Check"] = "Not Correct";
                        Response.Redirect("Bill_Sys_SearchCase.aspx");
                    }
                    else
                    {
                        DataTable dt = ds.Tables[0];
                        DtlView.DataSource = ds;
                        DtlView.DataBind();
                    }


                    //To Open Document Manager

                    hdnCaseId.Value    = szCaseId;
                    hdnCaseNo.Value    = caseno;
                    hdnCompanyId.Value = szBillingCmp.ToString();

                    //End Of Code
                }
            }
            catch (Exception exc)
            {
                usrMessage.PutMessage(exc.ToString());
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                usrMessage.Show();
            }
        }
    }
示例#3
0
    protected void grid_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        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
        {
            if (e.CommandName.ToString() == "CaseNO")
            {
                mbs.bl.connections.MyConnectionDAO obj = new mbs.bl.connections.MyConnectionDAO();
                obj.CaseID = e.CommandArgument.ToString();
                obj.CompanyConnectionFrom = szCompanyID;
                obj.CompanyConnectionTo   = extddlBillCompany.Text;

                mbs.bl.connections.MyConnections objService = new mbs.bl.connections.MyConnections();
                DtlView.DataSource = objService.GetConnectingPatientInformation(obj);
                DtlView.DataBind();

                if (objService.isShowVisits == true)
                {
                    //Visit grid set to bind
                    txtcaseId.Text         = obj.CaseID;
                    txtLoginCompanyId.Text = obj.CompanyConnectionFrom;
                    txtCompanyId.Text      = obj.CompanyConnectionTo;

                    tdvisit.Visible = true;
                    VisitGrid.XGridBind();
                    VisitGrid.Visible = true;
                }
                dvabc.Visible     = true;
                txtCompanyId.Text = extddlBillCompany.Text;
            }
            int index = 0;
            if (e.CommandName.ToString() == "ClientSideButton")
            {
                string caseid = "", caseno = "";

                index  = Convert.ToInt32(e.CommandArgument.ToString());
                caseid = grid.DataKeys[index][0].ToString();
                caseno = grid.DataKeys[index][3].ToString();

                Session["DocreadOnly"] = true;
                ScriptManager.RegisterStartupScript(this, GetType(), "MMss1231", "<script type='text/javascript'>window.open('../Document Manager/case/vb_CaseInformation.aspx?caseid=" + caseid + "&caseno=" + caseno + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30,scrollbars=1');</script>", false);
            }

            if (e.CommandName.ToString() == "COPYDOC")
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "click", "showCopyDocPopup();", true);
                //ScriptManager.RegisterStartupScript(this, GetType(), "MMss1231", "showCopyDocPopup();", false);
            }
        }
        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());
        }
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string sz_CmpId = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;

        strConn = ConfigurationManager.AppSettings["Connection_String"].ToString();
        // if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID != e.Item.Cells[28].Text)
        {
            //  Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
            mbs.lawfirm.Bill_Sys_Patient_Details obj = new Bill_Sys_Patient_Details();

            try
            {
                if (!IsPostBack)
                {
                    string szBillingCmp = "";
                    if (Request.QueryString.Count > 0)
                    {
                        Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
                        szCaseId = Request.QueryString["csid"].ToString();
                        byte[] ar = System.Convert.FromBase64String(szCaseId);
                        szCaseId = System.Text.ASCIIEncoding.ASCII.GetString(ar);
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        szBillingCmp = Request.QueryString["cmp"].ToString();
                        byte[] ar1 = System.Convert.FromBase64String(szBillingCmp);
                        szBillingCmp = System.Text.ASCIIEncoding.ASCII.GetString(ar1);

                        string patientName = Request.QueryString["pname"].ToString();
                        byte[] ar2         = System.Convert.FromBase64String(patientName);
                        patientName = System.Text.ASCIIEncoding.ASCII.GetString(ar2);

                        string caseno = Request.QueryString["caseno"].ToString();
                        byte[] ar4    = System.Convert.FromBase64String(caseno);
                        caseno = System.Text.ASCIIEncoding.ASCII.GetString(ar4);

                        _bill_Sys_CaseObject.SZ_CASE_ID      = szCaseId;
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID   = szBillingCmp;
                        _bill_Sys_CaseObject.SZ_PATIENT_NAME = patientName;
                        _bill_Sys_CaseObject.SZ_CASE_NO      = caseno;
                        Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                        mbs.lawfirm.Bill_Sys_CollectDocAndZip _cNz = new mbs.lawfirm.Bill_Sys_CollectDocAndZip();
                        DataSet Batchds = new DataSet();
                        Batchds = _cNz.GetDowloadAs(szCaseId);
                        if (Batchds.Tables[0].Rows.Count > 0 && Batchds.Tables[0].Rows[0][0].ToString() == "SNGL")
                        {
                            //i=  DtlView.FindControl("abc");
                            //Table tb = (Table)DtlView.Items.FindControl("tblF");
                            //DtlView1.DataSource = Batchds;
                            //DtlView1.DataBind();
                            //DtlView1.Visible = true;
                        }
                        else
                        {
                        }
                    }



                    DataSet ds = obj.GetPatientInformation(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, sz_CmpId);

                    if (ds.Tables[0].Columns.Count == 1)
                    {
                        Session["Check"] = "Not Correct";
                        Response.Redirect("Bill_Sys_SearchCase.aspx");
                    }
                    else
                    {
                        DataTable dt = ds.Tables[0];
                        DtlView.DataSource = ds;
                        DtlView.DataBind();
                    }


                    //To Open Document Manager

                    hdnCaseId.Value    = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                    hdnCaseNo.Value    = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_NO;
                    hdnCompanyId.Value = szBillingCmp.ToString();

                    //End Of Code
                }
            }
            catch (Exception exc)
            {
                usrMessage.PutMessage(exc.ToString());
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                usrMessage.Show();
            }
        }
    }