Example #1
0
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     TourActivity ta;
     if (Request.QueryString["actId"] != null)
     {
         Guid actId = Guid.Parse(Request.QueryString["actId"]);
         ta = bllTourActivity.GetOne(actId);
     }
     else
     {
         ta = new TourActivity();
     }
     ta.ActivityCode = txtCode.Text;
     ta.AmountPerIdcardInActivity = int.Parse(txtAmountPerIdcardInActivity.Text);
     ta.AmountPerIdcardTicket = int.Parse(txtAmountPerIdcardTicket.Text);
     ta.AreasBlackList = txtBlack.Text;
     ta.AreasUseBlackList = ckUseBlackList.Checked;
     ta.AreasWhiteList = txtWhite.Text;
     ta.BeginDate = DateTime.Parse(txtBeginDate.Text);
     ta.BeginHour = int.Parse(txtBeginHour.Text);
     ta.EndDate = DateTime.Parse(txtEndDate.Text);
     ta.EndHour = int.Parse(txtEndHour.Text);
     ta.Name = txtName.Text;
     ta.NeedCheckArea = cbxNeedCheckArea.Checked;
     bllTourActivity.SaveOrUpdate(ta);
     ScriptManager.RegisterStartupScript(this, this.GetType(), "s", "alert('更新成功');window.location='/manager/touractivity/default.aspx'", true);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     ta = bllTa.GetOne(Guid.Parse(Request.QueryString["actId"]));
     if (!IsPostBack)
     {
         bindData();
     }
 }
    private void InitGrid()
    {
        ta = bllTa.GetOne(Guid.Parse(Request.QueryString["actId"]));
        DataTable dt = bllAta.GetDTbyLvTicket(ta.Id);
        FineUI.BoundField bf;

        for (int i = 0; i < dt.Columns.Count; i++)
        {
            bf = new FineUI.BoundField();
            bf.DataField = dt.Columns[i].ColumnName;
            bf.HeaderText = dt.Columns[i].ColumnName;
            gridTimeStatistic.Columns.Add(bf);
        }
        dt = bllAta.GetDtBycheckTicket(ta.Id);

        for (int i = 0; i < dt.Columns.Count; i++)
        {
            bf = new FineUI.BoundField();
            bf.DataField = dt.Columns[i].ColumnName;
            bf.HeaderText = dt.Columns[i].ColumnName;
            gridCheckTicketStatistic.Columns.Add(bf);
        }
    }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Guid actId = Guid.Parse(Request.QueryString["actId"]);
     ta = bllTourActivity.GetOne(actId);
     if (!IsPostBack)
     {
         bindData();
         gridStatistic.Hidden = false;
         gridStatistic2.Hidden = true;
         gridStatistic3.Hidden = true;
     }
 }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["actId"] != null)
     {
         Guid actId = Guid.Parse(Request.QueryString["actId"]);
         ta = bllTourActivity.GetOne(actId);
     }
     else
     {
         ta = new TourActivity();
     }
     if (!IsPostBack)
     {
         bindData();
     }
 }