Esempio n. 1
0
    override protected int ExecInsert()
    {
        try
        {
            DAProduct DAProduct = CreateObjectFromPage();

            if (this.mode == ActParam.New)
            {
                DAProduct.fID = DAProduct.USP_GetKey();
                this.KeyID    = DAProduct.fID; // --> Update new SessionID for continue edit.
            }
            else
            {
                DAProduct.fID = 0;
            }

            DAProduct.USP_Product_Insert();
            return(UpdateCategory() == true ? 1 : -1);
        }
        catch (Exception ex) { return(0); }
    }