Example #1
0
 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;
     }
 }
Example #2
0
        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()));
                    }
                }
            }
        }
Example #3
0
 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;
     }
 }