コード例 #1
0
        /// <summary>
        /// CarInfodelete
        /// </summary>
        public void CarInfodelete()
        {
            string RidList = Request["Item"];
            string text    = Vehicle_CarInfo.CarInfodelete(RidList);

            Response.ContentType = "Application/json";
            Response.Write(text);
            Response.End();
        }
コード例 #2
0
        /// <summary>
        /// GetCarInfoDataGrid
        /// </summary>
        public void GetCarInfoDataGrid()
        {
            rows = Request["rows"] == null ? 10 : int.Parse(Request["rows"]);
            page = Request["page"] == null ? 1 : int.Parse(Request["page"]);
            string GetDataGrid = Vehicle_CarInfo.GetCarInfoDataGrid(rows, page);

            Response.ContentType = "Application/json";
            Response.Write(GetDataGrid);
            Response.End();
        }
コード例 #3
0
        /// <summary>
        /// CarInfoEditSave
        /// </summary>
        public void CarInfoEditSave()
        {
            CarInfoModel Model       = new CarInfoModel();
            string       LoginUserID = Request["LoginUserID"];
            string       RID         = Request["Data"];

            Model.carID   = Request["carID"];
            Model.type    = Request["type"];
            Model.carName = Request["carName"];
            Model.seatNum = Request["seatNum"];
            string text = Vehicle_CarInfo.CarInfoEditSave(Model, LoginUserID, RID);

            Response.ContentType = "Application/json";
            Response.Write(text);
            Response.End();
        }
コード例 #4
0
        /// <summary>
        /// CarInfoGridSearch
        /// </summary>
        public void CarInfoSearch()
        {
            rows = Request["rows"] == null ? 10 : int.Parse(Request["rows"]);
            page = Request["page"] == null ? 1 : int.Parse(Request["page"]);
            string       carName   = Request.Form["carName"];
            string       seatNum   = Request.Form["seatNum"];
            string       carID     = Request.Form["carID"];
            string       BeginDate = Request.Form["BeginDate"];
            string       EndData   = Request.Form["EndDate"];
            string       type      = Request.Form["type"];
            CarInfoModel Model     = new CarInfoModel();

            Model.carName       = carName;
            Model.seatNum       = seatNum;
            Model.carID         = carID;
            Model.type          = type;
            Model.Create_Time   = BeginDate;
            Model.Create_Time_E = EndData;
            string Json = Vehicle_CarInfo.CarInfoSearch(rows, page, Model);

            Response.ContentType = "Application/json";
            Response.Write(Json);
            Response.End();
        }