Example #1
0
 public void load()
 {
     if (Session["supplierObject"] != null)
     {
         supplier = (Supplier)(((SessionObject)Session["supplierObject"]).Content);
         List <SupplierSurvey> recordset = surveyCRUD.readByParentId(supplier.Id);
         Repeater1.DataSource = recordset;
         Repeater1.DataBind();
     }
 }
Example #2
0
    private bool retrieveEntity()
    {
        string sSupplier_ID = Request["supplier"]; //From Address Box

        if (sSupplier_ID != "" && sSupplier_ID != null)
        {
            supplierHeaderKey = long.Parse(sSupplier_ID);
        }
        else
        {
            supplierHeaderKey = -1;
        }
        surveyList = survey_CRUD.readByParentId(supplierHeaderKey);
        supplier   = supplier_CRUD.readById(supplierHeaderKey);
        if (supplier != null)
        {
            SessionObject soSupplier = new SessionObject();
            soSupplier.Content        = supplier;
            soSupplier.Status         = "forUpdate";
            Session["SupplierObject"] = soSupplier;
            return(true);
        }
        return(false);
    }