예제 #1
0
        public void Add(int specid, params string[] toAdd)
        {
            var addedcost    = toAdd[0];
            var determinedby = toAdd[1];

            Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_cost_impact_add", new { specid, addedcost, determinedby });
        }
예제 #2
0
        public void Add(int specid, params string[] toAdd)
        {
            var alloy  = toAdd[0];
            var temper = toAdd[1];

            Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_alloy_temper_add", new { specid, alloy, temper });
        }
예제 #3
0
        public void Save(int specid, string costImpacts)
        {
            if (costImpacts == null)
            {
                return;
            }

            costImpacts
            .Split('|')
            .ToList()
            .ForEach(c =>
                     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_cost_impact_add", new { specid, addedcost = c.Split('-')[0], determinedby = c.Split('-')[1] })
                     );
        }
예제 #4
0
        public void Save(int specid, string alloyTempers)
        {
            if (alloyTempers == null)
            {
                return;
            }

            alloyTempers
            .Split('|')
            .ToList()
            .ForEach(a =>
                     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_alloy_temper_add", new { specid, alloy = a.Split('-')[0], temper = a.Split('-')[1] })
                     );
        }
        public void Save(int specid, string deliveryImpacts)
        {
            if (deliveryImpacts == null)
            {
                return;
            }

            deliveryImpacts
            .Split('|')
            .ToList()
            .ForEach(d =>
                     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_delivery_impact_add", new { specid, impact = d })
                     );
        }
예제 #6
0
        public void Save(int specid, string equivSpecs)
        {
            if (equivSpecs == null)
            {
                return;
            }

            equivSpecs
            .Split('|')
            .ToList()
            .ForEach(s =>
                     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_equiv_add", new { specid, specToAdd = s })
                     );
        }
예제 #7
0
 public void Delete(int id) => Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_cost_impact_delete", new { id });
예제 #8
0
 public void Delete(int id)
 {
     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_alloy_temper_delete", new { id });
 }
 public void Add(int specid, params string[] toAdd)
 {
     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_delivery_impact_add", new { specid, impact = toAdd[0] });
 }
예제 #10
0
 public void Add(int specid, params string[] toAdd)
 {
     Flash.Execute(Collection.Locate <IDbConnection>("quality"), "quality.spec_equiv_add", new { specid, specToAdd = toAdd[0] });
 }