Example #1
0
        public PartialViewResult _TypeListDetail(string typeCode = "")
        {
            int height = (int)(Request.Browser.ScreenPixelsHeight * 0.85);

            TB_TYPES type = Types_Service.GetById(typeCode);

            ViewBag.ServiceType = type;

            List <TB_TYPE_DETAILS> details = Types_Service.GetAllDetails(typeCode);

            ViewBag.Details = details;

            return(PartialView(height));
        }
Example #2
0
        public JsonResult GetUnitPrice(int serviceId)
        {
            AjaxResultModel Result = new AjaxResultModel();

            Result.Result = "0 VND";

            try
            {
                TB_SERVICES s = Services_Service.GetById(serviceId);
                TB_TYPES    t = Types_Service.GetById(s.ServiceTypeCode);

                Result.Code   = 000;
                Result.Result = new { type = t.TypeType, price = string.Format("{0:N0}", s.ServicePrice) + " " + s.ServiceUnit };
            }
            catch (Exception Ex)
            {
                Result.Code   = 2000;
                Result.Result = 0;
                CORE.Helpers.IOHelper.WriteLog(StartUpPath, IpAddress, "UpdatePassword :", Ex.Message, Ex.ToString());
            }

            return(Json(Result));
        }
Example #3
0
 public bool Update(TB_TYPES blog)
 {
     return(new TB_TYPESSql().Update(blog));
 }
Example #4
0
 public bool Insert(TB_TYPES blog)
 {
     return(new TB_TYPESSql().Insert(blog, true));
 }