コード例 #1
0
        private void GetPettyCashDetails()
        {
            try
            {
                Attendance.BAL.Report obj = new Report();
                DataSet ds = obj.GetPettyCashDetails(Session["LocationName"].ToString());
                if (ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        grdPettyCashDet.DataSource = ds.Tables[0];
                        grdPettyCashDet.DataBind();

                        grdExpenseDetails.DataSource = ds.Tables[0];
                        grdExpenseDetails.DataBind();
                    }
                }
            }
            catch (Exception ex)
            {
            }
        }