protected void btnSaveClose_Click1(object sender, EventArgs e) { //string result = Electroplate.ElectroplateCheckOut(txtLot.Text, // ddlEqp.SelectedValue, // ddlWorkshop.SelectedValue, // lblWorksiteID.Text, // System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(), // txtDCMaterial.Text, // txtDCThinkness.Text); string result = Grit.GritCheckIn(txtLot.Text, ddlEqp.SelectedValue, ddlWorkshop.SelectedValue, lblWorksiteID.Text, System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString() ); if (result == "success") { JScript.Alert("喷砂进站成功!", this); ClearInfo(); return; } else { JScript.Alert("喷砂进站失败!", this); return; } }
protected void btnSaveClose_Click(object sender, EventArgs e) { //string a = ddlWorkshop.SelectedValue; if (txtLot.Text == "") { JScript.Alert("请刷入批次号", this); return; } //========防止重复出站 add by lei.xue on 2017-8-29======================= //查询是否可以过站 string result1 = CRUD.QueryStationOfLot(lblWorksiteID.Text, txtLot.Text); if (result1 != "success") { JScript.Alert(result1, this); txtLot.Text = ""; return; } string result = ""; result = Grit.GritCheckOut(txtLot.Text, txtLabelInfo.Text, ddlEqp.SelectedValue, ddlWorkshop.Text, lblWorksiteID.Text , System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(), txtHaze.Text); if (result == "success") { //打印标签调用前台方法 ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script>PrintLabel();</script>"); JScript.Alert("喷砂出站成功!", this); ClearInfo(); return; } else { JScript.Alert("喷砂出站失败!", this); return; } }