Ejemplo n.º 1
0
 protected void btnClear(object sender, EventArgs e)
 {
     DlParametervalues.DataSource = null;
     DlParametervalues.DataBind();
     txtPatientName.Text = "";
     txtPVCode.Text      = "";
     txtUserName.Text    = "";
     btnSave.Visible     = false;
     btnCleared.Visible  = false;
 }
Ejemplo n.º 2
0
        protected void TestParamterValues()
        {
            DataTable dt = new DataTable();

            objML_Laboratory.ID        = txtUserName.Text != "" ? txtUserName.Text : null;
            objML_Laboratory.PatientID = txtPVCode.Text != "" ? txtPVCode.Text : null;
            dt = objBL_Laboratory.BL_TestParameterValues(objML_Laboratory);
            if (dt.Rows.Count > 0)
            {
                lblTestID.Text = dt.Rows[0]["TestID"].ToString();
                DlParametervalues.DataSource = dt;
                DlParametervalues.DataBind();
                btnSave.Visible    = true;
                btnCleared.Visible = true;
                btnSave.Text       = "Save";

                if (txtPVCode.Text != "")
                {
                    txtUserName.Text = dt.Rows[0]["TestName"].ToString();
                    btnSave.Text     = "Update";
                }
            }
        }