/// <summary> /// 页面初始化 /// </summary> protected void PageInit() { this.ddlPayType.DataTextField = "Text"; this.ddlPayType.DataValueField = "Value"; this.ddlPayType.DataSource = EyouSoft.Common.EnumObj.GetList(typeof(EyouSoft.Model.EnumType.ComStructure.ItemType)); this.ddlPayType.DataBind(); this.RbtnSourceType.DataTextField = "Text"; this.RbtnSourceType.DataValueField = "Value"; this.RbtnSourceType.DataSource = EyouSoft.Common.EnumObj.GetList(typeof(EyouSoft.Model.EnumType.ComStructure.SourceType)); this.RbtnSourceType.DataBind(); System.Collections.Generic.List <EnumObj> list = EyouSoft.Common.EnumObj.GetList(typeof(EyouSoft.Model.EnumType.ComStructure.ItemType)); this.ddlBankList.DataTextField = "BankName"; this.ddlBankList.DataValueField = "AccountId"; this.ddlBankList.DataSource = new EyouSoft.BLL.ComStructure.BComAccount().GetList(CurrentUserCompanyID); this.ddlBankList.DataBind(); if (Id != 0) { EyouSoft.Model.ComStructure.MComPayment model = new EyouSoft.BLL.ComStructure.BComPayment().GetModel(Id, SiteUserInfo.CompanyId); this.txtPayStyleName.Text = model.Name; this.ddlPayType.SelectedValue = ((int)model.ItemType).ToString(); if (model.AccountId != 0) { ddlBankList.SelectedValue = ((int)model.AccountId).ToString(); } this.RbtnSourceType.SelectedValue = ((int)model.SourceType).ToString(); } }
protected void PageInit() { IList <EyouSoft.Model.ComStructure.MComPayment> list = new EyouSoft.BLL.ComStructure.BComPayment().GetList(SiteUserInfo.CompanyId); this.repList.DataSource = list; this.repList.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { IList <EyouSoft.Model.ComStructure.MComPayment> ls = new EyouSoft.BLL.ComStructure.BComPayment().GetList(CurrentUserCompanyID); if (ls != null && ls.Count > 0) { pan_msg.Visible = false; recordCount = ls.Count; rpt_list.DataSource = ls; rpt_list.DataBind(); } }
/// <summary> /// init fukuan zhifufangshi /// </summary> void InitFuKuanZhiFuFangShi() { var items = new EyouSoft.BLL.ComStructure.BComPayment().GetList(CompanyId, null, EyouSoft.Model.EnumType.ComStructure.ItemType.支出); if (items == null || items.Count == 0) { return; } StringBuilder s = new StringBuilder(); foreach (var item in items) { s.AppendFormat("<option value='{0}'>{1}</option>", item.PaymentId, item.Name); } ltrFuKuanZhiFuFangShi.Text = s.ToString(); }