示例#1
0
        internal long UpdateEnterpriseProduction(BOEnterpriseProduction model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();

                ht.Add("EnterpriseProductionID", model.EnterpriseProductionID);
                ht.Add("EnterpriseID", model.EnterpriseID);
                ht.Add("ItemDescriptions", model.ItemDescriptions);
                ht.Add("Qty", model.Qty);
                ht.Add("MeasurementUnit", model.MeasurementUnit);
                ht.Add("TotalValue", model.TotalValue);
                ht.Add("ProductionYear", model.ProductionYear);
                ht.Add("Remarks", model.Remarks);
                ht.Add("CreatedBy", model.CreatedBy);
                ht.Add("CreatedPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_UpdateEnterpriseProduction"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
示例#2
0
        internal long DeleteEnterpriseProduction(BOEnterpriseProduction model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("EnterpriseProductionID", model.EnterpriseProductionID);
                ht.Add("CreatedBy", model.CreatedBy);
                ht.Add("CreatedPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteEnterpriseProduction"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }