/// <summary> /// 绑定工位下拉框 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cbo_FA_SelectedIndexChanged(object sender, EventArgs e) { try { DataTable dt = bll_TB_PRO.GetListByStatus(1, "CC", "").Tables[0]; if (dt.Rows.Count > 0) { string cid = dt.Rows[0]["C_ID"].ToString(); commonSub.BindCCM(cid, cbo_FA.EditValue.ToString(), cbo_GW2); cbo_GW2.EditValue = "全部"; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void cbo_FA_SelectedIndexChanged(object sender, EventArgs e) { DataTable dt = bll_TB_PRO.GetListByStatus(1, "CC", "").Tables[0]; if (dt.Rows.Count > 0) { string cid = dt.Rows[0]["C_ID"].ToString(); commonSub.BindCCM(cid, cbo_FA.EditValue.ToString(), cbo_CC); } }