using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Text; using System.Drawing; using System.Collections.Generic; using Telerik.Web.UI; namespace PEWebApp.Pages.ResultMgt { public partial class Res27 : PageBase { protected int iPage; protected int iPageSize; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitControl(); } } public override void VerifyRenderingInServerForm(Control control) { } private void InitControl() { Common_nTx bzobj = new Common_nTx(); Utility.BindDropDownList1(this.ddlYear, bzobj.GetProdYearDropDownList(), true, "", "Select"); this.ddlYear.SelectedIndex = 0; this.ddlYear.SelectedValue = Convert.ToString(System.DateTime.Now.Year); this.ddlMonth.SelectedIndex = System.DateTime.Now.Month; this.lblInquiryTime.Text = System.DateTime.Now.ToString("HH:mm:ss"); } private void BindGrid() { Common_nTx com_nTX = new Common_nTx(); this.lblInquiryTime.Text = System.DateTime.Now.ToString("HH:mm:ss"); Pln16_nTx bzobj = new Pln16_nTx(); string sShopCd = this.ddlShop.Text; string sPlanMonth = this.ddlYear.SelectedValue + this.ddlMonth.SelectedValue; string[] sLineTemp = this.ddlLine.SelectedValue.Split(':'); DataTable dt = bzobj.GetDailyProdResultList(sShopCd, sLineCode, sPlanMonth); this.listAssign.DataSource = dt; } protected void ibtnInquiry_Click(object sender, ImageClickEventArgs e) { BindGrid(); } protected void btnInquiry_Click(object sender, EventArgs e) { BindGrid(); } } }