protected void Button4_Click(object sender, EventArgs e) { Pickup_mtlDC DC = new Pickup_mtlDC(); string simulate_line_id = simulate_id.Value; DataSet ds = DC.is_issued(simulate_line_id); if (ds.Tables[0].Rows.Count > 0) { int j = DC.issued_qty(simulate_line_id); if (j == 1) { Work_Repeater.DataSource = DC.searchPickupBySimulate(simulate_line_id); Work_Repeater.DataBind(); PageUtil.showToast(this.Page, "发料成功"); } else { PageUtil.showToast(this.Page, "发料失败"); } } else { PageUtil.showToast(this.Page, "没有可以发的料"); } }
//分页 //protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) //{ // GridView1.PageIndex = e.NewPageIndex; // string SIMULATE_ID = simulate_id.Value; // if (!(Regex.IsMatch(SIMULATE_ID, "^[0-9]*$") || SIMULATE_ID == "")) // { // PageUtil.showAlert(this, "请输入数字!"); // return; // } // Pickup_mtlDC faliao = new Pickup_mtlDC(); // GridView1.DataSource = faliao.searchBySimulate(SIMULATE_ID); // GridView1.DataBind(); //} //备料单号查询 protected void Select(object sender, EventArgs e) { string SIMULATE_ID = simulate_id.Value; if (!(Regex.IsMatch(SIMULATE_ID, "^[0-9]*$") || SIMULATE_ID == "")) { PageUtil.showAlert(this, "请输入数字!"); return; } Pickup_mtlDC faliao = new Pickup_mtlDC(); Work_Repeater.DataSource = faliao.searchPickupBySimulate(SIMULATE_ID); Work_Repeater.DataBind(); }