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.
54 lines
1.6 KiB
54 lines
1.6 KiB
using CK.SCP.Controller;
|
|
using CK.SCP.Models.ScpEntity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace SCP.Views.PlanData
|
|
{
|
|
public partial class SCP_PO_PLAN_DETAIL : PageBase
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
Bind();
|
|
}
|
|
}
|
|
private void Bind()
|
|
{
|
|
var _partCode = Request["PartCode"];
|
|
var _endTime = Request["EndTime"];
|
|
var _poBillNum = Request["PoBillNum"];
|
|
var _vendId = Request["VendId"];
|
|
var _domain = Request["Domain"];
|
|
V_TB_PO_PLAN_DETAIL _plan = new V_TB_PO_PLAN_DETAIL();
|
|
_plan.PartCode = _partCode;
|
|
_plan.EndTime = DateTime.Parse(_endTime);
|
|
_plan.PoBillNum = _poBillNum;
|
|
_plan.VendId =_vendId;
|
|
_plan.Domain = _domain;
|
|
|
|
SCP_PLAN_CONTROLLER.Get_V_TB_PO_PLAN_DETAIL_List(_plan, (rs) =>{
|
|
if (rs.State == ReturnStatus.Succeed)
|
|
{
|
|
var list = SortAndPage<V_TB_PO_PLAN_DETAIL>(rs.Result, Grid_V_TB_PO_PLAN);
|
|
var _ls = list.ToList();
|
|
Grid_V_TB_PO_PLAN.DataSource = _ls;
|
|
Grid_V_TB_PO_PLAN.DataBind();
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
|
|
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
Grid_V_TB_PO_PLAN.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue);
|
|
Bind();
|
|
}
|
|
}
|
|
}
|