|
@@ -28,18 +28,7 @@ namespace WinForms
|
|
|
string workId = selectWork.selectValue;
|
|
|
|
|
|
//基本信息
|
|
|
- Jpsoft.BLL.Work bllWork = new Jpsoft.BLL.Work();
|
|
|
- Jpsoft.Model.Work modelWork = bllWork.GetModel(workId);
|
|
|
-
|
|
|
- Jpsoft.BLL.Customer bllCustomer = new Jpsoft.BLL.Customer();
|
|
|
- Jpsoft.Model.Customer modelCustomer = bllCustomer.GetModel(modelWork.customer_id);
|
|
|
-
|
|
|
- this.labCustomer.Text = "客户:" + modelCustomer.name_;
|
|
|
- this.labName.Text = "品种及规格:" + modelWork.name_;
|
|
|
- this.labWidth.Text = "幅宽:" + modelWork.width_.ToString();
|
|
|
- this.labNumber.Text = "编号:" + modelWork.number_;
|
|
|
- this.labColour.Text = "色泽:" + modelWork.colour_;
|
|
|
- this.labTagFactorSave.Text = "加码:" + modelWork.tag_factor_save.ToString();
|
|
|
+ ShowInfo(workId);
|
|
|
|
|
|
//库存信息
|
|
|
Jpsoft.BLL.Stock bllStock = new Jpsoft.BLL.Stock();
|
|
@@ -49,13 +38,30 @@ namespace WinForms
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void ShowInfo(string workId)
|
|
|
+ {
|
|
|
+ Jpsoft.BLL.Work bllWork = new Jpsoft.BLL.Work();
|
|
|
+ Jpsoft.Model.Work modelWork = bllWork.GetModel(workId);
|
|
|
+
|
|
|
+ Jpsoft.BLL.Customer bllCustomer = new Jpsoft.BLL.Customer();
|
|
|
+ Jpsoft.Model.Customer modelCustomer = bllCustomer.GetModel(modelWork.customer_id);
|
|
|
+
|
|
|
+ this.workId.Text = modelWork.id_;
|
|
|
+ this.labCustomer.Text = "客户:" + modelCustomer.name_;
|
|
|
+ this.labName.Text = "品种及规格:" + modelWork.name_;
|
|
|
+ this.labWidth.Text = "幅宽:" + modelWork.width_.ToString();
|
|
|
+ this.labNumber.Text = "编号:" + modelWork.number_;
|
|
|
+ this.labColour.Text = "色泽:" + modelWork.colour_;
|
|
|
+ this.labTagFactorSave.Text = "加码:" + modelWork.tag_factor_save.ToString();
|
|
|
+ }
|
|
|
+
|
|
|
private void button11_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- WorkNumber workNumber = new WorkNumber();
|
|
|
+ WorkNumber workNumber = new WorkNumber(this.workId.Text);
|
|
|
DialogResult result = workNumber.ShowDialog();
|
|
|
if (result == DialogResult.OK)
|
|
|
{
|
|
|
-
|
|
|
+ ShowInfo(this.workId.Text);
|
|
|
}
|
|
|
}
|
|
|
|