コード例 #1
0
        private void BindData()
        {
            int channleID = 0;

            if (this.cmbChannelID.SelectedItem != null)
            {
                if (!string.IsNullOrEmpty(this.cmbChannelID.SelectedItem.Value))
                {
                    channleID = int.Parse(this.cmbChannelID.SelectedItem.Value);
                }
                else
                {
                    channleID = 0;
                }
            }


            int clientID = 0;

            if (this.cmbClinetID.SelectedItem != null)
            {
                if (!string.IsNullOrEmpty(this.cmbClinetID.SelectedItem.Value))
                {
                    clientID = int.Parse(this.cmbClinetID.SelectedItem.Value);
                }
                else
                {
                    clientID = 0;
                }
            }

            this.Store1.DataSource = SPDayReportWrapper.GetCountReportForMaster(channleID, clientID, (DateTime)dfReportStartDate.DateField.Value, (DateTime)dfReportEndDate.DateField.Value);
            this.Store1.DataBind();
        }
コード例 #2
0
        private void BindData()
        {
            int channleID = 0;

            //if (this.cmbChannelID.SelectedItem!=null)
            //{
            //    if (!string.IsNullOrEmpty(this.cmbChannelID.SelectedItem.Value))
            //        channleID = int.Parse(this.cmbChannelID.SelectedItem.Value);
            //    else
            //        channleID = 0;
            //}

            DataTable dt = SPDayReportWrapper.GetCountReportForMaster(channleID, (DateTime)dfReportStartDate.DateField.Value, (DateTime)dfReportEndDate.DateField.Value);

            this.Store1.DataSource = dt;
            this.Store1.DataBind();
            //this.txtTotalCount.Text = string.Format("总点播数(条):{0}", GetSumField(dt, "TotalCount"));
            //this.txtInterceptCount.Text = string.Format("总扣量数(条):{0}", GetSumField(dt, "InterceptCount"));
            //this.txtDownCount.Text = string.Format("总转发下家数(条):{0}", GetSumField(dt, "DownCount"));
            //this.txtDownSycnCount.Text = string.Format("总同步下家数(条):{0}", GetSumField(dt, "DownSycnCount"));
        }