Пример #1
0
 public long insertChemicalConsumption(BOFebChemicalConsumption boclient)
 {
     try
     {
         var ht = new Hashtable();
         ht.Add("SampleID", boclient.SampleNo);
         ht.Add("ChemicalID", boclient.ChemicalID);
         ht.Add("ChemicalWeight", boclient.ChemicalWeight);
         ht.Add("Transfered", boclient.Transfered1);
         ht.Add("AddedBy", boclient.AddedBy1);
         ht.Add("DateAdded", boclient.DateAdded1);
         ht.Add("UpdatedBy", boclient.UpdatedBy1);
         ht.Add("DateUpdated", boclient.DateUpdated1);
         ht.Add("SerialNo", boclient.SerialNo);
         ht.Add("ProductionStageFlag", boclient.ProductionStageFlag);
         return(Convert.ToInt32(iDBUtility.InsertData(ht, "spInsertChemicalConsumption")));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public static long insertChemicalConsumption(BOFebChemicalConsumption boclient)
        {
            var daaddemp = new DAFebChemicalConsumption();

            return(Convert.ToInt64(daaddemp.insertChemicalConsumption(boclient)));
        }