Ejemplo n.º 1
0
        protected void cmdView_Click1(object sender, ImageClickEventArgs e)
        {
            int nPageNumber             = int.Parse(txtPageNumber.Text);
            int nPageSize               = int.Parse(txtPageSize.Text);
            SessionUserLogin nUserLogin = (SessionUserLogin)Session["UserLogin"];
            DateTime         dtfrom     = DateTime.ParseExact(txtfromDatetime.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
            DateTime         dtto       = DateTime.ParseExact(txttoDatetime.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
            DataTable        nTable     = History_Data.GetList(dtfrom, dtto, Convert.ToInt16(Session["CooperativeKey"]), nPageSize, nPageNumber, Session["EmployeeKey"].ToInt(), DDLSeeds.SelectedValue);

            if (nTable.Rows.Count == 0)
            {
                nTable.Rows.Add(null, "", 0);
            }
            GV_History.DataSource = nTable;
            GV_History.DataBind();
            LoadPages();
        }
Ejemplo n.º 2
0
        public void LoadData()
        {
            int nPageNumber             = int.Parse(txtPageNumber.Text);
            int nPageSize               = int.Parse(txtPageSize.Text);
            SessionUserLogin nUserLogin = (SessionUserLogin)Session["UserLogin"];
            DataTable        nTable     = History_Data.GetList(Convert.ToInt16(Session["CooperativeKey"]), nPageSize, nPageNumber, Session["EmployeeKey"].ToInt(), DDLSeeds.SelectedValue);

            if (nTable.Rows.Count == 0)
            {
                nTable.Rows.Add(null, "", 0);
            }
            nTable.Columns.Add();
            GV_History.DataSource = nTable;
            GV_History.DataBind();
            DateTime dt = DateTime.Now;

            txtfromDatetime.Text = "01/" + DateTime.Now.ToString("MM/yyyy");
            txttoDatetime.Text   = DateTime.Now.ToString("dd/MM/yyyy");
            LoadPages();
        }
Ejemplo n.º 3
0
        public void LoadData()
        {
            int nPageNumber             = int.Parse(txtPageNumber.Text);
            int nPageSize               = int.Parse(txtPageSize.Text);
            SessionUserLogin nUserLogin = (SessionUserLogin)Session["UserLogin"];
            DataTable        nTable     = History_Data.GetDetail(key, nPageSize, nPageNumber);

            if (nTable.Rows.Count == 0)
            {
                nTable.Rows.Add(null, "", 0);
            }
            nTable.Columns.Add();
            GV_History.DataSource = nTable;
            GV_History.DataBind();
            DateTime dt = DateTime.Now;

            //txtfromDatetime.Text = "01/" + DateTime.Now.ToString("MM/yyyy");
            //txttoDatetime.Text = DateTime.Now.ToString("dd/MM/yyyy");
            LoadPages();
        }