コード例 #1
0
    private string getData(string start, string end)
    {
        string   json      = "F";
        DateTime dateStart = Convert.ToDateTime(start);
        DateTime dateEnd   = Convert.ToDateTime(end);
        string   sort      = Request.Form["sort"];
        string   order     = Request.Form["order"];
        string   type      = Request.Form["type"];

        DataSet ds = LeaveStockInfoManage.GetInfos(dateStart, dateEnd, type == null?"":type);

        if (ds != null)
        {
            DataTable dt = PinYinHelper.SortByPinYin(ds.Tables[0], sort, order);
            json = JsonHelper.DataTableToJsonForEasyUiDataGridLoadDataMethod(dt, ds.Tables[1]);
        }
        return(json);
    }