Beispiel #1
0
        /// <summary>
        /// Date Created:   29/June/2015
        /// Created By:     Josephine Monteza
        /// (description)   Bind Dashboard
        /// </summary>
        private void BindDashboard()
        {
            Int16 iRequestSourceID;

            iRequestSourceID = GlobalCode.Field2TinyInt(uoDropDownListSourceType.SelectedValue);
            int      iYear  = GlobalCode.Field2Int(uoDropDownListYear.SelectedValue);
            int      iMonth = GlobalCode.Field2Int(uoDropDownListMonth.SelectedValue);
            DateTime dFrom  = DateTime.Now;
            DateTime dTo    = dFrom;

            if (uoCheckBoxByDateRange.Checked)
            {
                dFrom = GlobalCode.Field2DateTime(uoTextBoxFrom.Text);
                dTo   = GlobalCode.Field2DateTime(uoTextBoxTo.Text);
            }


            List <RemarksByDateList> list = new List <RemarksByDateList>();

            list = BLL.GetCrewAssistRemarksByDate(iRequestSourceID, uoCheckBoxByDateRange.Checked,
                                                  iYear, iMonth, dFrom, dTo, uoHiddenFieldUser.Value, GlobalCode.Field2TinyInt(uoHiddenFieldLoadType.Value),
                                                  uoHiddenFieldOrderBy.Value, 0, 0);

            uoListViewDashboard.DataSource = list;
            //uoListViewDashboard.DataSource = null;
            //uoListViewDashboard.DataSourceID = "uoObjectDataSourceCrewAssist";
            uoListViewDashboard.DataBind();
        }