Пример #1
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);
 }
Пример #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 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);
 }
Пример #4
0
 public string DeleteStepByID()
 {
     var inputValue = HttpContext.Current.Request.Form["Inputs"];
     var result = new RateBLL().DeleteStepByID(int.Parse(inputValue));
     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);
        }