static GridViewModel GetListModel() { var viewModel = GridViewExtension.GetViewModel("gvPaymentInList"); if (viewModel == null) { var listMode = new PaymentIn__List_Model(); viewModel = listMode.CreateGridViewModel(); } return(viewModel); }
public ActionResult ExportTo() { int userId = (int)Session["userId"]; var hidden_CpGvFind_FilterExpression = Request["hidden_CpGvFind_FilterExpression"]; var hidden_CpGvFind_SortExpression = Request["hidden_CpGvFind_SortExpression"]; var hidden_CpGvFind_PageIndex = Request["hidden_CpGvFind_PageIndex"]; var hidden_CpGvFind_PageSize = Request["hidden_CpGvFind_PageSize"]; var param = GetParam(Request); var listMode = new PaymentIn__List_Model(); List <Tx_PaymentIn_View__> items = listMode.GetDataList(userId, param, hidden_CpGvFind_FilterExpression, null, hidden_CpGvFind_SortExpression, Convert.ToInt32(hidden_CpGvFind_PageIndex), Convert.ToInt32(hidden_CpGvFind_PageSize)); return(GridViewExportHelper.ExportTypes["XLS"].Method(GridViewExportHelper.ExportGridViewSettings, items)); }
static void ProcessCustomBinding(int userId, GridViewModel viewModel, ListFindParam param) { var listMode = new PaymentIn__List_Model(); listMode.SetBindingData(viewModel, userId, param); }