摘要:
public DataSet GetCraftInformation(string connectionString, string opName, string productType) { string sqlCmd = "select 对应零件序号 as 工步序号,装配工步 as 工步 from Gongbu where 产品型号='" + productType + "' and 工位号='" + opName + "'"; SqlConnection conn = new SqlConnect 阅读全文
摘要:
public Bitmap PictureShow(string connectionString, string opName, string productType) { SqlConnection conn = new SqlConnection(connectionString); conn.Open(); //MessageBox.Show("连接成功"); string sqlCmd = "select 产品图片 from Tupian where 产品型号='" + productType + "' and 工位号 阅读全文
摘要:
public string GetProductType(string connectionString, string barCode) { string productType; SqlConnection conn = new SqlConnection(connectionString); conn.Open(); //MessageBox.Show("连接成功"); string sqlCmd = "select 产品型号 from ProName where 壳体编号 = '"+ barCode + "'" 阅读全文
摘要:
用button时间 调出颜色对话框来: private void btnForeColor_Click(object sender, EventArgs e) { using (ColorDialog cdialog = new ColorDialog()) { cdialog.AnyColor = true; if (cdialog.ShowDialog() == DialogResult.OK) { this.b.ForeColor = cdialog.Color; this.btnForeColor.BackColor = this.b.ForeColor; } } 阅读全文