public void BindDdl() { this.ddlBalanceMode.DataSource = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=27 and ParentCodeID=0 AND XPM_Basic_CodeList.IsValid = 1"); this.ddlBalanceMode.DataBind(); this.ddlPayMode.DataSource = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=25 and ParentCodeID=0 AND XPM_Basic_CodeList.IsValid = 1"); this.ddlPayMode.DataBind(); WebUtil.AddItem(this.ddlBalanceMode, "结算类型"); WebUtil.AddItem(this.ddlPayMode, "付款方式"); }
public void BindDdl() { this.ddlInvoiceType.DataSource = Common2.GetTable("dbo.XPM_Basic_CodeList", "JOIN XPM_Basic_CodeType ON XPM_Basic_CodeType.TypeID = XPM_Basic_CodeList.TypeID WHERE XPM_Basic_CodeType.SignCode = 'InvoiceType' AND XPM_Basic_CodeList.IsValid = 1"); this.ddlInvoiceType.DataBind(); WebUtil.AddItem(this.ddlInvoiceType, "发票类型"); }