コード例 #1
0
        public ActionResult ISS061_CompleteInstallRental(string RentalContractCode)
        {
            ObjectResultData res = new ObjectResultData();

            try
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    if (CommonUtil.IsNullOrEmpty(RentalContractCode))
                    {
                        res.AddErrorMessage(MessageUtil.MODULE_INSTALLATION,
                                            "ISS061",
                                            MessageUtil.MODULE_INSTALLATION,
                                            MessageUtil.MessageList.MSG0007,
                                            new string[] { "lblRentalContractCode" },
                                            new string[] { "RentalContractCode" });
                        return(Json(res));
                    }

                    IInstallationHandler iHandler = ServiceContainer.GetService <IInstallationHandler>() as IInstallationHandler;
                    iHandler.Temp_CompleteInstallation_Rental(RentalContractCode);

                    scope.Complete();
                    return(Json(res));
                }
            }
            catch (Exception ex)
            {
                res.AddErrorMessage(ex);
                return(Json(res));
            }
        }