-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLabInvestigations_Followup.aspx.cs
160 lines (156 loc) · 8.81 KB
/
LabInvestigations_Followup.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Nephro_Care
{
public partial class LabInvestigations_Followup : System.Web.UI.Page
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["NephroCare"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
if(Session["username"]==null)
{
Response.Redirect("loginpage.aspx");
}
else
{
Label1.Text = Session["username"].ToString();
}
}
protected void gettab(object sender, EventArgs e)
{
submitshow.Visible = true;
SqlCommand cmd = new SqlCommand("select name,pic from Root_IDs where Adharnumber=@id", conn);
conn.Open();
cmd.Parameters.AddWithValue("@id", txtid.Text);
SqlDataReader sdr = cmd.ExecuteReader();
while(sdr.Read())
{
lblname.Text = sdr["name"].ToString();
byte[] bytes = (byte[])sdr["pic"];
string strBase64 = Convert.ToBase64String(bytes);
img.ImageUrl = "data:Image/jpg;base64," + strBase64;
}
table1.Visible = true;
}
protected void insertdata(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("fp_insert", conn);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@adharnumber", txtid.Text.Trim());
cmd.Parameters.AddWithValue("@Fdate", Convert.ToDateTime(txtdate.Text));
cmd.Parameters.AddWithValue("@hb", txthb.Text);
cmd.Parameters.AddWithValue("@Pcv", txtpcv.Text);
cmd.Parameters.AddWithValue("@TotalWBC", txtwbc.Text);
cmd.Parameters.AddWithValue("@DLCp", txtdlcp.Text);
cmd.Parameters.AddWithValue("@dlcl", txtdlcL.Text);
cmd.Parameters.AddWithValue("@dlcm", txtdlcm.Text);
cmd.Parameters.AddWithValue("@dlce", txtdlce.Text);
cmd.Parameters.AddWithValue("@ReticCount", txtrectic.Text);
cmd.Parameters.AddWithValue("@Plateletcount", txtplatelet.Text);
cmd.Parameters.AddWithValue("@esr", TxtESR.Text);
cmd.Parameters.AddWithValue("@PeripheralSmear", txtperipsmear.Text);
cmd.Parameters.AddWithValue("@ph", txtph.Text);
cmd.Parameters.AddWithValue("@Spgr", txtspgr.Text);
cmd.Parameters.AddWithValue("@albumin", txtalbumin.Text);
cmd.Parameters.AddWithValue("@sugar", txtSugar.Text);
cmd.Parameters.AddWithValue("@ketones", txtkeytones.Text);
cmd.Parameters.AddWithValue("@RBC", txtrbc.Text);
cmd.Parameters.AddWithValue("@Wbc", txtwbc.Text);
cmd.Parameters.AddWithValue("@epcells", txtEP.Text);
cmd.Parameters.AddWithValue("@granularhyaline", txtgranularhyline.Text);
cmd.Parameters.AddWithValue("@others", txtothers.Text);
cmd.Parameters.AddWithValue("huo24", txt24hruop.Text);
cmd.Parameters.AddWithValue("@totalprotiens", Txttotalprotiens.Text);
cmd.Parameters.AddWithValue("@ccr", txtccr.Text);
cmd.Parameters.AddWithValue("@sodium", txtsodium.Text);
cmd.Parameters.AddWithValue("@pottasium", txtpottasium.Text);
cmd.Parameters.AddWithValue("@calcium", txtcalcium.Text);
cmd.Parameters.AddWithValue("@phospate", txtphospate.Text);
cmd.Parameters.AddWithValue("@uricacid", txturicacid.Text);
cmd.Parameters.AddWithValue("@vma", txtvma.Text);
cmd.Parameters.AddWithValue("@microalburminuria", txtmicroalbuminuria.Text);
cmd.Parameters.AddWithValue("@spotUprotien", txtspotuprotien.Text);
cmd.Parameters.AddWithValue("@ucreatinine", txtucreatinine.Text);
cmd.Parameters.AddWithValue("@protcreatratio", txtprotcreat.Text);
cmd.Parameters.AddWithValue("@Bt", txtbt.Text);
cmd.Parameters.AddWithValue("@Ct", txtct.Text);
cmd.Parameters.AddWithValue("@pt", txtpt.Text);
cmd.Parameters.AddWithValue("@aptt", txtaptt.Text);
cmd.Parameters.AddWithValue("@bloodgroup", blodgrp.SelectedValue);
cmd.Parameters.AddWithValue("@Rbs", txtRBS.Text);
cmd.Parameters.AddWithValue("@fbs", txtfbs.Text);
cmd.Parameters.AddWithValue("@ppbs", txtppbs.Text);
cmd.Parameters.AddWithValue("@glhbalc", txtglhbalc.Text);
cmd.Parameters.AddWithValue("@urea", txturea.Text);
cmd.Parameters.AddWithValue("@creatinine", txtcreatinine.Text);
cmd.Parameters.AddWithValue("@chloride", txtchloride.Text);
cmd.Parameters.AddWithValue("@bicarbonate", txtbicarbonate.Text);
cmd.Parameters.AddWithValue("@magnesium", txtmagnesium.Text);
cmd.Parameters.AddWithValue("@cholestrol", txtcholestrol.Text);
cmd.Parameters.AddWithValue("@HDl", txthdl.Text);
cmd.Parameters.AddWithValue("@ldl", txtldl.Text);
cmd.Parameters.AddWithValue("@Vldl", txtVLDL.Text);
cmd.Parameters.AddWithValue("@triglycerides", txttriglycerides.Text);
cmd.Parameters.AddWithValue("@tsprotien", txttsprotien.Text);
cmd.Parameters.AddWithValue("@biltotal", txtbiltotal.Text);
cmd.Parameters.AddWithValue("@bildirect", txtbildirect.Text);
cmd.Parameters.AddWithValue("@sgot", txtsgot.Text);
cmd.Parameters.AddWithValue("@sgpt", txtsgpt.Text);
cmd.Parameters.AddWithValue("@alp", ALP.Text);
cmd.Parameters.AddWithValue("@iron", txtiron.Text);
cmd.Parameters.AddWithValue("@ferritin", txtferratin.Text);
cmd.Parameters.AddWithValue("@t3", txtt3.Text);
cmd.Parameters.AddWithValue("@t4", txtt4.Text);
cmd.Parameters.AddWithValue("@tsh", txttsh.Text);
cmd.Parameters.AddWithValue("@psh", txtpsh.Text);
cmd.Parameters.AddWithValue("@vitd3", txtvitd3.Text);
cmd.Parameters.AddWithValue("@psa", txtpsa.Text);
cmd.Parameters.AddWithValue("@crp", txtcrp.Text);
cmd.Parameters.AddWithValue("@ana", txtANA.Text);
cmd.Parameters.AddWithValue("@antidsDna", txtantidsdna.Text);
cmd.Parameters.AddWithValue("@hbsag", txthbsag.Text);
cmd.Parameters.AddWithValue("@antihcv", txtantihcv.Text);
cmd.Parameters.AddWithValue("@hiv", txthiv.Text);
cmd.Parameters.AddWithValue("@antihbsag", txtantihbsag.Text);
cmd.Parameters.AddWithValue("@cmvigg", txtcmvigg.Text);
cmd.Parameters.AddWithValue("@cmvigm", txtcmvigm.Text);
cmd.Parameters.AddWithValue("@ANCAC", txtanca.Text);
cmd.Parameters.AddWithValue("@ancap", txtancap.Text);
cmd.Parameters.AddWithValue("@spe", txtspe.Text);
cmd.Parameters.AddWithValue("@vitb12", txtvitb12.Text);
cmd.Parameters.AddWithValue("@serumfolate", serumfolate.Text);
cmd.Parameters.AddWithValue("@cystatinc", txtcystatin.Text);
cmd.Parameters.AddWithValue("@homocysteine", txthomocystatin.Text);
cmd.Parameters.AddWithValue("@csalevel", txtcsalevel.Text);
cmd.Parameters.AddWithValue("@tacrolimuslevels", txttacrolimuslevel.Text);
cmd.Parameters.AddWithValue("@everolimuslevels", txteverolimus.Text);
cmd.Parameters.AddWithValue("@abgph", txtabhph.Text);
cmd.Parameters.AddWithValue("@pco2", txtpco2.Text);
cmd.Parameters.AddWithValue("@po2", txtpo2.Text);
cmd.Parameters.AddWithValue("@hco3", txthco.Text);
cmd.Parameters.AddWithValue("@ag", txtag.Text);
cmd.Parameters.AddWithValue("@po2fo2", txtpo2fo2.Text);
cmd.Parameters.AddWithValue("@AsplFlAn", txtasciticplunearl.Text);
cmd.Parameters.AddWithValue("@totalcellcount", txttotalcellcount.Text);
cmd.Parameters.AddWithValue("@diffcellcount", txtdiffcellcount.Text);
cmd.Parameters.AddWithValue("@glucose", txtglucose.Text);
cmd.Parameters.AddWithValue("@ada", txtada.Text);
cmd.Parameters.AddWithValue("@mantoux", txtmantoux.Text);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
Response.Redirect("labinvestigations_followip.aspx");
}
protected void logout(object sender , EventArgs e)
{
Session.RemoveAll();
Response.Redirect("LoginPage.aspx");
}
}
}