protected void Page_Load(object sender, EventArgs e) { this.Page.DataBind(); if (IsPostBack != true) { if (Session["GRNID"] != null) { this.lblmsg.Text = Session["GRNID"].ToString(); if (Session["GRNID"].ToString() != "") { LoadPendingGRN(); LoadGRNType(); GradingCodeChanged(); this.cboGradingCode.Enabled = false; } } WarehouseServicesBLL objWS = new WarehouseServicesBLL(); List <WarehouseServicesBLL> listWS = null; listWS = objWS.GetActiveServices(); if (listWS != null) { this.cboGRNService.Items.Clear(); this.cboGRNService.Items.Add(new ListItem("Please Select Service", "")); if (listWS.Count > 0) { foreach (WarehouseServicesBLL i in listWS) { this.cboGRNService.Items.Add(new ListItem(i.Name, i.Id.ToString())); } } } ViewState["listGRNService"] = null; } }
private void LoadServices() { WarehouseServicesBLL objWS = new WarehouseServicesBLL(); List <WarehouseServicesBLL> listWS = null; listWS = objWS.GetActiveServices(); if (listWS != null) { this.cboGRNService.Items.Clear(); this.cboGRNService.Items.Add(new ListItem("Please Select Service", "")); if (listWS.Count > 0) { foreach (WarehouseServicesBLL i in listWS) { this.cboGRNService.Items.Add(new ListItem(i.Name, i.Id.ToString())); } } } }
private void rptGRNService_FetchData(object sender, FetchEventArgs eArgs) { try { reader.Read(); if (reader["ServiceId"] != DBNull.Value) { string Sn = ""; Sn = WarehouseServicesBLL.GetServiceNameById(new Guid(reader["ServiceId"].ToString())); Fields["ServiceName"].Value = Sn; } if (reader["Quantity"] != DBNull.Value) { Fields["Qty"].Value = reader["Quantity"].ToString(); } eArgs.EOF = false; } catch { eArgs.EOF = true; } }