コード例 #1
0
 internal long DeleteInstitutionLabMapping(BOInstitutionLabMapping model)
 {
     try
     {
         long      result = 0;
         Hashtable ht     = new Hashtable();
         ht.Add("id", model.ID);
         ht.Add("CreatedBy", model.CreatedBy);
         ht.Add("CreatedPC", model.CreatedPC);
         result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteInstitutionLabMapping"));
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message.ToString());
     }
 }
コード例 #2
0
 public long InsertInstitutionLabMapping(BOInstitutionLabMapping model)
 {
     try
     {
         long      result = 0;
         Hashtable ht     = new Hashtable();
         ht.Add("institutionID", model.InstitutionID);
         ht.Add("machineTypeID", model.MachineTypeID);
         ht.Add("numberOfLab", model.NumberOfLab);
         ht.Add("totalExpense", model.TotalExpense);
         ht.Add("remarks", model.Remarks);
         ht.Add("createdBy", model.CreatedBy);
         ht.Add("CreatedPC", model.CreatedPC);
         result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_InsertInstitutionLabMapping"));
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message.ToString());
     }
 }
コード例 #3
0
        internal static long DeleteInstitutionLabMapping(BOInstitutionLabMapping model)
        {
            DAInstitutionLabMapping accessLayer = new DAInstitutionLabMapping();

            return(Convert.ToInt64(accessLayer.DeleteInstitutionLabMapping(model)));
        }