Exemple #1
0
        public ActionResult EnabledAccount(string keyValue)
        {
            VehicleBindOrderEntity deviceEntity = new VehicleBindOrderEntity();

            deviceEntity.F_Id          = keyValue;
            deviceEntity.F_EnabledMark = true;
            _vehicleBindOrderApp.UpdateForm(deviceEntity);
            return(Success("账户启用成功。"));
        }
Exemple #2
0
 public ActionResult SubmitData(VehicleBindOrderEntity vehicleBindOrder, List <OrderEntity> LoadOrderItems, string keyValue)
 {
     foreach (OrderEntity loadOrderItem in LoadOrderItems)
     {
         OrderEntity order = _orderApp.GetForm(loadOrderItem.F_Id);
         order.F_IsLoading    = true;
         order.transportState = eTransportState.Loading;
         order.loadTime       = DateTime.Now;
         _orderApp.UpdateForm(order);
         VehicleBindOrderEntity vehicleBind = new VehicleBindOrderEntity()
         {
             F_CarFreight = vehicleBindOrder.F_CarFreight, F_Description = vehicleBindOrder.F_Description, F_EnabledMark = vehicleBindOrder.F_EnabledMark, F_DriverPhone = vehicleBindOrder.F_DriverPhone, F_VehicleId = vehicleBindOrder.F_VehicleId, F_LicensePlate = vehicleBindOrder.F_LicensePlate, F_Station = vehicleBindOrder.F_Station, F_OrderId = order.F_Id
         };
         _vehicleBindOrderApp.SubmitForm(vehicleBind, keyValue);
     }
     return(Success("操作成功。"));
 }
Exemple #3
0
 public void SubmitForm(VehicleBindOrderEntity itemsEntity, string keyValue)
 {
     try
     {
         if (!string.IsNullOrEmpty(keyValue))
         {
             itemsEntity.Modify(keyValue);
             _serviceVehicleBindOrder.Update(itemsEntity);
         }
         else
         {
             itemsEntity.Create();
             _serviceVehicleBindOrder.Insert(itemsEntity);
             OrderEntity order = _serviceOrder.FindEntity(itemsEntity.F_OrderId);
             order.F_DataType = eOrderDataType.Loading;
             _serviceOrder.Update(order);
         }
     }
     catch (Exception ex) {
     }
 }
Exemple #4
0
 public ActionResult SubmitForm(VehicleBindOrderEntity deviceEntity, string keyValue)
 {
     _vehicleBindOrderApp.SubmitForm(deviceEntity, keyValue);
     return(Success("操作成功。"));
 }
Exemple #5
0
 public void UpdateForm(VehicleBindOrderEntity vehicleEntity)
 {
     _serviceVehicleBindOrder.Update(vehicleEntity);
 }