Beispiel #1
0
 public decimal GetHousetypeNowdaypricebyprojectid(int projectid)
 {
     using (var helper = new SqlHelper())
     {
         decimal nowprice = new InternalB2b_com_housetype(helper).GetHousetypeNowdaypricebyprojectid(projectid);
         return(nowprice);
     }
 }
Beispiel #2
0
 public B2b_com_housetype GetHouseType(int proid, int comid)
 {
     using (var sql = new SqlHelper())
     {
         try
         {
             B2b_com_housetype model = new InternalB2b_com_housetype(sql).GetB2b_com_housetype(proid, comid);
             return(model);
         }
         catch
         {
             throw;
         }
     }
 }
Beispiel #3
0
        public decimal GetHousetypeNowdayprice(int proid, int bangdingproid)
        {
            //如果是绑定产品,查询绑定的日历
            if (bangdingproid != 0)
            {
                proid = bangdingproid;
            }



            using (var helper = new SqlHelper())
            {
                decimal nowprice = new InternalB2b_com_housetype(helper).GetHousetypeNowdayprice(proid);
                return(nowprice);
            }
        }
Beispiel #4
0
 public int InsertOrUpdate(B2b_com_housetype model)
 {
     using (var sql = new SqlHelper())
     {
         try
         {
             var internalData = new InternalB2b_com_housetype(sql);
             int result       = internalData.InsertOrUpdate(model);
             return(result);
         }
         catch
         {
             throw;
         }
     }
 }