private void BindgvReception() { ReceptionBl objReceptionBl = new ReceptionBl(); var objResult = objReceptionBl.Reception_SelectAll(); if (objResult != null) { gvReception.DataSource = objResult.ResultDt; gvReception.DataBind(); PanelVisibilityMode(true, false); } }
//#region Bind Tanker Id //protected void BindTankerId() //{ // //ddlTankerID.Items.Clear(); // Controls objControls = new Controls(); // DateTime dtFromDateTime = DateTime.ParseExact(txtFromDate.Text + " " + txtFromTime.Text, "dd/MM/yyyy HH:mm:ss", // CultureInfo.InvariantCulture); // DateTime dtToDateTime = DateTime.ParseExact(txtToDate.Text + " " + txtToTime.Text, "dd/MM/yyyy HH:mm:ss", // CultureInfo.InvariantCulture); // Reception_PLCBl objReceptionPlcBl = new Reception_PLCBl(); // var objResult = objReceptionPlcBl.Reception_PLC_SelectAll(Convert.ToInt32(ddlReceptionLineNo.SelectedValue),dtFromDateTime,dtToDateTime); // if (objResult != null) // { // if (objResult.ResultDt.Rows.Count > 0) // { // objControls.BindDropDown_ListBox(objResult.ResultDt, ddlTankerID, "Tanker_ID", "Tanker_ID"); // } // ddlTankerID.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select All--", "-1")); // } //} //#endregion #region Bind Reception Line NO protected void BindReceptionLineNo() { Controls objControls = new Controls(); ReceptionBl objReceptionBl = new ReceptionBl(); var objResult = objReceptionBl.Reception_SelectAll(); if (objResult != null) { if (objResult.ResultDt.Rows.Count > 0) { objControls.BindDropDown_ListBox(objResult.ResultDt, ddlReceptionLineNo, "Name", "PLCValue"); } ddlReceptionLineNo.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select All--", "-1")); } }