示例#1
0
        /// <summary>
        /// 添加方案
        /// </summary>
        private void AddFA()
        {
            int rowid          = Convert.ToInt32(context.Request.QueryString["id"]);
            int RechargeAmount = Convert.ToInt32(context.Request.QueryString["RechargeAmount"]);
            int GivenAmount    = Convert.ToInt32(context.Request.QueryString["GivenAmount"]);
            int GivenSorce     = Convert.ToInt32(context.Request.QueryString["GivenSorce"]);
            int Status         = Convert.ToInt32(context.Request.QueryString["Status"]);

            BLL.AddPrice   bllan    = new BLL.AddPrice();
            Model.AddPrice modeladd = new Model.AddPrice();
            modeladd.AddPice = RechargeAmount;
            modeladd.ZsPice  = GivenAmount;
            modeladd.ZsJf    = GivenSorce;
            if (Status == 0)
            {
                Status = 1;
            }
            else
            {
                Status = 0;
            }
            modeladd.IsOk   = Convert.ToBoolean(Status);
            modeladd.Remark = "";
            if (rowid != 0)
            {
                modeladd.MtID = rowid;
                bllan.Update(modeladd);
            }
            else
            {
                bllan.Add(modeladd);
            }
        }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BLL.AddPrice blla = new BLL.AddPrice();
         rep1.DataSource = blla.GetAllList();
         rep1.DataBind();
     }
 }