Esempio n. 1
0
    public override bool LoadPropertToList(string TypeOpreation)
    {
        SortedList SL = new SortedList();

        SL.Add("@check", TypeOpreation);
        SL.Add("@CatNo", CatNo);
        SL.Add("@CatName", CatName);
        SL.Add("@CatDesc", CatDescription);

        ProcedureName = "ManageCategory";
        if (c.RunProcedure(ProcedureName, SL) == 1)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Esempio n. 2
0
    public override bool LoadPropertToList(string TypeOpreation)
    {
        SortedList SL = new SortedList();

        SL.Add("@check", TypeOpreation);
        SL.Add("@FirstName", Firstname);
        SL.Add("@LastName", Lastname);
        SL.Add("@EmailAddress", Email);
        SL.Add("@Password", Password);

        ProcedureName = "ManageMember";

        if (c.RunProcedure(ProcedureName, SL) == 1)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Esempio n. 3
0
    public override bool LoadPropertToList(string TypeOpreation)
    {
        SortedList SL = new SortedList();

        SL.Add("@check", TypeOpreation);
        SL.Add("@CatNo", CatNo);
        SL.Add("@ProdNo", ProdNo);
        SL.Add("@OrderNo", OrderNo);
        SL.Add("@PQuantity", Quantity);
        SL.Add("@SellPrice", SellPrice);
        SL.Add("@Descount", Descount);

        ProcedureName = "ManageOrderDetails";
        if (c.RunProcedure(ProcedureName, SL) == 1)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
    public override bool LoadPropertToList(string TypeOpreation)
    {
        SortedList SL = new SortedList();

        SL.Add("@check", TypeOpreation);
        SL.Add("@CatNo", CatNo);
        SL.Add("@ProdNo", ProdNo);
        SL.Add("@ProdName", ProdName);
        SL.Add("@ProdPrice", ProdPrice);
        SL.Add("@ProdQuantity", ProdQuantity);
        SL.Add("@ProdAddDate", ProdAddDate);
        SL.Add("@ProdDescription", ProdDescription);

        ProcedureName = "ManageProduct";
        if (c.RunProcedure(ProcedureName, SL) == 1)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }