private void PopulatePageCntrls(String argsBGID) { Int32 iCount = 0; GetInventoryResponce ret = null; log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL objAdminBLL = new AdminBLL(); GetInventoryData objGetInventoryTableRequest = new GetInventoryData(); objGetInventoryTableRequest.Itemid = argsBGID.ToString(); objGetInventoryTableRequest.WhereClause = " where Item_id='" + argsBGID + "' "; ret = objAdminBLL.GetInventoryData(objGetInventoryTableRequest); hdnBTID.Value = ret.Itemid[iCount].Item_id.ToString(); hdnBTID.Value = ret.Itemid[iCount].Item_Name.ToString(); txtCreatedTime.Text = System.DateTime.Now.ToShortTimeString(); txtItemID.Text = ret.Itemid[iCount].Item_id.ToString(); txtItemNameupd.Text = ret.Itemid[iCount].Item_Name.ToString(); txtqunatityupd.Text = ret.Itemid[iCount].Item_qty.ToString(); txtCreatedByupd.Text = ret.Itemid[iCount].CreatedBy.ToString(); ddItemTypeupdate.SelectedValue = ret.Itemid[iCount].Item_Type.ToString(); txtCreatedTime.Text = ret.Itemid[iCount].CreatedTime.ToString(); txtEditBy.Text = Session["User_Id"].ToString(); } catch (Exception ex) { logger.Info(ex.Message); } }
private void BindGridTelerik() { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL ws = new AdminBLL(); GetInventoryData objReq = new GetInventoryData(); GetInventoryResponce ret = ws.GetInventoryData(objReq); RadGridCatalog.DataSource = ret.Itemid; RadGridCatalog.DataBind(); } catch (Exception ex) { logger.Info(ex.Message); } }
public GetInventoryResponce GetInventoryData(GetInventoryData objGetItemDataRequest) { try { AdminDAL objAdminDAL = new AdminDAL(); GetInventoryResponce ret = new GetInventoryResponce(); List <AddNewInventory> lst = objAdminDAL.GetIenvenData(objGetItemDataRequest); ret.Itemid = lst; return(ret); } catch (Exception ex) { throw ex; } }