/// <summary>
        /// 绑定支付方式
        /// </summary>
        public void BindZFFS()
        {
            DataSet dt = fmzffs.GetAllList();

            foreach (DataRow dr in dt.Tables[0].Rows)
            {
                hid_zfName.Value += dr["meth_pay_id"].ToString() + "," + dr["meth_pay_name"].ToString() + ";";
            }
            DDlZffs.DataSource = fmzffs.GetList("meth_is_ya=1");
            DDlZffs.DataBind();
            this.DDlZffs.Items.RemoveAt(0);
        }
Beispiel #2
0
 public override void SonLoad()
 {
     if (!IsPostBack)
     {
         tvalue.Value = Request.QueryString["t"];
         string account = Request.QueryString["accounts"];
         AccountName.Value  = bllcon.GetAccounts(account).cName;
         ga_Account.Value   = account;
         DDlZffs.DataSource = fmzffs.GetList("meth_is_ya=1");
         DDlZffs.DataBind();
     }
 }
Beispiel #3
0
 public override void SonLoad()
 {
     if (!IsPostBack)
     {
         string account = Request.QueryString["account"];
         CardNo.Value       = account;
         MemberName.Value   = bllcon.GetAccounts(account).cName;
         DDlZffs.DataSource = fmzffs.GetList("meth_is_jie=1");
         DDlZffs.DataBind();
         string ids = Request.QueryString["ids"];
         List <Model.Commission> listcomm = bllcomm.GetModelList("ID in (" + ids + ")");
         int sum = 0;
         foreach (Model.Commission mode in listcomm)
         {
             sum += Convert.ToInt32(mode.CommSum);
         }
         Amount.Value = sum.ToString();
         idshid.Value = ids;
     }
 }
Beispiel #4
0
        public override void SonLoad()
        {
            if (!IsPostBack)
            {
                string account = Request.QueryString["accounts"];
                AccountName.Value = bllcon.GetAccounts(account).cName;
                ga_Account.Value  = account;

                string   ids   = Request.QueryString["ids"];
                string[] idstr = ids.Split(',');
                if (idstr.Length == 1)
                {
                    idss.Value = "'" + ids + "'";
                }
                else if (idstr.Length > 1)
                {
                    foreach (string item in idstr)
                    {
                        ids += "'" + item + "',";
                    }
                    idss.Value = ids.Substring(0, ids.Length - 1);
                }

                List <Model.goods_account> listag = bllga.GetModelList1("ga_goodNo in (" + idss.Value + ") and ga_Account='" + account + "' and ga_Type=204");
                decimal sumprice = 0;
                if (listag.Count > 0)
                {
                    foreach (Model.goods_account item in listag)
                    {
                        sumprice += Convert.ToDecimal(item.ga_sum_price);
                    }
                }
                price.Value        = sumprice.ToString();
                DDlZffs.DataSource = fmzffs.GetList("meth_is_jie=1");
                DDlZffs.DataBind();
            }
        }
 private void Bind()
 {
     BLL.meth_pay bllmp = new BLL.meth_pay();
     rep1.DataSource = bllmp.GetList("meth_pay_name!='协议单位'");
     rep1.DataBind();
 }
 /// <summary>
 /// 绑定支付方式
 /// </summary>
 public void BindZFFS()
 {
     DDlZffs.DataSource = fmzffs.GetList("meth_is_ya=1");
     DDlZffs.DataBind();
 }