Ejemplo n.º 1
0
 public void Save(OperationLog log)
 {
     DALOL.Save(log);
 }
Ejemplo n.º 2
0
    protected void rptEntList_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        int entId = int.Parse(e.CommandArgument.ToString());

        if (e.CommandName.ToLower() == "verify")
        {
            DJ_TourEnterprise ent = bllEnt.GetDJS8id(entId.ToString())[0];

            RewardType currentType = ent.GetRewart(CurrentDpt.Area);
            RewardType t = currentType == RewardType.纳入后移除 ? RewardType.已纳入 : RewardType.纳入后移除;

            bllEnt.SetVerify(ent, t);
            Model.OperationLog log = new OperationLog();
            log.Member = CurrentMember;
            log.OperationTime = DateTime.Now;
            log.OprationType = OperationType.管理部门管理纳入企业;
            log.TargetId = entId.ToString();
            log.Content = "从:" + currentType.ToString() + "变为:" + t.ToString();
            bllOp.Save(log);
            BindList();
        }
    }