示例#1
0
        internal long DeleteInstitutionMachineries(BOInstitutionMachinerie model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("machineID", model.MachineID);
                ht.Add("createdBy", model.CreatedBy);
                ht.Add("createdPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteInstitutionMachineries"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
示例#2
0
 internal long InsertInstitutionMachinerie(BOInstitutionMachinerie model)
 {
     try
     {
         long      result = 0;
         Hashtable ht     = new Hashtable();
         ht.Add("institutionID", model.InstitutionID);
         ht.Add("machineName", model.MachineName);
         ht.Add("labTypeID", model.MachineTypeID);
         ht.Add("noOfMachine", model.NoOfMachine);
         ht.Add("remarks", model.Remarks);
         ht.Add("createdBy", model.CreatedBy);
         ht.Add("createdPC", model.CreatedPC);
         result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_InsertInstitutionMachineries"));
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message.ToString());
     }
 }
示例#3
0
        internal static long DeleteInstitutionMachineries(BOInstitutionMachinerie model)
        {
            DAInstitutionMachinerie accessLayer = new DAInstitutionMachinerie();

            return(Convert.ToInt64(accessLayer.DeleteInstitutionMachineries(model)));
        }
示例#4
0
        internal static long InsertInstitutionMachinerie(BOInstitutionMachinerie model)
        {
            DAInstitutionMachinerie accessLayer = new DAInstitutionMachinerie();

            return(accessLayer.InsertInstitutionMachinerie(model));
        }