Esempio n. 1
0
 /// <summary>
 /// 绑定付款类别数据
 /// </summary>
 private void GetPayType()
 {
     #region 控制相同单位不能选择相同类别的代码(目前不用)
     //string u = Request.QueryString["unit"];
     //string it = Request.QueryString["item"];
     //string[] unit = u.Remove(u.LastIndexOf(','), 1).Split(','); //得到单位id值集合
     //string[] item = it.Remove(it.LastIndexOf(','), 1).Split(','); //得到类别集合
     //string thisUnit = Request.QueryString["thisUnit"].Trim();
     //string sqlitem = ""; //筛选类别的条件
     //DataTable payType = null;
     //if (unit.Contains(thisUnit)) //如果所选择的那行的单位,已经选择过
     //{
     //    for (int i = 0; i < unit.Length; i++)
     //    {
     //        if (unit[i] == thisUnit)
     //        {
     //            sqlitem += item[i] + "','";
     //        }
     //    }
     //    string sql = " itemname not in('" + sqlitem + "')";
     //    payType = AusFinInfoManager.GetList(sql);
     //}
     //else
     //{
     //    payType = AusFinInfoManager.GetList("");
     //}
     //this.type.DataSource = payType;
     //this.type.DataBind();
     #endregion
     this.type.DataSource = AusFinInfoManager.GetList("");
     this.type.DataBind();
 }
Esempio n. 2
0
        /// <summary>
        /// 绑定数据列表
        /// </summary>
        private void getFin()
        {
            DataTable ausFin = AusFinInfoManager.GetList(strwhere);

            this.type.DataSource = ausFin;
            this.type.DataBind();
        }
Esempio n. 3
0
        private void GetPayType()
        {
            DataTable dt = AusFinInfoManager.GetList("");

            this.type.DataSource = dt;
            this.type.DataBind();
        }
Esempio n. 4
0
        /// <summary>
        /// 绑定付款类别
        /// </summary>
        private void BindOutComeType()
        {
            ddlpayitem.Items.Clear();
            DataTable dt = AusFinInfoManager.GetList("");
            DataRow   dr = dt.NewRow();

            dr["itemname"] = "——请选择——";
            dr["id"]       = "0";
            dt.Rows.InsertAt(dr, 0);
            ddlpayitem.DataTextField  = "itemname";
            ddlpayitem.DataValueField = "id";
            ddlpayitem.DataSource     = dt;
            ddlpayitem.DataBind();
        }
Esempio n. 5
0
        private void LoadPaymentType()
        {
            ddlPaymentType.Items.Clear();
            DataTable dt = AusFinInfoManager.GetList("");

            ddlPaymentType.Items.Add(new ListItem("——请选择——", ""));
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ListItem adItem = new ListItem();
                adItem.Text  = dt.Rows[i]["itemname"].ToString();
                adItem.Value = dt.Rows[i]["itemname"].ToString();
                ddlPaymentType.Items.Add(adItem);
            }
        }