protected void Button1_Click(object sender, EventArgs e) { if (new GarbageBLL().IsContainOnum(this.TextBox1.Text)) { this.Label2.Visible = false; Garbage gb = new GarbageBLL().GetGaibageInfoByOnum(this.TextBox1.Text); this.Label1.Text = "流水号" + gb.Onum; this.Label1.Text += "<br>仓库代码" + gb.GN; this.Label1.Text += "<br>发运单号" + gb.PO_; this.Label1.Text += "<br>序列号" + gb.SN; this.Label1.Text += "<br>录入时间" + gb.RT; this.Label1.Text += "<br>重复流水号" + gb.OW; } else { this.Label2.Visible = true; this.Label1.Text = "该流水号不存在,请重新输入"; } }
protected void Button4_Click(object sender, EventArgs e) { if (new GarbageBLL().IsContainSn(this.TextBox5.Text)) { Garbage gb = new GarbageBLL().GetGarbageBySN(this.TextBox5.Text); this.Label1.Visible = true; this.Label5.Visible = false; this.Label1.Text = "流水号" + gb.Onum; this.Label1.Text += "<br>仓库代码" + gb.GN; this.Label1.Text += "<br>发运单号" + gb.PO_; this.Label1.Text += "<br>发运单号" + gb.SN; this.Label1.Text += "<br>发送时间" + gb.ST; this.Label1.Text += "<br>接收时间见" + gb.RT; this.Label1.Text += "<br>重复流水号" + gb.OW; } else { this.Label5.Visible = true; this.Label1.Visible = false; this.Label5.Text = "该发运单号不存在,请重新输入"; } }
protected void Button2_Click(object sender, EventArgs e) { if (new GarbageBLL().IsContainGn(this.TextBox3.Text)) { this.Label1.Visible = true; this.Label3.Visible = false; Garbage gb = new GarbageBLL().GarbageInfoByGn(this.TextBox3.Text); this.Label1.Text = "流水号" + gb.Onum; this.Label1.Text += "<br>仓库代码" + gb.GN; this.Label1.Text += "<br>发运单号" + gb.PO_; this.Label1.Text += "<br>发运单号" + gb.SN; this.Label1.Text += "<br>发送时间" + gb.ST; this.Label1.Text += "<br>接收时间见" + gb.RT; this.Label1.Text += "<br>重复流水号" + gb.OW; } else { this.Label3.Visible = true; this.Label1.Visible = false; this.Label2.Text = "该仓库号不存在,请重新输入"; } }
protected void Button1_Click(object sender, EventArgs e) { if (new GarbageBLL().IsContainOnum(this.TextBox1.Text)) { this.Label2.Visible = false; Garbage gb = new GarbageBLL().GetGaibageInfoByOnum(this.TextBox1.Text); this.TextBox1.Text = gb.Onum; this.TextBox2.Text = gb.GN; this.TextBox3.Text = gb.PO_; this.TextBox4.Text = gb.SN; this.TextBox5.Text = gb.ST.ToString(); this.TextBox6.Text = System.DateTime.Now.ToString(); this.TextBox7.Text = gb.OW; this.TextBox8.Text = gb.Flag.ToString(); } else { this.Label2.Visible = true; this.Label2.Text = "该流水号不存在,请重新输入"; } }