|
@@ -47,7 +47,7 @@ namespace UAS_LabelMachine
|
|
|
List<string> es_filed1 = new List<string>();
|
|
|
List<string> es_istitle = new List<string>();
|
|
|
|
|
|
- es_filed.Add("pi_title"); es_caption.Add("客户"); es_enable.Add("-1"); es_prefix.Add("'客户:'"); es_suffix.Add("''"); es_detno.Add("0.1"); es_filed1.Add("pi_title"); es_istitle.Add("-1");
|
|
|
+ es_filed.Add("pi_title"); es_caption.Add("客户"); es_enable.Add("-1"); es_prefix.Add("'客户:'"); es_suffix.Add("''"); es_detno.Add("0.1"); es_filed1.Add("pi_title"); es_istitle.Add("-1");
|
|
|
es_filed.Add("pi_inoutno"); es_caption.Add("出货单号"); es_enable.Add("-1"); es_prefix.Add("'出货单号:'"); es_suffix.Add("''"); es_detno.Add("0.2"); es_filed1.Add("pi_inoutno"); es_istitle.Add("-1");
|
|
|
es_filed.Add("pr_spec"); es_caption.Add("型号"); es_enable.Add("-1"); es_prefix.Add("'型号:'"); es_suffix.Add("''"); es_detno.Add("0.3"); es_filed1.Add("pr_spec"); es_istitle.Add("-1");
|
|
|
es_filed.Add("pi_date"); es_caption.Add("销售日期"); es_enable.Add("-1"); es_prefix.Add("'销售日期:'"); es_suffix.Add("'销售部门:市场部'"); es_detno.Add("0.4"); es_filed1.Add("pi_date"); es_istitle.Add("-1");
|
|
@@ -65,7 +65,7 @@ namespace UAS_LabelMachine
|
|
|
es_enable.Add("-1");
|
|
|
es_prefix.Add("''");
|
|
|
es_suffix.Add("''");
|
|
|
- es_detno.Add((FirstPage.Columns[j].DisplayIndex+1).ToString());
|
|
|
+ es_detno.Add((FirstPage.Columns[j].DisplayIndex + 1).ToString());
|
|
|
es_filed1.Add(FirstPage.Columns[j].Tag.ToString());
|
|
|
es_istitle.Add("");
|
|
|
}
|
|
@@ -76,7 +76,7 @@ namespace UAS_LabelMachine
|
|
|
sql.Append("values('First',:es_filed,:es_caption,:es_enable,:es_prefix,:es_suffix,:es_detno,:es_filed1,'" + custcode + "',:es_istitle)");
|
|
|
dh.BatchInsert(sql.ToString(), new string[] { "es_filed", "es_caption", "es_enable", "es_prefix", "es_suffix", "es_detno", "es_filed1", "es_istitle" }, es_filed.ToArray(), es_caption.ToArray(), es_enable.ToArray(), es_prefix.ToArray(), es_suffix.ToArray(), es_detno.ToArray(), es_filed1.ToArray(), es_istitle.ToArray());
|
|
|
|
|
|
- es_filed.Clear(); es_caption.Clear();es_enable.Clear();es_prefix.Clear();es_suffix.Clear();es_detno.Clear();es_filed.Clear();es_filed1.Clear();es_istitle.Clear();
|
|
|
+ es_filed.Clear(); es_caption.Clear(); es_enable.Clear(); es_prefix.Clear(); es_suffix.Clear(); es_detno.Clear(); es_filed.Clear(); es_filed1.Clear(); es_istitle.Clear();
|
|
|
|
|
|
es_filed.Add("pi_title"); es_caption.Add("客户"); es_enable.Add("-1"); es_prefix.Add("'客户:'"); es_suffix.Add("''"); es_detno.Add("0.1"); es_filed1.Add("pi_title"); es_istitle.Add("-1");
|
|
|
es_filed.Add("pi_inoutno"); es_caption.Add("出货单号"); es_enable.Add("-1"); es_prefix.Add("'出货单号:'"); es_suffix.Add("''"); es_detno.Add("0.2"); es_filed1.Add("pi_inoutno"); es_istitle.Add("-1");
|
|
@@ -89,7 +89,7 @@ namespace UAS_LabelMachine
|
|
|
if (i == DataPage.Columns[j].DisplayIndex)
|
|
|
{
|
|
|
|
|
|
- es_filed.Add(DataPage.Columns[j].Tag.ToString()=="pr_spec1"?"pr_spec": DataPage.Columns[j].Tag.ToString());
|
|
|
+ es_filed.Add(DataPage.Columns[j].Tag.ToString() == "pr_spec1" ? "pr_spec" : DataPage.Columns[j].Tag.ToString());
|
|
|
es_caption.Add(DataPage.Columns[j].DataPropertyName);
|
|
|
es_enable.Add("-1");
|
|
|
es_prefix.Add("''");
|
|
@@ -104,6 +104,7 @@ namespace UAS_LabelMachine
|
|
|
sql.Append("insert into CS_EXPORTSETTING(es_type,es_filed,es_caption,es_enable,es_prefix,es_suffix,es_detno,es_filed1,es_custcode,es_istitle)");
|
|
|
sql.Append("values('DataPage',:es_filed,:es_caption,:es_enable,:es_prefix,:es_suffix,:es_detno,:es_filed1,'" + custcode + "',:es_istitle)");
|
|
|
dh.BatchInsert(sql.ToString(), new string[] { "es_filed", "es_caption", "es_enable", "es_prefix", "es_suffix", "es_detno", "es_filed1", "es_istitle" }, es_filed.ToArray(), es_caption.ToArray(), es_enable.ToArray(), es_prefix.ToArray(), es_suffix.ToArray(), es_detno.ToArray(), es_filed1.ToArray(), es_istitle.ToArray());
|
|
|
+ MessageBox.Show("保存成功!");
|
|
|
}
|
|
|
|
|
|
private void ResetColumns_Click(object sender, EventArgs e)
|
|
@@ -175,8 +176,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
|
|
|
sql.Clear();
|
|
|
- sql.Append("select " + es_field1.Substring(0, es_field1.Length - 1) + " from prodinout left join prodiodetail on pi_id=pd_piid left join ");
|
|
|
- sql.Append("chip_in_out on pd_id=io_pdid left join chip on ch_code=io_chipcode left join CHIP_WAFERTEST_VIEW on ch_code=chw_chipcode ");
|
|
|
+ sql.Append("select " + es_field1.Substring(0, es_field1.Length - 1) + " from chip_in_out left join prodinout on io_piid=pi_id left join prodiodetail on pi_id=pd_piid and pd_id=io_pdid ");
|
|
|
+ sql.Append(" left join chip on ch_code=io_chipcode left join CHIP_WAFERTEST_VIEW on ch_code=chw_chipcode ");
|
|
|
sql.Append("left join CHIP_EDCDATA_VIEW on che_chipcode=ch_code left join product on pr_code=pd_prodcode left join prodiobarcode on ");
|
|
|
sql.Append("pib_piid=pi_id and pib_custbarcode=ch_code where pi_inoutno='" + inoutno + "' order by ch_code");
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
@@ -240,6 +241,10 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ DataPage.Columns["chw_percent1"].HeaderText = "机测1";
|
|
|
+ DataPage.Columns["chw_percent2"].HeaderText = "机测2";
|
|
|
+ DataPage.Columns["chw_itemname1"].Visible = false;
|
|
|
+ DataPage.Columns["chw_itemname2"].Visible = false;
|
|
|
}
|
|
|
}
|
|
|
}
|