Example #1
0
        public void BindData()
        {
            List <ItemCart> reqItems = reqItemDAO.findRequisitionItemByID(reqID);

            GridView_detailList.DataSource = reqItems;
            GridView_detailList.DataBind();
        }
Example #2
0
        protected void GridView_detailList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            try
            {
                GridView_detailList.PageIndex = e.NewPageIndex;
                TextBox tb = (TextBox)GridView_detailList.BottomPagerRow.FindControl("inPageNum");
                tb.Text    = (GridView_detailList.PageIndex + 1).ToString();
                strPageNum = tb.Text;
                adjItems   = adjvidao.getAdjustmentVoucherItemListByADJVID(adjvID);

                GridView_detailList.DataSource = adjItems;
                GridView_detailList.DataBind();
            }
            catch
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Invalid Page Number')", true);
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                adjvID  = Int32.Parse(Request.QueryString["adjvID"]);
                clerkID = (string)Session["loginID"];

                AdjustmentVoucher adjv         = adjvdao.findAdjustmentVoucherByadjvId(adjvID);
                string            authorisedby = sDAO.getStoreStaffNameByID(adjv.authorisedBy);
                string            status       = adjv.status;
                DateTime          adjvDate     = adjv.adjDate;

                Label_StoreStafID.Text  = sDAO.getStoreStaffNameByID(clerkID);
                lblDate.Text            = adjvDate.ToString("dd/MM/yyyy");
                lblAdjvID.Text          = Convert.ToString(adjvID);;
                Label_Authorisedby.Text = authorisedby;
                lblStatus.Text          = status;
                adjItems = adjvidao.getAdjustmentVoucherItemListByADJVID(adjvID);

                GridView_detailList.DataSource = adjItems;
                GridView_detailList.DataBind();
            }
        }
 public void showItemInfo(DataTable iTable)
 {
     GridView_detailList.DataSource = iTable;
     GridView_detailList.DataBind();
 }