コード例 #1
0
 /// <summary>
 /// 绑定客户状态
 /// </summary>
 private void BindState()
 {
     BLL.customerState bllct = new BLL.customerState();
     Cstate.DataSource     = bllct.GetAllList();
     Cstate.DataTextField  = "csName";
     Cstate.DataValueField = "ID";
     Cstate.DataBind();
 }
コード例 #2
0
 /// <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"));
 }
コード例 #3
0
ファイル: CharState.cs プロジェクト: holyweaver/NeglectRPG
    IEnumerator AutoC()
    {
        yield return(new WaitForSeconds(3));

        if (stateC == Cstate.Auto)
        {
            stateC = Cstate.Idle;

            NextState_();
        }
    }
コード例 #4
0
 public bool Update(Cstate obj)
 {
     try
     {
         context.Entry(obj).State = EntityState.Modified;
         context.SaveChanges();
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }
コード例 #5
0
 public bool Update(Cstate obj)
 {
     return(cstateRepo.Update(obj));
 }
コード例 #6
0
 public bool Save(Cstate obj)
 {
     return(cstateRepo.Save(obj));
 }