You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ChangKeTec.Scp.Models.ScpEntity;
using Controller;
namespace SCP.admin
{
public partial class _default : PageBase
{
List<TB_PENING_ITEMS> _list = new List<TB_PENING_ITEMS>();
List<TB_PENING_ITEMS> _list1 = new List<TB_PENING_ITEMS>();
protected void Page_Load(object sender, EventArgs e)
{
InitPendingItems();
}
private void InitPendingItems()
{
var _ret = Controller.SCP_PENING_ITEMS_CONTROLLER.Get_TB_PENING_ITEMS_List(new TB_PENING_ITEMS() { ITEM_STATE = "0" });
if (_ret.State == ReturnStatus.Succeed)
{
_list = _ret.Result;
var list = Sort<TB_PENING_ITEMS>(_list.AsQueryable(), Grid1);
Grid1.DataSource = list;
Grid1.RecordCount = list.Count();
Grid1.DataBind();
}
var _ret1 = Controller.SCP_PENING_ITEMS_CONTROLLER.Get_TB_PENING_ITEMS_List(new TB_PENING_ITEMS() { ITEM_STATE = "1" });
if (_ret1.State == ReturnStatus.Succeed)
{
_list1 = _ret1.Result;
var list = Sort<TB_PENING_ITEMS>(_list1.AsQueryable(), Grid1);
Grid2.DataSource = list;
Grid2.RecordCount = list.Count();
Grid2.DataBind();
}
}
}
}