public DataTable getInterLabCommDetails(string AccessionNumber, string InitiatingUser, string MessageToLab, string CurrentStatus, string DateFrom, string DateTo, string MessageFromLab, string AccountNumber, string InnitiatingMessageCode) { return(DL_InterLabCommunication.getInterLabCommDetails(AccessionNumber, InitiatingUser, MessageToLab, CurrentStatus, DateFrom, DateTo, MessageFromLab, AccountNumber, InnitiatingMessageCode)); }
//public InterLabCommunication(String ID) //{ // this._ID = ID; // DataTable interLabDetails = DL_InterLabCommunication.getInterLabCommDetails(ID); // if (interLabDetails == null) // { // this.IsValid = false; // } // else if (interLabDetails.Rows.Count < 1) // { // this.IsValid = false; // } // else if (interLabDetails.Rows.Count > 1) // { // this.IsValid = false; // } // else // { // this.IsValid = true; // DataRow dr = interLabDetails.Rows[0]; // this.Accession = dr["Accession"].ToString(); // this.Client = dr["Client"].ToString(); // this.InitiatingUser = dr["InitiatingUser"].ToString(); // this.InitiatingLab = dr["InitiatingLab"].ToString(); // this.DateTimeEntered = AtlasIndia.AntechCSM.functions.AddTimeToDate(dr["DateEntered"].ToString(), dr["TimeEntered"].ToString()); // this.ResolutionStatus = dr["Status"].ToString(); // DataTable dtHistory = DL_InterLabCommunication.getInterLabHistory(ID); // System.Text.StringBuilder sb = new System.Text.StringBuilder(); // for (Int32 i = 0; i < dtHistory.Rows.Count; i++) // { // sb.AppendLine("Message" + (i+1).ToString()); // sb.Append('-', 13); // sb.AppendLine(); // sb.Append("Sent By: "); // sb.Append(dtHistory.Rows[i]["SenderLab"].ToString()); // sb.Append("/"); // sb.Append(dtHistory.Rows[i]["SenderUser"].ToString()); // sb.Append("\t\t"); // sb.Append("Sent On: "); // sb.AppendLine(AtlasIndia.AntechCSM.functions.AddTimeToDate(dtHistory.Rows[i]["SendDate"].ToString(), dtHistory.Rows[i]["SentTime"].ToString()).ToString(AtlasIndia.AntechCSM.functions.getDateTimeFormat())); // sb.Append("Sent To: "); // sb.Append(dtHistory.Rows[i]["RecipientLab"].ToString()); // sb.Append("/"); // sb.AppendLine(dtHistory.Rows[i]["RecipientUser"].ToString()); // sb.AppendLine(dtHistory.Rows[i]["Message"].ToString().Replace("\n\r",Environment.NewLine)); // sb.Append('-', 90); // sb.AppendLine(); // } // this.PreviousCommunication = sb.ToString(); // this.LastLab = dtHistory.Rows[dtHistory.Rows.Count - 1]["SenderLab"].ToString(); // this.LastDepartment = dtHistory.Rows[dtHistory.Rows.Count - 1]["SenderDepartment"].ToString(); // } //} #endregion Unused Code #endregion InterLab Communication Constructors #region InterLab Communication Supporting Methods public static String insertNewInterLabCommunication(String strAccession, String strInitUser, String strInitLab, String strMessage, String strToLab, String strTestString, String strMessageCode) { return(DL_InterLabCommunication.insertNewInterLabCommunication(strAccession, strInitUser, strInitLab, strMessage, strToLab, strTestString, strMessageCode)); }