private void CBGoodsName_TextChanged(object sender, EventArgs e) { if ((CBGoodsName.SelectedIndex >= 0) && (CBGoodsName.ValueMember != "")) { MetageFindClass findClass = new MetageFindClass(); findClass.GetMateriaModel(CBGoodsName.Text, ref CBModel); } }
private void CBTransportContract_TextChanged(object sender, EventArgs e) { if ((CBTransportContract.SelectedIndex >= 0) && (!CBTransportContract.ValueMember.Equals(""))) { MetageFindClass findClass = new MetageFindClass(); findClass.GetSiteValue(CBTransportContract.SelectedValue.ToString(), ref CBSite1, ref CBSite2); } }
private void InitForm() { WeighingLogic logic = new WeighingLogic(); MetageFindClass findClass = new MetageFindClass(); logic.GetTruckNoItem(ref CBTruckNo); logic.GetContractItem(WeighingStyle.InStyle, ref CBContract); logic.GetSite(ref CBInSite); logic.GetSite(ref CBToSite); findClass.GetMateriaName(ref CBGoodsName); }
private void button3_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { if (MessageBox.Show("是否审批所选记录", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.Yes) { MetageFindClass findClass = new MetageFindClass(); InWeighingClass info = new InWeighingClass(); for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { info.Id = dataGridView1.SelectedRows[i].Cells["id"].Value.ToString(); info.CheckupMan = "审批人"; findClass.checkupInInfo(info); } MessageBox.Show("审批完成"); FindInfo(); } } }