예제 #1
0
        public string DeletePeriodByID()
        {
            var inputValue = HttpContext.Current.Request.Form["Inputs"];
            var result     = new RateBLL().DeletePeriodByID(int.Parse(inputValue));

            return(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
예제 #2
0
        public string IndexItem()
        {
            //var inputValue = HttpContext.Current.Request.Form["Inputs"];
            //var query = Newtonsoft.Json.JsonConvert.DeserializeObject<NTS.WEB.DataContact.QueryEnergyIterm>(inputValue);
            ItemList result = new RateBLL().GetItemcodeList();

            return(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
예제 #3
0
        public string GetRateInfoList()
        {
            var inputValue = HttpContext.Current.Request.Form["Inputs"];
            //ResultRatePriceList result = new RateBLL().GetRateInfoList(inputValue, "2", "3");
            ResultRatePriceList result = new RateBLL().GetRateList(inputValue);

            result.PeroidFlag = GetPeroidList();
            return(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
예제 #4
0
        public string SaveTimePrice()
        {
            var inputValue        = HttpContext.Current.Request.Form["Inputs"];
            List <QueryTime> list = Newtonsoft.Json.JsonConvert.DeserializeObject <List <QueryTime> >(inputValue);

            if (list == null)
            {
                return(null);
            }
            //ResultRate result = new RateBLL().SaveTimePrice(model);
            ResultRate result = new RateBLL().SavePeriod(list);

            return(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
예제 #5
0
        public string SaveCommPrice()
        {
            var       inputValue = HttpContext.Current.Request.Form["Inputs"];
            QueryComm model      = Newtonsoft.Json.JsonConvert.DeserializeObject <QueryComm>(inputValue);

            if (model == null)
            {
                return(null);
            }
            //ResultRate result = new RateBLL().SaveCommPrice(model);

            ResultRate result = new RateBLL().SaveParValue(model);

            return(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }