+
+
+
<%--
diff --git a/Labtracker/addsequencing.aspx.cs b/Labtracker/addsequencing.aspx.cs
index 6e47a47..2b4cc38 100644
--- a/Labtracker/addsequencing.aspx.cs
+++ b/Labtracker/addsequencing.aspx.cs
@@ -51,7 +51,10 @@ protected void btnSaveup_Click(object sender, EventArgs e)
string qubit = txtQUcon.Text;
string nd = txtNDcon.Text;
string purity = txtPurity.Text;
- addSuccessres = updates.AddUpdater(datesh, txtSampleIdUpdate.Text, purity, nd, qubit, remarks, labinitial.ToUpper());
+ string tubelabel = txtTubelabel.Text;
+ string sampletype = txtSampleType.Text;
+ string assayreagent = txtassay.Text;
+ addSuccessres = updates.AddDnaExtract(txtDateProcess.Text, txtSampleIdUpdate.Text, purity, nd, qubit, remarks, labinitial.ToUpper(),tubelabel, selectedvalue, sampletype,assayreagent);
break;
case "Library Prep":
@@ -64,7 +67,8 @@ protected void btnSaveup_Click(object sender, EventArgs e)
break;
default:
- addSuccessres = updates.AddUpdate(txtSampleIdUpdate.Text, txtSampleIdUpdate.Text, selectedvalue, selectedres, datesh, labinitial.ToUpper());
+
+ //addSuccessres = updates.AddUpdate(txtSampleIdUpdate.Text, txtSampleIdUpdate.Text, selectedvalue, selectedres, datesh, labinitial.ToUpper());
break;
}
@@ -77,7 +81,7 @@ protected void btnSaveup_Click(object sender, EventArgs e)
// Reload the page.
//Session["totalcount"] = Convert.ToInt32(txtSId.Text)+1;
//string pageUrl = Request.Url.AbsoluteUri.Substring(0, Request.Url.AbsoluteUri.Count() - Request.Url.Query.Count());
- Response.Redirect("progress.aspx");
+ Response.Redirect("sequencing.aspx");
}
else
diff --git a/Labtracker/addsequencing.aspx.designer.cs b/Labtracker/addsequencing.aspx.designer.cs
index e2b5b4a..07e434a 100644
--- a/Labtracker/addsequencing.aspx.designer.cs
+++ b/Labtracker/addsequencing.aspx.designer.cs
@@ -111,15 +111,6 @@ public partial class addsequencing {
///
protected global::System.Web.UI.WebControls.TextBox txtDateProcess;
- ///
- /// rfvDP control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvDP;
-
///
/// txtLabTechPr control.
///
@@ -129,15 +120,6 @@ public partial class addsequencing {
///
protected global::System.Web.UI.WebControls.TextBox txtLabTechPr;
- ///
- /// rfvLabTechPr control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvLabTechPr;
-
///
/// txtRemarks control.
///
@@ -382,22 +364,22 @@ public partial class addsequencing {
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvspold;
///
- /// txtNDcon control.
+ /// txtTubelabel control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.TextBox txtNDcon;
+ protected global::System.Web.UI.WebControls.TextBox txtTubelabel;
///
- /// rfvndcon control.
+ /// txtNDcon control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvndcon;
+ protected global::System.Web.UI.WebControls.TextBox txtNDcon;
///
/// txtPurity control.
@@ -409,31 +391,31 @@ public partial class addsequencing {
protected global::System.Web.UI.WebControls.TextBox txtPurity;
///
- /// rfvpurity control.
+ /// txtQUcon control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvpurity;
+ protected global::System.Web.UI.WebControls.TextBox txtQUcon;
///
- /// txtQUcon control.
+ /// txtSampleType control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.TextBox txtQUcon;
+ protected global::System.Web.UI.WebControls.TextBox txtSampleType;
///
- /// rfvcucon control.
+ /// txtassay control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvcucon;
+ protected global::System.Web.UI.WebControls.TextBox txtassay;
///
/// btnSaveup control.
diff --git a/Labtracker/sequencing.aspx b/Labtracker/sequencing.aspx
index 41d089f..d96619b 100644
--- a/Labtracker/sequencing.aspx
+++ b/Labtracker/sequencing.aspx
@@ -341,12 +341,14 @@
-
DNA Extraction:
+
DNA Extraction: extracts, unique IDs
<%----%>
+
+
@@ -370,7 +372,7 @@
-
+
diff --git a/Labtracker/sequencing.aspx.cs b/Labtracker/sequencing.aspx.cs
index 8bf9ae2..dbe5484 100644
--- a/Labtracker/sequencing.aspx.cs
+++ b/Labtracker/sequencing.aspx.cs
@@ -1,4 +1,5 @@
-using Microsoft.AspNet.Identity;
+using Labtracker.Models;
+using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Configuration;
@@ -21,12 +22,18 @@ protected void Page_Load(object sender, EventArgs e)
}
if (!IsPostBack)
{
+ using (SampleContext _db= new SampleContext())
+ {
+ lbldnasall.Text = _db.Dnaextracts.Count().ToString();
+ }
+
string connStr = ConfigurationManager.ConnectionStrings["Labtracker"].ConnectionString;
using (SqlConnection conn = new SqlConnection(connStr))
{
conn.Open();
string sql = "SELECT COUNT(DISTINCT PatientId) FROM Dnaextracts";
string sql2 = "SELECT COUNT(DISTINCT PatientId) FROM LibraryPreps";
+
using (SqlCommand cmd = new SqlCommand(sql, conn))
diff --git a/Labtracker/sequencing.aspx.designer.cs b/Labtracker/sequencing.aspx.designer.cs
index 1dd493b..06b37ce 100644
--- a/Labtracker/sequencing.aspx.designer.cs
+++ b/Labtracker/sequencing.aspx.designer.cs
@@ -30,6 +30,15 @@ public partial class sequencing {
///
protected global::System.Web.UI.WebControls.Literal UsernameText;
+ ///
+ /// lbldnasall control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lbldnasall;
+
///
/// lbldnaprocessed control.
///
diff --git a/Labtracker/updateprogress.aspx.cs b/Labtracker/updateprogress.aspx.cs
index c6db193..654c2f5 100644
--- a/Labtracker/updateprogress.aspx.cs
+++ b/Labtracker/updateprogress.aspx.cs
@@ -112,14 +112,6 @@ protected void btnSaveup_Click(object sender, EventArgs e)
addSuccessres = updates.AddUpdate(dateshit, daterip, txtSampleIdUpdate.Text, (i+1).ToString(), primaryMedia, weekly[i].Equals("details")? null:weekly[i], labinitial.ToUpper(), remarks);
}
break;
-
- case "DNA Extraction":
- string qubit = txtQUcon.Text;
- string nd = txtNDcon.Text;
- string purity = txtPurity.Text;
- addSuccessres = updates.AddUpdater(datesh, txtSampleIdUpdate.Text, purity, nd, qubit, remarks, labinitial.ToUpper());
- break;
-
case "Heat Killing":
string initialRecieved = txtInitialRecievedBy.Text;
string dateTransfer = txtDateTransfer.Text;