Beispiel #1
0
 // 如果活动返回值,则从 CodeActivity<TResult>
 // 派生并从 Execute 方法返回该值。
 protected override void Execute(CodeActivityContext context)
 {
     ArrangeDrawOutFrom From = UpdateApplyInfo.Get(context);
     YunShanOA.BusinessLogic.UseCar.CarManager Manager = new BusinessLogic.UseCar.CarManager();
     foreach (string id in From.CarIDList)
     {
         car car = Manager.GetCarByid(int.Parse(id));
         car.Status = 2;
         Manager.Save(car);
     }
 }
Beispiel #2
0
        // 如果活动返回值,则从 CodeActivity<TResult>
        // 派生并从 Execute 方法返回该值。
        protected override void Execute(CodeActivityContext context)
        {
            ArrangeDrawOutFrom From = UpdateApplyInfo.Get(context);

            YunShanOA.BusinessLogic.UseCar.CarManager Manager = new BusinessLogic.UseCar.CarManager();
            foreach (string id in From.CarIDList)
            {
                car car = Manager.GetCarByid(int.Parse(id));
                car.Status = 2;
                Manager.Save(car);
            }
        }
Beispiel #3
0
 // 如果活动返回值,则从 CodeActivity<TResult>
 // 派生并从 Execute 方法返回该值。
 protected override void Execute(CodeActivityContext context)
 {
     ArrangeDrawOutFrom From = UpdateApplyInfo.Get(context);
     YunShanOA.BusinessLogic.UseCar.CarManager Manager = new BusinessLogic.UseCar.CarManager();
     foreach (string id in From.CarIDList)
     {
         car car = Manager.GetCarByid(int.Parse(id));
         car.Status = 1;
         Manager.Save(car);
     }
     YunShanOA.Model.UseCarModel.usecarapplyform f = new usecarapplyform();
     YunShanOA.BusinessLogic.UseCar.UsecarApplyformManager m = new BusinessLogic.UseCar.UsecarApplyformManager();
     f = m.GetusecarapplyformById(int.Parse(From.UseCarInfromID));
     f.ApplyStatus = 4;
     m.Sava(f);
 }
Beispiel #4
0
        // 如果活动返回值,则从 CodeActivity<TResult>
        // 派生并从 Execute 方法返回该值。
        protected override void Execute(CodeActivityContext context)
        {
            ArrangeDrawOutFrom From = UpdateApplyInfo.Get(context);

            YunShanOA.BusinessLogic.UseCar.CarManager Manager = new BusinessLogic.UseCar.CarManager();
            foreach (string id in From.CarIDList)
            {
                car car = Manager.GetCarByid(int.Parse(id));
                car.Status = 1;
                Manager.Save(car);
            }
            YunShanOA.Model.UseCarModel.usecarapplyform           f = new usecarapplyform();
            YunShanOA.BusinessLogic.UseCar.UsecarApplyformManager m = new BusinessLogic.UseCar.UsecarApplyformManager();
            f             = m.GetusecarapplyformById(int.Parse(From.UseCarInfromID));
            f.ApplyStatus = 4;
            m.Sava(f);
        }