示例#1
0
        private void Bind(int activitiesid)
        {
            IList <ActivitiesInfo> activitiesInfo = VShopHelper.GetActivitiesInfo(activitiesid.ToString());

            if (activitiesInfo.Count > 0)
            {
                this.txtName.Text                 = activitiesInfo[0].ActivitiesName;
                this.txtDescription.Text          = activitiesInfo[0].ActivitiesDescription;
                this.txtEndDate.Text              = activitiesInfo[0].EndTIme.ToString("yyyy-MM-dd");
                this.txtStartDate.Text            = activitiesInfo[0].StartTime.ToString("yyyy-MM-dd");
                this.txtMeetMoney.Text            = activitiesInfo[0].MeetMoney.ToString("0.00");
                this.txtReductionMoney.Text       = activitiesInfo[0].ReductionMoney.ToString("0.00");
                this.dropCategories.SelectedValue = new int?(activitiesInfo[0].ActivitiesType);
            }
        }
示例#2
0
        private void AAbiuZJB(int num)
        {
            IList <ActivitiesInfo> activitiesInfo = VShopHelper.GetActivitiesInfo(num.ToString());

            if (activitiesInfo.Count > 0)
            {
                this.txtName.Text        = activitiesInfo[0].ActivitiesName;
                this.txtDescription.Text = activitiesInfo[0].ActivitiesDescription;
                WebCalendar str     = this.txtEndDate;
                DateTime    endTIme = activitiesInfo[0].EndTIme;
                str.Text = endTIme.ToString("yyyy-MM-dd");
                WebCalendar webCalendar = this.txtStartDate;
                DateTime    startTime   = activitiesInfo[0].StartTime;
                webCalendar.Text = startTime.ToString("yyyy-MM-dd");
                TextBox textBox   = this.txtMeetMoney;
                decimal meetMoney = activitiesInfo[0].MeetMoney;
                textBox.Text = meetMoney.ToString("0.00");
                TextBox str1           = this.txtReductionMoney;
                decimal reductionMoney = activitiesInfo[0].ReductionMoney;
                str1.Text = reductionMoney.ToString("0.00");
                this.dropCategories.SelectedValue = new int?(activitiesInfo[0].ActivitiesType);
            }
        }