Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO != "1")
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ss", "spanhide();", true);
     }
     if (Request.QueryString["CaseID"] != null)
     {
         string  caseid    = Request.QueryString["CaseID"].ToString();
         string  companyid = Request.QueryString["cmpId"].ToString();
         DataSet ds        = GetPatienView(caseid, companyid);
         PatientDtlView.DataSource = ds.Tables[0];
         PatientDtlView.DataBind();
         int count = PatientDtlView.Items.Count;
         //   DivStatus2.Visible = false;
         PatientDtlView.Visible = true;
     }
 }
Esempio n. 2
0
    protected void grdPatientList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("Patient"))
        {
            string   command         = e.CommandArgument.ToString();
            string[] strsplitcommand = command.Split(',');
            string   caseid          = strsplitcommand[0].ToString();
            string   companyid       = strsplitcommand[1].ToString();
            if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO != "1")
            {
                ScriptManager.RegisterClientScriptBlock(this, GetType(), "ss", "spanhide();", true);
            }

            // Page.RegisterStartupScript("tw", "<script type='text/javascript'>spanhide();</script>");
            DataSet ds = GetPatienView(caseid, companyid);
            PatientDtlView.DataSource = ds.Tables[0];
            PatientDtlView.DataBind();
            ModalPopupPatientView.Show();
        }
    }