public string DeletePeriodByID() { var inputValue = HttpContext.Current.Request.Form["Inputs"]; var result = new RateBLL().DeletePeriodByID(int.Parse(inputValue)); return(Newtonsoft.Json.JsonConvert.SerializeObject(result)); }
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)); }
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)); }
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)); }
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)); }