示例#1
0
    //AM Issue#32875 03/26/2008 Build Number 1.0.0.9
    public DataTable getTestDeletionDetails(string accountNumber, string accessionNumber, string dateDeletedFrom, string dateDeletedTo, string department, string location, string status, string reason, string enteredBy, String checkedBy)
    {
        DataTable       returnDataTable = new DataTable();
        DL_TestDeletion testDeletion    = new DL_TestDeletion();

        returnDataTable = testDeletion.getTestDeletionDetails(accountNumber, accessionNumber, dateDeletedFrom, dateDeletedTo, department, location, status, reason, enteredBy, checkedBy);//AM Issue#46178 1.0.0.18 10/13/2008 - adding new search criteria 'Entered By'
        return(returnDataTable);
    }
示例#2
0
    public TestDeletion(string testDelID)
    {
        this._ID = testDelID;
        DL_TestDeletion currentTestDelID = new DL_TestDeletion();
        DataTable       testDelData      = currentTestDelID.getTestDeletionDetails(testDelID);

        if (testDelData == null)
        {
            this.IsValid = false;
        }
        else if (testDelData.Rows.Count < 1)
        {
            this.IsValid = false;
        }
        else if (testDelData.Rows.Count > 1)
        {
            this.IsValid = false;
        }
        else
        {
            this.IsValid = true;

            DataRow dr = testDelData.Rows[0];
            this._department    = dr["DEPARTMENT"].ToString();
            this._testDeleted   = dr["TESTDELETED"].ToString();
            this._reason        = dr["REASON"].ToString();
            this._comments      = dr["COMMENTS"].ToString();
            this._staus         = dr["STATUS"].ToString();
            this._processedby   = dr["PROCESSEDBY"].ToString();
            this._processedDate = dr["DATEPROCESSED"].ToString();
            this._processedTime = dr["TIMEPROCESSED"].ToString();
            this._printedby     = dr["PRINTEDBY"].ToString();
            this._checkedDate   = dr["DATECHECKED"].ToString();
            this._checkedTime   = dr["TIMECHECKED"].ToString();
            this._enteredBy     = dr["ENTEREDBY"].ToString();
            this._enteredDate   = dr["DATEENTERED"].ToString();
            this._enteredTime   = dr["TIMEENTERED"].ToString();
        }
    }