protected void btnSaveClose_Click(object sender, EventArgs e) { if (txtLot.Text == "") { if (txtLot.Text == "") { JScript.Alert("请刷入批次号", this); return; } } string result = Electroplate.EletroplateCheckIn(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) { //btnSaveClose.Attributes.Add("disabled", "true"); //string a = ddlWorkshop.SelectedValue; log.Info(txtLot.Text + "电镀CheckOut"); if (txtLot.Text == "") { JScript.Alert("请刷入批次号", this); btnSaveClose.Enabled = true; 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 = Electroplate.ElectroplateCheckOut(txtLot.Text, ddlEqp.SelectedValue, ddlWorkshop.SelectedValue, lblWorksiteID.Text, System.Web.HttpContext.Current.Request.Cookies["userID"].Value.ToString(), txtDCMaterial.Text, txtDCThinkness.Text); if (result == "success") { JScript.Alert("电镀出站成功!", this); btnSaveClose.Enabled = true; ClearInfo(); return; } else { JScript.Alert("电镀出站失败!", this); btnSaveClose.Enabled = true; return; } btnSaveClose.Enabled = true; }