Esempio n. 1
0
 // ProductCategories
 public void FBProductCategories_Insert(FBFoodInventoryInfo info)
 {
     //check we have some content to store
     if (info.ProductCategory != string.Empty)
     {
         DataProvider.Instance().FBProductCategories_Insert(info.CreatedByUserID, info.ModuleId, info.ProductCategory, info.PortalId, info.IsActive);
     }
 }
Esempio n. 2
0
 public void FBProductCategory_Update(FBFoodInventoryInfo info)
 {
     //check we have some content to update
     if (info.ProductCategory != string.Empty)
     {
         DataProvider.Instance().FBProductCategory_Update(info.ProductCategoryID, info.ModuleId, info.ProductCategory, info.LastModifiedByUserID, info.PortalId, info.IsActive);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void FBSuppliers_Update(FBFoodInventoryInfo info)
 {
     //check we have some content to update
     if (info.SupplierName != string.Empty)
     {
         DataProvider.Instance().FBSuppliers_Update(info.SupplierID, info.ModuleId, info.SupplierName, info.GBFB, info.Address, info.City, info.State, info.Zip, info.SupplierPhone, info.Salesman, info.SalesmanPhone, info.LastModifiedByUserID, info.PortalId, info.IsActive);
     }
 }
Esempio n. 4
0
 public void FBLineItems_Update(FBFoodInventoryInfo info)
 {
     //check we have some content to update
     if (info.ProductID != 0)
     {
         DataProvider.Instance().FBLineItems_Update(info.LineItemID, info.InvoiceID, info.ProductID, info.Cases, info.CountPerCase, info.PricePerCase, info.WeightPerCase, info.ReportType);
     }
 }
Esempio n. 5
0
 public void FBInvoice_Update(FBFoodInventoryInfo info)
 {
     //check we have some content to update
     if (info.InvoiceNumber != string.Empty)
     {
         DataProvider.Instance().FBInvoice_Update(info.InvoiceID, info.InvoiceNumber, info.InvoiceDate, info.SupplierID, info.ModuleId, info.LastModifiedByUserID, info.PortalId, info.Organization);
     }
 }
Esempio n. 6
0
        // Invoices
        //public void FBInvoice_Insert(FBFoodInventoryInfo info)
        //{
        //    //check we have some content to store
        //    if (info.InvoiceNumber != string.Empty)
        //    {
        //        DataProvider.Instance().FBInvoice_Insert(info.InvoiceNumber, info.InvoiceDate, info.SupplierID, info.CreatedByUserID, info.ModuleId, info.PortalId);
        //    }
        //}

        public int FBInvoice_Insert(FBFoodInventoryInfo info)
        {
            //   return Convert.ToInt32(DataProvider.Instance().FBInvoice_Insert(info.InvoiceNumber, info.InvoiceDate, info.SupplierID, info.CreatedByUserID, info.ModuleId, info.PortalId));
            //check we have some content to store
            if (info.InvoiceNumber != string.Empty)
            {
                return(Convert.ToInt32(DataProvider.Instance().FBInvoice_Insert(info.InvoiceNumber, info.InvoiceDate, info.SupplierID, info.CreatedByUserID, info.ModuleId, info.PortalId, info.Organization)));
            }
            else
            {
                return(0);
            }
        }
Esempio n. 7
0
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="SupplierName"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string SupplierName, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(SupplierName, "FBFoodInventorys");

            foreach (XmlNode info in infos.SelectNodes("FBFoodInventory"))
            {
                FBFoodInventoryInfo FBFoodInventoryInfo = new FBFoodInventoryInfo();
                FBFoodInventoryInfo.ModuleId        = ModuleID;
                FBFoodInventoryInfo.SupplierName    = info.SelectSingleNode("SupplierName").InnerText;
                FBFoodInventoryInfo.CreatedByUserID = UserID;

                FBSuppliers_Insert(FBFoodInventoryInfo);
            }
        }