/// <summary> /// 绑定客户状态 /// </summary> private void BindState() { BLL.customerState bllct = new BLL.customerState(); Cstate.DataSource = bllct.GetAllList(); Cstate.DataTextField = "csName"; Cstate.DataValueField = "ID"; Cstate.DataBind(); }
/// <summary> /// 绑定客户状态 /// </summary> private void BindState() { BLL.customerState bllct = new BLL.customerState(); Cstate.DataSource = bllct.GetAllList(); Cstate.DataTextField = "csName"; Cstate.DataValueField = "ID"; Cstate.DataBind(); Cstate.Items.Insert(0, new ListItem("全部", "0")); }
IEnumerator AutoC() { yield return(new WaitForSeconds(3)); if (stateC == Cstate.Auto) { stateC = Cstate.Idle; NextState_(); } }
public bool Update(Cstate obj) { try { context.Entry(obj).State = EntityState.Modified; context.SaveChanges(); } catch (Exception) { return(false); } return(true); }
public bool Update(Cstate obj) { return(cstateRepo.Update(obj)); }
public bool Save(Cstate obj) { return(cstateRepo.Save(obj)); }