コード例 #1
0
        public static void update(int id, string businessname)
        {
            Businesstype bs = getById(id);

            bs.Businessname = businessname;
            bs.Update();
        }
コード例 #2
0
 public static bool delCableRatio(int id)
 {
     try
     {
         Businesstype type = BusinessTypeBusiness.getById(id);
         if (type != null)
         {
             type.Isdeleted = (int)EnmIsdeleted.已删除;
             type.Update();
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         MessageHelper.ShowMessage("E999", "保存结算比例发生错误!");
         return(false);
     }
 }
コード例 #3
0
        public static int getIdByName(int businessclass, string businessname)
        {
            Businesstype bt = BusinesstypeDao.FindFirst(new EqExpression("Businessclass", businessclass), new EqExpression("Businessname", businessname), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中));

            return(bt.Id);
        }
コード例 #4
0
 public static void save(Businesstype bt)
 {
     bt.Save();
 }
コード例 #5
0
        public static Businesstype getById(int id)
        {
            Businesstype bs = BusinesstypeDao.FindFirst(new EqExpression("Id", id), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中));

            return(bs);
        }