protected void Page_Load(object sender, EventArgs e) { Session["Local"] = "退料单作业"; if (Session["LoginName"] == null) { PageUtil.showToast(this, "未获取到你的登陆状态,请退出系统重新登录!"); return; } else { user = Session["LoginName"].ToString(); } if (!IsPostBack) { DataSet ds_Invoice_no = invoiceDC.getInvoice_no(0); //DataSet ds_frame = invoiceDC.getFrame(); //DataSet ds_datecode = invoiceDC.getFrame(); if (ds_Invoice_no != null) { DropDownList_invoice_no.DataSource = ds_Invoice_no.Tables[0].DefaultView; DropDownList_invoice_no.DataValueField = "invoice_no"; DropDownList_invoice_no.DataTextField = "invoice_no"; DropDownList_invoice_no.DataBind(); } //if (ds_frame != null) //{ // DropDownList_frame.DataSource = ds_frame.Tables[0].DefaultView; // DropDownList_frame.DataValueField = "frame_key"; // DropDownList_frame.DataTextField = "frame_name"; // DropDownList_frame.DataBind(); //} //if (ds_datecode != null) //{ // DropDownList_datecode.DataSource = ds_datecode.Tables[0].DefaultView; // DropDownList_datecode.DataValueField = "datecode"; // DropDownList_datecode.DataTextField = "datecode"; // DropDownList_datecode.DataBind(); //} DropDownList_invoice_no.Items.Insert(0, "--选择退料单号--"); //DropDownList_frame.Items.Insert(0, "--选择料架--"); //DropDownList_datecode.Items.Insert(0, "--选择datacode--"); } }