private void BinddrpNCDJ() { try { DataSet ds = QTCKQuery.GetCHE_QTCK("ncdj", ""); if (ds != null) { this.drpNCDJ.DataSource = ds; this.drpNCDJ.DataTextField = "ncdj"; this.drpNCDJ.DataValueField = "ncdj"; this.drpNCDJ.DataBind(); } Bestcomy.Web.UI.WebControls.ComboItem value = new Bestcomy.Web.UI.WebControls.ComboItem("请选择"); this.drpNCDJ.Items.Insert(0, value); } catch { this.PrintfError("访问数据出错!"); return; } }
/// <summary> /// 页面加载时收货单位 /// </summary> private void BinddrpSHDW() { try { DataSet ds3 = QTCKQuery.GetCHE_QTCK("shdw", "shdw"); if (ds3 != null) { this.drpSHDW.DataSource = ds3; this.drpSHDW.DataTextField = "shdw"; this.drpSHDW.DataValueField = "shdw"; this.drpSHDW.DataBind(); Bestcomy.Web.UI.WebControls.ComboItem value = new Bestcomy.Web.UI.WebControls.ComboItem("请选择"); this.drpSHDW.Items.Insert(0, value); } } catch { this.PrintfError("加载收货单位时出错"); return; } }
/// <summary> /// 页面加载时绑定出库类型 /// </summary> private void BinddrpCKLX() { try { DataSet ds1 = QTCKQuery.GetCHE_QTCK("cklx", ""); if (ds1 != null) { this.drpCKLX.DataSource = ds1; this.drpCKLX.DataTextField = "cklx"; this.drpCKLX.DataValueField = "cklx"; this.drpCKLX.DataBind(); Bestcomy.Web.UI.WebControls.ComboItem value = new Bestcomy.Web.UI.WebControls.ComboItem("请选择"); this.drpCKLX.Items.Insert(0, value); } } catch { this.PrintfError("加载出库类型时出错"); return; } }
private void BindFYDH() { try { DataSet ds = InDoorParam.GetFYDH(); if (ds != null) { this.drpFYDH.DataSource = ds; this.drpFYDH.DataTextField = "FYDH"; this.drpFYDH.ToolTip = "发运单号"; this.drpFYDH.DataValueField = "FYDH"; this.drpFYDH.DataBind(); Bestcomy.Web.UI.WebControls.ComboItem value = new Bestcomy.Web.UI.WebControls.ComboItem("请选择"); this.drpFYDH.Items.Insert(0, value); } } catch (Exception ex) { String strEx = ex.Message; this.PrintfError("数据访问错误,请重试!"); return; } }