Example #1
0
    protected void logSubmission()
    {
        var logData = new MaterialRequestDataContext();

        var request = new Request()
        {
            SubmitDate          = DateTime.Now,
            Delivery            = sessionVar("Delivery", 50),
            Name                = sessionVar("Name", 100),
            Phone               = sessionVar("Phone", 10),
            Email               = sessionVar("Email", 100),
            Ename               = sessionVar("Ename", 15),
            CSUID               = sessionVar("CSUID", 9),
            EmployeeType        = sessionVar("EmployeeType", 50),
            StudentType         = sessionVar("StudentType", 50),
            URL                 = sessionVar("ReferringURL", 1023),
            Title               = sessionVar("Title", 511),
            Author              = sessionVar("Author", 255),
            Publisher           = sessionVar("Publisher", 255),
            CallNumber          = sessionVar("CallNumber", 255),
            ISBN                = sessionVar("ISBN", 511),
            ProspectorURL       = sessionVar("ProspectorURL", 1023),
            ProspectorCopies    = Int32.Parse(sessionVar("ProspectorCopies", 5)),
            ProspectorAvailable = Int32.Parse(sessionVar("ProspectorAvailable", 5)),
            BibNumber           = sessionVar("BibNumber", 7),
            Comments            = sessionVar("Comments", 1023)
        };

        logData.Requests.InsertOnSubmit(request);
        logData.SubmitChanges();
    }
Example #2
0
    protected void logSubmission()
    {
        var logData = new MaterialRequestDataContext();

        var request = new Request()
        {
            SubmitDate = DateTime.Now,
            Delivery = sessionVar("Delivery", 50),
            Name = sessionVar("Name", 100),
            Phone = sessionVar("Phone", 10),
            Email = sessionVar("Email", 100),
            Ename = sessionVar("Ename", 15),
            CSUID = sessionVar("CSUID", 9),
            EmployeeType = sessionVar("EmployeeType", 50),
            StudentType = sessionVar("StudentType", 50),
            URL = sessionVar("ReferringURL", 1023),
            Title = sessionVar("Title", 511),
            Author = sessionVar("Author", 255),
            Publisher = sessionVar("Publisher", 255),
            CallNumber = sessionVar("CallNumber", 255),
            ISBN = sessionVar("ISBN", 511),
            ProspectorURL = sessionVar("ProspectorURL", 1023),
            ProspectorCopies = Int32.Parse(sessionVar("ProspectorCopies", 5)),
            ProspectorAvailable = Int32.Parse(sessionVar("ProspectorAvailable", 5)),
            BibNumber = sessionVar("BibNumber", 7),
            Comments = sessionVar("Comments", 1023)
        };
        logData.Requests.InsertOnSubmit(request);
        logData.SubmitChanges();
    }